newstore-apimatic-sdk 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (820) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +230 -0
  4. data/bin/console +15 -0
  5. data/lib/new_store_api/api_helper.rb +10 -0
  6. data/lib/new_store_api/client.rb +559 -0
  7. data/lib/new_store_api/configuration.rb +244 -0
  8. data/lib/new_store_api/controllers/address_completion_controller.rb +24 -0
  9. data/lib/new_store_api/controllers/address_controller.rb +131 -0
  10. data/lib/new_store_api/controllers/adyen_adapter_controller.rb +43 -0
  11. data/lib/new_store_api/controllers/associate_app_experiments_configuration_controller.rb +132 -0
  12. data/lib/new_store_api/controllers/audit_events_controller.rb +73 -0
  13. data/lib/new_store_api/controllers/base_controller.rb +60 -0
  14. data/lib/new_store_api/controllers/bookings_controller.rb +134 -0
  15. data/lib/new_store_api/controllers/cart_controller.rb +234 -0
  16. data/lib/new_store_api/controllers/cashboxes_controller.rb +137 -0
  17. data/lib/new_store_api/controllers/clients_controller.rb +110 -0
  18. data/lib/new_store_api/controllers/counting_controller.rb +134 -0
  19. data/lib/new_store_api/controllers/customer_configuration_controller.rb +47 -0
  20. data/lib/new_store_api/controllers/customer_profile_controller.rb +195 -0
  21. data/lib/new_store_api/controllers/data_controller.rb +61 -0
  22. data/lib/new_store_api/controllers/datasets_controller.rb +64 -0
  23. data/lib/new_store_api/controllers/device_notifications_controller.rb +38 -0
  24. data/lib/new_store_api/controllers/device_registrations_controller.rb +38 -0
  25. data/lib/new_store_api/controllers/device_subscriptions_controller.rb +84 -0
  26. data/lib/new_store_api/controllers/discounts_controller.rb +37 -0
  27. data/lib/new_store_api/controllers/easypost_adapter_config_controller.rb +74 -0
  28. data/lib/new_store_api/controllers/events_controller.rb +69 -0
  29. data/lib/new_store_api/controllers/extensions_controller.rb +144 -0
  30. data/lib/new_store_api/controllers/financial_document_controller.rb +161 -0
  31. data/lib/new_store_api/controllers/fiscal_providers_controller.rb +23 -0
  32. data/lib/new_store_api/controllers/fulfillment_requests_controller.rb +192 -0
  33. data/lib/new_store_api/controllers/fulfillment_tasks_controller.rb +46 -0
  34. data/lib/new_store_api/controllers/identity_providers_controller.rb +118 -0
  35. data/lib/new_store_api/controllers/import_schemas_controller.rb +145 -0
  36. data/lib/new_store_api/controllers/insights_controller.rb +85 -0
  37. data/lib/new_store_api/controllers/installations_controller.rb +60 -0
  38. data/lib/new_store_api/controllers/inventory_configuration_controller.rb +46 -0
  39. data/lib/new_store_api/controllers/jobs_controller.rb +224 -0
  40. data/lib/new_store_api/controllers/manifests_controller.rb +37 -0
  41. data/lib/new_store_api/controllers/notifications_controller.rb +50 -0
  42. data/lib/new_store_api/controllers/o_auth_authorization_controller.rb +42 -0
  43. data/lib/new_store_api/controllers/order_injection_config_controller.rb +80 -0
  44. data/lib/new_store_api/controllers/order_injection_controller.rb +125 -0
  45. data/lib/new_store_api/controllers/order_placement_controller.rb +48 -0
  46. data/lib/new_store_api/controllers/orders_controller.rb +128 -0
  47. data/lib/new_store_api/controllers/package_types_controller.rb +160 -0
  48. data/lib/new_store_api/controllers/payment_account_controller.rb +47 -0
  49. data/lib/new_store_api/controllers/payment_definitions_controller.rb +37 -0
  50. data/lib/new_store_api/controllers/payment_links_controller.rb +69 -0
  51. data/lib/new_store_api/controllers/phavda_notifications_controller.rb +58 -0
  52. data/lib/new_store_api/controllers/platform_event_callbacks_controller.rb +37 -0
  53. data/lib/new_store_api/controllers/platform_status_controller.rb +32 -0
  54. data/lib/new_store_api/controllers/pricebook_export_controller.rb +51 -0
  55. data/lib/new_store_api/controllers/product_export_controller.rb +123 -0
  56. data/lib/new_store_api/controllers/profiles_controller.rb +50 -0
  57. data/lib/new_store_api/controllers/provider_rates_controller.rb +119 -0
  58. data/lib/new_store_api/controllers/providers_controller.rb +235 -0
  59. data/lib/new_store_api/controllers/reason_codes_controller.rb +128 -0
  60. data/lib/new_store_api/controllers/reservations_controller.rb +266 -0
  61. data/lib/new_store_api/controllers/roles_controller.rb +149 -0
  62. data/lib/new_store_api/controllers/routing_config_controller.rb +345 -0
  63. data/lib/new_store_api/controllers/routing_controller.rb +58 -0
  64. data/lib/new_store_api/controllers/routing_ruleset_controller.rb +135 -0
  65. data/lib/new_store_api/controllers/sales_goals_management_controller.rb +51 -0
  66. data/lib/new_store_api/controllers/sales_orders_controller.rb +370 -0
  67. data/lib/new_store_api/controllers/segmentation_controller.rb +485 -0
  68. data/lib/new_store_api/controllers/settings_controller.rb +165 -0
  69. data/lib/new_store_api/controllers/shipment_configurations_controller.rb +136 -0
  70. data/lib/new_store_api/controllers/shipping_labels_controller.rb +30 -0
  71. data/lib/new_store_api/controllers/shipping_option_audits_controller.rb +54 -0
  72. data/lib/new_store_api/controllers/shipping_options_controller.rb +185 -0
  73. data/lib/new_store_api/controllers/shortings_controller.rb +48 -0
  74. data/lib/new_store_api/controllers/simulation_controller.rb +43 -0
  75. data/lib/new_store_api/controllers/stock_controller.rb +139 -0
  76. data/lib/new_store_api/controllers/store_reporting_config_controller.rb +61 -0
  77. data/lib/new_store_api/controllers/store_tax_configuration_controller.rb +129 -0
  78. data/lib/new_store_api/controllers/stores_controller.rb +137 -0
  79. data/lib/new_store_api/controllers/stripe_webhook_notifications_controller.rb +42 -0
  80. data/lib/new_store_api/controllers/support_users_controller.rb +63 -0
  81. data/lib/new_store_api/controllers/tax_definitions_controller.rb +40 -0
  82. data/lib/new_store_api/controllers/tax_quotations_controller.rb +43 -0
  83. data/lib/new_store_api/controllers/tax_transactions_controller.rb +131 -0
  84. data/lib/new_store_api/controllers/tenant_config_controller.rb +68 -0
  85. data/lib/new_store_api/controllers/tenant_tax_configuration_controller.rb +69 -0
  86. data/lib/new_store_api/controllers/token_operations_controller.rb +47 -0
  87. data/lib/new_store_api/controllers/tppe_controller.rb +51 -0
  88. data/lib/new_store_api/controllers/transferring_controller.rb +37 -0
  89. data/lib/new_store_api/controllers/users_controller.rb +224 -0
  90. data/lib/new_store_api/exceptions/api_exception.rb +21 -0
  91. data/lib/new_store_api/exceptions/o_auth_provider_exception.rb +64 -0
  92. data/lib/new_store_api/http/auth/o_auth2.rb +157 -0
  93. data/lib/new_store_api/http/http_call_back.rb +10 -0
  94. data/lib/new_store_api/http/http_method_enum.rb +10 -0
  95. data/lib/new_store_api/http/http_request.rb +10 -0
  96. data/lib/new_store_api/http/http_response.rb +10 -0
  97. data/lib/new_store_api/http/proxy_settings.rb +22 -0
  98. data/lib/new_store_api/models/accept_enum.rb +26 -0
  99. data/lib/new_store_api/models/action_enum.rb +36 -0
  100. data/lib/new_store_api/models/actor.rb +134 -0
  101. data/lib/new_store_api/models/adapter_enum.rb +36 -0
  102. data/lib/new_store_api/models/adapter_http_timeout.rb +74 -0
  103. data/lib/new_store_api/models/add_item_item_price.rb +71 -0
  104. data/lib/new_store_api/models/add_item_request_body.rb +133 -0
  105. data/lib/new_store_api/models/add_item_response_body.rb +71 -0
  106. data/lib/new_store_api/models/add_on_links.rb +81 -0
  107. data/lib/new_store_api/models/add_on_resource.rb +137 -0
  108. data/lib/new_store_api/models/add_replace_or_test.rb +102 -0
  109. data/lib/new_store_api/models/address.rb +149 -0
  110. data/lib/new_store_api/models/address1.rb +204 -0
  111. data/lib/new_store_api/models/address_data_ie_v1_dto.rb +116 -0
  112. data/lib/new_store_api/models/address_data_no_v1_dto.rb +141 -0
  113. data/lib/new_store_api/models/address_model.rb +150 -0
  114. data/lib/new_store_api/models/address_response.rb +189 -0
  115. data/lib/new_store_api/models/adjustment.rb +60 -0
  116. data/lib/new_store_api/models/allocation.rb +85 -0
  117. data/lib/new_store_api/models/amount.rb +69 -0
  118. data/lib/new_store_api/models/application_enum.rb +40 -0
  119. data/lib/new_store_api/models/atp_insights_response.rb +135 -0
  120. data/lib/new_store_api/models/atp_key.rb +70 -0
  121. data/lib/new_store_api/models/audit_event.rb +164 -0
  122. data/lib/new_store_api/models/audit_event_list.rb +80 -0
  123. data/lib/new_store_api/models/audit_event_read_only.rb +95 -0
  124. data/lib/new_store_api/models/audit_operation_enum.rb +40 -0
  125. data/lib/new_store_api/models/audit_read_only.rb +133 -0
  126. data/lib/new_store_api/models/audit_response.rb +60 -0
  127. data/lib/new_store_api/models/audits_response.rb +77 -0
  128. data/lib/new_store_api/models/automatic_rerouting_settings.rb +83 -0
  129. data/lib/new_store_api/models/availability_row.rb +79 -0
  130. data/lib/new_store_api/models/avalara_config_create_dto.rb +126 -0
  131. data/lib/new_store_api/models/avalara_config_dto.rb +156 -0
  132. data/lib/new_store_api/models/avalara_config_update_dto.rb +130 -0
  133. data/lib/new_store_api/models/avalara_env_enum.rb +36 -0
  134. data/lib/new_store_api/models/avalara_exemption_class_item_create_dto.rb +111 -0
  135. data/lib/new_store_api/models/avalara_exemption_class_item_dto.rb +137 -0
  136. data/lib/new_store_api/models/avalara_exemption_class_item_update_dto.rb +111 -0
  137. data/lib/new_store_api/models/axena_activation_data_v1_dto.rb +97 -0
  138. data/lib/new_store_api/models/base_model.rb +110 -0
  139. data/lib/new_store_api/models/billing_address.rb +62 -0
  140. data/lib/new_store_api/models/body.rb +62 -0
  141. data/lib/new_store_api/models/booking_product.rb +211 -0
  142. data/lib/new_store_api/models/booking_product_customs.rb +107 -0
  143. data/lib/new_store_api/models/booking_response_cost.rb +68 -0
  144. data/lib/new_store_api/models/bulk_profile_lookup_response.rb +68 -0
  145. data/lib/new_store_api/models/byo_crm_config_request.rb +85 -0
  146. data/lib/new_store_api/models/byo_crm_config_response.rb +80 -0
  147. data/lib/new_store_api/models/calculation_mode_enum.rb +42 -0
  148. data/lib/new_store_api/models/canceled.rb +91 -0
  149. data/lib/new_store_api/models/cancellation_policy_settings.rb +82 -0
  150. data/lib/new_store_api/models/cancellation_policy_settings_reasons_enum.rb +53 -0
  151. data/lib/new_store_api/models/cancellation_policy_settings_value.rb +79 -0
  152. data/lib/new_store_api/models/capacity_based_routing_settings.rb +82 -0
  153. data/lib/new_store_api/models/card_details.rb +150 -0
  154. data/lib/new_store_api/models/card_payment.rb +184 -0
  155. data/lib/new_store_api/models/carriers_config.rb +80 -0
  156. data/lib/new_store_api/models/carriers_config_carrier.rb +117 -0
  157. data/lib/new_store_api/models/cart.rb +158 -0
  158. data/lib/new_store_api/models/cart_discount.rb +107 -0
  159. data/lib/new_store_api/models/cart_links.rb +90 -0
  160. data/lib/new_store_api/models/cart_list_item.rb +68 -0
  161. data/lib/new_store_api/models/cart_resource.rb +172 -0
  162. data/lib/new_store_api/models/cash_denomination_dto.rb +85 -0
  163. data/lib/new_store_api/models/cash_denominations_response_dto.rb +95 -0
  164. data/lib/new_store_api/models/cash_details.rb +74 -0
  165. data/lib/new_store_api/models/cash_payment.rb +179 -0
  166. data/lib/new_store_api/models/cashbox_config_axena_se_v1_dto.rb +283 -0
  167. data/lib/new_store_api/models/cashbox_config_efsta_pt_v1_dto.rb +131 -0
  168. data/lib/new_store_api/models/cashbox_config_epson_it_v1_dto.rb +114 -0
  169. data/lib/new_store_api/models/cashbox_config_fiskaltrust_at_v1_dto.rb +91 -0
  170. data/lib/new_store_api/models/cashbox_config_fiskaltrust_de_v1_dto.rb +91 -0
  171. data/lib/new_store_api/models/cashbox_config_fiskaltrust_fr_v1_dto.rb +136 -0
  172. data/lib/new_store_api/models/cashbox_config_new_store_be_v1_dto.rb +107 -0
  173. data/lib/new_store_api/models/cashbox_config_new_store_es_v1_dto.rb +75 -0
  174. data/lib/new_store_api/models/cashbox_config_new_store_in_v1_dto.rb +81 -0
  175. data/lib/new_store_api/models/cashbox_config_new_store_th_v1_dto.rb +81 -0
  176. data/lib/new_store_api/models/cashbox_config_newstore_ie_v1_dto.rb +123 -0
  177. data/lib/new_store_api/models/cashbox_config_newstore_no_v1_dto.rb +145 -0
  178. data/lib/new_store_api/models/cashbox_config_posnet_pl_v1_dto.rb +114 -0
  179. data/lib/new_store_api/models/cashbox_config_ycs_pr_v1_dto.rb +94 -0
  180. data/lib/new_store_api/models/cashbox_create_v1_dto.rb +94 -0
  181. data/lib/new_store_api/models/cashbox_created_v1_dto.rb +196 -0
  182. data/lib/new_store_api/models/cashbox_get_v1_dto.rb +202 -0
  183. data/lib/new_store_api/models/cashbox_list_v1_dto.rb +69 -0
  184. data/lib/new_store_api/models/cashbox_release_v1_dto.rb +67 -0
  185. data/lib/new_store_api/models/cashbox_state_enum.rb +36 -0
  186. data/lib/new_store_api/models/cashbox_v1_dto.rb +185 -0
  187. data/lib/new_store_api/models/catalog.rb +68 -0
  188. data/lib/new_store_api/models/category_enum.rb +36 -0
  189. data/lib/new_store_api/models/change_cart_request_body.rb +62 -0
  190. data/lib/new_store_api/models/change_item_request_body.rb +92 -0
  191. data/lib/new_store_api/models/change_item_response_body.rb +71 -0
  192. data/lib/new_store_api/models/changes_response_body.rb +62 -0
  193. data/lib/new_store_api/models/channel.rb +70 -0
  194. data/lib/new_store_api/models/channel1.rb +94 -0
  195. data/lib/new_store_api/models/channel_type1_enum.rb +40 -0
  196. data/lib/new_store_api/models/channel_type_enum.rb +26 -0
  197. data/lib/new_store_api/models/checkout_financial_documents_exchange_receipts_request.rb +83 -0
  198. data/lib/new_store_api/models/checkout_financial_documents_sales_receipts_request.rb +62 -0
  199. data/lib/new_store_api/models/code_enum.rb +52 -0
  200. data/lib/new_store_api/models/combine_enum.rb +36 -0
  201. data/lib/new_store_api/models/complete_zone_request.rb +60 -0
  202. data/lib/new_store_api/models/completion_response.rb +63 -0
  203. data/lib/new_store_api/models/condition.rb +103 -0
  204. data/lib/new_store_api/models/conditions.rb +87 -0
  205. data/lib/new_store_api/models/config.rb +113 -0
  206. data/lib/new_store_api/models/config_dto.rb +192 -0
  207. data/lib/new_store_api/models/config_model.rb +242 -0
  208. data/lib/new_store_api/models/config_model_response.rb +262 -0
  209. data/lib/new_store_api/models/configuration_feature_flags.rb +73 -0
  210. data/lib/new_store_api/models/configuration_name_enum.rb +64 -0
  211. data/lib/new_store_api/models/configuration_request.rb +94 -0
  212. data/lib/new_store_api/models/configuration_response.rb +84 -0
  213. data/lib/new_store_api/models/context_v1_dto.rb +113 -0
  214. data/lib/new_store_api/models/correlation.rb +87 -0
  215. data/lib/new_store_api/models/count_task_line_item_response.rb +95 -0
  216. data/lib/new_store_api/models/country_code_enum.rb +1025 -0
  217. data/lib/new_store_api/models/create_cart_request_body.rb +124 -0
  218. data/lib/new_store_api/models/create_data_request.rb +79 -0
  219. data/lib/new_store_api/models/create_data_response.rb +60 -0
  220. data/lib/new_store_api/models/create_identity_provider_request.rb +116 -0
  221. data/lib/new_store_api/models/create_import_request.rb +75 -0
  222. data/lib/new_store_api/models/create_job_request.rb +167 -0
  223. data/lib/new_store_api/models/create_oidc_identity_provider_config.rb +104 -0
  224. data/lib/new_store_api/models/create_package_tracking_custom_adapter.rb +125 -0
  225. data/lib/new_store_api/models/create_package_tracking_easypost_adapter.rb +75 -0
  226. data/lib/new_store_api/models/create_package_type_request.rb +79 -0
  227. data/lib/new_store_api/models/create_payment_link_request.rb +105 -0
  228. data/lib/new_store_api/models/create_profile_request.rb +141 -0
  229. data/lib/new_store_api/models/create_reservation_request_v1.rb +132 -0
  230. data/lib/new_store_api/models/create_saml_identity_provider_config.rb +74 -0
  231. data/lib/new_store_api/models/create_session_token_request.rb +64 -0
  232. data/lib/new_store_api/models/create_tag_request.rb +94 -0
  233. data/lib/new_store_api/models/currency1_enum.rb +756 -0
  234. data/lib/new_store_api/models/currency2_enum.rb +744 -0
  235. data/lib/new_store_api/models/currency3_enum.rb +676 -0
  236. data/lib/new_store_api/models/currency_enum.rb +752 -0
  237. data/lib/new_store_api/models/current.rb +72 -0
  238. data/lib/new_store_api/models/custom_api_version_enum.rb +36 -0
  239. data/lib/new_store_api/models/custom_config_additional_create_dto.rb +65 -0
  240. data/lib/new_store_api/models/custom_config_additional_dto.rb +75 -0
  241. data/lib/new_store_api/models/custom_config_additional_update_dto.rb +65 -0
  242. data/lib/new_store_api/models/custom_config_authentication_dto.rb +103 -0
  243. data/lib/new_store_api/models/custom_config_authentication_method_enum.rb +26 -0
  244. data/lib/new_store_api/models/custom_config_create_dto.rb +121 -0
  245. data/lib/new_store_api/models/custom_config_dto.rb +137 -0
  246. data/lib/new_store_api/models/custom_config_update_dto.rb +122 -0
  247. data/lib/new_store_api/models/custom_v0_avalara_config_create_dto.rb +91 -0
  248. data/lib/new_store_api/models/custom_v0_avalara_config_dto.rb +121 -0
  249. data/lib/new_store_api/models/custom_v0_avalara_config_update_dto.rb +96 -0
  250. data/lib/new_store_api/models/customer.rb +72 -0
  251. data/lib/new_store_api/models/customer1.rb +92 -0
  252. data/lib/new_store_api/models/customization_adapter_config.rb +76 -0
  253. data/lib/new_store_api/models/customization_adapter_config_value.rb +74 -0
  254. data/lib/new_store_api/models/data.rb +70 -0
  255. data/lib/new_store_api/models/delivery_destination.rb +85 -0
  256. data/lib/new_store_api/models/destination_region.rb +74 -0
  257. data/lib/new_store_api/models/destination_region1.rb +84 -0
  258. data/lib/new_store_api/models/dimension_unit_enum.rb +48 -0
  259. data/lib/new_store_api/models/discount.rb +136 -0
  260. data/lib/new_store_api/models/download_response.rb +61 -0
  261. data/lib/new_store_api/models/easypost_adapter_config.rb +159 -0
  262. data/lib/new_store_api/models/enriched_quotation_item_dto.rb +264 -0
  263. data/lib/new_store_api/models/enriched_quotation_tax_rate_dto.rb +123 -0
  264. data/lib/new_store_api/models/enriched_transaction_address_dto.rb +134 -0
  265. data/lib/new_store_api/models/enriched_transaction_dto.rb +188 -0
  266. data/lib/new_store_api/models/enriched_transaction_item_dto.rb +261 -0
  267. data/lib/new_store_api/models/environment_enum.rb +36 -0
  268. data/lib/new_store_api/models/epc_body.rb +78 -0
  269. data/lib/new_store_api/models/epson_printer_model_enum.rb +36 -0
  270. data/lib/new_store_api/models/error.rb +79 -0
  271. data/lib/new_store_api/models/event_captured_dto.rb +60 -0
  272. data/lib/new_store_api/models/event_name1_enum.rb +36 -0
  273. data/lib/new_store_api/models/event_name_enum.rb +37 -0
  274. data/lib/new_store_api/models/excluded_product.rb +71 -0
  275. data/lib/new_store_api/models/exemption_class_enum.rb +87 -0
  276. data/lib/new_store_api/models/exemption_class_item_create_dto.rb +115 -0
  277. data/lib/new_store_api/models/exemption_class_item_dto.rb +115 -0
  278. data/lib/new_store_api/models/exemption_class_item_extended_dto.rb +104 -0
  279. data/lib/new_store_api/models/exemption_class_item_update_dto.rb +93 -0
  280. data/lib/new_store_api/models/exemption_class_mapping_it_v1_dto.rb +97 -0
  281. data/lib/new_store_api/models/exemption_code_it_enum.rb +52 -0
  282. data/lib/new_store_api/models/experiment.rb +79 -0
  283. data/lib/new_store_api/models/ext_attr_resource.rb +90 -0
  284. data/lib/new_store_api/models/extend_order_s_grace_period_timer.rb +72 -0
  285. data/lib/new_store_api/models/extended_attribute.rb +69 -0
  286. data/lib/new_store_api/models/extended_attribute_model.rb +68 -0
  287. data/lib/new_store_api/models/external_atp_settings.rb +83 -0
  288. data/lib/new_store_api/models/external_fulfillment_settings_request.rb +63 -0
  289. data/lib/new_store_api/models/external_fulfillment_settings_response.rb +74 -0
  290. data/lib/new_store_api/models/external_identifiers.rb +75 -0
  291. data/lib/new_store_api/models/external_identifiers1.rb +83 -0
  292. data/lib/new_store_api/models/external_token_response.rb +63 -0
  293. data/lib/new_store_api/models/f11n_tax_method_enum.rb +36 -0
  294. data/lib/new_store_api/models/f11n_transaction_type_enum.rb +92 -0
  295. data/lib/new_store_api/models/f11n_warning_code_enum.rb +44 -0
  296. data/lib/new_store_api/models/failed.rb +68 -0
  297. data/lib/new_store_api/models/fallback_error_dto.rb +79 -0
  298. data/lib/new_store_api/models/feature_enum.rb +36 -0
  299. data/lib/new_store_api/models/fiscal_countries_dto.rb +60 -0
  300. data/lib/new_store_api/models/fiscal_environment_enum.rb +36 -0
  301. data/lib/new_store_api/models/fiscal_mode_enum.rb +36 -0
  302. data/lib/new_store_api/models/fiscal_printer_error_state_enum.rb +212 -0
  303. data/lib/new_store_api/models/fiscal_provider_id_enum.rb +88 -0
  304. data/lib/new_store_api/models/fiscal_receipt_result_v1_dto.rb +98 -0
  305. data/lib/new_store_api/models/fixed_discount.rb +173 -0
  306. data/lib/new_store_api/models/fixed_rate_config_create_dto.rb +105 -0
  307. data/lib/new_store_api/models/fixed_rate_config_dto.rb +105 -0
  308. data/lib/new_store_api/models/fixed_rate_config_update_dto.rb +92 -0
  309. data/lib/new_store_api/models/format_enum.rb +36 -0
  310. data/lib/new_store_api/models/ft_at_signature_format_enum.rb +84 -0
  311. data/lib/new_store_api/models/ft_at_signature_type_enum.rb +44 -0
  312. data/lib/new_store_api/models/ft_at_state_enum.rb +64 -0
  313. data/lib/new_store_api/models/ft_de_signature_format_enum.rb +84 -0
  314. data/lib/new_store_api/models/ft_de_signature_type_enum.rb +136 -0
  315. data/lib/new_store_api/models/ft_de_state_enum.rb +52 -0
  316. data/lib/new_store_api/models/ft_fr_signature_format_enum.rb +84 -0
  317. data/lib/new_store_api/models/ft_fr_signature_type_enum.rb +60 -0
  318. data/lib/new_store_api/models/ft_fr_state_enum.rb +64 -0
  319. data/lib/new_store_api/models/fulfillment1.rb +75 -0
  320. data/lib/new_store_api/models/fulfillment_assignment.rb +109 -0
  321. data/lib/new_store_api/models/fulfillment_config_destination_region.rb +70 -0
  322. data/lib/new_store_api/models/fulfillment_config_get_routing_rules_section_sample_response.rb +87 -0
  323. data/lib/new_store_api/models/fulfillment_config_get_routing_rules_section_sample_response1.rb +76 -0
  324. data/lib/new_store_api/models/fulfillment_config_get_routing_rules_section_sample_response2.rb +75 -0
  325. data/lib/new_store_api/models/fulfillment_config_get_routing_rules_section_sample_response3.rb +76 -0
  326. data/lib/new_store_api/models/fulfillment_config_route.rb +73 -0
  327. data/lib/new_store_api/models/fulfillment_config_routing_rules.rb +116 -0
  328. data/lib/new_store_api/models/fulfillment_config_v2_body.rb +61 -0
  329. data/lib/new_store_api/models/fulfillment_enum.rb +36 -0
  330. data/lib/new_store_api/models/fulfillment_node_assignment.rb +103 -0
  331. data/lib/new_store_api/models/fulfillment_node_customs_info.rb +80 -0
  332. data/lib/new_store_api/models/fulfillment_node_customs_info_value.rb +75 -0
  333. data/lib/new_store_api/models/fulfillment_option.rb +83 -0
  334. data/lib/new_store_api/models/fulfillment_request.rb +133 -0
  335. data/lib/new_store_api/models/fulfillment_request1.rb +131 -0
  336. data/lib/new_store_api/models/fulfillment_request_items_states_request.rb +131 -0
  337. data/lib/new_store_api/models/fulfillment_request_line_item.rb +139 -0
  338. data/lib/new_store_api/models/fulfillment_task_document.rb +81 -0
  339. data/lib/new_store_api/models/fulfillment_task_item_external_identier.rb +68 -0
  340. data/lib/new_store_api/models/fulfillment_task_item_model.rb +179 -0
  341. data/lib/new_store_api/models/fulfillment_task_model.rb +287 -0
  342. data/lib/new_store_api/models/future_allocation.rb +85 -0
  343. data/lib/new_store_api/models/generate_static_option_for_dc.rb +74 -0
  344. data/lib/new_store_api/models/get_client_response.rb +90 -0
  345. data/lib/new_store_api/models/get_clients_response.rb +71 -0
  346. data/lib/new_store_api/models/get_config_response.rb +78 -0
  347. data/lib/new_store_api/models/get_notifications_response.rb +62 -0
  348. data/lib/new_store_api/models/get_permissions_response.rb +71 -0
  349. data/lib/new_store_api/models/get_response.rb +77 -0
  350. data/lib/new_store_api/models/get_return_receipt_request.rb +81 -0
  351. data/lib/new_store_api/models/get_roles_response.rb +71 -0
  352. data/lib/new_store_api/models/get_scopes_response.rb +80 -0
  353. data/lib/new_store_api/models/get_shortings_model.rb +77 -0
  354. data/lib/new_store_api/models/get_task_model.rb +69 -0
  355. data/lib/new_store_api/models/get_transfer_transaction_response.rb +140 -0
  356. data/lib/new_store_api/models/get_userinfo_response.rb +121 -0
  357. data/lib/new_store_api/models/get_users_by_role_response.rb +71 -0
  358. data/lib/new_store_api/models/get_users_response.rb +82 -0
  359. data/lib/new_store_api/models/gift_wrapping.rb +128 -0
  360. data/lib/new_store_api/models/gift_wrapping1.rb +116 -0
  361. data/lib/new_store_api/models/historical_order_shipment.rb +133 -0
  362. data/lib/new_store_api/models/historical_shipping_option.rb +226 -0
  363. data/lib/new_store_api/models/http_response_body.rb +71 -0
  364. data/lib/new_store_api/models/identity_provider_config.rb +102 -0
  365. data/lib/new_store_api/models/identity_provider_protocol_enum.rb +36 -0
  366. data/lib/new_store_api/models/identity_provider_response.rb +101 -0
  367. data/lib/new_store_api/models/identity_provider_vendor_enum.rb +40 -0
  368. data/lib/new_store_api/models/identity_providers_response.rb +71 -0
  369. data/lib/new_store_api/models/import_entity_enum.rb +26 -0
  370. data/lib/new_store_api/models/import_response.rb +130 -0
  371. data/lib/new_store_api/models/import_schema_created.rb +76 -0
  372. data/lib/new_store_api/models/import_schema_get.rb +83 -0
  373. data/lib/new_store_api/models/import_tag_response.rb +143 -0
  374. data/lib/new_store_api/models/initial_reservation_status_enum.rb +37 -0
  375. data/lib/new_store_api/models/injected_order_address.rb +193 -0
  376. data/lib/new_store_api/models/injected_order_discount_info.rb +141 -0
  377. data/lib/new_store_api/models/injected_order_discount_info1.rb +141 -0
  378. data/lib/new_store_api/models/injected_order_extended_attribute.rb +91 -0
  379. data/lib/new_store_api/models/injected_order_item_ids.rb +79 -0
  380. data/lib/new_store_api/models/injected_order_item_tax_line.rb +115 -0
  381. data/lib/new_store_api/models/injected_order_payment.rb +187 -0
  382. data/lib/new_store_api/models/injected_order_request.rb +402 -0
  383. data/lib/new_store_api/models/injected_order_response.rb +86 -0
  384. data/lib/new_store_api/models/injected_order_routing_strategy.rb +75 -0
  385. data/lib/new_store_api/models/injected_order_routing_strategy1.rb +94 -0
  386. data/lib/new_store_api/models/injected_order_routing_strategy2.rb +93 -0
  387. data/lib/new_store_api/models/injected_order_shipment.rb +105 -0
  388. data/lib/new_store_api/models/injected_order_shipment_item.rb +169 -0
  389. data/lib/new_store_api/models/injected_order_shipment_item_price.rb +169 -0
  390. data/lib/new_store_api/models/injected_order_shipping_option.rb +139 -0
  391. data/lib/new_store_api/models/injected_order_shipping_option1.rb +136 -0
  392. data/lib/new_store_api/models/insights_activities_schema_response.rb +71 -0
  393. data/lib/new_store_api/models/insights_config_response.rb +71 -0
  394. data/lib/new_store_api/models/integration_config.rb +77 -0
  395. data/lib/new_store_api/models/item1.rb +150 -0
  396. data/lib/new_store_api/models/item11.rb +71 -0
  397. data/lib/new_store_api/models/item12.rb +238 -0
  398. data/lib/new_store_api/models/item21.rb +91 -0
  399. data/lib/new_store_api/models/item211.rb +104 -0
  400. data/lib/new_store_api/models/item22.rb +105 -0
  401. data/lib/new_store_api/models/item3.rb +88 -0
  402. data/lib/new_store_api/models/item31.rb +74 -0
  403. data/lib/new_store_api/models/item4.rb +115 -0
  404. data/lib/new_store_api/models/item41.rb +104 -0
  405. data/lib/new_store_api/models/item5.rb +79 -0
  406. data/lib/new_store_api/models/item6.rb +79 -0
  407. data/lib/new_store_api/models/item7.rb +115 -0
  408. data/lib/new_store_api/models/item8.rb +106 -0
  409. data/lib/new_store_api/models/item9.rb +161 -0
  410. data/lib/new_store_api/models/item_discount.rb +97 -0
  411. data/lib/new_store_api/models/item_links.rb +100 -0
  412. data/lib/new_store_api/models/item_price.rb +68 -0
  413. data/lib/new_store_api/models/item_resource.rb +176 -0
  414. data/lib/new_store_api/models/item_type_enum.rb +44 -0
  415. data/lib/new_store_api/models/job_download_response.rb +97 -0
  416. data/lib/new_store_api/models/job_id_response.rb +97 -0
  417. data/lib/new_store_api/models/job_list_response.rb +77 -0
  418. data/lib/new_store_api/models/job_response.rb +175 -0
  419. data/lib/new_store_api/models/level_enum.rb +37 -0
  420. data/lib/new_store_api/models/limit_exceeded_when.rb +72 -0
  421. data/lib/new_store_api/models/line_item.rb +73 -0
  422. data/lib/new_store_api/models/line_item11.rb +91 -0
  423. data/lib/new_store_api/models/line_item2.rb +141 -0
  424. data/lib/new_store_api/models/line_item21.rb +122 -0
  425. data/lib/new_store_api/models/line_item3.rb +71 -0
  426. data/lib/new_store_api/models/line_item_price.rb +180 -0
  427. data/lib/new_store_api/models/link.rb +70 -0
  428. data/lib/new_store_api/models/list_addresses_response.rb +79 -0
  429. data/lib/new_store_api/models/list_count_task_line_items_response.rb +77 -0
  430. data/lib/new_store_api/models/list_import_tags.rb +80 -0
  431. data/lib/new_store_api/models/list_imports_response.rb +69 -0
  432. data/lib/new_store_api/models/list_product_zones_response.rb +69 -0
  433. data/lib/new_store_api/models/list_profiles_response.rb +79 -0
  434. data/lib/new_store_api/models/list_reservations_response_v1.rb +78 -0
  435. data/lib/new_store_api/models/list_reservations_response_v2.rb +78 -0
  436. data/lib/new_store_api/models/list_response.rb +69 -0
  437. data/lib/new_store_api/models/list_tag_profiles_response.rb +72 -0
  438. data/lib/new_store_api/models/list_tags_response.rb +80 -0
  439. data/lib/new_store_api/models/list_zones_response.rb +77 -0
  440. data/lib/new_store_api/models/localization.rb +68 -0
  441. data/lib/new_store_api/models/localized_reason_code.rb +77 -0
  442. data/lib/new_store_api/models/location_mapping.rb +80 -0
  443. data/lib/new_store_api/models/location_mapping_body.rb +93 -0
  444. data/lib/new_store_api/models/location_mappings_response.rb +63 -0
  445. data/lib/new_store_api/models/meta.rb +64 -0
  446. data/lib/new_store_api/models/meta_data.rb +62 -0
  447. data/lib/new_store_api/models/move_or_copy.rb +102 -0
  448. data/lib/new_store_api/models/not_routed_item_response.rb +68 -0
  449. data/lib/new_store_api/models/notification.rb +89 -0
  450. data/lib/new_store_api/models/notification_request.rb +84 -0
  451. data/lib/new_store_api/models/notification_response.rb +63 -0
  452. data/lib/new_store_api/models/o_auth_provider_error_enum.rb +62 -0
  453. data/lib/new_store_api/models/o_auth_scope_enum.rb +288 -0
  454. data/lib/new_store_api/models/o_auth_token.rb +96 -0
  455. data/lib/new_store_api/models/offline_countries_config_metadata_v1_dto.rb +162 -0
  456. data/lib/new_store_api/models/offline_countries_config_update_v1_dto.rb +157 -0
  457. data/lib/new_store_api/models/offline_countries_config_v1_dto.rb +162 -0
  458. data/lib/new_store_api/models/offline_countries_response_v1_dto.rb +61 -0
  459. data/lib/new_store_api/models/offline_countries_update_request_v1_dto.rb +61 -0
  460. data/lib/new_store_api/models/offline_country_config_metadata_v1_dto.rb +93 -0
  461. data/lib/new_store_api/models/offline_country_config_v1_dto.rb +68 -0
  462. data/lib/new_store_api/models/op1_enum.rb +36 -0
  463. data/lib/new_store_api/models/op_enum.rb +40 -0
  464. data/lib/new_store_api/models/operation1_enum.rb +36 -0
  465. data/lib/new_store_api/models/operation_enum.rb +36 -0
  466. data/lib/new_store_api/models/operation_error.rb +68 -0
  467. data/lib/new_store_api/models/operation_response.rb +125 -0
  468. data/lib/new_store_api/models/operation_status_enum.rb +48 -0
  469. data/lib/new_store_api/models/operation_tags_request.rb +60 -0
  470. data/lib/new_store_api/models/operator_enum.rb +60 -0
  471. data/lib/new_store_api/models/opt_in_state_enum.rb +40 -0
  472. data/lib/new_store_api/models/opted_in.rb +77 -0
  473. data/lib/new_store_api/models/option_product_customs.rb +107 -0
  474. data/lib/new_store_api/models/order_by1_enum.rb +44 -0
  475. data/lib/new_store_api/models/order_by_enum.rb +36 -0
  476. data/lib/new_store_api/models/order_completed_dto.rb +117 -0
  477. data/lib/new_store_api/models/order_conflict_resolution_request.rb +96 -0
  478. data/lib/new_store_api/models/order_conflict_resolution_response.rb +125 -0
  479. data/lib/new_store_api/models/order_fulfillment_requests_response.rb +70 -0
  480. data/lib/new_store_api/models/order_injection_configuration_big_sales_order.rb +66 -0
  481. data/lib/new_store_api/models/order_injection_configuration_response.rb +101 -0
  482. data/lib/new_store_api/models/order_injection_tenant_configuration.rb +83 -0
  483. data/lib/new_store_api/models/order_management_state_enum.rb +36 -0
  484. data/lib/new_store_api/models/order_request.rb +208 -0
  485. data/lib/new_store_api/models/order_response.rb +101 -0
  486. data/lib/new_store_api/models/origin.rb +72 -0
  487. data/lib/new_store_api/models/original.rb +72 -0
  488. data/lib/new_store_api/models/package_dimensions.rb +85 -0
  489. data/lib/new_store_api/models/package_option.rb +72 -0
  490. data/lib/new_store_api/models/package_option_dimensions.rb +85 -0
  491. data/lib/new_store_api/models/package_option_weight.rb +68 -0
  492. data/lib/new_store_api/models/package_tracking.rb +104 -0
  493. data/lib/new_store_api/models/package_type_response.rb +87 -0
  494. data/lib/new_store_api/models/package_types_response.rb +69 -0
  495. data/lib/new_store_api/models/package_weight.rb +68 -0
  496. data/lib/new_store_api/models/packing_time_duration.rb +74 -0
  497. data/lib/new_store_api/models/paginated_response.rb +77 -0
  498. data/lib/new_store_api/models/pagination_info.rb +77 -0
  499. data/lib/new_store_api/models/patch_import_request.rb +63 -0
  500. data/lib/new_store_api/models/payment.rb +77 -0
  501. data/lib/new_store_api/models/payment1.rb +87 -0
  502. data/lib/new_store_api/models/payment_link_get_response.rb +90 -0
  503. data/lib/new_store_api/models/payment_link_request.rb +101 -0
  504. data/lib/new_store_api/models/payment_link_response.rb +81 -0
  505. data/lib/new_store_api/models/payment_status_enum.rb +36 -0
  506. data/lib/new_store_api/models/percentage_discount.rb +169 -0
  507. data/lib/new_store_api/models/period_type_enum.rb +48 -0
  508. data/lib/new_store_api/models/permalink_response.rb +72 -0
  509. data/lib/new_store_api/models/permission.rb +88 -0
  510. data/lib/new_store_api/models/platform_event_dto.rb +125 -0
  511. data/lib/new_store_api/models/platform_status_enum.rb +44 -0
  512. data/lib/new_store_api/models/platform_status_response.rb +62 -0
  513. data/lib/new_store_api/models/posnet_online_command_log_v1_dto.rb +135 -0
  514. data/lib/new_store_api/models/posnet_online_counters_v1_dto.rb +166 -0
  515. data/lib/new_store_api/models/posnet_online_printer_model_enum.rb +44 -0
  516. data/lib/new_store_api/models/post_charge_request.rb +71 -0
  517. data/lib/new_store_api/models/post_charge_response.rb +62 -0
  518. data/lib/new_store_api/models/post_client_request.rb +90 -0
  519. data/lib/new_store_api/models/post_client_response.rb +86 -0
  520. data/lib/new_store_api/models/post_roles_request.rb +77 -0
  521. data/lib/new_store_api/models/post_support_users_request.rb +90 -0
  522. data/lib/new_store_api/models/post_users_request.rb +123 -0
  523. data/lib/new_store_api/models/presigned_url_request.rb +60 -0
  524. data/lib/new_store_api/models/presigned_url_response.rb +60 -0
  525. data/lib/new_store_api/models/price1.rb +87 -0
  526. data/lib/new_store_api/models/price_override.rb +88 -0
  527. data/lib/new_store_api/models/pricing.rb +83 -0
  528. data/lib/new_store_api/models/pricing_method_enum.rb +36 -0
  529. data/lib/new_store_api/models/problem.rb +161 -0
  530. data/lib/new_store_api/models/processor_metadata.rb +75 -0
  531. data/lib/new_store_api/models/product.rb +215 -0
  532. data/lib/new_store_api/models/product1.rb +274 -0
  533. data/lib/new_store_api/models/product_attributes.rb +116 -0
  534. data/lib/new_store_api/models/profile.rb +107 -0
  535. data/lib/new_store_api/models/profile_deleted.rb +79 -0
  536. data/lib/new_store_api/models/profile_deletion_request.rb +60 -0
  537. data/lib/new_store_api/models/profile_response.rb +176 -0
  538. data/lib/new_store_api/models/profiles.rb +77 -0
  539. data/lib/new_store_api/models/provider.rb +71 -0
  540. data/lib/new_store_api/models/provider1_enum.rb +36 -0
  541. data/lib/new_store_api/models/provider_rate_schema.rb +135 -0
  542. data/lib/new_store_api/models/provider_rate_shipping_type_enum.rb +40 -0
  543. data/lib/new_store_api/models/put_roles_by_id_request.rb +77 -0
  544. data/lib/new_store_api/models/put_routing_ruleset_response.rb +75 -0
  545. data/lib/new_store_api/models/put_routing_ruleset_response1.rb +75 -0
  546. data/lib/new_store_api/models/put_users_by_id_request.rb +105 -0
  547. data/lib/new_store_api/models/quotation_dto.rb +160 -0
  548. data/lib/new_store_api/models/quotation_item_dto.rb +264 -0
  549. data/lib/new_store_api/models/quotation_result_dto.rb +152 -0
  550. data/lib/new_store_api/models/quotation_tax_rate_dto.rb +117 -0
  551. data/lib/new_store_api/models/quotation_totals_dto.rb +154 -0
  552. data/lib/new_store_api/models/reason_code_init.rb +68 -0
  553. data/lib/new_store_api/models/reason_code_patch.rb +60 -0
  554. data/lib/new_store_api/models/reason_enum.rb +41 -0
  555. data/lib/new_store_api/models/reason_type_enum.rb +37 -0
  556. data/lib/new_store_api/models/recipients.rb +82 -0
  557. data/lib/new_store_api/models/registration_request.rb +98 -0
  558. data/lib/new_store_api/models/registration_response.rb +100 -0
  559. data/lib/new_store_api/models/rejected_rerouting_settings.rb +83 -0
  560. data/lib/new_store_api/models/remove.rb +88 -0
  561. data/lib/new_store_api/models/remove_item_response_body.rb +71 -0
  562. data/lib/new_store_api/models/replace_provider_rate_schema.rb +127 -0
  563. data/lib/new_store_api/models/request.rb +116 -0
  564. data/lib/new_store_api/models/request_context.rb +111 -0
  565. data/lib/new_store_api/models/request_create_bookings.rb +137 -0
  566. data/lib/new_store_api/models/request_create_manifest.rb +60 -0
  567. data/lib/new_store_api/models/request_package.rb +106 -0
  568. data/lib/new_store_api/models/request_package_customs.rb +73 -0
  569. data/lib/new_store_api/models/request_recipient_address.rb +167 -0
  570. data/lib/new_store_api/models/request_service_level_rates.rb +107 -0
  571. data/lib/new_store_api/models/request_shipping_option.rb +142 -0
  572. data/lib/new_store_api/models/rerouted.rb +75 -0
  573. data/lib/new_store_api/models/reservation.rb +100 -0
  574. data/lib/new_store_api/models/reservation_config_response.rb +84 -0
  575. data/lib/new_store_api/models/reservation_config_update.rb +92 -0
  576. data/lib/new_store_api/models/reservation_details_response_v1.rb +173 -0
  577. data/lib/new_store_api/models/reservation_details_response_v2.rb +185 -0
  578. data/lib/new_store_api/models/reservation_item_details_response.rb +106 -0
  579. data/lib/new_store_api/models/reservation_item_request.rb +60 -0
  580. data/lib/new_store_api/models/reservation_item_status_enum.rb +48 -0
  581. data/lib/new_store_api/models/reservation_item_summary_response.rb +68 -0
  582. data/lib/new_store_api/models/reservation_item_update.rb +81 -0
  583. data/lib/new_store_api/models/reservation_status_enum.rb +48 -0
  584. data/lib/new_store_api/models/reservation_summary_response_v1.rb +168 -0
  585. data/lib/new_store_api/models/reservation_summary_response_v2.rb +178 -0
  586. data/lib/new_store_api/models/reservation_update.rb +60 -0
  587. data/lib/new_store_api/models/reservations_pagination_info.rb +96 -0
  588. data/lib/new_store_api/models/response_booked_package.rb +194 -0
  589. data/lib/new_store_api/models/response_booked_package_transaction.rb +81 -0
  590. data/lib/new_store_api/models/response_create_bookings.rb +87 -0
  591. data/lib/new_store_api/models/response_create_manifest.rb +78 -0
  592. data/lib/new_store_api/models/response_createconfigurationbyname.rb +62 -0
  593. data/lib/new_store_api/models/response_createjob.rb +110 -0
  594. data/lib/new_store_api/models/response_delivery_window.rb +81 -0
  595. data/lib/new_store_api/models/response_service_level_rates.rb +69 -0
  596. data/lib/new_store_api/models/response_shipping_option.rb +155 -0
  597. data/lib/new_store_api/models/response_show_bookings.rb +77 -0
  598. data/lib/new_store_api/models/response_showconfigurationbyname.rb +62 -0
  599. data/lib/new_store_api/models/response_unit_item.rb +84 -0
  600. data/lib/new_store_api/models/retrieve_bulk_email_lookup_request.rb +60 -0
  601. data/lib/new_store_api/models/retrieve_bulk_email_lookup_response.rb +70 -0
  602. data/lib/new_store_api/models/return_processed_dto.rb +303 -0
  603. data/lib/new_store_api/models/return_receipt_response.rb +150 -0
  604. data/lib/new_store_api/models/reverse_calculation_quotation_item_dto.rb +336 -0
  605. data/lib/new_store_api/models/reverse_calculation_transaction_item_dto.rb +327 -0
  606. data/lib/new_store_api/models/role.rb +135 -0
  607. data/lib/new_store_api/models/role_item.rb +98 -0
  608. data/lib/new_store_api/models/route_to.rb +76 -0
  609. data/lib/new_store_api/models/routes.rb +85 -0
  610. data/lib/new_store_api/models/routes_v1.rb +75 -0
  611. data/lib/new_store_api/models/routing_decision_trace.rb +128 -0
  612. data/lib/new_store_api/models/routing_decision_trace_picked.rb +68 -0
  613. data/lib/new_store_api/models/routing_insights.rb +60 -0
  614. data/lib/new_store_api/models/routing_insights_activity.rb +141 -0
  615. data/lib/new_store_api/models/routing_insights_correlation.rb +163 -0
  616. data/lib/new_store_api/models/routing_insights_data.rb +128 -0
  617. data/lib/new_store_api/models/routing_insights_fulfillment_requests.rb +109 -0
  618. data/lib/new_store_api/models/routing_insights_routing_strategies.rb +85 -0
  619. data/lib/new_store_api/models/routing_insights_routing_strategy1.rb +86 -0
  620. data/lib/new_store_api/models/routing_insights_service_levels.rb +83 -0
  621. data/lib/new_store_api/models/routing_insights_strategy_type_enum.rb +44 -0
  622. data/lib/new_store_api/models/routing_options_request.rb +123 -0
  623. data/lib/new_store_api/models/routing_options_response.rb +92 -0
  624. data/lib/new_store_api/models/routing_ruleset.rb +95 -0
  625. data/lib/new_store_api/models/routing_ruleset1.rb +122 -0
  626. data/lib/new_store_api/models/routing_simulation_line_item.rb +80 -0
  627. data/lib/new_store_api/models/routing_simulation_request_payload.rb +98 -0
  628. data/lib/new_store_api/models/routing_simulation_response_payload.rb +111 -0
  629. data/lib/new_store_api/models/routing_status_enum.rb +72 -0
  630. data/lib/new_store_api/models/routing_strategy.rb +74 -0
  631. data/lib/new_store_api/models/routing_strategy1.rb +109 -0
  632. data/lib/new_store_api/models/rules.rb +81 -0
  633. data/lib/new_store_api/models/sales_order.rb +163 -0
  634. data/lib/new_store_api/models/sales_order_address.rb +207 -0
  635. data/lib/new_store_api/models/sales_order_cancellation_request.rb +70 -0
  636. data/lib/new_store_api/models/sales_order_cancellation_response.rb +77 -0
  637. data/lib/new_store_api/models/sales_order_channel_type_enum.rb +36 -0
  638. data/lib/new_store_api/models/sales_order_customer.rb +91 -0
  639. data/lib/new_store_api/models/sales_order_detail.rb +247 -0
  640. data/lib/new_store_api/models/sales_order_detail_response.rb +390 -0
  641. data/lib/new_store_api/models/sales_order_discount.rb +123 -0
  642. data/lib/new_store_api/models/sales_order_extended_attribute.rb +68 -0
  643. data/lib/new_store_api/models/sales_order_external_identifier.rb +71 -0
  644. data/lib/new_store_api/models/sales_order_fulfillment.rb +71 -0
  645. data/lib/new_store_api/models/sales_order_fulfillment_type_enum.rb +49 -0
  646. data/lib/new_store_api/models/sales_order_gift_wrapping.rb +90 -0
  647. data/lib/new_store_api/models/sales_order_item.rb +111 -0
  648. data/lib/new_store_api/models/sales_order_item_payment_history.rb +103 -0
  649. data/lib/new_store_api/models/sales_order_item_shipment.rb +107 -0
  650. data/lib/new_store_api/models/sales_order_item_status_enum.rb +54 -0
  651. data/lib/new_store_api/models/sales_order_item_v2.rb +134 -0
  652. data/lib/new_store_api/models/sales_order_items1.rb +127 -0
  653. data/lib/new_store_api/models/sales_order_list_response.rb +69 -0
  654. data/lib/new_store_api/models/sales_order_list_response_v2.rb +79 -0
  655. data/lib/new_store_api/models/sales_order_origin_enum.rb +36 -0
  656. data/lib/new_store_api/models/sales_order_payment_method_enum.rb +40 -0
  657. data/lib/new_store_api/models/sales_order_price1.rb +129 -0
  658. data/lib/new_store_api/models/sales_order_prices_request.rb +76 -0
  659. data/lib/new_store_api/models/sales_order_prices_response.rb +92 -0
  660. data/lib/new_store_api/models/sales_order_product_attributes.rb +114 -0
  661. data/lib/new_store_api/models/sales_order_serial_numbers_request.rb +69 -0
  662. data/lib/new_store_api/models/sales_order_serial_numbers_request_item.rb +80 -0
  663. data/lib/new_store_api/models/sales_order_serial_numbers_request_item_epc.rb +78 -0
  664. data/lib/new_store_api/models/sales_order_status_enum.rb +48 -0
  665. data/lib/new_store_api/models/sales_order_tax_line.rb +90 -0
  666. data/lib/new_store_api/models/sales_order_tax_method_enum.rb +36 -0
  667. data/lib/new_store_api/models/sales_order_totals.rb +121 -0
  668. data/lib/new_store_api/models/sales_order_v2.rb +247 -0
  669. data/lib/new_store_api/models/schema.rb +71 -0
  670. data/lib/new_store_api/models/schema_for_bulk_cancel_orders_request.rb +79 -0
  671. data/lib/new_store_api/models/schema_for_bulk_cancel_orders_response.rb +77 -0
  672. data/lib/new_store_api/models/section_enum.rb +44 -0
  673. data/lib/new_store_api/models/service_level_rate.rb +131 -0
  674. data/lib/new_store_api/models/service_levels.rb +73 -0
  675. data/lib/new_store_api/models/session_token_response.rb +96 -0
  676. data/lib/new_store_api/models/set_fix_service_level_shipping_price.rb +74 -0
  677. data/lib/new_store_api/models/settings_response.rb +69 -0
  678. data/lib/new_store_api/models/shipment_limits_request.rb +88 -0
  679. data/lib/new_store_api/models/shipment_limits_response.rb +69 -0
  680. data/lib/new_store_api/models/shipping_address.rb +111 -0
  681. data/lib/new_store_api/models/shipping_offer_update_settings.rb +82 -0
  682. data/lib/new_store_api/models/shipping_option_audit.rb +102 -0
  683. data/lib/new_store_api/models/shipping_type_enum.rb +44 -0
  684. data/lib/new_store_api/models/shop.rb +68 -0
  685. data/lib/new_store_api/models/shorting_model.rb +139 -0
  686. data/lib/new_store_api/models/shorting_type_enum.rb +36 -0
  687. data/lib/new_store_api/models/show_provider_rates_schema.rb +69 -0
  688. data/lib/new_store_api/models/signature_at_v1_dto.rb +257 -0
  689. data/lib/new_store_api/models/signature_be_v1_dto.rb +135 -0
  690. data/lib/new_store_api/models/signature_de_v1_dto.rb +257 -0
  691. data/lib/new_store_api/models/signature_dummy_v1_dto.rb +90 -0
  692. data/lib/new_store_api/models/signature_es_v1_dto.rb +105 -0
  693. data/lib/new_store_api/models/signature_fr_v1_dto.rb +295 -0
  694. data/lib/new_store_api/models/signature_ie_v1_dto.rb +165 -0
  695. data/lib/new_store_api/models/signature_in_v1_dto.rb +105 -0
  696. data/lib/new_store_api/models/signature_it_v1_dto.rb +182 -0
  697. data/lib/new_store_api/models/signature_item_at_v1_dto.rb +115 -0
  698. data/lib/new_store_api/models/signature_item_de_v1_dto.rb +115 -0
  699. data/lib/new_store_api/models/signature_item_fr_v1_dto.rb +115 -0
  700. data/lib/new_store_api/models/signature_no_v1_dto.rb +126 -0
  701. data/lib/new_store_api/models/signature_pl_v1_dto.rb +101 -0
  702. data/lib/new_store_api/models/signature_pr_v1_dto.rb +161 -0
  703. data/lib/new_store_api/models/signature_pt_v1_dto.rb +129 -0
  704. data/lib/new_store_api/models/signature_response_v1_dto.rb +208 -0
  705. data/lib/new_store_api/models/signature_se_v1_dto.rb +122 -0
  706. data/lib/new_store_api/models/signature_th_v1_dto.rb +105 -0
  707. data/lib/new_store_api/models/signature_version_ie_enum.rb +26 -0
  708. data/lib/new_store_api/models/simulation_routed_item.rb +80 -0
  709. data/lib/new_store_api/models/sort_options_enum.rb +44 -0
  710. data/lib/new_store_api/models/source_enum.rb +36 -0
  711. data/lib/new_store_api/models/state_enum.rb +37 -0
  712. data/lib/new_store_api/models/status11_enum.rb +50 -0
  713. data/lib/new_store_api/models/status1_enum.rb +52 -0
  714. data/lib/new_store_api/models/status21_enum.rb +40 -0
  715. data/lib/new_store_api/models/status2_enum.rb +49 -0
  716. data/lib/new_store_api/models/status_enum.rb +44 -0
  717. data/lib/new_store_api/models/stock_product_availability_request.rb +81 -0
  718. data/lib/new_store_api/models/stock_product_availability_response.rb +77 -0
  719. data/lib/new_store_api/models/stock_unallocated_items_request.rb +69 -0
  720. data/lib/new_store_api/models/stock_unallocated_items_response.rb +70 -0
  721. data/lib/new_store_api/models/store_config_create_dto.rb +173 -0
  722. data/lib/new_store_api/models/store_config_dto.rb +292 -0
  723. data/lib/new_store_api/models/store_config_list_dto.rb +89 -0
  724. data/lib/new_store_api/models/store_config_update_dto.rb +173 -0
  725. data/lib/new_store_api/models/store_config_update_it_v1_dto.rb +118 -0
  726. data/lib/new_store_api/models/store_config_update_pl_v1_dto.rb +111 -0
  727. data/lib/new_store_api/models/store_config_update_v1_dto.rb +95 -0
  728. data/lib/new_store_api/models/store_config_v1_dto.rb +80 -0
  729. data/lib/new_store_api/models/store_create_v1_dto.rb +98 -0
  730. data/lib/new_store_api/models/store_list_v1_dto.rb +83 -0
  731. data/lib/new_store_api/models/store_update_v1_dto.rb +97 -0
  732. data/lib/new_store_api/models/store_v1_dto.rb +126 -0
  733. data/lib/new_store_api/models/strategies.rb +71 -0
  734. data/lib/new_store_api/models/subscription.rb +72 -0
  735. data/lib/new_store_api/models/subscription_request.rb +88 -0
  736. data/lib/new_store_api/models/subscription_response.rb +91 -0
  737. data/lib/new_store_api/models/subscriptions_response.rb +71 -0
  738. data/lib/new_store_api/models/support_access_details.rb +99 -0
  739. data/lib/new_store_api/models/supported_identity_provider.rb +71 -0
  740. data/lib/new_store_api/models/supported_identity_providers.rb +71 -0
  741. data/lib/new_store_api/models/swap_to.rb +223 -0
  742. data/lib/new_store_api/models/swapped.rb +74 -0
  743. data/lib/new_store_api/models/sync_job_response.rb +136 -0
  744. data/lib/new_store_api/models/tag_response.rb +130 -0
  745. data/lib/new_store_api/models/task_package.rb +77 -0
  746. data/lib/new_store_api/models/task_package_item.rb +103 -0
  747. data/lib/new_store_api/models/tax_calculation_strategy_enum.rb +48 -0
  748. data/lib/new_store_api/models/tax_exemption.rb +75 -0
  749. data/lib/new_store_api/models/tax_exemption_classes_dto.rb +69 -0
  750. data/lib/new_store_api/models/tax_exemption_country_code_enum.rb +1013 -0
  751. data/lib/new_store_api/models/tax_information.rb +69 -0
  752. data/lib/new_store_api/models/tax_line.rb +116 -0
  753. data/lib/new_store_api/models/tax_rate_dto.rb +121 -0
  754. data/lib/new_store_api/models/tax_service_error_code_enum.rb +117 -0
  755. data/lib/new_store_api/models/tax_status_enum.rb +42 -0
  756. data/lib/new_store_api/models/tax_totals_dto.rb +149 -0
  757. data/lib/new_store_api/models/tenant_config_create_dto.rb +168 -0
  758. data/lib/new_store_api/models/tenant_config_dto.rb +230 -0
  759. data/lib/new_store_api/models/tenant_config_update_dto.rb +171 -0
  760. data/lib/new_store_api/models/tenant_config_v1_dto.rb +129 -0
  761. data/lib/new_store_api/models/timezone_enum.rb +2404 -0
  762. data/lib/new_store_api/models/token_request.rb +62 -0
  763. data/lib/new_store_api/models/token_response.rb +62 -0
  764. data/lib/new_store_api/models/tokens_request.rb +60 -0
  765. data/lib/new_store_api/models/tokens_response.rb +69 -0
  766. data/lib/new_store_api/models/total_price_currency_enum.rb +753 -0
  767. data/lib/new_store_api/models/tracking_status_enum.rb +64 -0
  768. data/lib/new_store_api/models/transaction_address_dto.rb +144 -0
  769. data/lib/new_store_api/models/transaction_dto.rb +193 -0
  770. data/lib/new_store_api/models/transaction_item_dto.rb +259 -0
  771. data/lib/new_store_api/models/transaction_min_v1_dto.rb +170 -0
  772. data/lib/new_store_api/models/transaction_signature_strategy_enum.rb +56 -0
  773. data/lib/new_store_api/models/transaction_state_enum.rb +40 -0
  774. data/lib/new_store_api/models/transaction_tax_rate_dto.rb +117 -0
  775. data/lib/new_store_api/models/transaction_type_enum.rb +36 -0
  776. data/lib/new_store_api/models/transaction_update_dto.rb +64 -0
  777. data/lib/new_store_api/models/transfer_document_response.rb +71 -0
  778. data/lib/new_store_api/models/transfer_transaction_line_item_response.rb +71 -0
  779. data/lib/new_store_api/models/type11_enum.rb +36 -0
  780. data/lib/new_store_api/models/type12_enum.rb +38 -0
  781. data/lib/new_store_api/models/type1_enum.rb +36 -0
  782. data/lib/new_store_api/models/type2_enum.rb +37 -0
  783. data/lib/new_store_api/models/update_address_request.rb +171 -0
  784. data/lib/new_store_api/models/update_identity_provider_request.rb +86 -0
  785. data/lib/new_store_api/models/update_oidc_identity_provider_config.rb +74 -0
  786. data/lib/new_store_api/models/update_package_type_request.rb +86 -0
  787. data/lib/new_store_api/models/update_profile_request.rb +160 -0
  788. data/lib/new_store_api/models/update_saml_identity_provider_config.rb +75 -0
  789. data/lib/new_store_api/models/update_service_level_request.rb +61 -0
  790. data/lib/new_store_api/models/update_tag_request.rb +72 -0
  791. data/lib/new_store_api/models/updated_item_status_enum.rb +36 -0
  792. data/lib/new_store_api/models/updated_reservation_status_enum.rb +36 -0
  793. data/lib/new_store_api/models/use_customizable_provider_rates.rb +74 -0
  794. data/lib/new_store_api/models/use_prioritized_provider_rates.rb +74 -0
  795. data/lib/new_store_api/models/user.rb +209 -0
  796. data/lib/new_store_api/models/v0_orders_request.rb +62 -0
  797. data/lib/new_store_api/models/value.rb +123 -0
  798. data/lib/new_store_api/models/vertex_administrative_origin_create_dto.rb +129 -0
  799. data/lib/new_store_api/models/vertex_administrative_origin_dto.rb +175 -0
  800. data/lib/new_store_api/models/vertex_administrative_origin_update_dto.rb +139 -0
  801. data/lib/new_store_api/models/vertex_auth_login_type_enum.rb +39 -0
  802. data/lib/new_store_api/models/vertex_config_create_dto.rb +227 -0
  803. data/lib/new_store_api/models/vertex_config_dto.rb +253 -0
  804. data/lib/new_store_api/models/vertex_config_update_dto.rb +230 -0
  805. data/lib/new_store_api/models/vertex_exemption_class_item_create_dto.rb +105 -0
  806. data/lib/new_store_api/models/vertex_exemption_class_item_dto.rb +131 -0
  807. data/lib/new_store_api/models/vertex_exemption_class_item_update_dto.rb +105 -0
  808. data/lib/new_store_api/models/vertex_flexible_field_config_create_dto.rb +95 -0
  809. data/lib/new_store_api/models/vertex_flexible_field_config_dto.rb +121 -0
  810. data/lib/new_store_api/models/vertex_flexible_field_config_update_dto.rb +99 -0
  811. data/lib/new_store_api/models/vertex_target_field_enum.rb +40 -0
  812. data/lib/new_store_api/models/warning.rb +85 -0
  813. data/lib/new_store_api/models/weight_unit_enum.rb +44 -0
  814. data/lib/new_store_api/models/write_accepted.rb +60 -0
  815. data/lib/new_store_api/models/zone_response.rb +68 -0
  816. data/lib/new_store_api/utilities/date_time_helper.rb +11 -0
  817. data/lib/new_store_api/utilities/file_wrapper.rb +28 -0
  818. data/lib/new_store_api/utilities/union_type_lookup.rb +578 -0
  819. data/lib/new_store_api.rb +850 -0
  820. metadata +903 -0
