ultracart_api 3.10.18 → 4.0.32.rc

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1317) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -7
  3. data/README.md +1166 -1130
  4. data/Rakefile +10 -8
  5. data/docs/AccountsReceivableRetryConfig.md +46 -22
  6. data/docs/AccountsReceivableRetryConfigResponse.md +32 -15
  7. data/docs/AccountsReceivableRetryDayActivity.md +22 -10
  8. data/docs/AccountsReceivableRetryStatAccount.md +24 -11
  9. data/docs/AccountsReceivableRetryStatMetrics.md +38 -18
  10. data/docs/AccountsReceivableRetryStatRevenue.md +20 -9
  11. data/docs/AccountsReceivableRetryStatsResponse.md +28 -13
  12. data/docs/Activity.md +28 -13
  13. data/docs/AddLibraryItemRequest.md +38 -18
  14. data/docs/AdjustInternalCertificateRequest.md +28 -13
  15. data/docs/AdjustInternalCertificateResponse.md +28 -13
  16. data/docs/AffiliateApi.md +173 -126
  17. data/docs/AffiliateClick.md +38 -18
  18. data/docs/AffiliateClickQuery.md +28 -13
  19. data/docs/AffiliateClicksResponse.md +26 -12
  20. data/docs/AffiliateLedger.md +54 -26
  21. data/docs/AffiliateLedgerQuery.md +28 -13
  22. data/docs/AffiliateLedgersResponse.md +26 -12
  23. data/docs/AffiliateLink.md +44 -21
  24. data/docs/ApiUserApplicationProfile.md +26 -12
  25. data/docs/ApplyLibraryItemRequest.md +24 -11
  26. data/docs/ApplyLibraryItemResponse.md +38 -18
  27. data/docs/AutoOrder.md +60 -29
  28. data/docs/AutoOrderApi.md +693 -502
  29. data/docs/AutoOrderItem.md +64 -31
  30. data/docs/AutoOrderItemFutureSchedule.md +24 -11
  31. data/docs/AutoOrderItemOption.md +20 -9
  32. data/docs/AutoOrderItemSimpleSchedule.md +22 -10
  33. data/docs/AutoOrderLog.md +20 -9
  34. data/docs/AutoOrderQuery.md +58 -28
  35. data/docs/AutoOrderQueryBatch.md +18 -8
  36. data/docs/AutoOrderResponse.md +26 -12
  37. data/docs/AutoOrdersRequest.md +18 -8
  38. data/docs/AutoOrdersResponse.md +26 -12
  39. data/docs/AvalaraConfig.md +42 -20
  40. data/docs/BaseResponse.md +24 -11
  41. data/docs/Browser.md +22 -10
  42. data/docs/BrowserDevice.md +18 -8
  43. data/docs/BrowserOS.md +26 -12
  44. data/docs/BrowserUserAgent.md +24 -11
  45. data/docs/Cart.md +68 -33
  46. data/docs/CartAffiliate.md +20 -9
  47. data/docs/CartAffirmCheckoutResponse.md +20 -9
  48. data/docs/CartBilling.md +46 -22
  49. data/docs/CartBuysafe.md +28 -13
  50. data/docs/CartCheckout.md +44 -21
  51. data/docs/CartCoupon.md +18 -8
  52. data/docs/CartCurrencyConversion.md +20 -9
  53. data/docs/CartCustomerProfile.md +60 -29
  54. data/docs/CartCustomerProfileAddress.md +44 -21
  55. data/docs/CartCustomerProfileCreditCard.md +28 -13
  56. data/docs/CartFinalizeOrderRequest.md +20 -9
  57. data/docs/CartFinalizeOrderRequestOptions.md +42 -20
  58. data/docs/CartFinalizeOrderResponse.md +26 -12
  59. data/docs/CartGift.md +28 -13
  60. data/docs/CartGiftCertificate.md +22 -10
  61. data/docs/CartItem.md +74 -36
  62. data/docs/CartItemAttribute.md +22 -10
  63. data/docs/CartItemMultimedia.md +34 -16
  64. data/docs/CartItemMultimediaThumbnail.md +26 -12
  65. data/docs/CartItemOption.md +40 -19
  66. data/docs/CartItemOptionValue.md +26 -12
  67. data/docs/CartItemPhysical.md +24 -11
  68. data/docs/CartItemVariationSelection.md +20 -9
  69. data/docs/CartKitComponentOption.md +44 -21
  70. data/docs/CartMarketing.md +20 -9
  71. data/docs/CartPayment.md +30 -14
  72. data/docs/CartPaymentAffirm.md +18 -8
  73. data/docs/CartPaymentAmazon.md +18 -8
  74. data/docs/CartPaymentCheck.md +18 -8
  75. data/docs/CartPaymentCreditCard.md +34 -16
  76. data/docs/CartPaymentPurchaseOrder.md +18 -8
  77. data/docs/CartProfileLoginRequest.md +22 -10
  78. data/docs/CartProfileLoginResponse.md +20 -9
  79. data/docs/CartProfileRegisterRequest.md +20 -9
  80. data/docs/CartProfileRegisterResponse.md +20 -9
  81. data/docs/CartProperty.md +24 -11
  82. data/docs/CartResponse.md +20 -9
  83. data/docs/CartSettings.md +28 -13
  84. data/docs/CartSettingsBilling.md +18 -8
  85. data/docs/CartSettingsGift.md +24 -11
  86. data/docs/CartSettingsGiftWrap.md +22 -10
  87. data/docs/CartSettingsPayment.md +42 -20
  88. data/docs/CartSettingsPaymentAmazon.md +22 -10
  89. data/docs/CartSettingsPaymentCreditCard.md +22 -10
  90. data/docs/CartSettingsPaymentPayPal.md +26 -12
  91. data/docs/CartSettingsProvince.md +20 -9
  92. data/docs/CartSettingsShipping.md +26 -12
  93. data/docs/CartSettingsShippingCalendar.md +26 -12
  94. data/docs/CartSettingsShippingEstimate.md +44 -21
  95. data/docs/CartSettingsTaxes.md +18 -8
  96. data/docs/CartSettingsTerms.md +20 -9
  97. data/docs/CartShipping.md +54 -26
  98. data/docs/CartSummary.md +48 -23
  99. data/docs/CartTaxes.md +22 -10
  100. data/docs/CartUpsellAfter.md +22 -10
  101. data/docs/CartValidationRequest.md +20 -9
  102. data/docs/CartValidationResponse.md +20 -9
  103. data/docs/ChannelPartnerApi.md +382 -263
  104. data/docs/ChannelPartnerCancelResponse.md +26 -12
  105. data/docs/ChannelPartnerEstimateShippingResponse.md +26 -12
  106. data/docs/ChannelPartnerEstimateTaxResponse.md +26 -12
  107. data/docs/ChannelPartnerImportResponse.md +30 -14
  108. data/docs/ChannelPartnerOrder.md +176 -87
  109. data/docs/ChannelPartnerOrderItem.md +30 -14
  110. data/docs/ChannelPartnerOrderItemOption.md +20 -9
  111. data/docs/ChannelPartnerOrderTransaction.md +20 -9
  112. data/docs/ChannelPartnerOrderTransactionDetail.md +20 -9
  113. data/docs/ChannelPartnerShippingEstimate.md +20 -9
  114. data/docs/ChargebackApi.md +420 -301
  115. data/docs/ChargebackDispute.md +62 -30
  116. data/docs/ChargebackDisputeResponse.md +26 -12
  117. data/docs/ChargebackDisputesResponse.md +26 -12
  118. data/docs/CheckoutAllowedCountriesResponse.md +18 -8
  119. data/docs/CheckoutApi.md +1566 -1023
  120. data/docs/CheckoutHandoffRequest.md +32 -15
  121. data/docs/CheckoutHandoffResponse.md +22 -10
  122. data/docs/CheckoutSetupBrowserKeyRequest.md +18 -8
  123. data/docs/CheckoutSetupBrowserKeyResponse.md +18 -8
  124. data/docs/CheckoutStateProvinceResponse.md +18 -8
  125. data/docs/CityStateZip.md +26 -12
  126. data/docs/CountriesResponse.md +18 -8
  127. data/docs/Country.md +20 -9
  128. data/docs/Coupon.md +136 -67
  129. data/docs/CouponAmountOffItems.md +24 -11
  130. data/docs/CouponAmountOffShipping.md +22 -10
  131. data/docs/CouponAmountOffShippingWithItemsPurchase.md +24 -11
  132. data/docs/CouponAmountOffSubtotal.md +20 -9
  133. data/docs/CouponAmountOffSubtotalAndShipping.md +20 -9
  134. data/docs/CouponAmountOffSubtotalFreeShippingWithPurchase.md +24 -11
  135. data/docs/CouponAmountOffSubtotalWithBlockPurchase.md +24 -11
  136. data/docs/CouponAmountOffSubtotalWithItemsPurchase.md +24 -11
  137. data/docs/CouponAmountOffSubtotalWithPurchase.md +22 -10
  138. data/docs/CouponAmountShippingWithSubtotal.md +24 -11
  139. data/docs/CouponApi.md +1500 -1043
  140. data/docs/CouponAutoApplyCondition.md +22 -10
  141. data/docs/CouponAutoApplyConditions.md +28 -13
  142. data/docs/CouponAutomaticallyApplyCouponCodes.md +18 -8
  143. data/docs/CouponBuyOneGetOneLimit.md +20 -9
  144. data/docs/CouponCodesRequest.md +30 -14
  145. data/docs/CouponCodesResponse.md +28 -13
  146. data/docs/CouponDeletesRequest.md +20 -9
  147. data/docs/CouponDiscountItemWithItemPurchase.md +26 -12
  148. data/docs/CouponDiscountItems.md +24 -11
  149. data/docs/CouponEditorValues.md +36 -17
  150. data/docs/CouponExistsResponse.md +28 -13
  151. data/docs/CouponFreeItemAndShippingWithSubtotal.md +26 -12
  152. data/docs/CouponFreeItemWithItemPurchase.md +24 -11
  153. data/docs/CouponFreeItemWithSubtotal.md +24 -11
  154. data/docs/CouponFreeItemsWithItemPurchase.md +26 -12
  155. data/docs/CouponFreeItemsWithMixMatchPurchase.md +26 -12
  156. data/docs/CouponFreeShipping.md +18 -8
  157. data/docs/CouponFreeShippingSpecificItems.md +18 -8
  158. data/docs/CouponFreeShippingWithItemsPurchase.md +20 -9
  159. data/docs/CouponFreeShippingWithSubtotal.md +22 -10
  160. data/docs/CouponItemSearchResult.md +32 -15
  161. data/docs/CouponItemSearchResultsResponse.md +26 -12
  162. data/docs/CouponMultipleAmountsOffItems.md +20 -9
  163. data/docs/CouponPercentOffItemWithItemsQuantityPurchase.md +26 -12
  164. data/docs/CouponPercentOffItems.md +24 -11
  165. data/docs/CouponPercentOffItemsAndFreeShipping.md +22 -10
  166. data/docs/CouponPercentOffItemsWithItemsPurchase.md +24 -11
  167. data/docs/CouponPercentOffMsrpItems.md +24 -11
  168. data/docs/CouponPercentOffRetailPriceItems.md +24 -11
  169. data/docs/CouponPercentOffShipping.md +20 -9
  170. data/docs/CouponPercentOffSubtotal.md +18 -8
  171. data/docs/CouponPercentOffSubtotalAndFreeShipping.md +20 -9
  172. data/docs/CouponPercentOffSubtotalLimit.md +22 -10
  173. data/docs/CouponPercentOffSubtotalWithItemsPurchase.md +20 -9
  174. data/docs/CouponPercentOffSubtotalWithSubtotal.md +22 -10
  175. data/docs/CouponQuery.md +36 -17
  176. data/docs/CouponResponse.md +28 -13
  177. data/docs/CouponRestriction.md +24 -11
  178. data/docs/CouponTierAmount.md +22 -10
  179. data/docs/CouponTierItemDiscount.md +20 -9
  180. data/docs/CouponTierPercent.md +22 -10
  181. data/docs/CouponTierQuantityAmount.md +22 -10
  182. data/docs/CouponTierQuantityPercent.md +22 -10
  183. data/docs/CouponTieredAmountOffItems.md +22 -10
  184. data/docs/CouponTieredAmountOffSubtotal.md +20 -9
  185. data/docs/CouponTieredPercentOffItems.md +22 -10
  186. data/docs/CouponTieredPercentOffShipping.md +22 -10
  187. data/docs/CouponTieredPercentOffSubtotal.md +20 -9
  188. data/docs/CouponType.md +20 -9
  189. data/docs/CouponsRequest.md +18 -8
  190. data/docs/CouponsResponse.md +26 -12
  191. data/docs/Currency.md +26 -12
  192. data/docs/Customer.md +134 -66
  193. data/docs/CustomerActivity.md +24 -11
  194. data/docs/CustomerAffiliate.md +24 -11
  195. data/docs/CustomerApi.md +1380 -966
  196. data/docs/CustomerAttachment.md +26 -12
  197. data/docs/CustomerBilling.md +50 -24
  198. data/docs/CustomerCard.md +32 -15
  199. data/docs/CustomerEditorValues.md +36 -17
  200. data/docs/CustomerEmail.md +28 -13
  201. data/docs/CustomerEmailListChanges.md +20 -9
  202. data/docs/CustomerLoyalty.md +30 -14
  203. data/docs/CustomerLoyaltyLedger.md +46 -22
  204. data/docs/CustomerLoyaltyRedemption.md +42 -20
  205. data/docs/CustomerOrdersSummary.md +24 -11
  206. data/docs/CustomerPricingTier.md +20 -9
  207. data/docs/CustomerPrivacy.md +24 -11
  208. data/docs/CustomerQuery.md +74 -36
  209. data/docs/CustomerQuotesSummary.md +24 -11
  210. data/docs/CustomerResponse.md +26 -12
  211. data/docs/CustomerReviewer.md +36 -17
  212. data/docs/CustomerShipping.md +50 -24
  213. data/docs/CustomerSoftwareEntitlement.md +32 -15
  214. data/docs/CustomerStoreCredit.md +28 -13
  215. data/docs/CustomerStoreCreditAddRequest.md +24 -11
  216. data/docs/CustomerStoreCreditLedgerEntry.md +30 -14
  217. data/docs/CustomerStoreCreditResponse.md +26 -12
  218. data/docs/CustomerTag.md +18 -8
  219. data/docs/CustomerTaxCodes.md +26 -12
  220. data/docs/CustomersResponse.md +26 -12
  221. data/docs/DataTablesServerSideResponse.md +24 -11
  222. data/docs/Distance.md +20 -9
  223. data/docs/DistributionCenter.md +86 -42
  224. data/docs/DistributionCentersResponse.md +26 -12
  225. data/docs/EmailBaseTemplateListResponse.md +18 -8
  226. data/docs/EmailCampaign.md +64 -31
  227. data/docs/EmailCampaignFolder.md +26 -12
  228. data/docs/EmailCampaignFolderResponse.md +26 -12
  229. data/docs/EmailCampaignFoldersResponse.md +26 -12
  230. data/docs/EmailCampaignResponse.md +26 -12
  231. data/docs/EmailCampaignsResponse.md +26 -12
  232. data/docs/EmailClick.md +20 -9
  233. data/docs/EmailClicksResponse.md +26 -12
  234. data/docs/EmailCommseq.md +24 -11
  235. data/docs/EmailCommseqEmail.md +68 -33
  236. data/docs/EmailCommseqEmailResponse.md +26 -12
  237. data/docs/EmailCommseqEmailSendTestRequest.md +36 -17
  238. data/docs/EmailCommseqEmailSendTestResponse.md +24 -11
  239. data/docs/EmailCommseqEmailsRequest.md +26 -12
  240. data/docs/EmailCommseqEmailsResponse.md +26 -12
  241. data/docs/EmailCommseqPostcard.md +42 -20
  242. data/docs/EmailCommseqPostcardResponse.md +26 -12
  243. data/docs/EmailCommseqPostcardSendTestRequest.md +42 -20
  244. data/docs/EmailCommseqPostcardSendTestResponse.md +30 -14
  245. data/docs/EmailCommseqPostcardsRequest.md +18 -8
  246. data/docs/EmailCommseqPostcardsResponse.md +26 -12
  247. data/docs/EmailCommseqResponse.md +26 -12
  248. data/docs/EmailCommseqStat.md +90 -44
  249. data/docs/EmailCommseqStatResponse.md +26 -12
  250. data/docs/EmailCommseqStep.md +36 -17
  251. data/docs/EmailCommseqStepLog.md +22 -10
  252. data/docs/EmailCommseqStepLogsResponse.md +26 -12
  253. data/docs/EmailCommseqWebhookSendTestRequest.md +30 -14
  254. data/docs/EmailCommseqWebhookSendTestResponse.md +30 -14
  255. data/docs/EmailCommseqsResponse.md +26 -12
  256. data/docs/EmailCustomer.md +32 -15
  257. data/docs/EmailCustomerEditorUrlResponse.md +26 -12
  258. data/docs/EmailCustomersResponse.md +26 -12
  259. data/docs/EmailDashboardActivity.md +30 -14
  260. data/docs/EmailDashboardActivityResponse.md +26 -12
  261. data/docs/EmailDashboardStatsResponse.md +26 -12
  262. data/docs/EmailDomain.md +42 -20
  263. data/docs/EmailEditorTokenResponse.md +26 -12
  264. data/docs/EmailFlow.md +72 -35
  265. data/docs/EmailFlowBackPopulateRequest.md +20 -9
  266. data/docs/EmailFlowBackPopulateResponse.md +24 -11
  267. data/docs/EmailFlowFolder.md +26 -12
  268. data/docs/EmailFlowFolderResponse.md +26 -12
  269. data/docs/EmailFlowFoldersResponse.md +26 -12
  270. data/docs/EmailFlowResponse.md +26 -12
  271. data/docs/EmailFlowsResponse.md +26 -12
  272. data/docs/EmailGlobalSettings.md +18 -8
  273. data/docs/EmailGlobalSettingsResponse.md +26 -12
  274. data/docs/EmailGlobalUnsubscribeRequest.md +18 -8
  275. data/docs/EmailGlobalUnsubscribeResponse.md +18 -8
  276. data/docs/EmailHistogramPropertyNamesResponse.md +18 -8
  277. data/docs/EmailHistogramPropertyValuesResponse.md +18 -8
  278. data/docs/EmailList.md +40 -19
  279. data/docs/EmailListArchiveResponse.md +26 -12
  280. data/docs/EmailListCustomer.md +24 -11
  281. data/docs/EmailListCustomersResponse.md +26 -12
  282. data/docs/EmailListResponse.md +26 -12
  283. data/docs/EmailListSegmentFolder.md +26 -12
  284. data/docs/EmailListSegmentFolderResponse.md +26 -12
  285. data/docs/EmailListSegmentFoldersResponse.md +26 -12
  286. data/docs/EmailListSegmentMembership.md +24 -11
  287. data/docs/EmailListSegmentUsedBy.md +22 -10
  288. data/docs/EmailListSubscribeResponse.md +20 -9
  289. data/docs/EmailListsResponse.md +26 -12
  290. data/docs/EmailOrder.md +24 -11
  291. data/docs/EmailOrdersResponse.md +26 -12
  292. data/docs/EmailPerformance.md +62 -30
  293. data/docs/EmailPerformanceCustomerHistogram.md +18 -8
  294. data/docs/EmailPerformanceCustomerHistogramPeriod.md +26 -12
  295. data/docs/EmailPerformanceDaily.md +30 -14
  296. data/docs/EmailPerformanceResponse.md +26 -12
  297. data/docs/EmailPlan.md +50 -24
  298. data/docs/EmailPlanAdditional.md +34 -16
  299. data/docs/EmailPlanResponse.md +26 -12
  300. data/docs/EmailPostcardStat.md +80 -39
  301. data/docs/EmailSegment.md +58 -28
  302. data/docs/EmailSegmentArchiveResponse.md +26 -12
  303. data/docs/EmailSegmentCustomer.md +24 -11
  304. data/docs/EmailSegmentCustomersResponse.md +26 -12
  305. data/docs/EmailSegmentDownloadPrepareResponse.md +32 -15
  306. data/docs/EmailSegmentResponse.md +26 -12
  307. data/docs/EmailSegmentsResponse.md +26 -12
  308. data/docs/EmailSendingDomainResponse.md +26 -12
  309. data/docs/EmailSendingDomainsResponse.md +26 -12
  310. data/docs/EmailSettings.md +40 -19
  311. data/docs/EmailSettingsResponse.md +26 -12
  312. data/docs/EmailStat.md +92 -45
  313. data/docs/EmailStatPostcardSummaryRequest.md +20 -9
  314. data/docs/EmailStatPostcardSummaryResponse.md +26 -12
  315. data/docs/EmailStatSummaryRequest.md +22 -10
  316. data/docs/EmailStatSummaryResponse.md +26 -12
  317. data/docs/EmailStepStat.md +56 -27
  318. data/docs/EmailStepStatRequest.md +20 -9
  319. data/docs/EmailStepStatResponse.md +26 -12
  320. data/docs/EmailStepWaitingRequest.md +18 -8
  321. data/docs/EmailStepWaitingResponse.md +18 -8
  322. data/docs/EmailTemplate.md +38 -18
  323. data/docs/EmailTemplatesResponse.md +26 -12
  324. data/docs/EmailThirdPartyList.md +20 -9
  325. data/docs/EmailThirdPartyListImportRequest.md +18 -8
  326. data/docs/EmailThirdPartyProvider.md +38 -18
  327. data/docs/EmailThirdPartyProvidersResponse.md +26 -12
  328. data/docs/EmailThirdPartyTag.md +20 -9
  329. data/docs/EmailVerifyTokenRequest.md +20 -9
  330. data/docs/EmailVerifyTokenResponse.md +26 -12
  331. data/docs/EmailVerifyTokenValidateRequest.md +18 -8
  332. data/docs/EmailVerifyTokenValidateResponse.md +24 -11
  333. data/docs/EmailWebhookEditorValuesResponse.md +30 -14
  334. data/docs/Error.md +26 -12
  335. data/docs/ErrorResponse.md +24 -11
  336. data/docs/Experiment.md +52 -25
  337. data/docs/ExperimentResponse.md +26 -12
  338. data/docs/ExperimentVariation.md +60 -29
  339. data/docs/ExperimentVariationStat.md +38 -18
  340. data/docs/ExperimentsResponse.md +26 -12
  341. data/docs/FulfillmentApi.md +459 -318
  342. data/docs/FulfillmentInventory.md +20 -9
  343. data/docs/FulfillmentShipment.md +26 -12
  344. data/docs/GeoPoint.md +20 -9
  345. data/docs/GeocodeRequest.md +26 -12
  346. data/docs/GeocodeResponse.md +28 -13
  347. data/docs/GiftCertificate.md +44 -21
  348. data/docs/GiftCertificateApi.md +622 -433
  349. data/docs/GiftCertificateCreateRequest.md +26 -12
  350. data/docs/GiftCertificateLedgerEntry.md +28 -13
  351. data/docs/GiftCertificateQuery.md +34 -16
  352. data/docs/GiftCertificateResponse.md +26 -12
  353. data/docs/GiftCertificatesResponse.md +26 -12
  354. data/docs/Group.md +26 -12
  355. data/docs/GroupResponse.md +26 -12
  356. data/docs/GroupUserMembership.md +26 -12
  357. data/docs/GroupsResponse.md +26 -12
  358. data/docs/HTTPHeader.md +20 -9
  359. data/docs/IntegrationLog.md +52 -25
  360. data/docs/IntegrationLogApi.md +400 -286
  361. data/docs/IntegrationLogFile.md +24 -11
  362. data/docs/IntegrationLogLog.md +20 -9
  363. data/docs/IntegrationLogQueryFilterValues.md +40 -19
  364. data/docs/IntegrationLogQueryRequest.md +42 -20
  365. data/docs/IntegrationLogQueryResponse.md +28 -13
  366. data/docs/IntegrationLogResponse.md +26 -12
  367. data/docs/IntegrationLogSummary.md +34 -16
  368. data/docs/IntegrationLogSummaryQueryRequest.md +20 -9
  369. data/docs/IntegrationLogSummaryQueryResponse.md +26 -12
  370. data/docs/Item.md +118 -58
  371. data/docs/ItemAccounting.md +20 -9
  372. data/docs/ItemAmember.md +20 -9
  373. data/docs/ItemApi.md +733 -517
  374. data/docs/ItemAutoOrder.md +50 -24
  375. data/docs/ItemAutoOrderStep.md +46 -22
  376. data/docs/ItemAutoOrderStepArbitraryUnitCostSchedule.md +20 -9
  377. data/docs/ItemAutoOrderStepGrandfatherPricing.md +20 -9
  378. data/docs/ItemCCBill.md +28 -13
  379. data/docs/ItemChannelPartnerMapping.md +54 -26
  380. data/docs/ItemChargeback.md +20 -9
  381. data/docs/ItemChargebackAddendum.md +24 -11
  382. data/docs/ItemChargebackAdjustmentRequest.md +22 -10
  383. data/docs/ItemCheckout.md +24 -11
  384. data/docs/ItemContent.md +42 -20
  385. data/docs/ItemContentAssignment.md +28 -13
  386. data/docs/ItemContentAttribute.md +24 -11
  387. data/docs/ItemContentMultimedia.md +46 -22
  388. data/docs/ItemContentMultimediaThumbnail.md +28 -13
  389. data/docs/ItemDigitalDelivery.md +28 -13
  390. data/docs/ItemDigitalItem.md +26 -12
  391. data/docs/ItemEbay.md +154 -76
  392. data/docs/ItemEbayCategorySpecific.md +20 -9
  393. data/docs/ItemEbayMarketListing.md +26 -12
  394. data/docs/ItemEbayMarketPlaceAnalysis.md +36 -17
  395. data/docs/ItemEmailNotifications.md +20 -9
  396. data/docs/ItemEnrollment123.md +18 -8
  397. data/docs/ItemFulfillmentAddon.md +24 -11
  398. data/docs/ItemGiftCertificate.md +20 -9
  399. data/docs/ItemGoogleProductSearch.md +112 -55
  400. data/docs/ItemIdentifiers.md +24 -11
  401. data/docs/ItemInstantPaymentNotification.md +22 -10
  402. data/docs/ItemInstantPaymentNotifications.md +18 -8
  403. data/docs/ItemInternal.md +18 -8
  404. data/docs/ItemKitComponent.md +26 -12
  405. data/docs/ItemKitDefinition.md +18 -8
  406. data/docs/ItemOption.md +44 -21
  407. data/docs/ItemOptionValue.md +46 -22
  408. data/docs/ItemOptionValueAdditionalItem.md +20 -9
  409. data/docs/ItemOptionValueDigitalItem.md +20 -9
  410. data/docs/ItemPaymentProcessing.md +26 -12
  411. data/docs/ItemPhysical.md +24 -11
  412. data/docs/ItemPricing.md +52 -25
  413. data/docs/ItemPricingTier.md +26 -12
  414. data/docs/ItemPricingTierDiscount.md +20 -9
  415. data/docs/ItemPricingTierLimit.md +22 -10
  416. data/docs/ItemProperty.md +22 -10
  417. data/docs/ItemRealtimePricing.md +22 -10
  418. data/docs/ItemRelated.md +22 -10
  419. data/docs/ItemRelatedItem.md +22 -10
  420. data/docs/ItemReporting.md +20 -9
  421. data/docs/ItemResponse.md +26 -12
  422. data/docs/ItemRestriction.md +32 -15
  423. data/docs/ItemRestrictionItem.md +22 -10
  424. data/docs/ItemRevguard.md +30 -14
  425. data/docs/ItemReviews.md +34 -16
  426. data/docs/ItemSalesforce.md +20 -9
  427. data/docs/ItemShipping.md +112 -55
  428. data/docs/ItemShippingCase.md +24 -11
  429. data/docs/ItemShippingDestinationMarkup.md +28 -13
  430. data/docs/ItemShippingDestinationRestriction.md +22 -10
  431. data/docs/ItemShippingDistributionCenter.md +44 -21
  432. data/docs/ItemShippingMethod.md +46 -22
  433. data/docs/ItemShippingPackageRequirement.md +20 -9
  434. data/docs/ItemTag.md +20 -9
  435. data/docs/ItemTags.md +18 -8
  436. data/docs/ItemTax.md +24 -11
  437. data/docs/ItemTaxExemption.md +26 -12
  438. data/docs/ItemThirdPartyEmailMarketing.md +26 -12
  439. data/docs/ItemVariantItem.md +28 -13
  440. data/docs/ItemVariation.md +26 -12
  441. data/docs/ItemVariationOption.md +24 -11
  442. data/docs/ItemWishlistMember.md +22 -10
  443. data/docs/ItemsRequest.md +18 -8
  444. data/docs/ItemsResponse.md +26 -12
  445. data/docs/KeyValue.md +22 -10
  446. data/docs/LibraryFilterValues.md +24 -11
  447. data/docs/LibraryFilterValuesResponse.md +26 -12
  448. data/docs/LibraryItem.md +96 -47
  449. data/docs/LibraryItemAccount.md +22 -10
  450. data/docs/LibraryItemAsset.md +20 -9
  451. data/docs/LibraryItemAttribute.md +20 -9
  452. data/docs/LibraryItemEmail.md +22 -10
  453. data/docs/LibraryItemPublishedMeta.md +32 -15
  454. data/docs/LibraryItemPurchasedMeta.md +22 -10
  455. data/docs/LibraryItemQuery.md +40 -19
  456. data/docs/LibraryItemResponse.md +26 -12
  457. data/docs/LibraryItemScreenshot.md +20 -9
  458. data/docs/LibraryItemsResponse.md +26 -12
  459. data/docs/LinkedAccount.md +22 -10
  460. data/docs/ListSegmentMembership.md +22 -10
  461. data/docs/LookupRequest.md +26 -12
  462. data/docs/LookupResponse.md +26 -12
  463. data/docs/Mailgun.md +18 -8
  464. data/docs/Metric.md +32 -15
  465. data/docs/Notification.md +38 -18
  466. data/docs/OauthApi.md +179 -124
  467. data/docs/OauthRevokeSuccessResponse.md +20 -9
  468. data/docs/OauthTokenResponse.md +32 -15
  469. data/docs/Order.md +84 -41
  470. data/docs/OrderAffiliate.md +22 -10
  471. data/docs/OrderAffiliateLedger.md +34 -16
  472. data/docs/OrderApi.md +1856 -1308
  473. data/docs/OrderAutoOrder.md +56 -27
  474. data/docs/OrderBilling.md +48 -23
  475. data/docs/OrderBuysafe.md +28 -13
  476. data/docs/OrderByTokenQuery.md +18 -8
  477. data/docs/OrderChannelPartner.md +38 -18
  478. data/docs/OrderCheckout.md +44 -21
  479. data/docs/OrderCoupon.md +26 -12
  480. data/docs/OrderDigitalItem.md +32 -15
  481. data/docs/OrderDigitalOrder.md +26 -12
  482. data/docs/OrderEdi.md +24 -11
  483. data/docs/OrderFormat.md +48 -23
  484. data/docs/OrderFormatResponse.md +20 -9
  485. data/docs/OrderFraudScore.md +56 -27
  486. data/docs/OrderGift.md +36 -17
  487. data/docs/OrderGiftCertificate.md +22 -10
  488. data/docs/OrderInternal.md +26 -12
  489. data/docs/OrderItem.md +128 -63
  490. data/docs/OrderItemEdi.md +20 -9
  491. data/docs/OrderItemEdiIdentification.md +20 -9
  492. data/docs/OrderItemEdiLot.md +22 -10
  493. data/docs/OrderItemOption.md +38 -18
  494. data/docs/OrderItemOptionFileAttachment.md +24 -11
  495. data/docs/OrderItemProperty.md +24 -11
  496. data/docs/OrderItemTag.md +18 -8
  497. data/docs/OrderLinkedShipment.md +26 -12
  498. data/docs/OrderMarketing.md +22 -10
  499. data/docs/OrderPackingSlipResponse.md +26 -12
  500. data/docs/OrderPayment.md +52 -25
  501. data/docs/OrderPaymentCheck.md +18 -8
  502. data/docs/OrderPaymentCreditCard.md +38 -18
  503. data/docs/OrderPaymentECheck.md +36 -17
  504. data/docs/OrderPaymentInsurance.md +24 -11
  505. data/docs/OrderPaymentPurchaseOrder.md +18 -8
  506. data/docs/OrderPaymentTransaction.md +24 -11
  507. data/docs/OrderPaymentTransactionDetail.md +22 -10
  508. data/docs/OrderProcessPaymentRequest.md +20 -9
  509. data/docs/OrderProcessPaymentResponse.md +26 -12
  510. data/docs/OrderProperty.md +24 -11
  511. data/docs/OrderQuery.md +94 -46
  512. data/docs/OrderQueryBatch.md +18 -8
  513. data/docs/OrderQuote.md +22 -10
  514. data/docs/OrderReplacement.md +46 -22
  515. data/docs/OrderReplacementItem.md +22 -10
  516. data/docs/OrderReplacementResponse.md +28 -13
  517. data/docs/OrderResponse.md +26 -12
  518. data/docs/OrderSalesforce.md +18 -8
  519. data/docs/OrderShipping.md +76 -37
  520. data/docs/OrderSummary.md +56 -27
  521. data/docs/OrderTag.md +18 -8
  522. data/docs/OrderTaxes.md +50 -24
  523. data/docs/OrderTokenResponse.md +26 -12
  524. data/docs/OrderTrackingNumberDetail.md +40 -19
  525. data/docs/OrderTrackingNumberDetails.md +52 -25
  526. data/docs/OrdersResponse.md +26 -12
  527. data/docs/Permission.md +22 -10
  528. data/docs/PricingTier.md +78 -38
  529. data/docs/PricingTierNotification.md +22 -10
  530. data/docs/PricingTiersResponse.md +26 -12
  531. data/docs/Property.md +20 -9
  532. data/docs/PublishLibraryItemRequest.md +18 -8
  533. data/docs/RegisterAffiliateClickRequest.md +28 -13
  534. data/docs/RegisterAffiliateClickResponse.md +24 -11
  535. data/docs/ResponseMetadata.md +20 -9
  536. data/docs/ResultSet.md +28 -13
  537. data/docs/ScreenRecording.md +116 -57
  538. data/docs/ScreenRecordingAdPlatform.md +30 -14
  539. data/docs/ScreenRecordingFilter.md +136 -67
  540. data/docs/ScreenRecordingFilterGeoDistance.md +26 -12
  541. data/docs/ScreenRecordingFilterIpSearch.md +24 -11
  542. data/docs/ScreenRecordingFilterPageView.md +50 -24
  543. data/docs/ScreenRecordingFilterPageViewEvent.md +20 -9
  544. data/docs/ScreenRecordingFilterPageViewEventParam.md +26 -12
  545. data/docs/ScreenRecordingFilterPageViewParam.md +20 -9
  546. data/docs/ScreenRecordingFilterPageViewReferrerParam.md +20 -9
  547. data/docs/ScreenRecordingFilterRangeBigDecimal.md +26 -12
  548. data/docs/ScreenRecordingFilterRangeDate.md +20 -9
  549. data/docs/ScreenRecordingFilterRangeInteger.md +26 -12
  550. data/docs/ScreenRecordingFilterStringSearch.md +26 -12
  551. data/docs/ScreenRecordingFilterValues.md +58 -28
  552. data/docs/ScreenRecordingFilterValuesEvent.md +20 -9
  553. data/docs/ScreenRecordingFilterValuesEventParams.md +26 -12
  554. data/docs/ScreenRecordingFilterValuesPageParam.md +20 -9
  555. data/docs/ScreenRecordingFilterValuesPageView.md +28 -13
  556. data/docs/ScreenRecordingHeatmap.md +64 -31
  557. data/docs/ScreenRecordingHeatmapIndexRequest.md +18 -8
  558. data/docs/ScreenRecordingHeatmapIndexResponse.md +26 -12
  559. data/docs/ScreenRecordingHeatmapRequest.md +22 -10
  560. data/docs/ScreenRecordingHeatmapReset.md +18 -8
  561. data/docs/ScreenRecordingHeatmapResponse.md +26 -12
  562. data/docs/ScreenRecordingHeatmapUrl.md +28 -13
  563. data/docs/ScreenRecordingMerchantNotesRequest.md +18 -8
  564. data/docs/ScreenRecordingMultifield.md +26 -12
  565. data/docs/ScreenRecordingPageView.md +54 -26
  566. data/docs/ScreenRecordingPageViewDataResponse.md +26 -12
  567. data/docs/ScreenRecordingPageViewEvent.md +28 -13
  568. data/docs/ScreenRecordingPageViewEventParameter.md +20 -9
  569. data/docs/ScreenRecordingPageViewParameter.md +20 -9
  570. data/docs/ScreenRecordingQueryRequest.md +18 -8
  571. data/docs/ScreenRecordingQueryResponse.md +38 -18
  572. data/docs/ScreenRecordingResponse.md +28 -13
  573. data/docs/ScreenRecordingSegment.md +36 -17
  574. data/docs/ScreenRecordingSegmentResponse.md +26 -12
  575. data/docs/ScreenRecordingSegmentsResponse.md +26 -12
  576. data/docs/ScreenRecordingSettings.md +32 -15
  577. data/docs/ScreenRecordingSettingsResponse.md +26 -12
  578. data/docs/ScreenRecordingStoreFront.md +20 -9
  579. data/docs/ScreenRecordingTagsRequest.md +18 -8
  580. data/docs/ScreenRecordingTagsResponse.md +26 -12
  581. data/docs/ScreenRecordingUserAgent.md +26 -12
  582. data/docs/ScreenRecordingUserAgentDevice.md +18 -8
  583. data/docs/ScreenRecordingUserAgentOS.md +22 -10
  584. data/docs/ScreenRecordingUserProperty.md +20 -9
  585. data/docs/ScreenshotsResponse.md +26 -12
  586. data/docs/SelfConfig.md +18 -8
  587. data/docs/SimpleValue.md +20 -9
  588. data/docs/SingleSignOnAuthorizeRequest.md +20 -9
  589. data/docs/SingleSignOnAuthorizeResponse.md +20 -9
  590. data/docs/SingleSignOnTokenRequest.md +20 -9
  591. data/docs/SingleSignOnTokenResponse.md +22 -10
  592. data/docs/SovosConfig.md +30 -14
  593. data/docs/SsoApi.md +300 -201
  594. data/docs/StateProvince.md +20 -9
  595. data/docs/StepWaiting.md +20 -9
  596. data/docs/StorefrontApi.md +13005 -8525
  597. data/docs/TaxApi.md +2101 -1421
  598. data/docs/TaxCity.md +34 -16
  599. data/docs/TaxCountry.md +34 -16
  600. data/docs/TaxCountryCode.md +26 -12
  601. data/docs/TaxCounty.md +36 -17
  602. data/docs/TaxJarConfig.md +30 -14
  603. data/docs/TaxPostalCode.md +30 -14
  604. data/docs/TaxProviderActivateResult.md +20 -9
  605. data/docs/TaxProviderAvalara.md +24 -11
  606. data/docs/TaxProviderAvalaraCompaniesResult.md +18 -8
  607. data/docs/TaxProviderAvalaraCompany.md +26 -12
  608. data/docs/TaxProviderSelf.md +26 -12
  609. data/docs/TaxProviderSelfCountriesResponse.md +18 -8
  610. data/docs/TaxProviderSelfRegionsResponse.md +18 -8
  611. data/docs/TaxProviderSovos.md +24 -11
  612. data/docs/TaxProviderTaxJar.md +24 -11
  613. data/docs/TaxProviderTestResult.md +20 -9
  614. data/docs/TaxProviderUltraCart.md +26 -12
  615. data/docs/TaxProviderUltraCartState.md +36 -17
  616. data/docs/TaxProvidersResponse.md +34 -16
  617. data/docs/TaxState.md +52 -25
  618. data/docs/TaxStateCode.md +26 -12
  619. data/docs/TempMultimedia.md +30 -14
  620. data/docs/TempMultimediaResponse.md +26 -12
  621. data/docs/ThumbnailParametersRequest.md +26 -12
  622. data/docs/ThumbnailParametersResponse.md +26 -12
  623. data/docs/TransactionEmail.md +56 -27
  624. data/docs/TransactionEmailListResponse.md +26 -12
  625. data/docs/TransactionEmailOption.md +32 -15
  626. data/docs/TransactionEmailResponse.md +26 -12
  627. data/docs/Twilio.md +24 -11
  628. data/docs/TwilioResponse.md +28 -13
  629. data/docs/TwiliosResponse.md +26 -12
  630. data/docs/UltraCartConfig.md +18 -8
  631. data/docs/UploadCouponCodesRequest.md +26 -12
  632. data/docs/UploadCouponCodesResponse.md +30 -14
  633. data/docs/User.md +44 -21
  634. data/docs/UserApi.md +823 -558
  635. data/docs/UserGroupMembership.md +22 -10
  636. data/docs/UserLogin.md +24 -11
  637. data/docs/UserLoginsResponse.md +26 -12
  638. data/docs/UserResponse.md +26 -12
  639. data/docs/UsersResponse.md +26 -12
  640. data/docs/VerificationRecord.md +22 -10
  641. data/docs/Warning.md +20 -9
  642. data/docs/Webhook.md +52 -25
  643. data/docs/WebhookApi.md +636 -447
  644. data/docs/WebhookEventCategory.md +26 -12
  645. data/docs/WebhookEventSubscription.md +34 -16
  646. data/docs/WebhookLog.md +38 -18
  647. data/docs/WebhookLogResponse.md +26 -12
  648. data/docs/WebhookLogSummariesResponse.md +26 -12
  649. data/docs/WebhookLogSummary.md +22 -10
  650. data/docs/WebhookResponse.md +26 -12
  651. data/docs/WebhookSampleRequest.md +24 -11
  652. data/docs/WebhookSampleRequestResponse.md +26 -12
  653. data/docs/WebhooksResponse.md +26 -12
  654. data/docs/Weight.md +20 -9
  655. data/git_push.sh +57 -55
  656. data/lib/ultracart_api/api/affiliate_api.rb +191 -164
  657. data/lib/ultracart_api/api/auto_order_api.rb +672 -581
  658. data/lib/ultracart_api/api/channel_partner_api.rb +370 -311
  659. data/lib/ultracart_api/api/chargeback_api.rb +410 -356
  660. data/lib/ultracart_api/api/checkout_api.rb +1341 -1111
  661. data/lib/ultracart_api/api/coupon_api.rb +1390 -1161
  662. data/lib/ultracart_api/api/customer_api.rb +1292 -1094
  663. data/lib/ultracart_api/api/fulfillment_api.rb +452 -381
  664. data/lib/ultracart_api/api/gift_certificate_api.rb +594 -502
  665. data/lib/ultracart_api/api/integration_log_api.rb +404 -350
  666. data/lib/ultracart_api/api/item_api.rb +686 -585
  667. data/lib/ultracart_api/api/oauth_api.rb +198 -171
  668. data/lib/ultracart_api/api/order_api.rb +1728 -1471
  669. data/lib/ultracart_api/api/sso_api.rb +289 -243
  670. data/lib/ultracart_api/api/storefront_api.rb +11407 -9617
  671. data/lib/ultracart_api/api/tax_api.rb +1916 -1580
  672. data/lib/ultracart_api/api/user_api.rb +755 -634
  673. data/lib/ultracart_api/api/webhook_api.rb +601 -514
  674. data/lib/ultracart_api/api_client.rb +399 -400
  675. data/lib/ultracart_api/api_error.rb +57 -38
  676. data/lib/ultracart_api/configuration.rb +302 -229
  677. data/lib/ultracart_api/models/accounts_receivable_retry_config.rb +364 -329
  678. data/lib/ultracart_api/models/accounts_receivable_retry_config_response.rb +287 -252
  679. data/lib/ultracart_api/models/accounts_receivable_retry_day_activity.rb +240 -205
  680. data/lib/ultracart_api/models/accounts_receivable_retry_stat_account.rb +250 -215
  681. data/lib/ultracart_api/models/accounts_receivable_retry_stat_metrics.rb +309 -274
  682. data/lib/ultracart_api/models/accounts_receivable_retry_stat_revenue.rb +228 -193
  683. data/lib/ultracart_api/models/accounts_receivable_retry_stats_response.rb +267 -232
  684. data/lib/ultracart_api/models/activity.rb +264 -229
  685. data/lib/ultracart_api/models/add_library_item_request.rb +324 -289
  686. data/lib/ultracart_api/models/adjust_internal_certificate_request.rb +270 -235
  687. data/lib/ultracart_api/models/adjust_internal_certificate_response.rb +267 -232
  688. data/lib/ultracart_api/models/affiliate_click.rb +319 -284
  689. data/lib/ultracart_api/models/affiliate_click_query.rb +270 -235
  690. data/lib/ultracart_api/models/affiliate_clicks_response.rb +259 -224
  691. data/lib/ultracart_api/models/affiliate_ledger.rb +431 -396
  692. data/lib/ultracart_api/models/affiliate_ledger_query.rb +270 -235
  693. data/lib/ultracart_api/models/affiliate_ledgers_response.rb +259 -224
  694. data/lib/ultracart_api/models/affiliate_link.rb +408 -373
  695. data/lib/ultracart_api/models/api_user_application_profile.rb +260 -225
  696. data/lib/ultracart_api/models/apply_library_item_request.rb +250 -215
  697. data/lib/ultracart_api/models/apply_library_item_response.rb +319 -284
  698. data/lib/ultracart_api/models/auto_order.rb +469 -434
  699. data/lib/ultracart_api/models/auto_order_item.rb +487 -452
  700. data/lib/ultracart_api/models/auto_order_item_future_schedule.rb +250 -215
  701. data/lib/ultracart_api/models/auto_order_item_option.rb +260 -225
  702. data/lib/ultracart_api/models/auto_order_item_simple_schedule.rb +274 -239
  703. data/lib/ultracart_api/models/auto_order_log.rb +230 -195
  704. data/lib/ultracart_api/models/auto_order_query.rb +480 -445
  705. data/lib/ultracart_api/models/auto_order_query_batch.rb +222 -187
  706. data/lib/ultracart_api/models/auto_order_response.rb +256 -221
  707. data/lib/ultracart_api/models/auto_orders_request.rb +222 -187
  708. data/lib/ultracart_api/models/auto_orders_response.rb +258 -223
  709. data/lib/ultracart_api/models/avalara_config.rb +340 -305
  710. data/lib/ultracart_api/models/base_response.rb +247 -212
  711. data/lib/ultracart_api/models/browser.rb +237 -202
  712. data/lib/ultracart_api/models/browser_device.rb +219 -184
  713. data/lib/ultracart_api/models/browser_os.rb +255 -220
  714. data/lib/ultracart_api/models/browser_user_agent.rb +246 -211
  715. data/lib/ultracart_api/models/cart.rb +506 -471
  716. data/lib/ultracart_api/models/cart_affiliate.rb +245 -210
  717. data/lib/ultracart_api/models/cart_affirm_checkout_response.rb +232 -197
  718. data/lib/ultracart_api/models/cart_billing.rb +572 -537
  719. data/lib/ultracart_api/models/cart_buysafe.rb +269 -234
  720. data/lib/ultracart_api/models/cart_checkout.rb +500 -465
  721. data/lib/ultracart_api/models/cart_coupon.rb +220 -185
  722. data/lib/ultracart_api/models/cart_currency_conversion.rb +232 -197
  723. data/lib/ultracart_api/models/cart_customer_profile.rb +438 -403
  724. data/lib/ultracart_api/models/cart_customer_profile_address.rb +350 -315
  725. data/lib/ultracart_api/models/cart_customer_profile_credit_card.rb +304 -269
  726. data/lib/ultracart_api/models/cart_finalize_order_request.rb +228 -193
  727. data/lib/ultracart_api/models/cart_finalize_order_request_options.rb +355 -320
  728. data/lib/ultracart_api/models/cart_finalize_order_response.rb +260 -225
  729. data/lib/ultracart_api/models/cart_gift.rb +313 -278
  730. data/lib/ultracart_api/models/cart_gift_certificate.rb +238 -203
  731. data/lib/ultracart_api/models/cart_item.rb +504 -469
  732. data/lib/ultracart_api/models/cart_item_attribute.rb +240 -205
  733. data/lib/ultracart_api/models/cart_item_multimedia.rb +336 -301
  734. data/lib/ultracart_api/models/cart_item_multimedia_thumbnail.rb +260 -225
  735. data/lib/ultracart_api/models/cart_item_option.rb +378 -343
  736. data/lib/ultracart_api/models/cart_item_option_value.rb +258 -223
  737. data/lib/ultracart_api/models/cart_item_physical.rb +246 -211
  738. data/lib/ultracart_api/models/cart_item_variation_selection.rb +230 -195
  739. data/lib/ultracart_api/models/cart_kit_component_option.rb +398 -363
  740. data/lib/ultracart_api/models/cart_marketing.rb +230 -195
  741. data/lib/ultracart_api/models/cart_payment.rb +275 -240
  742. data/lib/ultracart_api/models/cart_payment_affirm.rb +220 -185
  743. data/lib/ultracart_api/models/cart_payment_amazon.rb +220 -185
  744. data/lib/ultracart_api/models/cart_payment_check.rb +220 -185
  745. data/lib/ultracart_api/models/cart_payment_credit_card.rb +300 -265
  746. data/lib/ultracart_api/models/cart_payment_purchase_order.rb +220 -185
  747. data/lib/ultracart_api/models/cart_profile_login_request.rb +239 -204
  748. data/lib/ultracart_api/models/cart_profile_login_response.rb +231 -196
  749. data/lib/ultracart_api/models/cart_profile_register_request.rb +229 -194
  750. data/lib/ultracart_api/models/cart_profile_register_response.rb +231 -196
  751. data/lib/ultracart_api/models/cart_property.rb +280 -245
  752. data/lib/ultracart_api/models/cart_response.rb +231 -196
  753. data/lib/ultracart_api/models/cart_settings.rb +264 -229
  754. data/lib/ultracart_api/models/cart_settings_billing.rb +222 -187
  755. data/lib/ultracart_api/models/cart_settings_gift.rb +251 -216
  756. data/lib/ultracart_api/models/cart_settings_gift_wrap.rb +239 -204
  757. data/lib/ultracart_api/models/cart_settings_payment.rb +337 -302
  758. data/lib/ultracart_api/models/cart_settings_payment_amazon.rb +240 -205
  759. data/lib/ultracart_api/models/cart_settings_payment_credit_card.rb +242 -207
  760. data/lib/ultracart_api/models/cart_settings_payment_pay_pal.rb +260 -225
  761. data/lib/ultracart_api/models/cart_settings_province.rb +228 -193
  762. data/lib/ultracart_api/models/cart_settings_shipping.rb +262 -227
  763. data/lib/ultracart_api/models/cart_settings_shipping_calendar.rb +264 -229
  764. data/lib/ultracart_api/models/cart_settings_shipping_estimate.rb +345 -310
  765. data/lib/ultracart_api/models/cart_settings_taxes.rb +221 -186
  766. data/lib/ultracart_api/models/cart_settings_terms.rb +230 -195
  767. data/lib/ultracart_api/models/cart_shipping.rb +625 -590
  768. data/lib/ultracart_api/models/cart_summary.rb +354 -319
  769. data/lib/ultracart_api/models/cart_taxes.rb +255 -220
  770. data/lib/ultracart_api/models/cart_upsell_after.rb +255 -220
  771. data/lib/ultracart_api/models/cart_validation_request.rb +231 -196
  772. data/lib/ultracart_api/models/cart_validation_response.rb +231 -196
  773. data/lib/ultracart_api/models/channel_partner_cancel_response.rb +259 -224
  774. data/lib/ultracart_api/models/channel_partner_estimate_shipping_response.rb +259 -224
  775. data/lib/ultracart_api/models/channel_partner_estimate_tax_response.rb +256 -221
  776. data/lib/ultracart_api/models/channel_partner_import_response.rb +281 -246
  777. data/lib/ultracart_api/models/channel_partner_order.rb +1604 -1569
  778. data/lib/ultracart_api/models/channel_partner_order_item.rb +331 -296
  779. data/lib/ultracart_api/models/channel_partner_order_item_option.rb +230 -195
  780. data/lib/ultracart_api/models/channel_partner_order_transaction.rb +232 -197
  781. data/lib/ultracart_api/models/channel_partner_order_transaction_detail.rb +230 -195
  782. data/lib/ultracart_api/models/channel_partner_shipping_estimate.rb +230 -195
  783. data/lib/ultracart_api/models/chargeback_dispute.rb +649 -614
  784. data/lib/ultracart_api/models/chargeback_dispute_response.rb +256 -221
  785. data/lib/ultracart_api/models/chargeback_disputes_response.rb +258 -223
  786. data/lib/ultracart_api/models/checkout_allowed_countries_response.rb +221 -186
  787. data/lib/ultracart_api/models/checkout_handoff_request.rb +323 -288
  788. data/lib/ultracart_api/models/checkout_handoff_response.rb +241 -206
  789. data/lib/ultracart_api/models/checkout_setup_browser_key_request.rb +222 -187
  790. data/lib/ultracart_api/models/checkout_setup_browser_key_response.rb +220 -185
  791. data/lib/ultracart_api/models/checkout_state_province_response.rb +221 -186
  792. data/lib/ultracart_api/models/city_state_zip.rb +255 -220
  793. data/lib/ultracart_api/models/countries_response.rb +221 -186
  794. data/lib/ultracart_api/models/country.rb +260 -225
  795. data/lib/ultracart_api/models/coupon.rb +864 -829
  796. data/lib/ultracart_api/models/coupon_amount_off_items.rb +267 -232
  797. data/lib/ultracart_api/models/coupon_amount_off_shipping.rb +257 -222
  798. data/lib/ultracart_api/models/coupon_amount_off_shipping_with_items_purchase.rb +269 -234
  799. data/lib/ultracart_api/models/coupon_amount_off_subtotal.rb +245 -210
  800. data/lib/ultracart_api/models/coupon_amount_off_subtotal_and_shipping.rb +245 -210
  801. data/lib/ultracart_api/models/coupon_amount_off_subtotal_free_shipping_with_purchase.rb +267 -232
  802. data/lib/ultracart_api/models/coupon_amount_off_subtotal_with_block_purchase.rb +265 -230
  803. data/lib/ultracart_api/models/coupon_amount_off_subtotal_with_items_purchase.rb +267 -232
  804. data/lib/ultracart_api/models/coupon_amount_off_subtotal_with_purchase.rb +255 -220
  805. data/lib/ultracart_api/models/coupon_amount_shipping_with_subtotal.rb +267 -232
  806. data/lib/ultracart_api/models/coupon_auto_apply_condition.rb +239 -204
  807. data/lib/ultracart_api/models/coupon_auto_apply_conditions.rb +269 -234
  808. data/lib/ultracart_api/models/coupon_automatically_apply_coupon_codes.rb +222 -187
  809. data/lib/ultracart_api/models/coupon_buy_one_get_one_limit.rb +232 -197
  810. data/lib/ultracart_api/models/coupon_codes_request.rb +277 -242
  811. data/lib/ultracart_api/models/coupon_codes_response.rb +269 -234
  812. data/lib/ultracart_api/models/coupon_deletes_request.rb +234 -199
  813. data/lib/ultracart_api/models/coupon_discount_item_with_item_purchase.rb +275 -240
  814. data/lib/ultracart_api/models/coupon_discount_items.rb +267 -232
  815. data/lib/ultracart_api/models/coupon_editor_values.rb +330 -295
  816. data/lib/ultracart_api/models/coupon_exists_response.rb +267 -232
  817. data/lib/ultracart_api/models/coupon_free_item_and_shipping_with_subtotal.rb +279 -244
  818. data/lib/ultracart_api/models/coupon_free_item_with_item_purchase.rb +254 -219
  819. data/lib/ultracart_api/models/coupon_free_item_with_subtotal.rb +267 -232
  820. data/lib/ultracart_api/models/coupon_free_items_with_item_purchase.rb +260 -225
  821. data/lib/ultracart_api/models/coupon_free_items_with_mix_match_purchase.rb +260 -225
  822. data/lib/ultracart_api/models/coupon_free_shipping.rb +222 -187
  823. data/lib/ultracart_api/models/coupon_free_shipping_specific_items.rb +222 -187
  824. data/lib/ultracart_api/models/coupon_free_shipping_with_items_purchase.rb +234 -199
  825. data/lib/ultracart_api/models/coupon_free_shipping_with_subtotal.rb +257 -222
  826. data/lib/ultracart_api/models/coupon_item_search_result.rb +290 -255
  827. data/lib/ultracart_api/models/coupon_item_search_results_response.rb +259 -224
  828. data/lib/ultracart_api/models/coupon_multiple_amounts_off_items.rb +232 -197
  829. data/lib/ultracart_api/models/coupon_percent_off_item_with_items_quantity_purchase.rb +264 -229
  830. data/lib/ultracart_api/models/coupon_percent_off_items.rb +254 -219
  831. data/lib/ultracart_api/models/coupon_percent_off_items_and_free_shipping.rb +244 -209
  832. data/lib/ultracart_api/models/coupon_percent_off_items_with_items_purchase.rb +254 -219
  833. data/lib/ultracart_api/models/coupon_percent_off_msrp_items.rb +254 -219
  834. data/lib/ultracart_api/models/coupon_percent_off_retail_price_items.rb +254 -219
  835. data/lib/ultracart_api/models/coupon_percent_off_shipping.rb +232 -197
  836. data/lib/ultracart_api/models/coupon_percent_off_subtotal.rb +220 -185
  837. data/lib/ultracart_api/models/coupon_percent_off_subtotal_and_free_shipping.rb +232 -197
  838. data/lib/ultracart_api/models/coupon_percent_off_subtotal_limit.rb +255 -220
  839. data/lib/ultracart_api/models/coupon_percent_off_subtotal_with_items_purchase.rb +232 -197
  840. data/lib/ultracart_api/models/coupon_percent_off_subtotal_with_subtotal.rb +255 -220
  841. data/lib/ultracart_api/models/coupon_query.rb +310 -275
  842. data/lib/ultracart_api/models/coupon_response.rb +268 -233
  843. data/lib/ultracart_api/models/coupon_restriction.rb +246 -211
  844. data/lib/ultracart_api/models/coupon_tier_amount.rb +255 -220
  845. data/lib/ultracart_api/models/coupon_tier_item_discount.rb +232 -197
  846. data/lib/ultracart_api/models/coupon_tier_percent.rb +255 -220
  847. data/lib/ultracart_api/models/coupon_tier_quantity_amount.rb +255 -220
  848. data/lib/ultracart_api/models/coupon_tier_quantity_percent.rb +255 -220
  849. data/lib/ultracart_api/models/coupon_tiered_amount_off_items.rb +244 -209
  850. data/lib/ultracart_api/models/coupon_tiered_amount_off_subtotal.rb +234 -199
  851. data/lib/ultracart_api/models/coupon_tiered_percent_off_items.rb +244 -209
  852. data/lib/ultracart_api/models/coupon_tiered_percent_off_shipping.rb +259 -224
  853. data/lib/ultracart_api/models/coupon_tiered_percent_off_subtotal.rb +234 -199
  854. data/lib/ultracart_api/models/coupon_type.rb +230 -195
  855. data/lib/ultracart_api/models/coupons_request.rb +222 -187
  856. data/lib/ultracart_api/models/coupons_response.rb +258 -223
  857. data/lib/ultracart_api/models/currency.rb +260 -225
  858. data/lib/ultracart_api/models/customer.rb +978 -943
  859. data/lib/ultracart_api/models/customer_activity.rb +254 -219
  860. data/lib/ultracart_api/models/customer_affiliate.rb +250 -215
  861. data/lib/ultracart_api/models/customer_attachment.rb +260 -225
  862. data/lib/ultracart_api/models/customer_billing.rb +575 -540
  863. data/lib/ultracart_api/models/customer_card.rb +290 -255
  864. data/lib/ultracart_api/models/customer_editor_values.rb +328 -293
  865. data/lib/ultracart_api/models/customer_email.rb +300 -265
  866. data/lib/ultracart_api/models/customer_email_list_changes.rb +234 -199
  867. data/lib/ultracart_api/models/customer_loyalty.rb +283 -248
  868. data/lib/ultracart_api/models/customer_loyalty_ledger.rb +360 -325
  869. data/lib/ultracart_api/models/customer_loyalty_redemption.rb +340 -305
  870. data/lib/ultracart_api/models/customer_orders_summary.rb +250 -215
  871. data/lib/ultracart_api/models/customer_pricing_tier.rb +245 -210
  872. data/lib/ultracart_api/models/customer_privacy.rb +250 -215
  873. data/lib/ultracart_api/models/customer_query.rb +789 -754
  874. data/lib/ultracart_api/models/customer_quotes_summary.rb +250 -215
  875. data/lib/ultracart_api/models/customer_response.rb +256 -221
  876. data/lib/ultracart_api/models/customer_reviewer.rb +310 -275
  877. data/lib/ultracart_api/models/customer_shipping.rb +575 -540
  878. data/lib/ultracart_api/models/customer_software_entitlement.rb +365 -330
  879. data/lib/ultracart_api/models/customer_store_credit.rb +274 -239
  880. data/lib/ultracart_api/models/customer_store_credit_add_request.rb +250 -215
  881. data/lib/ultracart_api/models/customer_store_credit_ledger_entry.rb +295 -260
  882. data/lib/ultracart_api/models/customer_store_credit_response.rb +256 -221
  883. data/lib/ultracart_api/models/customer_tag.rb +235 -200
  884. data/lib/ultracart_api/models/customer_tax_codes.rb +260 -225
  885. data/lib/ultracart_api/models/customers_response.rb +258 -223
  886. data/lib/ultracart_api/models/data_tables_server_side_response.rb +248 -213
  887. data/lib/ultracart_api/models/distance.rb +264 -229
  888. data/lib/ultracart_api/models/distribution_center.rb +559 -524
  889. data/lib/ultracart_api/models/distribution_centers_response.rb +258 -223
  890. data/lib/ultracart_api/models/email_base_template_list_response.rb +221 -186
  891. data/lib/ultracart_api/models/email_campaign.rb +467 -432
  892. data/lib/ultracart_api/models/email_campaign_folder.rb +275 -240
  893. data/lib/ultracart_api/models/email_campaign_folder_response.rb +256 -221
  894. data/lib/ultracart_api/models/email_campaign_folders_response.rb +258 -223
  895. data/lib/ultracart_api/models/email_campaign_response.rb +256 -221
  896. data/lib/ultracart_api/models/email_campaigns_response.rb +258 -223
  897. data/lib/ultracart_api/models/email_click.rb +230 -195
  898. data/lib/ultracart_api/models/email_clicks_response.rb +258 -223
  899. data/lib/ultracart_api/models/email_commseq.rb +252 -217
  900. data/lib/ultracart_api/models/email_commseq_email.rb +470 -435
  901. data/lib/ultracart_api/models/email_commseq_email_response.rb +256 -221
  902. data/lib/ultracart_api/models/email_commseq_email_send_test_request.rb +304 -269
  903. data/lib/ultracart_api/models/email_commseq_email_send_test_response.rb +247 -212
  904. data/lib/ultracart_api/models/email_commseq_emails_request.rb +258 -223
  905. data/lib/ultracart_api/models/email_commseq_emails_response.rb +258 -223
  906. data/lib/ultracart_api/models/email_commseq_postcard.rb +340 -305
  907. data/lib/ultracart_api/models/email_commseq_postcard_response.rb +256 -221
  908. data/lib/ultracart_api/models/email_commseq_postcard_send_test_request.rb +329 -294
  909. data/lib/ultracart_api/models/email_commseq_postcard_send_test_response.rb +274 -239
  910. data/lib/ultracart_api/models/email_commseq_postcards_request.rb +221 -186
  911. data/lib/ultracart_api/models/email_commseq_postcards_response.rb +258 -223
  912. data/lib/ultracart_api/models/email_commseq_response.rb +256 -221
  913. data/lib/ultracart_api/models/email_commseq_stat.rb +580 -545
  914. data/lib/ultracart_api/models/email_commseq_stat_response.rb +256 -221
  915. data/lib/ultracart_api/models/email_commseq_step.rb +348 -313
  916. data/lib/ultracart_api/models/email_commseq_step_log.rb +240 -205
  917. data/lib/ultracart_api/models/email_commseq_step_logs_response.rb +258 -223
  918. data/lib/ultracart_api/models/email_commseq_webhook_send_test_request.rb +275 -240
  919. data/lib/ultracart_api/models/email_commseq_webhook_send_test_response.rb +277 -242
  920. data/lib/ultracart_api/models/email_commseqs_response.rb +258 -223
  921. data/lib/ultracart_api/models/email_customer.rb +292 -257
  922. data/lib/ultracart_api/models/email_customer_editor_url_response.rb +256 -221
  923. data/lib/ultracart_api/models/email_customers_response.rb +262 -227
  924. data/lib/ultracart_api/models/email_dashboard_activity.rb +280 -245
  925. data/lib/ultracart_api/models/email_dashboard_activity_response.rb +258 -223
  926. data/lib/ultracart_api/models/email_dashboard_stats_response.rb +258 -223
  927. data/lib/ultracart_api/models/email_domain.rb +329 -294
  928. data/lib/ultracart_api/models/email_editor_token_response.rb +256 -221
  929. data/lib/ultracart_api/models/email_flow.rb +505 -470
  930. data/lib/ultracart_api/models/email_flow_back_populate_request.rb +230 -195
  931. data/lib/ultracart_api/models/email_flow_back_populate_response.rb +247 -212
  932. data/lib/ultracart_api/models/email_flow_folder.rb +275 -240
  933. data/lib/ultracart_api/models/email_flow_folder_response.rb +256 -221
  934. data/lib/ultracart_api/models/email_flow_folders_response.rb +258 -223
  935. data/lib/ultracart_api/models/email_flow_response.rb +256 -221
  936. data/lib/ultracart_api/models/email_flows_response.rb +258 -223
  937. data/lib/ultracart_api/models/email_global_settings.rb +219 -184
  938. data/lib/ultracart_api/models/email_global_settings_response.rb +256 -221
  939. data/lib/ultracart_api/models/email_global_unsubscribe_request.rb +219 -184
  940. data/lib/ultracart_api/models/email_global_unsubscribe_response.rb +219 -184
  941. data/lib/ultracart_api/models/email_histogram_property_names_response.rb +221 -186
  942. data/lib/ultracart_api/models/email_histogram_property_values_response.rb +221 -186
  943. data/lib/ultracart_api/models/email_list.rb +347 -312
  944. data/lib/ultracart_api/models/email_list_archive_response.rb +256 -221
  945. data/lib/ultracart_api/models/email_list_customer.rb +250 -215
  946. data/lib/ultracart_api/models/email_list_customers_response.rb +262 -227
  947. data/lib/ultracart_api/models/email_list_response.rb +256 -221
  948. data/lib/ultracart_api/models/email_list_segment_folder.rb +275 -240
  949. data/lib/ultracart_api/models/email_list_segment_folder_response.rb +256 -221
  950. data/lib/ultracart_api/models/email_list_segment_folders_response.rb +258 -223
  951. data/lib/ultracart_api/models/email_list_segment_membership.rb +250 -215
  952. data/lib/ultracart_api/models/email_list_segment_used_by.rb +240 -205
  953. data/lib/ultracart_api/models/email_list_subscribe_response.rb +228 -193
  954. data/lib/ultracart_api/models/email_lists_response.rb +258 -223
  955. data/lib/ultracart_api/models/email_order.rb +249 -214
  956. data/lib/ultracart_api/models/email_orders_response.rb +258 -223
  957. data/lib/ultracart_api/models/email_performance.rb +475 -440
  958. data/lib/ultracart_api/models/email_performance_customer_histogram.rb +222 -187
  959. data/lib/ultracart_api/models/email_performance_customer_histogram_period.rb +260 -225
  960. data/lib/ultracart_api/models/email_performance_daily.rb +280 -245
  961. data/lib/ultracart_api/models/email_performance_response.rb +256 -221
  962. data/lib/ultracart_api/models/email_plan.rb +365 -330
  963. data/lib/ultracart_api/models/email_plan_additional.rb +291 -256
  964. data/lib/ultracart_api/models/email_plan_response.rb +256 -221
  965. data/lib/ultracart_api/models/email_postcard_stat.rb +531 -496
  966. data/lib/ultracart_api/models/email_segment.rb +445 -410
  967. data/lib/ultracart_api/models/email_segment_archive_response.rb +256 -221
  968. data/lib/ultracart_api/models/email_segment_customer.rb +250 -215
  969. data/lib/ultracart_api/models/email_segment_customers_response.rb +262 -227
  970. data/lib/ultracart_api/models/email_segment_download_prepare_response.rb +283 -248
  971. data/lib/ultracart_api/models/email_segment_response.rb +256 -221
  972. data/lib/ultracart_api/models/email_segments_response.rb +258 -223
  973. data/lib/ultracart_api/models/email_sending_domain_response.rb +256 -221
  974. data/lib/ultracart_api/models/email_sending_domains_response.rb +258 -223
  975. data/lib/ultracart_api/models/email_settings.rb +318 -283
  976. data/lib/ultracart_api/models/email_settings_response.rb +256 -221
  977. data/lib/ultracart_api/models/email_stat.rb +591 -556
  978. data/lib/ultracart_api/models/email_stat_postcard_summary_request.rb +230 -195
  979. data/lib/ultracart_api/models/email_stat_postcard_summary_response.rb +258 -223
  980. data/lib/ultracart_api/models/email_stat_summary_request.rb +241 -206
  981. data/lib/ultracart_api/models/email_stat_summary_response.rb +258 -223
  982. data/lib/ultracart_api/models/email_step_stat.rb +410 -375
  983. data/lib/ultracart_api/models/email_step_stat_request.rb +230 -195
  984. data/lib/ultracart_api/models/email_step_stat_response.rb +258 -223
  985. data/lib/ultracart_api/models/email_step_waiting_request.rb +221 -186
  986. data/lib/ultracart_api/models/email_step_waiting_response.rb +221 -186
  987. data/lib/ultracart_api/models/email_template.rb +365 -330
  988. data/lib/ultracart_api/models/email_templates_response.rb +258 -223
  989. data/lib/ultracart_api/models/email_third_party_list.rb +230 -195
  990. data/lib/ultracart_api/models/email_third_party_list_import_request.rb +222 -187
  991. data/lib/ultracart_api/models/email_third_party_provider.rb +324 -289
  992. data/lib/ultracart_api/models/email_third_party_providers_response.rb +258 -223
  993. data/lib/ultracart_api/models/email_third_party_tag.rb +230 -195
  994. data/lib/ultracart_api/models/email_verify_token_request.rb +230 -195
  995. data/lib/ultracart_api/models/email_verify_token_response.rb +257 -222
  996. data/lib/ultracart_api/models/email_verify_token_validate_request.rb +220 -185
  997. data/lib/ultracart_api/models/email_verify_token_validate_response.rb +247 -212
  998. data/lib/ultracart_api/models/email_webhook_editor_values_response.rb +278 -243
  999. data/lib/ultracart_api/models/error.rb +260 -225
  1000. data/lib/ultracart_api/models/error_response.rb +247 -212
  1001. data/lib/ultracart_api/models/experiment.rb +426 -391
  1002. data/lib/ultracart_api/models/experiment_response.rb +256 -221
  1003. data/lib/ultracart_api/models/experiment_variation.rb +432 -397
  1004. data/lib/ultracart_api/models/experiment_variation_stat.rb +320 -285
  1005. data/lib/ultracart_api/models/experiments_response.rb +258 -223
  1006. data/lib/ultracart_api/models/fulfillment_inventory.rb +228 -193
  1007. data/lib/ultracart_api/models/fulfillment_shipment.rb +262 -227
  1008. data/lib/ultracart_api/models/geo_point.rb +228 -193
  1009. data/lib/ultracart_api/models/geocode_request.rb +260 -225
  1010. data/lib/ultracart_api/models/geocode_response.rb +265 -230
  1011. data/lib/ultracart_api/models/gift_certificate.rb +367 -332
  1012. data/lib/ultracart_api/models/gift_certificate_create_request.rb +260 -225
  1013. data/lib/ultracart_api/models/gift_certificate_ledger_entry.rb +285 -250
  1014. data/lib/ultracart_api/models/gift_certificate_query.rb +300 -265
  1015. data/lib/ultracart_api/models/gift_certificate_response.rb +256 -221
  1016. data/lib/ultracart_api/models/gift_certificates_response.rb +258 -223
  1017. data/lib/ultracart_api/models/group.rb +266 -231
  1018. data/lib/ultracart_api/models/group_response.rb +256 -221
  1019. data/lib/ultracart_api/models/group_user_membership.rb +260 -225
  1020. data/lib/ultracart_api/models/groups_response.rb +258 -223
  1021. data/lib/ultracart_api/models/http_header.rb +230 -195
  1022. data/lib/ultracart_api/models/integration_log.rb +379 -344
  1023. data/lib/ultracart_api/models/integration_log_file.rb +246 -211
  1024. data/lib/ultracart_api/models/integration_log_log.rb +228 -193
  1025. data/lib/ultracart_api/models/integration_log_query_filter_values.rb +340 -305
  1026. data/lib/ultracart_api/models/integration_log_query_request.rb +333 -298
  1027. data/lib/ultracart_api/models/integration_log_query_response.rb +267 -232
  1028. data/lib/ultracart_api/models/integration_log_response.rb +256 -221
  1029. data/lib/ultracart_api/models/integration_log_summary.rb +291 -256
  1030. data/lib/ultracart_api/models/integration_log_summary_query_request.rb +230 -195
  1031. data/lib/ultracart_api/models/integration_log_summary_query_response.rb +258 -223
  1032. data/lib/ultracart_api/models/item.rb +748 -713
  1033. data/lib/ultracart_api/models/item_accounting.rb +260 -225
  1034. data/lib/ultracart_api/models/item_amember.rb +245 -210
  1035. data/lib/ultracart_api/models/item_auto_order.rb +403 -368
  1036. data/lib/ultracart_api/models/item_auto_order_step.rb +413 -378
  1037. data/lib/ultracart_api/models/item_auto_order_step_arbitrary_unit_cost_schedule.rb +230 -195
  1038. data/lib/ultracart_api/models/item_auto_order_step_grandfather_pricing.rb +230 -195
  1039. data/lib/ultracart_api/models/item_cc_bill.rb +270 -235
  1040. data/lib/ultracart_api/models/item_channel_partner_mapping.rb +445 -410
  1041. data/lib/ultracart_api/models/item_chargeback.rb +234 -199
  1042. data/lib/ultracart_api/models/item_chargeback_addendum.rb +250 -215
  1043. data/lib/ultracart_api/models/item_chargeback_adjustment_request.rb +240 -205
  1044. data/lib/ultracart_api/models/item_checkout.rb +265 -230
  1045. data/lib/ultracart_api/models/item_content.rb +361 -326
  1046. data/lib/ultracart_api/models/item_content_assignment.rb +285 -250
  1047. data/lib/ultracart_api/models/item_content_attribute.rb +280 -245
  1048. data/lib/ultracart_api/models/item_content_multimedia.rb +441 -406
  1049. data/lib/ultracart_api/models/item_content_multimedia_thumbnail.rb +270 -235
  1050. data/lib/ultracart_api/models/item_digital_delivery.rb +317 -282
  1051. data/lib/ultracart_api/models/item_digital_item.rb +305 -270
  1052. data/lib/ultracart_api/models/item_ebay.rb +901 -866
  1053. data/lib/ultracart_api/models/item_ebay_category_specific.rb +230 -195
  1054. data/lib/ultracart_api/models/item_ebay_market_listing.rb +260 -225
  1055. data/lib/ultracart_api/models/item_ebay_market_place_analysis.rb +311 -276
  1056. data/lib/ultracart_api/models/item_email_notifications.rb +230 -195
  1057. data/lib/ultracart_api/models/item_enrollment123.rb +220 -185
  1058. data/lib/ultracart_api/models/item_fulfillment_addon.rb +250 -215
  1059. data/lib/ultracart_api/models/item_gift_certificate.rb +230 -195
  1060. data/lib/ultracart_api/models/item_google_product_search.rb +1289 -1254
  1061. data/lib/ultracart_api/models/item_identifiers.rb +310 -275
  1062. data/lib/ultracart_api/models/item_instant_payment_notification.rb +270 -235
  1063. data/lib/ultracart_api/models/item_instant_payment_notifications.rb +222 -187
  1064. data/lib/ultracart_api/models/item_internal.rb +235 -200
  1065. data/lib/ultracart_api/models/item_kit_component.rb +260 -225
  1066. data/lib/ultracart_api/models/item_kit_definition.rb +222 -187
  1067. data/lib/ultracart_api/models/item_option.rb +416 -381
  1068. data/lib/ultracart_api/models/item_option_value.rb +409 -374
  1069. data/lib/ultracart_api/models/item_option_value_additional_item.rb +230 -195
  1070. data/lib/ultracart_api/models/item_option_value_digital_item.rb +230 -195
  1071. data/lib/ultracart_api/models/item_payment_processing.rb +264 -229
  1072. data/lib/ultracart_api/models/item_physical.rb +246 -211
  1073. data/lib/ultracart_api/models/item_pricing.rb +422 -387
  1074. data/lib/ultracart_api/models/item_pricing_tier.rb +261 -226
  1075. data/lib/ultracart_api/models/item_pricing_tier_discount.rb +230 -195
  1076. data/lib/ultracart_api/models/item_pricing_tier_limit.rb +240 -205
  1077. data/lib/ultracart_api/models/item_property.rb +270 -235
  1078. data/lib/ultracart_api/models/item_realtime_pricing.rb +240 -205
  1079. data/lib/ultracart_api/models/item_related.rb +242 -207
  1080. data/lib/ultracart_api/models/item_related_item.rb +274 -239
  1081. data/lib/ultracart_api/models/item_reporting.rb +232 -197
  1082. data/lib/ultracart_api/models/item_response.rb +256 -221
  1083. data/lib/ultracart_api/models/item_restriction.rb +292 -257
  1084. data/lib/ultracart_api/models/item_restriction_item.rb +274 -239
  1085. data/lib/ultracart_api/models/item_revguard.rb +280 -245
  1086. data/lib/ultracart_api/models/item_reviews.rb +300 -265
  1087. data/lib/ultracart_api/models/item_salesforce.rb +230 -195
  1088. data/lib/ultracart_api/models/item_shipping.rb +713 -678
  1089. data/lib/ultracart_api/models/item_shipping_case.rb +265 -230
  1090. data/lib/ultracart_api/models/item_shipping_destination_markup.rb +315 -280
  1091. data/lib/ultracart_api/models/item_shipping_destination_restriction.rb +304 -269
  1092. data/lib/ultracart_api/models/item_shipping_distribution_center.rb +380 -345
  1093. data/lib/ultracart_api/models/item_shipping_method.rb +394 -359
  1094. data/lib/ultracart_api/models/item_shipping_package_requirement.rb +230 -195
  1095. data/lib/ultracart_api/models/item_tag.rb +279 -244
  1096. data/lib/ultracart_api/models/item_tags.rb +222 -187
  1097. data/lib/ultracart_api/models/item_tax.rb +286 -251
  1098. data/lib/ultracart_api/models/item_tax_exemption.rb +335 -300
  1099. data/lib/ultracart_api/models/item_third_party_email_marketing.rb +302 -267
  1100. data/lib/ultracart_api/models/item_variant_item.rb +289 -254
  1101. data/lib/ultracart_api/models/item_variation.rb +292 -257
  1102. data/lib/ultracart_api/models/item_variation_option.rb +265 -230
  1103. data/lib/ultracart_api/models/item_wishlist_member.rb +255 -220
  1104. data/lib/ultracart_api/models/items_request.rb +222 -187
  1105. data/lib/ultracart_api/models/items_response.rb +259 -224
  1106. data/lib/ultracart_api/models/key_value.rb +240 -205
  1107. data/lib/ultracart_api/models/library_filter_values.rb +254 -219
  1108. data/lib/ultracart_api/models/library_filter_values_response.rb +256 -221
  1109. data/lib/ultracart_api/models/library_item.rb +606 -571
  1110. data/lib/ultracart_api/models/library_item_account.rb +237 -202
  1111. data/lib/ultracart_api/models/library_item_asset.rb +228 -193
  1112. data/lib/ultracart_api/models/library_item_attribute.rb +228 -193
  1113. data/lib/ultracart_api/models/library_item_email.rb +237 -202
  1114. data/lib/ultracart_api/models/library_item_published_meta.rb +290 -255
  1115. data/lib/ultracart_api/models/library_item_purchased_meta.rb +240 -205
  1116. data/lib/ultracart_api/models/library_item_query.rb +330 -295
  1117. data/lib/ultracart_api/models/library_item_response.rb +256 -221
  1118. data/lib/ultracart_api/models/library_item_screenshot.rb +228 -193
  1119. data/lib/ultracart_api/models/library_items_response.rb +259 -224
  1120. data/lib/ultracart_api/models/linked_account.rb +240 -205
  1121. data/lib/ultracart_api/models/list_segment_membership.rb +237 -202
  1122. data/lib/ultracart_api/models/lookup_request.rb +255 -220
  1123. data/lib/ultracart_api/models/lookup_response.rb +258 -223
  1124. data/lib/ultracart_api/models/mailgun.rb +219 -184
  1125. data/lib/ultracart_api/models/metric.rb +282 -247
  1126. data/lib/ultracart_api/models/notification.rb +322 -287
  1127. data/lib/ultracart_api/models/oauth_revoke_success_response.rb +230 -195
  1128. data/lib/ultracart_api/models/oauth_token_response.rb +321 -286
  1129. data/lib/ultracart_api/models/order.rb +604 -569
  1130. data/lib/ultracart_api/models/order_affiliate.rb +242 -207
  1131. data/lib/ultracart_api/models/order_affiliate_ledger.rb +334 -299
  1132. data/lib/ultracart_api/models/order_auto_order.rb +448 -413
  1133. data/lib/ultracart_api/models/order_billing.rb +597 -562
  1134. data/lib/ultracart_api/models/order_buysafe.rb +268 -233
  1135. data/lib/ultracart_api/models/order_by_token_query.rb +220 -185
  1136. data/lib/ultracart_api/models/order_channel_partner.rb +335 -300
  1137. data/lib/ultracart_api/models/order_checkout.rb +469 -434
  1138. data/lib/ultracart_api/models/order_coupon.rb +290 -255
  1139. data/lib/ultracart_api/models/order_digital_item.rb +290 -255
  1140. data/lib/ultracart_api/models/order_digital_order.rb +262 -227
  1141. data/lib/ultracart_api/models/order_edi.rb +265 -230
  1142. data/lib/ultracart_api/models/order_format.rb +404 -369
  1143. data/lib/ultracart_api/models/order_format_response.rb +232 -197
  1144. data/lib/ultracart_api/models/order_fraud_score.rb +444 -409
  1145. data/lib/ultracart_api/models/order_gift.rb +351 -316
  1146. data/lib/ultracart_api/models/order_gift_certificate.rb +239 -204
  1147. data/lib/ultracart_api/models/order_internal.rb +275 -240
  1148. data/lib/ultracart_api/models/order_item.rb +889 -854
  1149. data/lib/ultracart_api/models/order_item_edi.rb +234 -199
  1150. data/lib/ultracart_api/models/order_item_edi_identification.rb +230 -195
  1151. data/lib/ultracart_api/models/order_item_edi_lot.rb +240 -205
  1152. data/lib/ultracart_api/models/order_item_option.rb +378 -343
  1153. data/lib/ultracart_api/models/order_item_option_file_attachment.rb +250 -215
  1154. data/lib/ultracart_api/models/order_item_property.rb +280 -245
  1155. data/lib/ultracart_api/models/order_item_tag.rb +235 -200
  1156. data/lib/ultracart_api/models/order_linked_shipment.rb +264 -229
  1157. data/lib/ultracart_api/models/order_marketing.rb +270 -235
  1158. data/lib/ultracart_api/models/order_packing_slip_response.rb +257 -222
  1159. data/lib/ultracart_api/models/order_payment.rb +432 -397
  1160. data/lib/ultracart_api/models/order_payment_check.rb +220 -185
  1161. data/lib/ultracart_api/models/order_payment_credit_card.rb +354 -319
  1162. data/lib/ultracart_api/models/order_payment_e_check.rb +476 -441
  1163. data/lib/ultracart_api/models/order_payment_insurance.rb +250 -215
  1164. data/lib/ultracart_api/models/order_payment_purchase_order.rb +220 -185
  1165. data/lib/ultracart_api/models/order_payment_transaction.rb +252 -217
  1166. data/lib/ultracart_api/models/order_payment_transaction_detail.rb +240 -205
  1167. data/lib/ultracart_api/models/order_process_payment_request.rb +230 -195
  1168. data/lib/ultracart_api/models/order_process_payment_response.rb +256 -221
  1169. data/lib/ultracart_api/models/order_property.rb +280 -245
  1170. data/lib/ultracart_api/models/order_query.rb +826 -791
  1171. data/lib/ultracart_api/models/order_query_batch.rb +222 -187
  1172. data/lib/ultracart_api/models/order_quote.rb +240 -205
  1173. data/lib/ultracart_api/models/order_replacement.rb +467 -432
  1174. data/lib/ultracart_api/models/order_replacement_item.rb +255 -220
  1175. data/lib/ultracart_api/models/order_replacement_response.rb +264 -229
  1176. data/lib/ultracart_api/models/order_response.rb +256 -221
  1177. data/lib/ultracart_api/models/order_salesforce.rb +220 -185
  1178. data/lib/ultracart_api/models/order_shipping.rb +770 -735
  1179. data/lib/ultracart_api/models/order_summary.rb +390 -355
  1180. data/lib/ultracart_api/models/order_tag.rb +235 -200
  1181. data/lib/ultracart_api/models/order_taxes.rb +395 -360
  1182. data/lib/ultracart_api/models/order_token_response.rb +257 -222
  1183. data/lib/ultracart_api/models/order_tracking_number_detail.rb +320 -285
  1184. data/lib/ultracart_api/models/order_tracking_number_details.rb +374 -339
  1185. data/lib/ultracart_api/models/orders_response.rb +259 -224
  1186. data/lib/ultracart_api/models/permission.rb +240 -205
  1187. data/lib/ultracart_api/models/pricing_tier.rb +533 -498
  1188. data/lib/ultracart_api/models/pricing_tier_notification.rb +270 -235
  1189. data/lib/ultracart_api/models/pricing_tiers_response.rb +259 -224
  1190. data/lib/ultracart_api/models/property.rb +228 -193
  1191. data/lib/ultracart_api/models/publish_library_item_request.rb +220 -185
  1192. data/lib/ultracart_api/models/register_affiliate_click_request.rb +270 -235
  1193. data/lib/ultracart_api/models/register_affiliate_click_response.rb +254 -219
  1194. data/lib/ultracart_api/models/response_metadata.rb +229 -194
  1195. data/lib/ultracart_api/models/result_set.rb +270 -235
  1196. data/lib/ultracart_api/models/screen_recording.rb +688 -653
  1197. data/lib/ultracart_api/models/screen_recording_ad_platform.rb +280 -245
  1198. data/lib/ultracart_api/models/screen_recording_filter.rb +758 -723
  1199. data/lib/ultracart_api/models/screen_recording_filter_geo_distance.rb +255 -220
  1200. data/lib/ultracart_api/models/screen_recording_filter_ip_search.rb +246 -211
  1201. data/lib/ultracart_api/models/screen_recording_filter_page_view.rb +369 -334
  1202. data/lib/ultracart_api/models/screen_recording_filter_page_view_event.rb +230 -195
  1203. data/lib/ultracart_api/models/screen_recording_filter_page_view_event_param.rb +255 -220
  1204. data/lib/ultracart_api/models/screen_recording_filter_page_view_param.rb +228 -193
  1205. data/lib/ultracart_api/models/screen_recording_filter_page_view_referrer_param.rb +228 -193
  1206. data/lib/ultracart_api/models/screen_recording_filter_range_big_decimal.rb +255 -220
  1207. data/lib/ultracart_api/models/screen_recording_filter_range_date.rb +230 -195
  1208. data/lib/ultracart_api/models/screen_recording_filter_range_integer.rb +255 -220
  1209. data/lib/ultracart_api/models/screen_recording_filter_string_search.rb +255 -220
  1210. data/lib/ultracart_api/models/screen_recording_filter_values.rb +435 -400
  1211. data/lib/ultracart_api/models/screen_recording_filter_values_event.rb +230 -195
  1212. data/lib/ultracart_api/models/screen_recording_filter_values_event_params.rb +263 -228
  1213. data/lib/ultracart_api/models/screen_recording_filter_values_page_param.rb +230 -195
  1214. data/lib/ultracart_api/models/screen_recording_filter_values_page_view.rb +272 -237
  1215. data/lib/ultracart_api/models/screen_recording_heatmap.rb +426 -391
  1216. data/lib/ultracart_api/models/screen_recording_heatmap_index_request.rb +219 -184
  1217. data/lib/ultracart_api/models/screen_recording_heatmap_index_response.rb +258 -223
  1218. data/lib/ultracart_api/models/screen_recording_heatmap_request.rb +239 -204
  1219. data/lib/ultracart_api/models/screen_recording_heatmap_reset.rb +219 -184
  1220. data/lib/ultracart_api/models/screen_recording_heatmap_response.rb +256 -221
  1221. data/lib/ultracart_api/models/screen_recording_heatmap_url.rb +266 -231
  1222. data/lib/ultracart_api/models/screen_recording_merchant_notes_request.rb +219 -184
  1223. data/lib/ultracart_api/models/screen_recording_multifield.rb +255 -220
  1224. data/lib/ultracart_api/models/screen_recording_page_view.rb +391 -356
  1225. data/lib/ultracart_api/models/screen_recording_page_view_data_response.rb +256 -221
  1226. data/lib/ultracart_api/models/screen_recording_page_view_event.rb +267 -232
  1227. data/lib/ultracart_api/models/screen_recording_page_view_event_parameter.rb +228 -193
  1228. data/lib/ultracart_api/models/screen_recording_page_view_parameter.rb +228 -193
  1229. data/lib/ultracart_api/models/screen_recording_query_request.rb +219 -184
  1230. data/lib/ultracart_api/models/screen_recording_query_response.rb +314 -279
  1231. data/lib/ultracart_api/models/screen_recording_response.rb +265 -230
  1232. data/lib/ultracart_api/models/screen_recording_segment.rb +302 -267
  1233. data/lib/ultracart_api/models/screen_recording_segment_response.rb +256 -221
  1234. data/lib/ultracart_api/models/screen_recording_segments_response.rb +258 -223
  1235. data/lib/ultracart_api/models/screen_recording_settings.rb +284 -249
  1236. data/lib/ultracart_api/models/screen_recording_settings_response.rb +256 -221
  1237. data/lib/ultracart_api/models/screen_recording_store_front.rb +228 -193
  1238. data/lib/ultracart_api/models/screen_recording_tags_request.rb +221 -186
  1239. data/lib/ultracart_api/models/screen_recording_tags_response.rb +258 -223
  1240. data/lib/ultracart_api/models/screen_recording_user_agent.rb +255 -220
  1241. data/lib/ultracart_api/models/screen_recording_user_agent_device.rb +219 -184
  1242. data/lib/ultracart_api/models/screen_recording_user_agent_os.rb +237 -202
  1243. data/lib/ultracart_api/models/screen_recording_user_property.rb +228 -193
  1244. data/lib/ultracart_api/models/screenshots_response.rb +259 -224
  1245. data/lib/ultracart_api/models/self_config.rb +220 -185
  1246. data/lib/ultracart_api/models/simple_value.rb +230 -195
  1247. data/lib/ultracart_api/models/single_sign_on_authorize_request.rb +230 -195
  1248. data/lib/ultracart_api/models/single_sign_on_authorize_response.rb +230 -195
  1249. data/lib/ultracart_api/models/single_sign_on_token_request.rb +230 -195
  1250. data/lib/ultracart_api/models/single_sign_on_token_response.rb +240 -205
  1251. data/lib/ultracart_api/models/sovos_config.rb +280 -245
  1252. data/lib/ultracart_api/models/state_province.rb +245 -210
  1253. data/lib/ultracart_api/models/step_waiting.rb +228 -193
  1254. data/lib/ultracart_api/models/tax_city.rb +302 -267
  1255. data/lib/ultracart_api/models/tax_country.rb +302 -267
  1256. data/lib/ultracart_api/models/tax_country_code.rb +260 -225
  1257. data/lib/ultracart_api/models/tax_county.rb +312 -277
  1258. data/lib/ultracart_api/models/tax_jar_config.rb +280 -245
  1259. data/lib/ultracart_api/models/tax_postal_code.rb +280 -245
  1260. data/lib/ultracart_api/models/tax_provider_activate_result.rb +229 -194
  1261. data/lib/ultracart_api/models/tax_provider_avalara.rb +249 -214
  1262. data/lib/ultracart_api/models/tax_provider_avalara_companies_result.rb +222 -187
  1263. data/lib/ultracart_api/models/tax_provider_avalara_company.rb +260 -225
  1264. data/lib/ultracart_api/models/tax_provider_self.rb +261 -226
  1265. data/lib/ultracart_api/models/tax_provider_self_countries_response.rb +222 -187
  1266. data/lib/ultracart_api/models/tax_provider_self_regions_response.rb +222 -187
  1267. data/lib/ultracart_api/models/tax_provider_sovos.rb +249 -214
  1268. data/lib/ultracart_api/models/tax_provider_tax_jar.rb +249 -214
  1269. data/lib/ultracart_api/models/tax_provider_test_result.rb +229 -194
  1270. data/lib/ultracart_api/models/tax_provider_ultra_cart.rb +261 -226
  1271. data/lib/ultracart_api/models/tax_provider_ultra_cart_state.rb +310 -275
  1272. data/lib/ultracart_api/models/tax_providers_response.rb +292 -257
  1273. data/lib/ultracart_api/models/tax_state.rb +392 -357
  1274. data/lib/ultracart_api/models/tax_state_code.rb +260 -225
  1275. data/lib/ultracart_api/models/temp_multimedia.rb +329 -294
  1276. data/lib/ultracart_api/models/temp_multimedia_response.rb +256 -221
  1277. data/lib/ultracart_api/models/thumbnail_parameters_request.rb +255 -220
  1278. data/lib/ultracart_api/models/thumbnail_parameters_response.rb +257 -222
  1279. data/lib/ultracart_api/models/transaction_email.rb +414 -379
  1280. data/lib/ultracart_api/models/transaction_email_list_response.rb +258 -223
  1281. data/lib/ultracart_api/models/transaction_email_option.rb +282 -247
  1282. data/lib/ultracart_api/models/transaction_email_response.rb +256 -221
  1283. data/lib/ultracart_api/models/twilio.rb +248 -213
  1284. data/lib/ultracart_api/models/twilio_response.rb +265 -230
  1285. data/lib/ultracart_api/models/twilios_response.rb +258 -223
  1286. data/lib/ultracart_api/models/ultra_cart_config.rb +220 -185
  1287. data/lib/ultracart_api/models/upload_coupon_codes_request.rb +259 -224
  1288. data/lib/ultracart_api/models/upload_coupon_codes_response.rb +283 -248
  1289. data/lib/ultracart_api/models/user.rb +377 -342
  1290. data/lib/ultracart_api/models/user_group_membership.rb +240 -205
  1291. data/lib/ultracart_api/models/user_login.rb +250 -215
  1292. data/lib/ultracart_api/models/user_logins_response.rb +259 -224
  1293. data/lib/ultracart_api/models/user_response.rb +256 -221
  1294. data/lib/ultracart_api/models/users_response.rb +258 -223
  1295. data/lib/ultracart_api/models/verification_record.rb +237 -202
  1296. data/lib/ultracart_api/models/warning.rb +230 -195
  1297. data/lib/ultracart_api/models/webhook.rb +437 -402
  1298. data/lib/ultracart_api/models/webhook_event_category.rb +264 -229
  1299. data/lib/ultracart_api/models/webhook_event_subscription.rb +300 -265
  1300. data/lib/ultracart_api/models/webhook_log.rb +324 -289
  1301. data/lib/ultracart_api/models/webhook_log_response.rb +256 -221
  1302. data/lib/ultracart_api/models/webhook_log_summaries_response.rb +259 -224
  1303. data/lib/ultracart_api/models/webhook_log_summary.rb +240 -205
  1304. data/lib/ultracart_api/models/webhook_response.rb +256 -221
  1305. data/lib/ultracart_api/models/webhook_sample_request.rb +252 -217
  1306. data/lib/ultracart_api/models/webhook_sample_request_response.rb +256 -221
  1307. data/lib/ultracart_api/models/webhooks_response.rb +258 -223
  1308. data/lib/ultracart_api/models/weight.rb +264 -229
  1309. data/lib/ultracart_api/version.rb +15 -15
  1310. data/lib/ultracart_api.rb +689 -690
  1311. data/spec/api_client_spec.rb +226 -243
  1312. data/spec/configuration_spec.rb +42 -42
  1313. data/spec/spec_helper.rb +111 -111
  1314. data/ultracart_api.gemspec +38 -46
  1315. metadata +5 -167
  1316. data/docs/CouponNoDiscount.md +0 -7
  1317. data/lib/ultracart_api/models/coupon_no_discount.rb +0 -175