@@ -0,0 +1,170 @@
1
+ # new_store_api
2
+ #
3
+ # This file was automatically generated for NewStore by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module NewStoreApi
7
+ # TransactionMinV1Dto Model.
8
+ class TransactionMinV1Dto < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :country_code
15
+
16
+ # Transaction ID.
17
+ # @return [String]
18
+ attr_accessor :id
19
+
20
+ # Transaction signature.
21
+ # @return [Object]
22
+ attr_accessor :signature
23
+
24
+ # Transaction signature.
25
+ # @return [TransactionStateEnum]
26
+ attr_accessor :state
27
+
28
+ # Temporary transaction signature.
29
+ # @return [Object]
30
+ attr_accessor :temporary_signature
31
+
32
+ # Sequential transaction number.
33
+ # @return [Integer]
34
+ attr_accessor :transaction_number
35
+
36
+ # Transaction series (if defined).
37
+ # @return [String]
38
+ attr_accessor :transaction_series
39
+
40
+ # Transaction series (if defined).
41
+ # @return [F11nTransactionTypeEnum]
42
+ attr_accessor :type
43
+
44
+ # A mapping from model property names to API property names.
45
+ def self.names
46
+ @_hash = {} if @_hash.nil?
47
+ @_hash['country_code'] = 'country_code'
48
+ @_hash['id'] = 'id'
49
+ @_hash['signature'] = 'signature'
50
+ @_hash['state'] = 'state'
51
+ @_hash['temporary_signature'] = 'temporary_signature'
52
+ @_hash['transaction_number'] = 'transaction_number'
53
+ @_hash['transaction_series'] = 'transaction_series'
54
+ @_hash['type'] = 'type'
55
+ @_hash
56
+ end
57
+
58
+ # An array for optional fields
59
+ def self.optionals
60
+ %w[
61
+ signature
62
+ transaction_series
63
+ ]
64
+ end
65
+
66
+ # An array for nullable fields
67
+ def self.nullables
68
+ []
69
+ end
70
+
71
+ def initialize(country_code = nil, id = nil, state = nil,
72
+ temporary_signature = nil, transaction_number = nil,
73
+ type = nil, signature = SKIP, transaction_series = SKIP)
74
+ @country_code = country_code
75
+ @id = id
76
+ @signature = signature unless signature == SKIP
77
+ @state = state
78
+ @temporary_signature = temporary_signature
79
+ @transaction_number = transaction_number
80
+ @transaction_series = transaction_series unless transaction_series == SKIP
81
+ @type = type
82
+ end
83
+
84
+ # Creates an instance of the object from a hash.
85
+ def self.from_hash(hash)
86
+ return nil unless hash
87
+
88
+ # Extract variables from the hash.
89
+ country_code = hash.key?('country_code') ? hash['country_code'] : nil
90
+ id = hash.key?('id') ? hash['id'] : nil
91
+ state = hash.key?('state') ? hash['state'] : nil
92
+ temporary_signature = hash.key?('temporary_signature') ? APIHelper.deserialize_union_type(
93
+ UnionTypeLookUp.get(:TransactionMinV1DtoTemporarySignature), hash['temporary_signature']
94
+ ) : nil
95
+ transaction_number =
96
+ hash.key?('transaction_number') ? hash['transaction_number'] : nil
97
+ type = hash.key?('type') ? hash['type'] : nil
98
+ signature = hash.key?('signature') ? APIHelper.deserialize_union_type(
99
+ UnionTypeLookUp.get(:TransactionMinV1DtoSignature), hash['signature']
100
+ ) : SKIP
101
+ transaction_series =
102
+ hash.key?('transaction_series') ? hash['transaction_series'] : SKIP
103
+
104
+ # Create object from extracted values.
105
+ TransactionMinV1Dto.new(country_code,
106
+ id,
107
+ state,
108
+ temporary_signature,
109
+ transaction_number,
110
+ type,
111
+ signature,
112
+ transaction_series)
113
+ end
114
+
115
+ # Validates an instance of the object from a given value.
116
+ # @param [TransactionMinV1Dto | Hash] The value against the validation is performed.
117
+ def self.validate(value)
118
+ if value.instance_of? self
119
+ return (
120
+ APIHelper.valid_type?(value.country_code,
121
+ ->(val) { val.instance_of? String }) and
122
+ APIHelper.valid_type?(value.id,
123
+ ->(val) { val.instance_of? String }) and
124
+ APIHelper.valid_type?(value.state,
125
+ ->(val) { TransactionStateEnum.validate(val) }) and
126
+ UnionTypeLookUp.get(:TransactionMinV1DtoTemporarySignature)
127
+ .validate(value.temporary_signature) and
128
+ APIHelper.valid_type?(value.transaction_number,
129
+ ->(val) { val.instance_of? Integer }) and
130
+ APIHelper.valid_type?(value.type,
131
+ ->(val) { F11nTransactionTypeEnum.validate(val) })
132
+ )
133
+ end
134
+
135
+ return false unless value.instance_of? Hash
136
+
137
+ (
138
+ APIHelper.valid_type?(value['country_code'],
139
+ ->(val) { val.instance_of? String }) and
140
+ APIHelper.valid_type?(value['id'],
141
+ ->(val) { val.instance_of? String }) and
142
+ APIHelper.valid_type?(value['state'],
143
+ ->(val) { TransactionStateEnum.validate(val) }) and
144
+ UnionTypeLookUp.get(:TransactionMinV1DtoTemporarySignature)
145
+ .validate(value['temporary_signature']) and
146
+ APIHelper.valid_type?(value['transaction_number'],
147
+ ->(val) { val.instance_of? Integer }) and
148
+ APIHelper.valid_type?(value['type'],
149
+ ->(val) { F11nTransactionTypeEnum.validate(val) })
150
+ )
151
+ end
152
+
153
+ # Provides a human-readable string representation of the object.
154
+ def to_s
155
+ class_name = self.class.name.split('::').last
156
+ "<#{class_name} country_code: #{@country_code}, id: #{@id}, signature: #{@signature},"\
157
+ " state: #{@state}, temporary_signature: #{@temporary_signature}, transaction_number:"\
158
+ " #{@transaction_number}, transaction_series: #{@transaction_series}, type: #{@type}>"
159
+ end
160
+
161
+ # Provides a debugging-friendly string with detailed object information.
162
+ def inspect
163
+ class_name = self.class.name.split('::').last
164
+ "<#{class_name} country_code: #{@country_code.inspect}, id: #{@id.inspect}, signature:"\
165
+ " #{@signature.inspect}, state: #{@state.inspect}, temporary_signature:"\
166
+ " #{@temporary_signature.inspect}, transaction_number: #{@transaction_number.inspect},"\
167
+ " transaction_series: #{@transaction_series.inspect}, type: #{@type.inspect}>"
168
+ end
169
+ end
170
+ end
@@ -0,0 +1,56 @@
1
+ # new_store_api
2
+ #
3
+ # This file was automatically generated for NewStore by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module NewStoreApi
7
+ # Offline transaction signature strategy that will be used while processing
8
+ # offline transactions. * `standard-signing` * Offline orders will be
9
+ # fiscally signed according to regulations. * Can be used in cases if the
10
+ # receipt would be emailed once the offline order is processed. *
11
+ # `late-signing` * Offline orders will be signed with late signing flag. *
12
+ # Can be used in cases if the receipt would be emailed once the offline order
13
+ # is processed. * `manual-receipts` * Offline orders will be signed with
14
+ # manual flag. * A receipt for the offline orders and do not need to be
15
+ # emailed later. * Can be used in cases if the a manual receipt was issued
16
+ # by the store, and an electronic receipt should not be sent. * `no-signing`
17
+ # * Offline orders will not be signed and should be considered completed
18
+ # without any signature needed. * Can be used in cases if the fiscal
19
+ # signature was issued outside of the NewStore platform.
20
+ class TransactionSignatureStrategyEnum
21
+ TRANSACTION_SIGNATURE_STRATEGY_ENUM = [
22
+ # TODO: Write general description for STANDARDSIGNING
23
+ STANDARDSIGNING = 'standard-signing'.freeze,
24
+
25
+ # TODO: Write general description for LATESIGNING
26
+ LATESIGNING = 'late-signing'.freeze,
27
+
28
+ # TODO: Write general description for MANUALRECEIPTS
29
+ MANUALRECEIPTS = 'manual-receipts'.freeze,
30
+
31
+ # TODO: Write general description for NOSIGNING
32
+ NOSIGNING = 'no-signing'.freeze
33
+ ].freeze
34
+
35
+ def self.validate(value)
36
+ return false if value.nil?
37
+
38
+ TRANSACTION_SIGNATURE_STRATEGY_ENUM.include?(value)
39
+ end
40
+
41
+ def self.from_value(value, default_value = STANDARDSIGNING)
42
+ return default_value if value.nil?
43
+
44
+ str = value.to_s.strip
45
+
46
+ case str.downcase
47
+ when 'standardsigning' then STANDARDSIGNING
48
+ when 'latesigning' then LATESIGNING
49
+ when 'manualreceipts' then MANUALRECEIPTS
50
+ when 'nosigning' then NOSIGNING
51
+ else
52
+ default_value
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,40 @@
1
+ # new_store_api
2
+ #
3
+ # This file was automatically generated for NewStore by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module NewStoreApi
7
+ # Fiscal transaction state.
8
+ class TransactionStateEnum
9
+ TRANSACTION_STATE_ENUM = [
10
+ # TODO: Write general description for OK
11
+ OK = 'OK'.freeze,
12
+
13
+ # TODO: Write general description for FAILED
14
+ FAILED = 'FAILED'.freeze,
15
+
16
+ # TODO: Write general description for TEMP_SIGNED
17
+ TEMP_SIGNED = 'TEMP_SIGNED'.freeze
18
+ ].freeze
19
+
20
+ def self.validate(value)
21
+ return false if value.nil?
22
+
23
+ TRANSACTION_STATE_ENUM.include?(value)
24
+ end
25
+
26
+ def self.from_value(value, default_value = OK)
27
+ return default_value if value.nil?
28
+
29
+ str = value.to_s.strip
30
+
31
+ case str.downcase
32
+ when 'ok' then OK
33
+ when 'failed' then FAILED
34
+ when 'temp_signed' then TEMP_SIGNED
35
+ else
36
+ default_value
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,117 @@
1
+ # new_store_api
2
+ #
3
+ # This file was automatically generated for NewStore by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module NewStoreApi
7
+ # TransactionTaxRateDto Model.
8
+ class TransactionTaxRateDto < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Monetary tax amount for the unit price corresponding to this tax_rate
13
+ # item's percent value, e.g. 3.37.
14
+ # @return [Float]
15
+ attr_accessor :amount
16
+
17
+ # Country of jurisdiction for the applied tax.
18
+ # @return [String]
19
+ attr_accessor :country_code
20
+
21
+ # Tax percent value for this tax rate item, e.g. 0.19 means 19% tax.
22
+ # @return [Float]
23
+ attr_accessor :rate
24
+
25
+ # Name of the applied tax.
26
+ # @return [String]
27
+ attr_accessor :tax_name
28
+
29
+ # A mapping from model property names to API property names.
30
+ def self.names
31
+ @_hash = {} if @_hash.nil?
32
+ @_hash['amount'] = 'amount'
33
+ @_hash['country_code'] = 'country_code'
34
+ @_hash['rate'] = 'rate'
35
+ @_hash['tax_name'] = 'tax_name'
36
+ @_hash
37
+ end
38
+
39
+ # An array for optional fields
40
+ def self.optionals
41
+ []
42
+ end
43
+
44
+ # An array for nullable fields
45
+ def self.nullables
46
+ []
47
+ end
48
+
49
+ def initialize(amount = nil, country_code = nil, rate = nil, tax_name = nil)
50
+ @amount = amount
51
+ @country_code = country_code
52
+ @rate = rate
53
+ @tax_name = tax_name
54
+ end
55
+
56
+ # Creates an instance of the object from a hash.
57
+ def self.from_hash(hash)
58
+ return nil unless hash
59
+
60
+ # Extract variables from the hash.
61
+ amount = hash.key?('amount') ? hash['amount'] : nil
62
+ country_code = hash.key?('country_code') ? hash['country_code'] : nil
63
+ rate = hash.key?('rate') ? hash['rate'] : nil
64
+ tax_name = hash.key?('tax_name') ? hash['tax_name'] : nil
65
+
66
+ # Create object from extracted values.
67
+ TransactionTaxRateDto.new(amount,
68
+ country_code,
69
+ rate,
70
+ tax_name)
71
+ end
72
+
73
+ # Validates an instance of the object from a given value.
74
+ # @param [TransactionTaxRateDto | Hash] The value against the validation is performed.
75
+ def self.validate(value)
76
+ if value.instance_of? self
77
+ return (
78
+ APIHelper.valid_type?(value.amount,
79
+ ->(val) { val.instance_of? Float }) and
80
+ APIHelper.valid_type?(value.country_code,
81
+ ->(val) { val.instance_of? String }) and
82
+ APIHelper.valid_type?(value.rate,
83
+ ->(val) { val.instance_of? Float }) and
84
+ APIHelper.valid_type?(value.tax_name,
85
+ ->(val) { val.instance_of? String })
86
+ )
87
+ end
88
+
89
+ return false unless value.instance_of? Hash
90
+
91
+ (
92
+ APIHelper.valid_type?(value['amount'],
93
+ ->(val) { val.instance_of? Float }) and
94
+ APIHelper.valid_type?(value['country_code'],
95
+ ->(val) { val.instance_of? String }) and
96
+ APIHelper.valid_type?(value['rate'],
97
+ ->(val) { val.instance_of? Float }) and
98
+ APIHelper.valid_type?(value['tax_name'],
99
+ ->(val) { val.instance_of? String })
100
+ )
101
+ end
102
+
103
+ # Provides a human-readable string representation of the object.
104
+ def to_s
105
+ class_name = self.class.name.split('::').last
106
+ "<#{class_name} amount: #{@amount}, country_code: #{@country_code}, rate: #{@rate},"\
107
+ " tax_name: #{@tax_name}>"
108
+ end
109
+
110
+ # Provides a debugging-friendly string with detailed object information.
111
+ def inspect
112
+ class_name = self.class.name.split('::').last
113
+ "<#{class_name} amount: #{@amount.inspect}, country_code: #{@country_code.inspect}, rate:"\
114
+ " #{@rate.inspect}, tax_name: #{@tax_name.inspect}>"
115
+ end
116
+ end
117
+ end
@@ -0,0 +1,36 @@
1
+ # new_store_api
2
+ #
3
+ # This file was automatically generated for NewStore by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module NewStoreApi
7
+ # Type of the transaction.
8
+ class TransactionTypeEnum
9
+ TRANSACTION_TYPE_ENUM = [
10
+ # TODO: Write general description for SALE
11
+ SALE = 'SALE'.freeze,
12
+
13
+ # TODO: Write general description for RETURN
14
+ RETURN = 'RETURN'.freeze
15
+ ].freeze
16
+
17
+ def self.validate(value)
18
+ return false if value.nil?
19
+
20
+ TRANSACTION_TYPE_ENUM.include?(value)
21
+ end
22
+
23
+ def self.from_value(value, default_value = SALE)
24
+ return default_value if value.nil?
25
+
26
+ str = value.to_s.strip
27
+
28
+ case str.downcase
29
+ when 'sale' then SALE
30
+ when 'return' then RETURN
31
+ else
32
+ default_value
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,64 @@
1
+ # new_store_api
2
+ #
3
+ # This file was automatically generated for NewStore by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module NewStoreApi
7
+ # TransactionUpdateDto Model.
8
+ class TransactionUpdateDto < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # The order ID that will be used as a reference to link the order to the
13
+ # created tax transaction in the tax provider records.
14
+ # * In case the order ID is not provided then a randomly generated
15
+ # identifier will be used instead.
16
+ # * The tax transaction will be stored by using the given value.
17
+ # @return [String]
18
+ attr_accessor :order_id
19
+
20
+ # A mapping from model property names to API property names.
21
+ def self.names
22
+ @_hash = {} if @_hash.nil?
23
+ @_hash['order_id'] = 'order_id'
24
+ @_hash
25
+ end
26
+
27
+ # An array for optional fields
28
+ def self.optionals
29
+ []
30
+ end
31
+
32
+ # An array for nullable fields
33
+ def self.nullables
34
+ []
35
+ end
36
+
37
+ def initialize(order_id = nil)
38
+ @order_id = order_id
39
+ end
40
+
41
+ # Creates an instance of the object from a hash.
42
+ def self.from_hash(hash)
43
+ return nil unless hash
44
+
45
+ # Extract variables from the hash.
46
+ order_id = hash.key?('order_id') ? hash['order_id'] : nil
47
+
48
+ # Create object from extracted values.
49
+ TransactionUpdateDto.new(order_id)
50
+ end
51
+
52
+ # Provides a human-readable string representation of the object.
53
+ def to_s
54
+ class_name = self.class.name.split('::').last
55
+ "<#{class_name} order_id: #{@order_id}>"
56
+ end
57
+
58
+ # Provides a debugging-friendly string with detailed object information.
59
+ def inspect
60
+ class_name = self.class.name.split('::').last
61
+ "<#{class_name} order_id: #{@order_id.inspect}>"
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,71 @@
1
+ # new_store_api
2
+ #
3
+ # This file was automatically generated for NewStore by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module NewStoreApi
7
+ # TransferDocumentResponse Model.
8
+ class TransferDocumentResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Object]
14
+ attr_accessor :error
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [String]
18
+ attr_accessor :permalink
19
+
20
+ # A mapping from model property names to API property names.
21
+ def self.names
22
+ @_hash = {} if @_hash.nil?
23
+ @_hash['error'] = 'error'
24
+ @_hash['permalink'] = 'permalink'
25
+ @_hash
26
+ end
27
+
28
+ # An array for optional fields
29
+ def self.optionals
30
+ []
31
+ end
32
+
33
+ # An array for nullable fields
34
+ def self.nullables
35
+ %w[
36
+ error
37
+ permalink
38
+ ]
39
+ end
40
+
41
+ def initialize(error = nil, permalink = nil)
42
+ @error = error
43
+ @permalink = permalink
44
+ end
45
+
46
+ # Creates an instance of the object from a hash.
47
+ def self.from_hash(hash)
48
+ return nil unless hash
49
+
50
+ # Extract variables from the hash.
51
+ error = hash.key?('error') ? hash['error'] : nil
52
+ permalink = hash.key?('permalink') ? hash['permalink'] : nil
53
+
54
+ # Create object from extracted values.
55
+ TransferDocumentResponse.new(error,
56
+ permalink)
57
+ end
58
+
59
+ # Provides a human-readable string representation of the object.
60
+ def to_s
61
+ class_name = self.class.name.split('::').last
62
+ "<#{class_name} error: #{@error}, permalink: #{@permalink}>"
63
+ end
64
+
65
+ # Provides a debugging-friendly string with detailed object information.
66
+ def inspect
67
+ class_name = self.class.name.split('::').last
68
+ "<#{class_name} error: #{@error.inspect}, permalink: #{@permalink.inspect}>"
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,71 @@
1
+ # new_store_api
2
+ #
3
+ # This file was automatically generated for NewStore by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module NewStoreApi
7
+ # TransferTransactionLineItemResponse Model.
8
+ class TransferTransactionLineItemResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :product_id
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [Integer]
18
+ attr_accessor :transferred_quantity
19
+
20
+ # A mapping from model property names to API property names.
21
+ def self.names
22
+ @_hash = {} if @_hash.nil?
23
+ @_hash['product_id'] = 'product_id'
24
+ @_hash['transferred_quantity'] = 'transferred_quantity'
25
+ @_hash
26
+ end
27
+
28
+ # An array for optional fields
29
+ def self.optionals
30
+ []
31
+ end
32
+
33
+ # An array for nullable fields
34
+ def self.nullables
35
+ []
36
+ end
37
+
38
+ def initialize(product_id = nil, transferred_quantity = nil)
39
+ @product_id = product_id
40
+ @transferred_quantity = transferred_quantity
41
+ end
42
+
43
+ # Creates an instance of the object from a hash.
44
+ def self.from_hash(hash)
45
+ return nil unless hash
46
+
47
+ # Extract variables from the hash.
48
+ product_id = hash.key?('product_id') ? hash['product_id'] : nil
49
+ transferred_quantity =
50
+ hash.key?('transferred_quantity') ? hash['transferred_quantity'] : nil
51
+
52
+ # Create object from extracted values.
53
+ TransferTransactionLineItemResponse.new(product_id,
54
+ transferred_quantity)
55
+ end
56
+
57
+ # Provides a human-readable string representation of the object.
58
+ def to_s
59
+ class_name = self.class.name.split('::').last
60
+ "<#{class_name} product_id: #{@product_id}, transferred_quantity:"\
61
+ " #{@transferred_quantity}>"
62
+ end
63
+
64
+ # Provides a debugging-friendly string with detailed object information.
65
+ def inspect
66
+ class_name = self.class.name.split('::').last
67
+ "<#{class_name} product_id: #{@product_id.inspect}, transferred_quantity:"\
68
+ " #{@transferred_quantity.inspect}>"
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,36 @@
1
+ # new_store_api
2
+ #
3
+ # This file was automatically generated for NewStore by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module NewStoreApi
7
+ # Type11.
8
+ class Type11Enum
9
+ TYPE11_ENUM = [
10
+ # TODO: Write general description for SHIPPING
11
+ SHIPPING = 'shipping'.freeze,
12
+
13
+ # TODO: Write general description for GIFTWRAPPING
14
+ GIFTWRAPPING = 'gift-wrapping'.freeze
15
+ ].freeze
16
+
17
+ def self.validate(value)
18
+ return false if value.nil?
19
+
20
+ TYPE11_ENUM.include?(value)
21
+ end
22
+
23
+ def self.from_value(value, default_value = SHIPPING)
24
+ return default_value if value.nil?
25
+
26
+ str = value.to_s.strip
27
+
28
+ case str.downcase
29
+ when 'shipping' then SHIPPING
30
+ when 'giftwrapping' then GIFTWRAPPING
31
+ else
32
+ default_value
33
+ end
34
+ end
35
+ end
36
+ end