@@ -1,829 +1,864 @@
1
- =begin
2
- #UltraCart Rest API V2
3
-
4
- #UltraCart REST API Version 2
5
-
6
- OpenAPI spec version: 2.0.0
7
- Contact: support@ultracart.com
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.15-SNAPSHOT
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module UltracartClient
16
- class Coupon
17
- # Associates an order with an affiliate when this value is set.
18
- attr_accessor :affiliate_oid
19
-
20
- # True if multiple one time codes for this coupon can be used on a cart at the same time.
21
- attr_accessor :allow_multiple_one_time_codes
22
-
23
- attr_accessor :amount_off_items
24
-
25
- attr_accessor :amount_off_shipping
26
-
27
- attr_accessor :amount_off_shipping_with_items_purchase
28
-
29
- attr_accessor :amount_off_subtotal
30
-
31
- attr_accessor :amount_off_subtotal_and_free_shipping
32
-
33
- attr_accessor :amount_off_subtotal_and_shipping
34
-
35
- attr_accessor :amount_off_subtotal_with_block_purchase
36
-
37
- attr_accessor :amount_off_subtotal_with_items_purchase
38
-
39
- attr_accessor :amount_off_subtotal_with_purchase
40
-
41
- attr_accessor :amount_shipping_with_subtotal
42
-
43
- attr_accessor :automatically_apply_coupon_codes
44
-
45
- attr_accessor :buy_one_get_one
46
-
47
- # Calculated description displayed to the customer if no description is specified.
48
- attr_accessor :calculated_description
49
-
50
- # True if this coupon can be used with other coupons in a single order.
51
- attr_accessor :can_be_used_with_other_coupons
52
-
53
- # Coupon oid.
54
- attr_accessor :coupon_oid
55
-
56
- # Coupon type.
57
- attr_accessor :coupon_type
58
-
59
- # Description of the coupon up to 50 characters.
60
- attr_accessor :description
61
-
62
- attr_accessor :discount_item_with_item_purchase
63
-
64
- attr_accessor :discount_items
65
-
66
- # Date/time when coupon expires
67
- attr_accessor :expiration_dts
68
-
69
- attr_accessor :free_item_and_shipping_with_subtotal
70
-
71
- attr_accessor :free_item_with_item_purchase
72
-
73
- attr_accessor :free_item_with_subtotal
74
-
75
- attr_accessor :free_items_with_item_purchase
76
-
77
- attr_accessor :free_items_with_mixmatch_purchase
78
-
79
- attr_accessor :free_shipping
80
-
81
- attr_accessor :free_shipping_specific_items
82
-
83
- attr_accessor :free_shipping_with_items_purchase
84
-
85
- attr_accessor :free_shipping_with_subtotal
86
-
87
- # Hide coupon from customer during checkout. Often used when coupons are automatic discounting mechanisms.
88
- attr_accessor :hide_from_customer
89
-
90
- # Merchant code of coupon up to 20 characters.
91
- attr_accessor :merchant_code
92
-
93
- # Internal notes about this coupon. These are not visible to customer.
94
- attr_accessor :merchant_notes
95
-
96
- attr_accessor :multiple_amounts_off_items
97
-
98
- attr_accessor :no_discount
99
-
100
- attr_accessor :percent_off_item_with_items_quantity_purchase
101
-
102
- attr_accessor :percent_off_items
103
-
104
- attr_accessor :percent_off_items_and_free_shipping
105
-
106
- attr_accessor :percent_off_items_with_items_purchase
107
-
108
- attr_accessor :percent_off_msrp_items
109
-
110
- attr_accessor :percent_off_retail_price_items
111
-
112
- attr_accessor :percent_off_shipping
113
-
114
- attr_accessor :percent_off_subtotal
115
-
116
- attr_accessor :percent_off_subtotal_and_free_shipping
117
-
118
- attr_accessor :percent_off_subtotal_limit
119
-
120
- attr_accessor :percent_off_subtotal_with_items_purchase
121
-
122
- attr_accessor :percent_off_subtotal_with_subtotal
123
-
124
- # Quickbooks accounting code.
125
- attr_accessor :quickbooks_code
126
-
127
- # Optional list of postal codes which restrict a coupon to within these postal codes.
128
- attr_accessor :restrict_by_postal_codes
129
-
130
- # Optional list of legacy screen branding theme codes to limit coupon use to only those themes.
131
- attr_accessor :restrict_by_screen_branding_theme_codes
132
-
133
- # Optional list of storefronts to limit coupon use to only those storefronts.
134
- attr_accessor :restrict_by_storefronts
135
-
136
- # Date/time when coupon is valid
137
- attr_accessor :start_dts
138
-
139
- # If true, this coupon can be used with ANY other coupon regardless of the other coupons configuration
140
- attr_accessor :super_coupon
141
-
142
- attr_accessor :tiered_amount_off_items
143
-
144
- attr_accessor :tiered_amount_off_subtotal
145
-
146
- attr_accessor :tiered_percent_off_items
147
-
148
- attr_accessor :tiered_percent_off_shipping
149
-
150
- attr_accessor :tiered_percent_off_subtotal
151
-
152
- # Who may use this coupon.
153
- attr_accessor :usable_by
154
-
155
- # Attribute mapping from ruby-style variable name to JSON key.
156
- def self.attribute_map
157
- {
158
- :'affiliate_oid' => :'affiliate_oid',
159
- :'allow_multiple_one_time_codes' => :'allow_multiple_one_time_codes',
160
- :'amount_off_items' => :'amount_off_items',
161
- :'amount_off_shipping' => :'amount_off_shipping',
162
- :'amount_off_shipping_with_items_purchase' => :'amount_off_shipping_with_items_purchase',
163
- :'amount_off_subtotal' => :'amount_off_subtotal',
164
- :'amount_off_subtotal_and_free_shipping' => :'amount_off_subtotal_and_free_shipping',
165
- :'amount_off_subtotal_and_shipping' => :'amount_off_subtotal_and_shipping',
166
- :'amount_off_subtotal_with_block_purchase' => :'amount_off_subtotal_with_block_purchase',
167
- :'amount_off_subtotal_with_items_purchase' => :'amount_off_subtotal_with_items_purchase',
168
- :'amount_off_subtotal_with_purchase' => :'amount_off_subtotal_with_purchase',
169
- :'amount_shipping_with_subtotal' => :'amount_shipping_with_subtotal',
170
- :'automatically_apply_coupon_codes' => :'automatically_apply_coupon_codes',
171
- :'buy_one_get_one' => :'buy_one_get_one',
172
- :'calculated_description' => :'calculated_description',
173
- :'can_be_used_with_other_coupons' => :'can_be_used_with_other_coupons',
174
- :'coupon_oid' => :'coupon_oid',
175
- :'coupon_type' => :'coupon_type',
176
- :'description' => :'description',
177
- :'discount_item_with_item_purchase' => :'discount_item_with_item_purchase',
178
- :'discount_items' => :'discount_items',
179
- :'expiration_dts' => :'expiration_dts',
180
- :'free_item_and_shipping_with_subtotal' => :'free_item_and_shipping_with_subtotal',
181
- :'free_item_with_item_purchase' => :'free_item_with_item_purchase',
182
- :'free_item_with_subtotal' => :'free_item_with_subtotal',
183
- :'free_items_with_item_purchase' => :'free_items_with_item_purchase',
184
- :'free_items_with_mixmatch_purchase' => :'free_items_with_mixmatch_purchase',
185
- :'free_shipping' => :'free_shipping',
186
- :'free_shipping_specific_items' => :'free_shipping_specific_items',
187
- :'free_shipping_with_items_purchase' => :'free_shipping_with_items_purchase',
188
- :'free_shipping_with_subtotal' => :'free_shipping_with_subtotal',
189
- :'hide_from_customer' => :'hide_from_customer',
190
- :'merchant_code' => :'merchant_code',
191
- :'merchant_notes' => :'merchant_notes',
192
- :'multiple_amounts_off_items' => :'multiple_amounts_off_items',
193
- :'no_discount' => :'no_discount',
194
- :'percent_off_item_with_items_quantity_purchase' => :'percent_off_item_with_items_quantity_purchase',
195
- :'percent_off_items' => :'percent_off_items',
196
- :'percent_off_items_and_free_shipping' => :'percent_off_items_and_free_shipping',
197
- :'percent_off_items_with_items_purchase' => :'percent_off_items_with_items_purchase',
198
- :'percent_off_msrp_items' => :'percent_off_msrp_items',
199
- :'percent_off_retail_price_items' => :'percent_off_retail_price_items',
200
- :'percent_off_shipping' => :'percent_off_shipping',
201
- :'percent_off_subtotal' => :'percent_off_subtotal',
202
- :'percent_off_subtotal_and_free_shipping' => :'percent_off_subtotal_and_free_shipping',
203
- :'percent_off_subtotal_limit' => :'percent_off_subtotal_limit',
204
- :'percent_off_subtotal_with_items_purchase' => :'percent_off_subtotal_with_items_purchase',
205
- :'percent_off_subtotal_with_subtotal' => :'percent_off_subtotal_with_subtotal',
206
- :'quickbooks_code' => :'quickbooks_code',
207
- :'restrict_by_postal_codes' => :'restrict_by_postal_codes',
208
- :'restrict_by_screen_branding_theme_codes' => :'restrict_by_screen_branding_theme_codes',
209
- :'restrict_by_storefronts' => :'restrict_by_storefronts',
210
- :'start_dts' => :'start_dts',
211
- :'super_coupon' => :'super_coupon',
212
- :'tiered_amount_off_items' => :'tiered_amount_off_items',
213
- :'tiered_amount_off_subtotal' => :'tiered_amount_off_subtotal',
214
- :'tiered_percent_off_items' => :'tiered_percent_off_items',
215
- :'tiered_percent_off_shipping' => :'tiered_percent_off_shipping',
216
- :'tiered_percent_off_subtotal' => :'tiered_percent_off_subtotal',
217
- :'usable_by' => :'usable_by'
218
- }
219
- end
220
-
221
- # Attribute type mapping.
222
- def self.swagger_types
223
- {
224
- :'affiliate_oid' => :'Integer',
225
- :'allow_multiple_one_time_codes' => :'BOOLEAN',
226
- :'amount_off_items' => :'CouponAmountOffItems',
227
- :'amount_off_shipping' => :'CouponAmountOffShipping',
228
- :'amount_off_shipping_with_items_purchase' => :'CouponAmountOffShippingWithItemsPurchase',
229
- :'amount_off_subtotal' => :'CouponAmountOffSubtotal',
230
- :'amount_off_subtotal_and_free_shipping' => :'CouponAmountOffSubtotalFreeShippingWithPurchase',
231
- :'amount_off_subtotal_and_shipping' => :'CouponAmountOffSubtotalAndShipping',
232
- :'amount_off_subtotal_with_block_purchase' => :'CouponAmountOffSubtotalWithBlockPurchase',
233
- :'amount_off_subtotal_with_items_purchase' => :'CouponAmountOffSubtotalWithItemsPurchase',
234
- :'amount_off_subtotal_with_purchase' => :'CouponAmountOffSubtotalWithPurchase',
235
- :'amount_shipping_with_subtotal' => :'CouponAmountShippingWithSubtotal',
236
- :'automatically_apply_coupon_codes' => :'CouponAutomaticallyApplyCouponCodes',
237
- :'buy_one_get_one' => :'CouponBuyOneGetOneLimit',
238
- :'calculated_description' => :'String',
239
- :'can_be_used_with_other_coupons' => :'BOOLEAN',
240
- :'coupon_oid' => :'Integer',
241
- :'coupon_type' => :'String',
242
- :'description' => :'String',
243
- :'discount_item_with_item_purchase' => :'CouponDiscountItemWithItemPurchase',
244
- :'discount_items' => :'CouponDiscountItems',
245
- :'expiration_dts' => :'String',
246
- :'free_item_and_shipping_with_subtotal' => :'CouponFreeItemAndShippingWithSubtotal',
247
- :'free_item_with_item_purchase' => :'CouponFreeItemWithItemPurchase',
248
- :'free_item_with_subtotal' => :'CouponFreeItemWithSubtotal',
249
- :'free_items_with_item_purchase' => :'CouponFreeItemsWithItemPurchase',
250
- :'free_items_with_mixmatch_purchase' => :'CouponFreeItemsWithMixMatchPurchase',
251
- :'free_shipping' => :'CouponFreeShipping',
252
- :'free_shipping_specific_items' => :'CouponFreeShippingSpecificItems',
253
- :'free_shipping_with_items_purchase' => :'CouponFreeShippingWithItemsPurchase',
254
- :'free_shipping_with_subtotal' => :'CouponFreeShippingWithSubtotal',
255
- :'hide_from_customer' => :'BOOLEAN',
256
- :'merchant_code' => :'String',
257
- :'merchant_notes' => :'String',
258
- :'multiple_amounts_off_items' => :'CouponMultipleAmountsOffItems',
259
- :'no_discount' => :'CouponNoDiscount',
260
- :'percent_off_item_with_items_quantity_purchase' => :'CouponPercentOffItemWithItemsQuantityPurchase',
261
- :'percent_off_items' => :'CouponPercentOffItems',
262
- :'percent_off_items_and_free_shipping' => :'CouponPercentOffItemsAndFreeShipping',
263
- :'percent_off_items_with_items_purchase' => :'CouponPercentOffItemsWithItemsPurchase',
264
- :'percent_off_msrp_items' => :'CouponPercentOffMsrpItems',
265
- :'percent_off_retail_price_items' => :'CouponPercentOffRetailPriceItems',
266
- :'percent_off_shipping' => :'CouponPercentOffShipping',
267
- :'percent_off_subtotal' => :'CouponPercentOffSubtotal',
268
- :'percent_off_subtotal_and_free_shipping' => :'CouponPercentOffSubtotalAndFreeShipping',
269
- :'percent_off_subtotal_limit' => :'CouponPercentOffSubtotalLimit',
270
- :'percent_off_subtotal_with_items_purchase' => :'CouponPercentOffSubtotalWithItemsPurchase',
271
- :'percent_off_subtotal_with_subtotal' => :'CouponPercentOffSubtotalWithSubtotal',
272
- :'quickbooks_code' => :'String',
273
- :'restrict_by_postal_codes' => :'Array<String>',
274
- :'restrict_by_screen_branding_theme_codes' => :'Array<CouponRestriction>',
275
- :'restrict_by_storefronts' => :'Array<CouponRestriction>',
276
- :'start_dts' => :'String',
277
- :'super_coupon' => :'BOOLEAN',
278
- :'tiered_amount_off_items' => :'CouponTieredAmountOffItems',
279
- :'tiered_amount_off_subtotal' => :'CouponTieredAmountOffSubtotal',
280
- :'tiered_percent_off_items' => :'CouponTieredPercentOffItems',
281
- :'tiered_percent_off_shipping' => :'CouponTieredPercentOffShipping',
282
- :'tiered_percent_off_subtotal' => :'CouponTieredPercentOffSubtotal',
283
- :'usable_by' => :'String'
284
- }
285
- end
286
-
287
- # Initializes the object
288
- # @param [Hash] attributes Model attributes in the form of hash
289
- def initialize(attributes = {})
290
- return unless attributes.is_a?(Hash)
291
-
292
- # convert string to symbol for hash key
293
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
294
-
295
- if attributes.has_key?(:'affiliate_oid')
296
- self.affiliate_oid = attributes[:'affiliate_oid']
297
- end
298
-
299
- if attributes.has_key?(:'allow_multiple_one_time_codes')
300
- self.allow_multiple_one_time_codes = attributes[:'allow_multiple_one_time_codes']
301
- end
302
-
303
- if attributes.has_key?(:'amount_off_items')
304
- self.amount_off_items = attributes[:'amount_off_items']
305
- end
306
-
307
- if attributes.has_key?(:'amount_off_shipping')
308
- self.amount_off_shipping = attributes[:'amount_off_shipping']
309
- end
310
-
311
- if attributes.has_key?(:'amount_off_shipping_with_items_purchase')
312
- self.amount_off_shipping_with_items_purchase = attributes[:'amount_off_shipping_with_items_purchase']
313
- end
314
-
315
- if attributes.has_key?(:'amount_off_subtotal')
316
- self.amount_off_subtotal = attributes[:'amount_off_subtotal']
317
- end
318
-
319
- if attributes.has_key?(:'amount_off_subtotal_and_free_shipping')
320
- self.amount_off_subtotal_and_free_shipping = attributes[:'amount_off_subtotal_and_free_shipping']
321
- end
322
-
323
- if attributes.has_key?(:'amount_off_subtotal_and_shipping')
324
- self.amount_off_subtotal_and_shipping = attributes[:'amount_off_subtotal_and_shipping']
325
- end
326
-
327
- if attributes.has_key?(:'amount_off_subtotal_with_block_purchase')
328
- self.amount_off_subtotal_with_block_purchase = attributes[:'amount_off_subtotal_with_block_purchase']
329
- end
330
-
331
- if attributes.has_key?(:'amount_off_subtotal_with_items_purchase')
332
- self.amount_off_subtotal_with_items_purchase = attributes[:'amount_off_subtotal_with_items_purchase']
333
- end
334
-
335
- if attributes.has_key?(:'amount_off_subtotal_with_purchase')
336
- self.amount_off_subtotal_with_purchase = attributes[:'amount_off_subtotal_with_purchase']
337
- end
338
-
339
- if attributes.has_key?(:'amount_shipping_with_subtotal')
340
- self.amount_shipping_with_subtotal = attributes[:'amount_shipping_with_subtotal']
341
- end
342
-
343
- if attributes.has_key?(:'automatically_apply_coupon_codes')
344
- self.automatically_apply_coupon_codes = attributes[:'automatically_apply_coupon_codes']
345
- end
346
-
347
- if attributes.has_key?(:'buy_one_get_one')
348
- self.buy_one_get_one = attributes[:'buy_one_get_one']
349
- end
350
-
351
- if attributes.has_key?(:'calculated_description')
352
- self.calculated_description = attributes[:'calculated_description']
353
- end
354
-
355
- if attributes.has_key?(:'can_be_used_with_other_coupons')
356
- self.can_be_used_with_other_coupons = attributes[:'can_be_used_with_other_coupons']
357
- end
358
-
359
- if attributes.has_key?(:'coupon_oid')
360
- self.coupon_oid = attributes[:'coupon_oid']
361
- end
362
-
363
- if attributes.has_key?(:'coupon_type')
364
- self.coupon_type = attributes[:'coupon_type']
365
- end
366
-
367
- if attributes.has_key?(:'description')
368
- self.description = attributes[:'description']
369
- end
370
-
371
- if attributes.has_key?(:'discount_item_with_item_purchase')
372
- self.discount_item_with_item_purchase = attributes[:'discount_item_with_item_purchase']
373
- end
374
-
375
- if attributes.has_key?(:'discount_items')
376
- self.discount_items = attributes[:'discount_items']
377
- end
378
-
379
- if attributes.has_key?(:'expiration_dts')
380
- self.expiration_dts = attributes[:'expiration_dts']
381
- end
382
-
383
- if attributes.has_key?(:'free_item_and_shipping_with_subtotal')
384
- self.free_item_and_shipping_with_subtotal = attributes[:'free_item_and_shipping_with_subtotal']
385
- end
386
-
387
- if attributes.has_key?(:'free_item_with_item_purchase')
388
- self.free_item_with_item_purchase = attributes[:'free_item_with_item_purchase']
389
- end
390
-
391
- if attributes.has_key?(:'free_item_with_subtotal')
392
- self.free_item_with_subtotal = attributes[:'free_item_with_subtotal']
393
- end
394
-
395
- if attributes.has_key?(:'free_items_with_item_purchase')
396
- self.free_items_with_item_purchase = attributes[:'free_items_with_item_purchase']
397
- end
398
-
399
- if attributes.has_key?(:'free_items_with_mixmatch_purchase')
400
- self.free_items_with_mixmatch_purchase = attributes[:'free_items_with_mixmatch_purchase']
401
- end
402
-
403
- if attributes.has_key?(:'free_shipping')
404
- self.free_shipping = attributes[:'free_shipping']
405
- end
406
-
407
- if attributes.has_key?(:'free_shipping_specific_items')
408
- self.free_shipping_specific_items = attributes[:'free_shipping_specific_items']
409
- end
410
-
411
- if attributes.has_key?(:'free_shipping_with_items_purchase')
412
- self.free_shipping_with_items_purchase = attributes[:'free_shipping_with_items_purchase']
413
- end
414
-
415
- if attributes.has_key?(:'free_shipping_with_subtotal')
416
- self.free_shipping_with_subtotal = attributes[:'free_shipping_with_subtotal']
417
- end
418
-
419
- if attributes.has_key?(:'hide_from_customer')
420
- self.hide_from_customer = attributes[:'hide_from_customer']
421
- end
422
-
423
- if attributes.has_key?(:'merchant_code')
424
- self.merchant_code = attributes[:'merchant_code']
425
- end
426
-
427
- if attributes.has_key?(:'merchant_notes')
428
- self.merchant_notes = attributes[:'merchant_notes']
429
- end
430
-
431
- if attributes.has_key?(:'multiple_amounts_off_items')
432
- self.multiple_amounts_off_items = attributes[:'multiple_amounts_off_items']
433
- end
434
-
435
- if attributes.has_key?(:'no_discount')
436
- self.no_discount = attributes[:'no_discount']
437
- end
438
-
439
- if attributes.has_key?(:'percent_off_item_with_items_quantity_purchase')
440
- self.percent_off_item_with_items_quantity_purchase = attributes[:'percent_off_item_with_items_quantity_purchase']
441
- end
442
-
443
- if attributes.has_key?(:'percent_off_items')
444
- self.percent_off_items = attributes[:'percent_off_items']
445
- end
446
-
447
- if attributes.has_key?(:'percent_off_items_and_free_shipping')
448
- self.percent_off_items_and_free_shipping = attributes[:'percent_off_items_and_free_shipping']
449
- end
450
-
451
- if attributes.has_key?(:'percent_off_items_with_items_purchase')
452
- self.percent_off_items_with_items_purchase = attributes[:'percent_off_items_with_items_purchase']
453
- end
454
-
455
- if attributes.has_key?(:'percent_off_msrp_items')
456
- self.percent_off_msrp_items = attributes[:'percent_off_msrp_items']
457
- end
458
-
459
- if attributes.has_key?(:'percent_off_retail_price_items')
460
- self.percent_off_retail_price_items = attributes[:'percent_off_retail_price_items']
461
- end
462
-
463
- if attributes.has_key?(:'percent_off_shipping')
464
- self.percent_off_shipping = attributes[:'percent_off_shipping']
465
- end
466
-
467
- if attributes.has_key?(:'percent_off_subtotal')
468
- self.percent_off_subtotal = attributes[:'percent_off_subtotal']
469
- end
470
-
471
- if attributes.has_key?(:'percent_off_subtotal_and_free_shipping')
472
- self.percent_off_subtotal_and_free_shipping = attributes[:'percent_off_subtotal_and_free_shipping']
473
- end
474
-
475
- if attributes.has_key?(:'percent_off_subtotal_limit')
476
- self.percent_off_subtotal_limit = attributes[:'percent_off_subtotal_limit']
477
- end
478
-
479
- if attributes.has_key?(:'percent_off_subtotal_with_items_purchase')
480
- self.percent_off_subtotal_with_items_purchase = attributes[:'percent_off_subtotal_with_items_purchase']
481
- end
482
-
483
- if attributes.has_key?(:'percent_off_subtotal_with_subtotal')
484
- self.percent_off_subtotal_with_subtotal = attributes[:'percent_off_subtotal_with_subtotal']
485
- end
486
-
487
- if attributes.has_key?(:'quickbooks_code')
488
- self.quickbooks_code = attributes[:'quickbooks_code']
489
- end
490
-
491
- if attributes.has_key?(:'restrict_by_postal_codes')
492
- if (value = attributes[:'restrict_by_postal_codes']).is_a?(Array)
493
- self.restrict_by_postal_codes = value
494
- end
495
- end
496
-
497
- if attributes.has_key?(:'restrict_by_screen_branding_theme_codes')
498
- if (value = attributes[:'restrict_by_screen_branding_theme_codes']).is_a?(Array)
499
- self.restrict_by_screen_branding_theme_codes = value
500
- end
501
- end
502
-
503
- if attributes.has_key?(:'restrict_by_storefronts')
504
- if (value = attributes[:'restrict_by_storefronts']).is_a?(Array)
505
- self.restrict_by_storefronts = value
506
- end
507
- end
508
-
509
- if attributes.has_key?(:'start_dts')
510
- self.start_dts = attributes[:'start_dts']
511
- end
512
-
513
- if attributes.has_key?(:'super_coupon')
514
- self.super_coupon = attributes[:'super_coupon']
515
- end
516
-
517
- if attributes.has_key?(:'tiered_amount_off_items')
518
- self.tiered_amount_off_items = attributes[:'tiered_amount_off_items']
519
- end
520
-
521
- if attributes.has_key?(:'tiered_amount_off_subtotal')
522
- self.tiered_amount_off_subtotal = attributes[:'tiered_amount_off_subtotal']
523
- end
524
-
525
- if attributes.has_key?(:'tiered_percent_off_items')
526
- self.tiered_percent_off_items = attributes[:'tiered_percent_off_items']
527
- end
528
-
529
- if attributes.has_key?(:'tiered_percent_off_shipping')
530
- self.tiered_percent_off_shipping = attributes[:'tiered_percent_off_shipping']
531
- end
532
-
533
- if attributes.has_key?(:'tiered_percent_off_subtotal')
534
- self.tiered_percent_off_subtotal = attributes[:'tiered_percent_off_subtotal']
535
- end
536
-
537
- if attributes.has_key?(:'usable_by')
538
- self.usable_by = attributes[:'usable_by']
539
- end
540
- end
541
-
542
- # Show invalid properties with the reasons. Usually used together with valid?
543
- # @return Array for valid properties with the reasons
544
- def list_invalid_properties
545
- invalid_properties = Array.new
546
- if !@coupon_type.nil? && @coupon_type.to_s.length > 65
547
- invalid_properties.push('invalid value for "coupon_type", the character length must be smaller than or equal to 65.')
548
- end
549
-
550
- if !@description.nil? && @description.to_s.length > 50
551
- invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 50.')
552
- end
553
-
554
- if !@merchant_code.nil? && @merchant_code.to_s.length > 20
555
- invalid_properties.push('invalid value for "merchant_code", the character length must be smaller than or equal to 20.')
556
- end
557
-
558
- if !@merchant_notes.nil? && @merchant_notes.to_s.length > 250
559
- invalid_properties.push('invalid value for "merchant_notes", the character length must be smaller than or equal to 250.')
560
- end
561
-
562
- if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
563
- invalid_properties.push('invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.')
564
- end
565
-
566
- if !@usable_by.nil? && @usable_by.to_s.length > 50
567
- invalid_properties.push('invalid value for "usable_by", the character length must be smaller than or equal to 50.')
568
- end
569
-
570
- invalid_properties
571
- end
572
-
573
- # Check to see if the all the properties in the model are valid
574
- # @return true if the model is valid
575
- def valid?
576
- return false if !@coupon_type.nil? && @coupon_type.to_s.length > 65
577
- return false if !@description.nil? && @description.to_s.length > 50
578
- return false if !@merchant_code.nil? && @merchant_code.to_s.length > 20
579
- return false if !@merchant_notes.nil? && @merchant_notes.to_s.length > 250
580
- return false if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
581
- return false if !@usable_by.nil? && @usable_by.to_s.length > 50
582
- true
583
- end
584
-
585
- # Custom attribute writer method with validation
586
- # @param [Object] coupon_type Value to be assigned
587
- def coupon_type=(coupon_type)
588
- if !coupon_type.nil? && coupon_type.to_s.length > 65
589
- fail ArgumentError, 'invalid value for "coupon_type", the character length must be smaller than or equal to 65.'
590
- end
591
-
592
- @coupon_type = coupon_type
593
- end
594
-
595
- # Custom attribute writer method with validation
596
- # @param [Object] description Value to be assigned
597
- def description=(description)
598
- if !description.nil? && description.to_s.length > 50
599
- fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 50.'
600
- end
601
-
602
- @description = description
603
- end
604
-
605
- # Custom attribute writer method with validation
606
- # @param [Object] merchant_code Value to be assigned
607
- def merchant_code=(merchant_code)
608
- if !merchant_code.nil? && merchant_code.to_s.length > 20
609
- fail ArgumentError, 'invalid value for "merchant_code", the character length must be smaller than or equal to 20.'
610
- end
611
-
612
- @merchant_code = merchant_code
613
- end
614
-
615
- # Custom attribute writer method with validation
616
- # @param [Object] merchant_notes Value to be assigned
617
- def merchant_notes=(merchant_notes)
618
- if !merchant_notes.nil? && merchant_notes.to_s.length > 250
619
- fail ArgumentError, 'invalid value for "merchant_notes", the character length must be smaller than or equal to 250.'
620
- end
621
-
622
- @merchant_notes = merchant_notes
623
- end
624
-
625
- # Custom attribute writer method with validation
626
- # @param [Object] quickbooks_code Value to be assigned
627
- def quickbooks_code=(quickbooks_code)
628
- if !quickbooks_code.nil? && quickbooks_code.to_s.length > 20
629
- fail ArgumentError, 'invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.'
630
- end
631
-
632
- @quickbooks_code = quickbooks_code
633
- end
634
-
635
- # Custom attribute writer method with validation
636
- # @param [Object] usable_by Value to be assigned
637
- def usable_by=(usable_by)
638
- if !usable_by.nil? && usable_by.to_s.length > 50
639
- fail ArgumentError, 'invalid value for "usable_by", the character length must be smaller than or equal to 50.'
640
- end
641
-
642
- @usable_by = usable_by
643
- end
644
-
645
- # Checks equality by comparing each attribute.
646
- # @param [Object] Object to be compared
647
- def ==(o)
648
- return true if self.equal?(o)
649
- self.class == o.class &&
650
- affiliate_oid == o.affiliate_oid &&
651
- allow_multiple_one_time_codes == o.allow_multiple_one_time_codes &&
652
- amount_off_items == o.amount_off_items &&
653
- amount_off_shipping == o.amount_off_shipping &&
654
- amount_off_shipping_with_items_purchase == o.amount_off_shipping_with_items_purchase &&
655
- amount_off_subtotal == o.amount_off_subtotal &&
656
- amount_off_subtotal_and_free_shipping == o.amount_off_subtotal_and_free_shipping &&
657
- amount_off_subtotal_and_shipping == o.amount_off_subtotal_and_shipping &&
658
- amount_off_subtotal_with_block_purchase == o.amount_off_subtotal_with_block_purchase &&
659
- amount_off_subtotal_with_items_purchase == o.amount_off_subtotal_with_items_purchase &&
660
- amount_off_subtotal_with_purchase == o.amount_off_subtotal_with_purchase &&
661
- amount_shipping_with_subtotal == o.amount_shipping_with_subtotal &&
662
- automatically_apply_coupon_codes == o.automatically_apply_coupon_codes &&
663
- buy_one_get_one == o.buy_one_get_one &&
664
- calculated_description == o.calculated_description &&
665
- can_be_used_with_other_coupons == o.can_be_used_with_other_coupons &&
666
- coupon_oid == o.coupon_oid &&
667
- coupon_type == o.coupon_type &&
668
- description == o.description &&
669
- discount_item_with_item_purchase == o.discount_item_with_item_purchase &&
670
- discount_items == o.discount_items &&
671
- expiration_dts == o.expiration_dts &&
672
- free_item_and_shipping_with_subtotal == o.free_item_and_shipping_with_subtotal &&
673
- free_item_with_item_purchase == o.free_item_with_item_purchase &&
674
- free_item_with_subtotal == o.free_item_with_subtotal &&
675
- free_items_with_item_purchase == o.free_items_with_item_purchase &&
676
- free_items_with_mixmatch_purchase == o.free_items_with_mixmatch_purchase &&
677
- free_shipping == o.free_shipping &&
678
- free_shipping_specific_items == o.free_shipping_specific_items &&
679
- free_shipping_with_items_purchase == o.free_shipping_with_items_purchase &&
680
- free_shipping_with_subtotal == o.free_shipping_with_subtotal &&
681
- hide_from_customer == o.hide_from_customer &&
682
- merchant_code == o.merchant_code &&
683
- merchant_notes == o.merchant_notes &&
684
- multiple_amounts_off_items == o.multiple_amounts_off_items &&
685
- no_discount == o.no_discount &&
686
- percent_off_item_with_items_quantity_purchase == o.percent_off_item_with_items_quantity_purchase &&
687
- percent_off_items == o.percent_off_items &&
688
- percent_off_items_and_free_shipping == o.percent_off_items_and_free_shipping &&
689
- percent_off_items_with_items_purchase == o.percent_off_items_with_items_purchase &&
690
- percent_off_msrp_items == o.percent_off_msrp_items &&
691
- percent_off_retail_price_items == o.percent_off_retail_price_items &&
692
- percent_off_shipping == o.percent_off_shipping &&
693
- percent_off_subtotal == o.percent_off_subtotal &&
694
- percent_off_subtotal_and_free_shipping == o.percent_off_subtotal_and_free_shipping &&
695
- percent_off_subtotal_limit == o.percent_off_subtotal_limit &&
696
- percent_off_subtotal_with_items_purchase == o.percent_off_subtotal_with_items_purchase &&
697
- percent_off_subtotal_with_subtotal == o.percent_off_subtotal_with_subtotal &&
698
- quickbooks_code == o.quickbooks_code &&
699
- restrict_by_postal_codes == o.restrict_by_postal_codes &&
700
- restrict_by_screen_branding_theme_codes == o.restrict_by_screen_branding_theme_codes &&
701
- restrict_by_storefronts == o.restrict_by_storefronts &&
702
- start_dts == o.start_dts &&
703
- super_coupon == o.super_coupon &&
704
- tiered_amount_off_items == o.tiered_amount_off_items &&
705
- tiered_amount_off_subtotal == o.tiered_amount_off_subtotal &&
706
- tiered_percent_off_items == o.tiered_percent_off_items &&
707
- tiered_percent_off_shipping == o.tiered_percent_off_shipping &&
708
- tiered_percent_off_subtotal == o.tiered_percent_off_subtotal &&
709
- usable_by == o.usable_by
710
- end
711
-
712
- # @see the `==` method
713
- # @param [Object] Object to be compared
714
- def eql?(o)
715
- self == o
716
- end
717
-
718
- # Calculates hash code according to all attributes.
719
- # @return [Fixnum] Hash code
720
- def hash
721
- [affiliate_oid, allow_multiple_one_time_codes, amount_off_items, amount_off_shipping, amount_off_shipping_with_items_purchase, amount_off_subtotal, amount_off_subtotal_and_free_shipping, amount_off_subtotal_and_shipping, amount_off_subtotal_with_block_purchase, amount_off_subtotal_with_items_purchase, amount_off_subtotal_with_purchase, amount_shipping_with_subtotal, automatically_apply_coupon_codes, buy_one_get_one, calculated_description, can_be_used_with_other_coupons, coupon_oid, coupon_type, description, discount_item_with_item_purchase, discount_items, expiration_dts, free_item_and_shipping_with_subtotal, free_item_with_item_purchase, free_item_with_subtotal, free_items_with_item_purchase, free_items_with_mixmatch_purchase, free_shipping, free_shipping_specific_items, free_shipping_with_items_purchase, free_shipping_with_subtotal, hide_from_customer, merchant_code, merchant_notes, multiple_amounts_off_items, no_discount, percent_off_item_with_items_quantity_purchase, percent_off_items, percent_off_items_and_free_shipping, percent_off_items_with_items_purchase, percent_off_msrp_items, percent_off_retail_price_items, percent_off_shipping, percent_off_subtotal, percent_off_subtotal_and_free_shipping, percent_off_subtotal_limit, percent_off_subtotal_with_items_purchase, percent_off_subtotal_with_subtotal, quickbooks_code, restrict_by_postal_codes, restrict_by_screen_branding_theme_codes, restrict_by_storefronts, start_dts, super_coupon, tiered_amount_off_items, tiered_amount_off_subtotal, tiered_percent_off_items, tiered_percent_off_shipping, tiered_percent_off_subtotal, usable_by].hash
722
- end
723
-
724
- # Builds the object from hash
725
- # @param [Hash] attributes Model attributes in the form of hash
726
- # @return [Object] Returns the model itself
727
- def build_from_hash(attributes)
728
- return nil unless attributes.is_a?(Hash)
729
- self.class.swagger_types.each_pair do |key, type|
730
- if type =~ /\AArray<(.*)>/i
731
- # check to ensure the input is an array given that the attribute
732
- # is documented as an array but the input is not
733
- if attributes[self.class.attribute_map[key]].is_a?(Array)
734
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
735
- end
736
- elsif !attributes[self.class.attribute_map[key]].nil?
737
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
738
- end # or else data not found in attributes(hash), not an issue as the data can be optional
739
- end
740
-
741
- self
742
- end
743
-
744
- # Deserializes the data based on type
745
- # @param string type Data type
746
- # @param string value Value to be deserialized
747
- # @return [Object] Deserialized data
748
- def _deserialize(type, value)
749
- case type.to_sym
750
- when :DateTime
751
- DateTime.parse(value)
752
- when :Date
753
- Date.parse(value)
754
- when :String
755
- value.to_s
756
- when :Integer
757
- value.to_i
758
- when :Float
759
- value.to_f
760
- when :BOOLEAN
761
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
762
- true
763
- else
764
- false
765
- end
766
- when :Object
767
- # generic object (usually a Hash), return directly
768
- value
769
- when /\AArray<(?<inner_type>.+)>\z/
770
- inner_type = Regexp.last_match[:inner_type]
771
- value.map { |v| _deserialize(inner_type, v) }
772
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
773
- k_type = Regexp.last_match[:k_type]
774
- v_type = Regexp.last_match[:v_type]
775
- {}.tap do |hash|
776
- value.each do |k, v|
777
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
778
- end
779
- end
780
- else # model
781
- temp_model = UltracartClient.const_get(type).new
782
- temp_model.build_from_hash(value)
783
- end
784
- end
785
-
786
- # Returns the string representation of the object
787
- # @return [String] String presentation of the object
788
- def to_s
789
- to_hash.to_s
790
- end
791
-
792
- # to_body is an alias to to_hash (backward compatibility)
793
- # @return [Hash] Returns the object in the form of hash
794
- def to_body
795
- to_hash
796
- end
797
-
798
- # Returns the object in the form of hash
799
- # @return [Hash] Returns the object in the form of hash
800
- def to_hash
801
- hash = {}
802
- self.class.attribute_map.each_pair do |attr, param|
803
- value = self.send(attr)
804
- next if value.nil?
805
- hash[param] = _to_hash(value)
806
- end
807
- hash
808
- end
809
-
810
- # Outputs non-array value in the form of hash
811
- # For object, use to_hash. Otherwise, just return the value
812
- # @param [Object] value Any valid value
813
- # @return [Hash] Returns the value in the form of hash
814
- def _to_hash(value)
815
- if value.is_a?(Array)
816
- value.compact.map { |v| _to_hash(v) }
817
- elsif value.is_a?(Hash)
818
- {}.tap do |hash|
819
- value.each { |k, v| hash[k] = _to_hash(v) }
820
- end
821
- elsif value.respond_to? :to_hash
822
- value.to_hash
823
- else
824
- value
825
- end
826
- end
827
-
828
- end
829
- end
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class Coupon
18
+ # Associates an order with an affiliate when this value is set.
19
+ attr_accessor :affiliate_oid
20
+
21
+ # True if multiple one time codes for this coupon can be used on a cart at the same time.
22
+ attr_accessor :allow_multiple_one_time_codes
23
+
24
+ attr_accessor :amount_off_items
25
+
26
+ attr_accessor :amount_off_shipping
27
+
28
+ attr_accessor :amount_off_shipping_with_items_purchase
29
+
30
+ attr_accessor :amount_off_subtotal
31
+
32
+ attr_accessor :amount_off_subtotal_and_free_shipping
33
+
34
+ attr_accessor :amount_off_subtotal_and_shipping
35
+
36
+ attr_accessor :amount_off_subtotal_with_block_purchase
37
+
38
+ attr_accessor :amount_off_subtotal_with_items_purchase
39
+
40
+ attr_accessor :amount_off_subtotal_with_purchase
41
+
42
+ attr_accessor :amount_shipping_with_subtotal
43
+
44
+ attr_accessor :automatically_apply_coupon_codes
45
+
46
+ attr_accessor :buy_one_get_one
47
+
48
+ # Calculated description displayed to the customer if no description is specified.
49
+ attr_accessor :calculated_description
50
+
51
+ # True if this coupon can be used with other coupons in a single order.
52
+ attr_accessor :can_be_used_with_other_coupons
53
+
54
+ # Coupon oid.
55
+ attr_accessor :coupon_oid
56
+
57
+ # Coupon type.
58
+ attr_accessor :coupon_type
59
+
60
+ # Description of the coupon up to 50 characters.
61
+ attr_accessor :description
62
+
63
+ attr_accessor :discount_item_with_item_purchase
64
+
65
+ attr_accessor :discount_items
66
+
67
+ # Date/time when coupon expires
68
+ attr_accessor :expiration_dts
69
+
70
+ attr_accessor :free_item_and_shipping_with_subtotal
71
+
72
+ attr_accessor :free_item_with_item_purchase
73
+
74
+ attr_accessor :free_item_with_subtotal
75
+
76
+ attr_accessor :free_items_with_item_purchase
77
+
78
+ attr_accessor :free_items_with_mixmatch_purchase
79
+
80
+ attr_accessor :free_shipping
81
+
82
+ attr_accessor :free_shipping_specific_items
83
+
84
+ attr_accessor :free_shipping_with_items_purchase
85
+
86
+ attr_accessor :free_shipping_with_subtotal
87
+
88
+ # Hide coupon from customer during checkout. Often used when coupons are automatic discounting mechanisms.
89
+ attr_accessor :hide_from_customer
90
+
91
+ # Merchant code of coupon up to 20 characters.
92
+ attr_accessor :merchant_code
93
+
94
+ # Internal notes about this coupon. These are not visible to customer.
95
+ attr_accessor :merchant_notes
96
+
97
+ attr_accessor :multiple_amounts_off_items
98
+
99
+ attr_accessor :no_discount
100
+
101
+ attr_accessor :percent_off_item_with_items_quantity_purchase
102
+
103
+ attr_accessor :percent_off_items
104
+
105
+ attr_accessor :percent_off_items_and_free_shipping
106
+
107
+ attr_accessor :percent_off_items_with_items_purchase
108
+
109
+ attr_accessor :percent_off_msrp_items
110
+
111
+ attr_accessor :percent_off_retail_price_items
112
+
113
+ attr_accessor :percent_off_shipping
114
+
115
+ attr_accessor :percent_off_subtotal
116
+
117
+ attr_accessor :percent_off_subtotal_and_free_shipping
118
+
119
+ attr_accessor :percent_off_subtotal_limit
120
+
121
+ attr_accessor :percent_off_subtotal_with_items_purchase
122
+
123
+ attr_accessor :percent_off_subtotal_with_subtotal
124
+
125
+ # Quickbooks accounting code.
126
+ attr_accessor :quickbooks_code
127
+
128
+ # Optional list of postal codes which restrict a coupon to within these postal codes.
129
+ attr_accessor :restrict_by_postal_codes
130
+
131
+ # Optional list of legacy screen branding theme codes to limit coupon use to only those themes.
132
+ attr_accessor :restrict_by_screen_branding_theme_codes
133
+
134
+ # Optional list of storefronts to limit coupon use to only those storefronts.
135
+ attr_accessor :restrict_by_storefronts
136
+
137
+ # Date/time when coupon is valid
138
+ attr_accessor :start_dts
139
+
140
+ # If true, this coupon can be used with ANY other coupon regardless of the other coupons configuration
141
+ attr_accessor :super_coupon
142
+
143
+ attr_accessor :tiered_amount_off_items
144
+
145
+ attr_accessor :tiered_amount_off_subtotal
146
+
147
+ attr_accessor :tiered_percent_off_items
148
+
149
+ attr_accessor :tiered_percent_off_shipping
150
+
151
+ attr_accessor :tiered_percent_off_subtotal
152
+
153
+ # Who may use this coupon.
154
+ attr_accessor :usable_by
155
+
156
+ # Attribute mapping from ruby-style variable name to JSON key.
157
+ def self.attribute_map
158
+ {
159
+ :'affiliate_oid' => :'affiliate_oid',
160
+ :'allow_multiple_one_time_codes' => :'allow_multiple_one_time_codes',
161
+ :'amount_off_items' => :'amount_off_items',
162
+ :'amount_off_shipping' => :'amount_off_shipping',
163
+ :'amount_off_shipping_with_items_purchase' => :'amount_off_shipping_with_items_purchase',
164
+ :'amount_off_subtotal' => :'amount_off_subtotal',
165
+ :'amount_off_subtotal_and_free_shipping' => :'amount_off_subtotal_and_free_shipping',
166
+ :'amount_off_subtotal_and_shipping' => :'amount_off_subtotal_and_shipping',
167
+ :'amount_off_subtotal_with_block_purchase' => :'amount_off_subtotal_with_block_purchase',
168
+ :'amount_off_subtotal_with_items_purchase' => :'amount_off_subtotal_with_items_purchase',
169
+ :'amount_off_subtotal_with_purchase' => :'amount_off_subtotal_with_purchase',
170
+ :'amount_shipping_with_subtotal' => :'amount_shipping_with_subtotal',
171
+ :'automatically_apply_coupon_codes' => :'automatically_apply_coupon_codes',
172
+ :'buy_one_get_one' => :'buy_one_get_one',
173
+ :'calculated_description' => :'calculated_description',
174
+ :'can_be_used_with_other_coupons' => :'can_be_used_with_other_coupons',
175
+ :'coupon_oid' => :'coupon_oid',
176
+ :'coupon_type' => :'coupon_type',
177
+ :'description' => :'description',
178
+ :'discount_item_with_item_purchase' => :'discount_item_with_item_purchase',
179
+ :'discount_items' => :'discount_items',
180
+ :'expiration_dts' => :'expiration_dts',
181
+ :'free_item_and_shipping_with_subtotal' => :'free_item_and_shipping_with_subtotal',
182
+ :'free_item_with_item_purchase' => :'free_item_with_item_purchase',
183
+ :'free_item_with_subtotal' => :'free_item_with_subtotal',
184
+ :'free_items_with_item_purchase' => :'free_items_with_item_purchase',
185
+ :'free_items_with_mixmatch_purchase' => :'free_items_with_mixmatch_purchase',
186
+ :'free_shipping' => :'free_shipping',
187
+ :'free_shipping_specific_items' => :'free_shipping_specific_items',
188
+ :'free_shipping_with_items_purchase' => :'free_shipping_with_items_purchase',
189
+ :'free_shipping_with_subtotal' => :'free_shipping_with_subtotal',
190
+ :'hide_from_customer' => :'hide_from_customer',
191
+ :'merchant_code' => :'merchant_code',
192
+ :'merchant_notes' => :'merchant_notes',
193
+ :'multiple_amounts_off_items' => :'multiple_amounts_off_items',
194
+ :'no_discount' => :'no_discount',
195
+ :'percent_off_item_with_items_quantity_purchase' => :'percent_off_item_with_items_quantity_purchase',
196
+ :'percent_off_items' => :'percent_off_items',
197
+ :'percent_off_items_and_free_shipping' => :'percent_off_items_and_free_shipping',
198
+ :'percent_off_items_with_items_purchase' => :'percent_off_items_with_items_purchase',
199
+ :'percent_off_msrp_items' => :'percent_off_msrp_items',
200
+ :'percent_off_retail_price_items' => :'percent_off_retail_price_items',
201
+ :'percent_off_shipping' => :'percent_off_shipping',
202
+ :'percent_off_subtotal' => :'percent_off_subtotal',
203
+ :'percent_off_subtotal_and_free_shipping' => :'percent_off_subtotal_and_free_shipping',
204
+ :'percent_off_subtotal_limit' => :'percent_off_subtotal_limit',
205
+ :'percent_off_subtotal_with_items_purchase' => :'percent_off_subtotal_with_items_purchase',
206
+ :'percent_off_subtotal_with_subtotal' => :'percent_off_subtotal_with_subtotal',
207
+ :'quickbooks_code' => :'quickbooks_code',
208
+ :'restrict_by_postal_codes' => :'restrict_by_postal_codes',
209
+ :'restrict_by_screen_branding_theme_codes' => :'restrict_by_screen_branding_theme_codes',
210
+ :'restrict_by_storefronts' => :'restrict_by_storefronts',
211
+ :'start_dts' => :'start_dts',
212
+ :'super_coupon' => :'super_coupon',
213
+ :'tiered_amount_off_items' => :'tiered_amount_off_items',
214
+ :'tiered_amount_off_subtotal' => :'tiered_amount_off_subtotal',
215
+ :'tiered_percent_off_items' => :'tiered_percent_off_items',
216
+ :'tiered_percent_off_shipping' => :'tiered_percent_off_shipping',
217
+ :'tiered_percent_off_subtotal' => :'tiered_percent_off_subtotal',
218
+ :'usable_by' => :'usable_by'
219
+ }
220
+ end
221
+
222
+ # Returns all the JSON keys this model knows about
223
+ def self.acceptable_attributes
224
+ attribute_map.values
225
+ end
226
+
227
+ # Attribute type mapping.
228
+ def self.openapi_types
229
+ {
230
+ :'affiliate_oid' => :'Integer',
231
+ :'allow_multiple_one_time_codes' => :'Boolean',
232
+ :'amount_off_items' => :'CouponAmountOffItems',
233
+ :'amount_off_shipping' => :'CouponAmountOffShipping',
234
+ :'amount_off_shipping_with_items_purchase' => :'CouponAmountOffShippingWithItemsPurchase',
235
+ :'amount_off_subtotal' => :'CouponAmountOffSubtotal',
236
+ :'amount_off_subtotal_and_free_shipping' => :'CouponAmountOffSubtotalFreeShippingWithPurchase',
237
+ :'amount_off_subtotal_and_shipping' => :'CouponAmountOffSubtotalAndShipping',
238
+ :'amount_off_subtotal_with_block_purchase' => :'CouponAmountOffSubtotalWithBlockPurchase',
239
+ :'amount_off_subtotal_with_items_purchase' => :'CouponAmountOffSubtotalWithItemsPurchase',
240
+ :'amount_off_subtotal_with_purchase' => :'CouponAmountOffSubtotalWithPurchase',
241
+ :'amount_shipping_with_subtotal' => :'CouponAmountShippingWithSubtotal',
242
+ :'automatically_apply_coupon_codes' => :'CouponAutomaticallyApplyCouponCodes',
243
+ :'buy_one_get_one' => :'CouponBuyOneGetOneLimit',
244
+ :'calculated_description' => :'String',
245
+ :'can_be_used_with_other_coupons' => :'Boolean',
246
+ :'coupon_oid' => :'Integer',
247
+ :'coupon_type' => :'String',
248
+ :'description' => :'String',
249
+ :'discount_item_with_item_purchase' => :'CouponDiscountItemWithItemPurchase',
250
+ :'discount_items' => :'CouponDiscountItems',
251
+ :'expiration_dts' => :'String',
252
+ :'free_item_and_shipping_with_subtotal' => :'CouponFreeItemAndShippingWithSubtotal',
253
+ :'free_item_with_item_purchase' => :'CouponFreeItemWithItemPurchase',
254
+ :'free_item_with_subtotal' => :'CouponFreeItemWithSubtotal',
255
+ :'free_items_with_item_purchase' => :'CouponFreeItemsWithItemPurchase',
256
+ :'free_items_with_mixmatch_purchase' => :'CouponFreeItemsWithMixMatchPurchase',
257
+ :'free_shipping' => :'CouponFreeShipping',
258
+ :'free_shipping_specific_items' => :'CouponFreeShippingSpecificItems',
259
+ :'free_shipping_with_items_purchase' => :'CouponFreeShippingWithItemsPurchase',
260
+ :'free_shipping_with_subtotal' => :'CouponFreeShippingWithSubtotal',
261
+ :'hide_from_customer' => :'Boolean',
262
+ :'merchant_code' => :'String',
263
+ :'merchant_notes' => :'String',
264
+ :'multiple_amounts_off_items' => :'CouponMultipleAmountsOffItems',
265
+ :'no_discount' => :'Object',
266
+ :'percent_off_item_with_items_quantity_purchase' => :'CouponPercentOffItemWithItemsQuantityPurchase',
267
+ :'percent_off_items' => :'CouponPercentOffItems',
268
+ :'percent_off_items_and_free_shipping' => :'CouponPercentOffItemsAndFreeShipping',
269
+ :'percent_off_items_with_items_purchase' => :'CouponPercentOffItemsWithItemsPurchase',
270
+ :'percent_off_msrp_items' => :'CouponPercentOffMsrpItems',
271
+ :'percent_off_retail_price_items' => :'CouponPercentOffRetailPriceItems',
272
+ :'percent_off_shipping' => :'CouponPercentOffShipping',
273
+ :'percent_off_subtotal' => :'CouponPercentOffSubtotal',
274
+ :'percent_off_subtotal_and_free_shipping' => :'CouponPercentOffSubtotalAndFreeShipping',
275
+ :'percent_off_subtotal_limit' => :'CouponPercentOffSubtotalLimit',
276
+ :'percent_off_subtotal_with_items_purchase' => :'CouponPercentOffSubtotalWithItemsPurchase',
277
+ :'percent_off_subtotal_with_subtotal' => :'CouponPercentOffSubtotalWithSubtotal',
278
+ :'quickbooks_code' => :'String',
279
+ :'restrict_by_postal_codes' => :'Array<String>',
280
+ :'restrict_by_screen_branding_theme_codes' => :'Array<CouponRestriction>',
281
+ :'restrict_by_storefronts' => :'Array<CouponRestriction>',
282
+ :'start_dts' => :'String',
283
+ :'super_coupon' => :'Boolean',
284
+ :'tiered_amount_off_items' => :'CouponTieredAmountOffItems',
285
+ :'tiered_amount_off_subtotal' => :'CouponTieredAmountOffSubtotal',
286
+ :'tiered_percent_off_items' => :'CouponTieredPercentOffItems',
287
+ :'tiered_percent_off_shipping' => :'CouponTieredPercentOffShipping',
288
+ :'tiered_percent_off_subtotal' => :'CouponTieredPercentOffSubtotal',
289
+ :'usable_by' => :'String'
290
+ }
291
+ end
292
+
293
+ # List of attributes with nullable: true
294
+ def self.openapi_nullable
295
+ Set.new([
296
+ ])
297
+ end
298
+
299
+ # Initializes the object
300
+ # @param [Hash] attributes Model attributes in the form of hash
301
+ def initialize(attributes = {})
302
+ if (!attributes.is_a?(Hash))
303
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::Coupon` initialize method"
304
+ end
305
+
306
+ # check to see if the attribute exists and convert string to symbol for hash key
307
+ attributes = attributes.each_with_object({}) { |(k, v), h|
308
+ if (!self.class.attribute_map.key?(k.to_sym))
309
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::Coupon`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
310
+ end
311
+ h[k.to_sym] = v
312
+ }
313
+
314
+ if attributes.key?(:'affiliate_oid')
315
+ self.affiliate_oid = attributes[:'affiliate_oid']
316
+ end
317
+
318
+ if attributes.key?(:'allow_multiple_one_time_codes')
319
+ self.allow_multiple_one_time_codes = attributes[:'allow_multiple_one_time_codes']
320
+ end
321
+
322
+ if attributes.key?(:'amount_off_items')
323
+ self.amount_off_items = attributes[:'amount_off_items']
324
+ end
325
+
326
+ if attributes.key?(:'amount_off_shipping')
327
+ self.amount_off_shipping = attributes[:'amount_off_shipping']
328
+ end
329
+
330
+ if attributes.key?(:'amount_off_shipping_with_items_purchase')
331
+ self.amount_off_shipping_with_items_purchase = attributes[:'amount_off_shipping_with_items_purchase']
332
+ end
333
+
334
+ if attributes.key?(:'amount_off_subtotal')
335
+ self.amount_off_subtotal = attributes[:'amount_off_subtotal']
336
+ end
337
+
338
+ if attributes.key?(:'amount_off_subtotal_and_free_shipping')
339
+ self.amount_off_subtotal_and_free_shipping = attributes[:'amount_off_subtotal_and_free_shipping']
340
+ end
341
+
342
+ if attributes.key?(:'amount_off_subtotal_and_shipping')
343
+ self.amount_off_subtotal_and_shipping = attributes[:'amount_off_subtotal_and_shipping']
344
+ end
345
+
346
+ if attributes.key?(:'amount_off_subtotal_with_block_purchase')
347
+ self.amount_off_subtotal_with_block_purchase = attributes[:'amount_off_subtotal_with_block_purchase']
348
+ end
349
+
350
+ if attributes.key?(:'amount_off_subtotal_with_items_purchase')
351
+ self.amount_off_subtotal_with_items_purchase = attributes[:'amount_off_subtotal_with_items_purchase']
352
+ end
353
+
354
+ if attributes.key?(:'amount_off_subtotal_with_purchase')
355
+ self.amount_off_subtotal_with_purchase = attributes[:'amount_off_subtotal_with_purchase']
356
+ end
357
+
358
+ if attributes.key?(:'amount_shipping_with_subtotal')
359
+ self.amount_shipping_with_subtotal = attributes[:'amount_shipping_with_subtotal']
360
+ end
361
+
362
+ if attributes.key?(:'automatically_apply_coupon_codes')
363
+ self.automatically_apply_coupon_codes = attributes[:'automatically_apply_coupon_codes']
364
+ end
365
+
366
+ if attributes.key?(:'buy_one_get_one')
367
+ self.buy_one_get_one = attributes[:'buy_one_get_one']
368
+ end
369
+
370
+ if attributes.key?(:'calculated_description')
371
+ self.calculated_description = attributes[:'calculated_description']
372
+ end
373
+
374
+ if attributes.key?(:'can_be_used_with_other_coupons')
375
+ self.can_be_used_with_other_coupons = attributes[:'can_be_used_with_other_coupons']
376
+ end
377
+
378
+ if attributes.key?(:'coupon_oid')
379
+ self.coupon_oid = attributes[:'coupon_oid']
380
+ end
381
+
382
+ if attributes.key?(:'coupon_type')
383
+ self.coupon_type = attributes[:'coupon_type']
384
+ end
385
+
386
+ if attributes.key?(:'description')
387
+ self.description = attributes[:'description']
388
+ end
389
+
390
+ if attributes.key?(:'discount_item_with_item_purchase')
391
+ self.discount_item_with_item_purchase = attributes[:'discount_item_with_item_purchase']
392
+ end
393
+
394
+ if attributes.key?(:'discount_items')
395
+ self.discount_items = attributes[:'discount_items']
396
+ end
397
+
398
+ if attributes.key?(:'expiration_dts')
399
+ self.expiration_dts = attributes[:'expiration_dts']
400
+ end
401
+
402
+ if attributes.key?(:'free_item_and_shipping_with_subtotal')
403
+ self.free_item_and_shipping_with_subtotal = attributes[:'free_item_and_shipping_with_subtotal']
404
+ end
405
+
406
+ if attributes.key?(:'free_item_with_item_purchase')
407
+ self.free_item_with_item_purchase = attributes[:'free_item_with_item_purchase']
408
+ end
409
+
410
+ if attributes.key?(:'free_item_with_subtotal')
411
+ self.free_item_with_subtotal = attributes[:'free_item_with_subtotal']
412
+ end
413
+
414
+ if attributes.key?(:'free_items_with_item_purchase')
415
+ self.free_items_with_item_purchase = attributes[:'free_items_with_item_purchase']
416
+ end
417
+
418
+ if attributes.key?(:'free_items_with_mixmatch_purchase')
419
+ self.free_items_with_mixmatch_purchase = attributes[:'free_items_with_mixmatch_purchase']
420
+ end
421
+
422
+ if attributes.key?(:'free_shipping')
423
+ self.free_shipping = attributes[:'free_shipping']
424
+ end
425
+
426
+ if attributes.key?(:'free_shipping_specific_items')
427
+ self.free_shipping_specific_items = attributes[:'free_shipping_specific_items']
428
+ end
429
+
430
+ if attributes.key?(:'free_shipping_with_items_purchase')
431
+ self.free_shipping_with_items_purchase = attributes[:'free_shipping_with_items_purchase']
432
+ end
433
+
434
+ if attributes.key?(:'free_shipping_with_subtotal')
435
+ self.free_shipping_with_subtotal = attributes[:'free_shipping_with_subtotal']
436
+ end
437
+
438
+ if attributes.key?(:'hide_from_customer')
439
+ self.hide_from_customer = attributes[:'hide_from_customer']
440
+ end
441
+
442
+ if attributes.key?(:'merchant_code')
443
+ self.merchant_code = attributes[:'merchant_code']
444
+ end
445
+
446
+ if attributes.key?(:'merchant_notes')
447
+ self.merchant_notes = attributes[:'merchant_notes']
448
+ end
449
+
450
+ if attributes.key?(:'multiple_amounts_off_items')
451
+ self.multiple_amounts_off_items = attributes[:'multiple_amounts_off_items']
452
+ end
453
+
454
+ if attributes.key?(:'no_discount')
455
+ self.no_discount = attributes[:'no_discount']
456
+ end
457
+
458
+ if attributes.key?(:'percent_off_item_with_items_quantity_purchase')
459
+ self.percent_off_item_with_items_quantity_purchase = attributes[:'percent_off_item_with_items_quantity_purchase']
460
+ end
461
+
462
+ if attributes.key?(:'percent_off_items')
463
+ self.percent_off_items = attributes[:'percent_off_items']
464
+ end
465
+
466
+ if attributes.key?(:'percent_off_items_and_free_shipping')
467
+ self.percent_off_items_and_free_shipping = attributes[:'percent_off_items_and_free_shipping']
468
+ end
469
+
470
+ if attributes.key?(:'percent_off_items_with_items_purchase')
471
+ self.percent_off_items_with_items_purchase = attributes[:'percent_off_items_with_items_purchase']
472
+ end
473
+
474
+ if attributes.key?(:'percent_off_msrp_items')
475
+ self.percent_off_msrp_items = attributes[:'percent_off_msrp_items']
476
+ end
477
+
478
+ if attributes.key?(:'percent_off_retail_price_items')
479
+ self.percent_off_retail_price_items = attributes[:'percent_off_retail_price_items']
480
+ end
481
+
482
+ if attributes.key?(:'percent_off_shipping')
483
+ self.percent_off_shipping = attributes[:'percent_off_shipping']
484
+ end
485
+
486
+ if attributes.key?(:'percent_off_subtotal')
487
+ self.percent_off_subtotal = attributes[:'percent_off_subtotal']
488
+ end
489
+
490
+ if attributes.key?(:'percent_off_subtotal_and_free_shipping')
491
+ self.percent_off_subtotal_and_free_shipping = attributes[:'percent_off_subtotal_and_free_shipping']
492
+ end
493
+
494
+ if attributes.key?(:'percent_off_subtotal_limit')
495
+ self.percent_off_subtotal_limit = attributes[:'percent_off_subtotal_limit']
496
+ end
497
+
498
+ if attributes.key?(:'percent_off_subtotal_with_items_purchase')
499
+ self.percent_off_subtotal_with_items_purchase = attributes[:'percent_off_subtotal_with_items_purchase']
500
+ end
501
+
502
+ if attributes.key?(:'percent_off_subtotal_with_subtotal')
503
+ self.percent_off_subtotal_with_subtotal = attributes[:'percent_off_subtotal_with_subtotal']
504
+ end
505
+
506
+ if attributes.key?(:'quickbooks_code')
507
+ self.quickbooks_code = attributes[:'quickbooks_code']
508
+ end
509
+
510
+ if attributes.key?(:'restrict_by_postal_codes')
511
+ if (value = attributes[:'restrict_by_postal_codes']).is_a?(Array)
512
+ self.restrict_by_postal_codes = value
513
+ end
514
+ end
515
+
516
+ if attributes.key?(:'restrict_by_screen_branding_theme_codes')
517
+ if (value = attributes[:'restrict_by_screen_branding_theme_codes']).is_a?(Array)
518
+ self.restrict_by_screen_branding_theme_codes = value
519
+ end
520
+ end
521
+
522
+ if attributes.key?(:'restrict_by_storefronts')
523
+ if (value = attributes[:'restrict_by_storefronts']).is_a?(Array)
524
+ self.restrict_by_storefronts = value
525
+ end
526
+ end
527
+
528
+ if attributes.key?(:'start_dts')
529
+ self.start_dts = attributes[:'start_dts']
530
+ end
531
+
532
+ if attributes.key?(:'super_coupon')
533
+ self.super_coupon = attributes[:'super_coupon']
534
+ end
535
+
536
+ if attributes.key?(:'tiered_amount_off_items')
537
+ self.tiered_amount_off_items = attributes[:'tiered_amount_off_items']
538
+ end
539
+
540
+ if attributes.key?(:'tiered_amount_off_subtotal')
541
+ self.tiered_amount_off_subtotal = attributes[:'tiered_amount_off_subtotal']
542
+ end
543
+
544
+ if attributes.key?(:'tiered_percent_off_items')
545
+ self.tiered_percent_off_items = attributes[:'tiered_percent_off_items']
546
+ end
547
+
548
+ if attributes.key?(:'tiered_percent_off_shipping')
549
+ self.tiered_percent_off_shipping = attributes[:'tiered_percent_off_shipping']
550
+ end
551
+
552
+ if attributes.key?(:'tiered_percent_off_subtotal')
553
+ self.tiered_percent_off_subtotal = attributes[:'tiered_percent_off_subtotal']
554
+ end
555
+
556
+ if attributes.key?(:'usable_by')
557
+ self.usable_by = attributes[:'usable_by']
558
+ end
559
+ end
560
+
561
+ # Show invalid properties with the reasons. Usually used together with valid?
562
+ # @return Array for valid properties with the reasons
563
+ def list_invalid_properties
564
+ invalid_properties = Array.new
565
+ if !@coupon_type.nil? && @coupon_type.to_s.length > 65
566
+ invalid_properties.push('invalid value for "coupon_type", the character length must be smaller than or equal to 65.')
567
+ end
568
+
569
+ if !@description.nil? && @description.to_s.length > 50
570
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 50.')
571
+ end
572
+
573
+ if !@merchant_code.nil? && @merchant_code.to_s.length > 20
574
+ invalid_properties.push('invalid value for "merchant_code", the character length must be smaller than or equal to 20.')
575
+ end
576
+
577
+ if !@merchant_notes.nil? && @merchant_notes.to_s.length > 250
578
+ invalid_properties.push('invalid value for "merchant_notes", the character length must be smaller than or equal to 250.')
579
+ end
580
+
581
+ if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
582
+ invalid_properties.push('invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.')
583
+ end
584
+
585
+ if !@usable_by.nil? && @usable_by.to_s.length > 50
586
+ invalid_properties.push('invalid value for "usable_by", the character length must be smaller than or equal to 50.')
587
+ end
588
+
589
+ invalid_properties
590
+ end
591
+
592
+ # Check to see if the all the properties in the model are valid
593
+ # @return true if the model is valid
594
+ def valid?
595
+ return false if !@coupon_type.nil? && @coupon_type.to_s.length > 65
596
+ return false if !@description.nil? && @description.to_s.length > 50
597
+ return false if !@merchant_code.nil? && @merchant_code.to_s.length > 20
598
+ return false if !@merchant_notes.nil? && @merchant_notes.to_s.length > 250
599
+ return false if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
600
+ return false if !@usable_by.nil? && @usable_by.to_s.length > 50
601
+ true
602
+ end
603
+
604
+ # Custom attribute writer method with validation
605
+ # @param [Object] coupon_type Value to be assigned
606
+ def coupon_type=(coupon_type)
607
+ if !coupon_type.nil? && coupon_type.to_s.length > 65
608
+ fail ArgumentError, 'invalid value for "coupon_type", the character length must be smaller than or equal to 65.'
609
+ end
610
+
611
+ @coupon_type = coupon_type
612
+ end
613
+
614
+ # Custom attribute writer method with validation
615
+ # @param [Object] description Value to be assigned
616
+ def description=(description)
617
+ if !description.nil? && description.to_s.length > 50
618
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 50.'
619
+ end
620
+
621
+ @description = description
622
+ end
623
+
624
+ # Custom attribute writer method with validation
625
+ # @param [Object] merchant_code Value to be assigned
626
+ def merchant_code=(merchant_code)
627
+ if !merchant_code.nil? && merchant_code.to_s.length > 20
628
+ fail ArgumentError, 'invalid value for "merchant_code", the character length must be smaller than or equal to 20.'
629
+ end
630
+
631
+ @merchant_code = merchant_code
632
+ end
633
+
634
+ # Custom attribute writer method with validation
635
+ # @param [Object] merchant_notes Value to be assigned
636
+ def merchant_notes=(merchant_notes)
637
+ if !merchant_notes.nil? && merchant_notes.to_s.length > 250
638
+ fail ArgumentError, 'invalid value for "merchant_notes", the character length must be smaller than or equal to 250.'
639
+ end
640
+
641
+ @merchant_notes = merchant_notes
642
+ end
643
+
644
+ # Custom attribute writer method with validation
645
+ # @param [Object] quickbooks_code Value to be assigned
646
+ def quickbooks_code=(quickbooks_code)
647
+ if !quickbooks_code.nil? && quickbooks_code.to_s.length > 20
648
+ fail ArgumentError, 'invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.'
649
+ end
650
+
651
+ @quickbooks_code = quickbooks_code
652
+ end
653
+
654
+ # Custom attribute writer method with validation
655
+ # @param [Object] usable_by Value to be assigned
656
+ def usable_by=(usable_by)
657
+ if !usable_by.nil? && usable_by.to_s.length > 50
658
+ fail ArgumentError, 'invalid value for "usable_by", the character length must be smaller than or equal to 50.'
659
+ end
660
+
661
+ @usable_by = usable_by
662
+ end
663
+
664
+ # Checks equality by comparing each attribute.
665
+ # @param [Object] Object to be compared
666
+ def ==(o)
667
+ return true if self.equal?(o)
668
+ self.class == o.class &&
669
+ affiliate_oid == o.affiliate_oid &&
670
+ allow_multiple_one_time_codes == o.allow_multiple_one_time_codes &&
671
+ amount_off_items == o.amount_off_items &&
672
+ amount_off_shipping == o.amount_off_shipping &&
673
+ amount_off_shipping_with_items_purchase == o.amount_off_shipping_with_items_purchase &&
674
+ amount_off_subtotal == o.amount_off_subtotal &&
675
+ amount_off_subtotal_and_free_shipping == o.amount_off_subtotal_and_free_shipping &&
676
+ amount_off_subtotal_and_shipping == o.amount_off_subtotal_and_shipping &&
677
+ amount_off_subtotal_with_block_purchase == o.amount_off_subtotal_with_block_purchase &&
678
+ amount_off_subtotal_with_items_purchase == o.amount_off_subtotal_with_items_purchase &&
679
+ amount_off_subtotal_with_purchase == o.amount_off_subtotal_with_purchase &&
680
+ amount_shipping_with_subtotal == o.amount_shipping_with_subtotal &&
681
+ automatically_apply_coupon_codes == o.automatically_apply_coupon_codes &&
682
+ buy_one_get_one == o.buy_one_get_one &&
683
+ calculated_description == o.calculated_description &&
684
+ can_be_used_with_other_coupons == o.can_be_used_with_other_coupons &&
685
+ coupon_oid == o.coupon_oid &&
686
+ coupon_type == o.coupon_type &&
687
+ description == o.description &&
688
+ discount_item_with_item_purchase == o.discount_item_with_item_purchase &&
689
+ discount_items == o.discount_items &&
690
+ expiration_dts == o.expiration_dts &&
691
+ free_item_and_shipping_with_subtotal == o.free_item_and_shipping_with_subtotal &&
692
+ free_item_with_item_purchase == o.free_item_with_item_purchase &&
693
+ free_item_with_subtotal == o.free_item_with_subtotal &&
694
+ free_items_with_item_purchase == o.free_items_with_item_purchase &&
695
+ free_items_with_mixmatch_purchase == o.free_items_with_mixmatch_purchase &&
696
+ free_shipping == o.free_shipping &&
697
+ free_shipping_specific_items == o.free_shipping_specific_items &&
698
+ free_shipping_with_items_purchase == o.free_shipping_with_items_purchase &&
699
+ free_shipping_with_subtotal == o.free_shipping_with_subtotal &&
700
+ hide_from_customer == o.hide_from_customer &&
701
+ merchant_code == o.merchant_code &&
702
+ merchant_notes == o.merchant_notes &&
703
+ multiple_amounts_off_items == o.multiple_amounts_off_items &&
704
+ no_discount == o.no_discount &&
705
+ percent_off_item_with_items_quantity_purchase == o.percent_off_item_with_items_quantity_purchase &&
706
+ percent_off_items == o.percent_off_items &&
707
+ percent_off_items_and_free_shipping == o.percent_off_items_and_free_shipping &&
708
+ percent_off_items_with_items_purchase == o.percent_off_items_with_items_purchase &&
709
+ percent_off_msrp_items == o.percent_off_msrp_items &&
710
+ percent_off_retail_price_items == o.percent_off_retail_price_items &&
711
+ percent_off_shipping == o.percent_off_shipping &&
712
+ percent_off_subtotal == o.percent_off_subtotal &&
713
+ percent_off_subtotal_and_free_shipping == o.percent_off_subtotal_and_free_shipping &&
714
+ percent_off_subtotal_limit == o.percent_off_subtotal_limit &&
715
+ percent_off_subtotal_with_items_purchase == o.percent_off_subtotal_with_items_purchase &&
716
+ percent_off_subtotal_with_subtotal == o.percent_off_subtotal_with_subtotal &&
717
+ quickbooks_code == o.quickbooks_code &&
718
+ restrict_by_postal_codes == o.restrict_by_postal_codes &&
719
+ restrict_by_screen_branding_theme_codes == o.restrict_by_screen_branding_theme_codes &&
720
+ restrict_by_storefronts == o.restrict_by_storefronts &&
721
+ start_dts == o.start_dts &&
722
+ super_coupon == o.super_coupon &&
723
+ tiered_amount_off_items == o.tiered_amount_off_items &&
724
+ tiered_amount_off_subtotal == o.tiered_amount_off_subtotal &&
725
+ tiered_percent_off_items == o.tiered_percent_off_items &&
726
+ tiered_percent_off_shipping == o.tiered_percent_off_shipping &&
727
+ tiered_percent_off_subtotal == o.tiered_percent_off_subtotal &&
728
+ usable_by == o.usable_by
729
+ end
730
+
731
+ # @see the `==` method
732
+ # @param [Object] Object to be compared
733
+ def eql?(o)
734
+ self == o
735
+ end
736
+
737
+ # Calculates hash code according to all attributes.
738
+ # @return [Integer] Hash code
739
+ def hash
740
+ [affiliate_oid, allow_multiple_one_time_codes, amount_off_items, amount_off_shipping, amount_off_shipping_with_items_purchase, amount_off_subtotal, amount_off_subtotal_and_free_shipping, amount_off_subtotal_and_shipping, amount_off_subtotal_with_block_purchase, amount_off_subtotal_with_items_purchase, amount_off_subtotal_with_purchase, amount_shipping_with_subtotal, automatically_apply_coupon_codes, buy_one_get_one, calculated_description, can_be_used_with_other_coupons, coupon_oid, coupon_type, description, discount_item_with_item_purchase, discount_items, expiration_dts, free_item_and_shipping_with_subtotal, free_item_with_item_purchase, free_item_with_subtotal, free_items_with_item_purchase, free_items_with_mixmatch_purchase, free_shipping, free_shipping_specific_items, free_shipping_with_items_purchase, free_shipping_with_subtotal, hide_from_customer, merchant_code, merchant_notes, multiple_amounts_off_items, no_discount, percent_off_item_with_items_quantity_purchase, percent_off_items, percent_off_items_and_free_shipping, percent_off_items_with_items_purchase, percent_off_msrp_items, percent_off_retail_price_items, percent_off_shipping, percent_off_subtotal, percent_off_subtotal_and_free_shipping, percent_off_subtotal_limit, percent_off_subtotal_with_items_purchase, percent_off_subtotal_with_subtotal, quickbooks_code, restrict_by_postal_codes, restrict_by_screen_branding_theme_codes, restrict_by_storefronts, start_dts, super_coupon, tiered_amount_off_items, tiered_amount_off_subtotal, tiered_percent_off_items, tiered_percent_off_shipping, tiered_percent_off_subtotal, usable_by].hash
741
+ end
742
+
743
+ # Builds the object from hash
744
+ # @param [Hash] attributes Model attributes in the form of hash
745
+ # @return [Object] Returns the model itself
746
+ def self.build_from_hash(attributes)
747
+ new.build_from_hash(attributes)
748
+ end
749
+
750
+ # Builds the object from hash
751
+ # @param [Hash] attributes Model attributes in the form of hash
752
+ # @return [Object] Returns the model itself
753
+ def build_from_hash(attributes)
754
+ return nil unless attributes.is_a?(Hash)
755
+ attributes = attributes.transform_keys(&:to_sym)
756
+ self.class.openapi_types.each_pair do |key, type|
757
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
758
+ self.send("#{key}=", nil)
759
+ elsif type =~ /\AArray<(.*)>/i
760
+ # check to ensure the input is an array given that the attribute
761
+ # is documented as an array but the input is not
762
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
763
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
764
+ end
765
+ elsif !attributes[self.class.attribute_map[key]].nil?
766
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
767
+ end
768
+ end
769
+
770
+ self
771
+ end
772
+
773
+ # Deserializes the data based on type
774
+ # @param string type Data type
775
+ # @param string value Value to be deserialized
776
+ # @return [Object] Deserialized data
777
+ def _deserialize(type, value)
778
+ case type.to_sym
779
+ when :Time
780
+ Time.parse(value)
781
+ when :Date
782
+ Date.parse(value)
783
+ when :String
784
+ value.to_s
785
+ when :Integer
786
+ value.to_i
787
+ when :Float
788
+ value.to_f
789
+ when :Boolean
790
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
791
+ true
792
+ else
793
+ false
794
+ end
795
+ when :Object
796
+ # generic object (usually a Hash), return directly
797
+ value
798
+ when /\AArray<(?<inner_type>.+)>\z/
799
+ inner_type = Regexp.last_match[:inner_type]
800
+ value.map { |v| _deserialize(inner_type, v) }
801
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
802
+ k_type = Regexp.last_match[:k_type]
803
+ v_type = Regexp.last_match[:v_type]
804
+ {}.tap do |hash|
805
+ value.each do |k, v|
806
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
807
+ end
808
+ end
809
+ else # model
810
+ # models (e.g. Pet) or oneOf
811
+ klass = UltracartClient.const_get(type)
812
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
813
+ end
814
+ end
815
+
816
+ # Returns the string representation of the object
817
+ # @return [String] String presentation of the object
818
+ def to_s
819
+ to_hash.to_s
820
+ end
821
+
822
+ # to_body is an alias to to_hash (backward compatibility)
823
+ # @return [Hash] Returns the object in the form of hash
824
+ def to_body
825
+ to_hash
826
+ end
827
+
828
+ # Returns the object in the form of hash
829
+ # @return [Hash] Returns the object in the form of hash
830
+ def to_hash
831
+ hash = {}
832
+ self.class.attribute_map.each_pair do |attr, param|
833
+ value = self.send(attr)
834
+ if value.nil?
835
+ is_nullable = self.class.openapi_nullable.include?(attr)
836
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
837
+ end
838
+
839
+ hash[param] = _to_hash(value)
840
+ end
841
+ hash
842
+ end
843
+
844
+ # Outputs non-array value in the form of hash
845
+ # For object, use to_hash. Otherwise, just return the value
846
+ # @param [Object] value Any valid value
847
+ # @return [Hash] Returns the value in the form of hash
848
+ def _to_hash(value)
849
+ if value.is_a?(Array)
850
+ value.compact.map { |v| _to_hash(v) }
851
+ elsif value.is_a?(Hash)
852
+ {}.tap do |hash|
853
+ value.each { |k, v| hash[k] = _to_hash(v) }
854
+ end
855
+ elsif value.respond_to? :to_hash
856
+ value.to_hash
857
+ else
858
+ value
859
+ end
860
+ end
861
+
862
+ end
863
+
864
+ end