zippendo 1.0.0

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 (480) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE.md +21 -0
  4. data/README.md +99 -0
  5. data/Rakefile +10 -0
  6. data/docs/AddressesApi.md +375 -0
  7. data/docs/BatchSendShipments200Response.md +20 -0
  8. data/docs/BatchSendShipments200ResponseResultsInner.md +26 -0
  9. data/docs/BatchSendShipments200ResponseSummary.md +22 -0
  10. data/docs/BatchSendShipmentsRequest.md +18 -0
  11. data/docs/BatchSplitShipment201Response.md +20 -0
  12. data/docs/BatchSplitShipmentRequest.md +28 -0
  13. data/docs/BatchSplitShipmentRequestShipmentsInner.md +20 -0
  14. data/docs/BatchSplitShipmentRequestShipmentsInnerOrderLinesInner.md +20 -0
  15. data/docs/BillingApi.md +77 -0
  16. data/docs/CarrierCatalogApi.md +77 -0
  17. data/docs/CarriersApi.md +521 -0
  18. data/docs/ConnectCarrierRequest.md +22 -0
  19. data/docs/CreateAddressRequest.md +40 -0
  20. data/docs/CreateApiToken201Response.md +32 -0
  21. data/docs/CreateApiTokenRequest.md +22 -0
  22. data/docs/CreateOrder201Response.md +52 -0
  23. data/docs/CreateOrder201ResponseOrderLinesInner.md +54 -0
  24. data/docs/CreateOrder201ResponseShippingAddress.md +42 -0
  25. data/docs/CreateOrderRequest.md +40 -0
  26. data/docs/CreateOrderRequestOrderLinesInner.md +54 -0
  27. data/docs/CreateOrderRequestShippingAddress.md +42 -0
  28. data/docs/CreateOrgWebhook201Response.md +32 -0
  29. data/docs/CreateOrgWebhookRequest.md +24 -0
  30. data/docs/CreateShipment201Response.md +64 -0
  31. data/docs/CreateShipment201ResponseActivitiesInner.md +26 -0
  32. data/docs/CreateShipment201ResponseDocumentsInner.md +32 -0
  33. data/docs/CreateShipment201ResponseErrorsInner.md +26 -0
  34. data/docs/CreateShipment201ResponseLogsInner.md +32 -0
  35. data/docs/CreateShipment201ResponseParcelsInner.md +38 -0
  36. data/docs/CreateShipment201ResponseParcelsInnerDimensions.md +22 -0
  37. data/docs/CreateShipment201ResponseParcelsInnerOrderLinesInner.md +36 -0
  38. data/docs/CreateShipment201ResponsePartiesInner.md +38 -0
  39. data/docs/CreateShipment201ResponsePartiesInnerAttributesInner.md +20 -0
  40. data/docs/CreateShipment201ResponsePickupDetails.md +24 -0
  41. data/docs/CreateShipment201ResponseShippingRule.md +40 -0
  42. data/docs/CreateShipment201ResponseTracking.md +28 -0
  43. data/docs/CreateShipmentRequest.md +42 -0
  44. data/docs/CreateShipmentRequestCarrierSettings.md +24 -0
  45. data/docs/CreateShipmentRequestParcelsInner.md +38 -0
  46. data/docs/CreateShipmentRequestParcelsInnerDimensions.md +22 -0
  47. data/docs/CreateShipmentRequestParcelsInnerOrderLinesInner.md +36 -0
  48. data/docs/CreateShipmentRequestPartiesInner.md +38 -0
  49. data/docs/CreateShipmentRequestPartiesInnerAttributesInner.md +20 -0
  50. data/docs/CreateShipmentRequestPickupDetails.md +24 -0
  51. data/docs/CreateShippingQuote200Response.md +18 -0
  52. data/docs/CreateShippingQuote200ResponseRatesInner.md +38 -0
  53. data/docs/CreateShippingQuote400Response.md +20 -0
  54. data/docs/CreateShippingQuote404Response.md +20 -0
  55. data/docs/CreateShippingQuoteRequest.md +24 -0
  56. data/docs/CreateShippingQuoteRequestDestination.md +28 -0
  57. data/docs/CreateShippingQuoteRequestItemsInner.md +30 -0
  58. data/docs/CreateShippingRule201Response.md +74 -0
  59. data/docs/CreateShippingRuleRequest.md +66 -0
  60. data/docs/CreateShippingRuleRequestAdditionalParameters.md +15 -0
  61. data/docs/CreateShippingRuleRequestAdditionalParametersAnyOfInner.md +20 -0
  62. data/docs/CreateShippingRuleRequestAdditionalParametersAnyOfValue.md +24 -0
  63. data/docs/CreateShippingRuleRequestAdditionalParametersAnyOfValueAnyOf.md +24 -0
  64. data/docs/CreateShippingRuleRequestAdditionalParametersAnyOfValueAnyOfCoordinatesInner.md +15 -0
  65. data/docs/CreateShippingRuleRequestConditionsInner.md +55 -0
  66. data/docs/CreateShippingRuleRequestConditionsInnerOneOf.md +26 -0
  67. data/docs/CreateShippingRuleRequestConditionsInnerOneOf1.md +28 -0
  68. data/docs/CreateShippingRuleRequestConditionsInnerOneOf2.md +28 -0
  69. data/docs/CreateShippingRuleRequestConditionsInnerOneOf3.md +26 -0
  70. data/docs/CreateShippingRuleRequestConditionsInnerOneOf4.md +22 -0
  71. data/docs/DeleteOrgWebhook200Response.md +18 -0
  72. data/docs/DeleteShippingRule200Response.md +18 -0
  73. data/docs/GetBillingUsage200Response.md +24 -0
  74. data/docs/GetBillingUsage200ResponseAddOnsInner.md +24 -0
  75. data/docs/GetBillingUsage200ResponseCurrentPeriod.md +20 -0
  76. data/docs/GetBillingUsage200ResponseLimits.md +30 -0
  77. data/docs/GetBillingUsage200ResponseLimitsTeamMembers.md +20 -0
  78. data/docs/GetBillingUsage200ResponseShipments.md +24 -0
  79. data/docs/GetOrder200Response.md +58 -0
  80. data/docs/GetOrder200ResponseShipmentsInner.md +36 -0
  81. data/docs/GetOrder200ResponseShippingRule.md +40 -0
  82. data/docs/GetOrg200Response.md +50 -0
  83. data/docs/GetOrg200ResponseCount.md +18 -0
  84. data/docs/GetOrgBranding200Response.md +22 -0
  85. data/docs/HealthCheck200Response.md +22 -0
  86. data/docs/ListAddresses200Response.md +26 -0
  87. data/docs/ListAddresses200ResponseDataInner.md +48 -0
  88. data/docs/ListApiTokens200Response.md +26 -0
  89. data/docs/ListApiTokens200ResponseDataInner.md +32 -0
  90. data/docs/ListApiTokens200ResponseDataInnerCreatedBy.md +22 -0
  91. data/docs/ListApiTokens401Response.md +22 -0
  92. data/docs/ListAvailableCarriers200ResponseInner.md +38 -0
  93. data/docs/ListAvailableCarriers200ResponseInnerRequiredFieldsInner.md +28 -0
  94. data/docs/ListCarrierProductServicePoints200ResponseInner.md +32 -0
  95. data/docs/ListCarrierProductServicePoints200ResponseInnerAddress.md +28 -0
  96. data/docs/ListCarrierProductServicePointsRequest.md +28 -0
  97. data/docs/ListCarrierProducts200ResponseInner.md +38 -0
  98. data/docs/ListCarrierProducts200ResponseInnerAdditionalParametersInner.md +30 -0
  99. data/docs/ListCarrierProducts200ResponseInnerAdditionalParametersInnerOptionsInner.md +22 -0
  100. data/docs/ListCarrierProducts200ResponseInnerServicesInner.md +20 -0
  101. data/docs/ListCarrierProducts200ResponseInnerWeightLimits.md +22 -0
  102. data/docs/ListCarriers200Response.md +26 -0
  103. data/docs/ListCarriers200ResponseDataInner.md +38 -0
  104. data/docs/ListCarriers200ResponseDataInnerConfigValue.md +15 -0
  105. data/docs/ListOrders200Response.md +26 -0
  106. data/docs/ListOrders200ResponseDataInner.md +40 -0
  107. data/docs/ListOrders200ResponseDataInnerOrderChannel.md +22 -0
  108. data/docs/ListOrgWebhookDeliveries200Response.md +26 -0
  109. data/docs/ListOrgWebhookDeliveries200ResponseDataInner.md +38 -0
  110. data/docs/ListOrgWebhooks200Response.md +26 -0
  111. data/docs/ListOrgWebhooks200ResponseDataInner.md +30 -0
  112. data/docs/ListShipments200Response.md +26 -0
  113. data/docs/ListShipments200ResponseDataInner.md +32 -0
  114. data/docs/ListShipments200ResponseDataInnerAddress.md +48 -0
  115. data/docs/ListShipments200ResponseDataInnerCarrierSettings.md +24 -0
  116. data/docs/ListShipments200ResponseDataInnerCarrierSettingsAdditionalParametersValue.md +24 -0
  117. data/docs/ListShipments200ResponseDataInnerCarrierSettingsAdditionalParametersValueAnyOf.md +24 -0
  118. data/docs/ListShippingRules200Response.md +26 -0
  119. data/docs/ListShippingRules200ResponseDataInner.md +84 -0
  120. data/docs/ListShippingRules200ResponseDataInnerAdditionalParametersInner.md +20 -0
  121. data/docs/ListShippingRules200ResponseDataInnerCarrier.md +30 -0
  122. data/docs/ListShippingRules200ResponseDataInnerConditionsInner.md +55 -0
  123. data/docs/ListShippingRules200ResponseDataInnerConditionsInnerOneOf.md +26 -0
  124. data/docs/ListShippingRules200ResponseDataInnerConditionsInnerOneOf1.md +28 -0
  125. data/docs/ListShippingRules200ResponseDataInnerConditionsInnerOneOf2.md +28 -0
  126. data/docs/ListShippingRules200ResponseDataInnerConditionsInnerOneOf3.md +26 -0
  127. data/docs/ListShippingRules200ResponseDataInnerConditionsInnerOneOf4.md +22 -0
  128. data/docs/ListShippingRules200ResponseDataInnerLabelPrinter.md +20 -0
  129. data/docs/ListShippingRules200ResponseDataInnerReturnShippingRule.md +20 -0
  130. data/docs/OrdersApi.md +379 -0
  131. data/docs/OrgsApi.md +503 -0
  132. data/docs/QuotesApi.md +79 -0
  133. data/docs/RevokeApiToken200Response.md +18 -0
  134. data/docs/RulesApi.md +373 -0
  135. data/docs/SendShipment422Response.md +24 -0
  136. data/docs/SendShipment422ResponseErrorsInner.md +20 -0
  137. data/docs/ShipmentsApi.md +962 -0
  138. data/docs/SplitShipment201Response.md +20 -0
  139. data/docs/SplitShipmentParcel200Response.md +18 -0
  140. data/docs/SplitShipmentParcelRequest.md +18 -0
  141. data/docs/SplitShipmentParcelRequestParcelsInner.md +20 -0
  142. data/docs/SplitShipmentRequest.md +30 -0
  143. data/docs/SystemApi.md +74 -0
  144. data/docs/TestOrgWebhook200Response.md +18 -0
  145. data/docs/TokensApi.md +443 -0
  146. data/docs/TrackShipment200Response.md +26 -0
  147. data/docs/TrackShipment200ResponseEventsInner.md +28 -0
  148. data/docs/UpdateAddressRequest.md +40 -0
  149. data/docs/UpdateApiTokenRequest.md +18 -0
  150. data/docs/UpdateCarrierRequest.md +22 -0
  151. data/docs/UpdateOrderRequest.md +38 -0
  152. data/docs/UpdateOrg200Response.md +48 -0
  153. data/docs/UpdateOrgBrandingRequest.md +20 -0
  154. data/docs/UpdateOrgRequest.md +44 -0
  155. data/docs/UpdateOrgWebhookRequest.md +24 -0
  156. data/docs/UpdateShipmentRequest.md +44 -0
  157. data/docs/UpdateShippingRuleRequest.md +66 -0
  158. data/docs/VerifyApiToken200Response.md +28 -0
  159. data/docs/VerifyApiTokenRequest.md +18 -0
  160. data/docs/WebhooksApi.md +523 -0
  161. data/git_push.sh +57 -0
  162. data/lib/zippendo/api/addresses_api.rb +406 -0
  163. data/lib/zippendo/api/billing_api.rb +85 -0
  164. data/lib/zippendo/api/carrier_catalog_api.rb +85 -0
  165. data/lib/zippendo/api/carriers_api.rb +554 -0
  166. data/lib/zippendo/api/orders_api.rb +412 -0
  167. data/lib/zippendo/api/orgs_api.rb +497 -0
  168. data/lib/zippendo/api/quotes_api.rb +96 -0
  169. data/lib/zippendo/api/rules_api.rb +399 -0
  170. data/lib/zippendo/api/shipments_api.rb +1003 -0
  171. data/lib/zippendo/api/system_api.rb +79 -0
  172. data/lib/zippendo/api/tokens_api.rb +467 -0
  173. data/lib/zippendo/api/webhooks_api.rb +559 -0
  174. data/lib/zippendo/api_client.rb +397 -0
  175. data/lib/zippendo/api_error.rb +58 -0
  176. data/lib/zippendo/api_model_base.rb +88 -0
  177. data/lib/zippendo/configuration.rb +309 -0
  178. data/lib/zippendo/models/batch_send_shipments200_response.rb +193 -0
  179. data/lib/zippendo/models/batch_send_shipments200_response_results_inner.rb +260 -0
  180. data/lib/zippendo/models/batch_send_shipments200_response_summary.rb +274 -0
  181. data/lib/zippendo/models/batch_send_shipments_request.rb +185 -0
  182. data/lib/zippendo/models/batch_split_shipment201_response.rb +193 -0
  183. data/lib/zippendo/models/batch_split_shipment_request.rb +247 -0
  184. data/lib/zippendo/models/batch_split_shipment_request_shipments_inner.rb +186 -0
  185. data/lib/zippendo/models/batch_split_shipment_request_shipments_inner_order_lines_inner.rb +210 -0
  186. data/lib/zippendo/models/connect_carrier_request.rb +239 -0
  187. data/lib/zippendo/models/create_address_request.rb +508 -0
  188. data/lib/zippendo/models/create_api_token201_response.rb +328 -0
  189. data/lib/zippendo/models/create_api_token_request.rb +267 -0
  190. data/lib/zippendo/models/create_order201_response.rb +491 -0
  191. data/lib/zippendo/models/create_order201_response_order_lines_inner.rb +533 -0
  192. data/lib/zippendo/models/create_order201_response_shipping_address.rb +433 -0
  193. data/lib/zippendo/models/create_order_request.rb +410 -0
  194. data/lib/zippendo/models/create_order_request_order_lines_inner.rb +533 -0
  195. data/lib/zippendo/models/create_order_request_shipping_address.rb +433 -0
  196. data/lib/zippendo/models/create_org_webhook201_response.rb +356 -0
  197. data/lib/zippendo/models/create_org_webhook_request.rb +268 -0
  198. data/lib/zippendo/models/create_shipment201_response.rb +659 -0
  199. data/lib/zippendo/models/create_shipment201_response_activities_inner.rb +281 -0
  200. data/lib/zippendo/models/create_shipment201_response_documents_inner.rb +382 -0
  201. data/lib/zippendo/models/create_shipment201_response_errors_inner.rb +257 -0
  202. data/lib/zippendo/models/create_shipment201_response_logs_inner.rb +300 -0
  203. data/lib/zippendo/models/create_shipment201_response_parcels_inner.rb +356 -0
  204. data/lib/zippendo/models/create_shipment201_response_parcels_inner_dimensions.rb +246 -0
  205. data/lib/zippendo/models/create_shipment201_response_parcels_inner_order_lines_inner.rb +402 -0
  206. data/lib/zippendo/models/create_shipment201_response_parties_inner.rb +468 -0
  207. data/lib/zippendo/models/create_shipment201_response_parties_inner_attributes_inner.rb +210 -0
  208. data/lib/zippendo/models/create_shipment201_response_pickup_details.rb +229 -0
  209. data/lib/zippendo/models/create_shipment201_response_shipping_rule.rb +365 -0
  210. data/lib/zippendo/models/create_shipment201_response_tracking.rb +204 -0
  211. data/lib/zippendo/models/create_shipment_request.rb +407 -0
  212. data/lib/zippendo/models/create_shipment_request_carrier_settings.rb +250 -0
  213. data/lib/zippendo/models/create_shipment_request_parcels_inner.rb +356 -0
  214. data/lib/zippendo/models/create_shipment_request_parcels_inner_dimensions.rb +246 -0
  215. data/lib/zippendo/models/create_shipment_request_parcels_inner_order_lines_inner.rb +402 -0
  216. data/lib/zippendo/models/create_shipment_request_parties_inner.rb +451 -0
  217. data/lib/zippendo/models/create_shipment_request_parties_inner_attributes_inner.rb +210 -0
  218. data/lib/zippendo/models/create_shipment_request_pickup_details.rb +229 -0
  219. data/lib/zippendo/models/create_shipping_quote200_response.rb +167 -0
  220. data/lib/zippendo/models/create_shipping_quote200_response_rates_inner.rb +333 -0
  221. data/lib/zippendo/models/create_shipping_quote400_response.rb +192 -0
  222. data/lib/zippendo/models/create_shipping_quote404_response.rb +192 -0
  223. data/lib/zippendo/models/create_shipping_quote_request.rb +276 -0
  224. data/lib/zippendo/models/create_shipping_quote_request_destination.rb +233 -0
  225. data/lib/zippendo/models/create_shipping_quote_request_items_inner.rb +315 -0
  226. data/lib/zippendo/models/create_shipping_rule201_response.rb +910 -0
  227. data/lib/zippendo/models/create_shipping_rule_request.rb +640 -0
  228. data/lib/zippendo/models/create_shipping_rule_request_additional_parameters.rb +104 -0
  229. data/lib/zippendo/models/create_shipping_rule_request_additional_parameters_any_of_inner.rb +201 -0
  230. data/lib/zippendo/models/create_shipping_rule_request_additional_parameters_any_of_value.rb +105 -0
  231. data/lib/zippendo/models/create_shipping_rule_request_additional_parameters_any_of_value_any_of.rb +259 -0
  232. data/lib/zippendo/models/create_shipping_rule_request_additional_parameters_any_of_value_any_of_coordinates_inner.rb +102 -0
  233. data/lib/zippendo/models/create_shipping_rule_request_conditions_inner.rb +107 -0
  234. data/lib/zippendo/models/create_shipping_rule_request_conditions_inner_one_of.rb +342 -0
  235. data/lib/zippendo/models/create_shipping_rule_request_conditions_inner_one_of1.rb +359 -0
  236. data/lib/zippendo/models/create_shipping_rule_request_conditions_inner_one_of2.rb +366 -0
  237. data/lib/zippendo/models/create_shipping_rule_request_conditions_inner_one_of3.rb +344 -0
  238. data/lib/zippendo/models/create_shipping_rule_request_conditions_inner_one_of4.rb +270 -0
  239. data/lib/zippendo/models/delete_org_webhook200_response.rb +165 -0
  240. data/lib/zippendo/models/delete_shipping_rule200_response.rb +165 -0
  241. data/lib/zippendo/models/get_billing_usage200_response.rb +245 -0
  242. data/lib/zippendo/models/get_billing_usage200_response_add_ons_inner.rb +270 -0
  243. data/lib/zippendo/models/get_billing_usage200_response_current_period.rb +192 -0
  244. data/lib/zippendo/models/get_billing_usage200_response_limits.rb +320 -0
  245. data/lib/zippendo/models/get_billing_usage200_response_limits_team_members.rb +192 -0
  246. data/lib/zippendo/models/get_billing_usage200_response_shipments.rb +246 -0
  247. data/lib/zippendo/models/get_order200_response.rb +555 -0
  248. data/lib/zippendo/models/get_order200_response_shipments_inner.rb +385 -0
  249. data/lib/zippendo/models/get_order200_response_shipping_rule.rb +365 -0
  250. data/lib/zippendo/models/get_org200_response.rb +440 -0
  251. data/lib/zippendo/models/get_org200_response_count.rb +165 -0
  252. data/lib/zippendo/models/get_org_branding200_response.rb +177 -0
  253. data/lib/zippendo/models/health_check200_response.rb +219 -0
  254. data/lib/zippendo/models/list_addresses200_response.rb +275 -0
  255. data/lib/zippendo/models/list_addresses200_response_data_inner.rb +553 -0
  256. data/lib/zippendo/models/list_api_tokens200_response.rb +275 -0
  257. data/lib/zippendo/models/list_api_tokens200_response_data_inner.rb +327 -0
  258. data/lib/zippendo/models/list_api_tokens200_response_data_inner_created_by.rb +205 -0
  259. data/lib/zippendo/models/list_api_tokens401_response.rb +236 -0
  260. data/lib/zippendo/models/list_available_carriers200_response_inner.rb +286 -0
  261. data/lib/zippendo/models/list_available_carriers200_response_inner_required_fields_inner.rb +292 -0
  262. data/lib/zippendo/models/list_carrier_product_service_points200_response_inner.rb +287 -0
  263. data/lib/zippendo/models/list_carrier_product_service_points200_response_inner_address.rb +314 -0
  264. data/lib/zippendo/models/list_carrier_product_service_points_request.rb +313 -0
  265. data/lib/zippendo/models/list_carrier_products200_response_inner.rb +398 -0
  266. data/lib/zippendo/models/list_carrier_products200_response_inner_additional_parameters_inner.rb +321 -0
  267. data/lib/zippendo/models/list_carrier_products200_response_inner_additional_parameters_inner_options_inner.rb +219 -0
  268. data/lib/zippendo/models/list_carrier_products200_response_inner_services_inner.rb +192 -0
  269. data/lib/zippendo/models/list_carrier_products200_response_inner_weight_limits.rb +244 -0
  270. data/lib/zippendo/models/list_carriers200_response.rb +275 -0
  271. data/lib/zippendo/models/list_carriers200_response_data_inner.rb +369 -0
  272. data/lib/zippendo/models/list_carriers200_response_data_inner_config_value.rb +104 -0
  273. data/lib/zippendo/models/list_orders200_response.rb +275 -0
  274. data/lib/zippendo/models/list_orders200_response_data_inner.rb +423 -0
  275. data/lib/zippendo/models/list_orders200_response_data_inner_order_channel.rb +244 -0
  276. data/lib/zippendo/models/list_org_webhook_deliveries200_response.rb +275 -0
  277. data/lib/zippendo/models/list_org_webhook_deliveries200_response_data_inner.rb +365 -0
  278. data/lib/zippendo/models/list_org_webhooks200_response.rb +275 -0
  279. data/lib/zippendo/models/list_org_webhooks200_response_data_inner.rb +329 -0
  280. data/lib/zippendo/models/list_shipments200_response.rb +275 -0
  281. data/lib/zippendo/models/list_shipments200_response_data_inner.rb +362 -0
  282. data/lib/zippendo/models/list_shipments200_response_data_inner_address.rb +553 -0
  283. data/lib/zippendo/models/list_shipments200_response_data_inner_carrier_settings.rb +250 -0
  284. data/lib/zippendo/models/list_shipments200_response_data_inner_carrier_settings_additional_parameters_value.rb +105 -0
  285. data/lib/zippendo/models/list_shipments200_response_data_inner_carrier_settings_additional_parameters_value_any_of.rb +259 -0
  286. data/lib/zippendo/models/list_shipping_rules200_response.rb +275 -0
  287. data/lib/zippendo/models/list_shipping_rules200_response_data_inner.rb +992 -0
  288. data/lib/zippendo/models/list_shipping_rules200_response_data_inner_additional_parameters_inner.rb +201 -0
  289. data/lib/zippendo/models/list_shipping_rules200_response_data_inner_carrier.rb +329 -0
  290. data/lib/zippendo/models/list_shipping_rules200_response_data_inner_conditions_inner.rb +107 -0
  291. data/lib/zippendo/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of.rb +342 -0
  292. data/lib/zippendo/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of1.rb +364 -0
  293. data/lib/zippendo/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of2.rb +371 -0
  294. data/lib/zippendo/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of3.rb +344 -0
  295. data/lib/zippendo/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of4.rb +270 -0
  296. data/lib/zippendo/models/list_shipping_rules200_response_data_inner_label_printer.rb +192 -0
  297. data/lib/zippendo/models/list_shipping_rules200_response_data_inner_return_shipping_rule.rb +192 -0
  298. data/lib/zippendo/models/revoke_api_token200_response.rb +165 -0
  299. data/lib/zippendo/models/send_shipment422_response.rb +265 -0
  300. data/lib/zippendo/models/send_shipment422_response_errors_inner.rb +175 -0
  301. data/lib/zippendo/models/split_shipment201_response.rb +190 -0
  302. data/lib/zippendo/models/split_shipment_parcel200_response.rb +164 -0
  303. data/lib/zippendo/models/split_shipment_parcel_request.rb +176 -0
  304. data/lib/zippendo/models/split_shipment_parcel_request_parcels_inner.rb +186 -0
  305. data/lib/zippendo/models/split_shipment_request.rb +231 -0
  306. data/lib/zippendo/models/test_org_webhook200_response.rb +165 -0
  307. data/lib/zippendo/models/track_shipment200_response.rb +251 -0
  308. data/lib/zippendo/models/track_shipment200_response_events_inner.rb +296 -0
  309. data/lib/zippendo/models/update_address_request.rb +471 -0
  310. data/lib/zippendo/models/update_api_token_request.rb +183 -0
  311. data/lib/zippendo/models/update_carrier_request.rb +208 -0
  312. data/lib/zippendo/models/update_order_request.rb +400 -0
  313. data/lib/zippendo/models/update_org200_response.rb +414 -0
  314. data/lib/zippendo/models/update_org_branding_request.rb +194 -0
  315. data/lib/zippendo/models/update_org_request.rb +389 -0
  316. data/lib/zippendo/models/update_org_webhook_request.rb +235 -0
  317. data/lib/zippendo/models/update_shipment_request.rb +394 -0
  318. data/lib/zippendo/models/update_shipping_rule_request.rb +531 -0
  319. data/lib/zippendo/models/verify_api_token200_response.rb +218 -0
  320. data/lib/zippendo/models/verify_api_token_request.rb +165 -0
  321. data/lib/zippendo/version.rb +15 -0
  322. data/lib/zippendo.rb +195 -0
  323. data/spec/api/addresses_api_spec.rb +103 -0
  324. data/spec/api/billing_api_spec.rb +47 -0
  325. data/spec/api/carrier_catalog_api_spec.rb +47 -0
  326. data/spec/api/carriers_api_spec.rb +130 -0
  327. data/spec/api/orders_api_spec.rb +105 -0
  328. data/spec/api/orgs_api_spec.rb +122 -0
  329. data/spec/api/quotes_api_spec.rb +48 -0
  330. data/spec/api/rules_api_spec.rb +102 -0
  331. data/spec/api/shipments_api_spec.rb +212 -0
  332. data/spec/api/system_api_spec.rb +46 -0
  333. data/spec/api/tokens_api_spec.rb +114 -0
  334. data/spec/api/webhooks_api_spec.rb +130 -0
  335. data/spec/models/batch_send_shipments200_response_results_inner_spec.rb +68 -0
  336. data/spec/models/batch_send_shipments200_response_spec.rb +42 -0
  337. data/spec/models/batch_send_shipments200_response_summary_spec.rb +48 -0
  338. data/spec/models/batch_send_shipments_request_spec.rb +36 -0
  339. data/spec/models/batch_split_shipment201_response_spec.rb +42 -0
  340. data/spec/models/batch_split_shipment_request_shipments_inner_order_lines_inner_spec.rb +42 -0
  341. data/spec/models/batch_split_shipment_request_shipments_inner_spec.rb +42 -0
  342. data/spec/models/batch_split_shipment_request_spec.rb +66 -0
  343. data/spec/models/connect_carrier_request_spec.rb +48 -0
  344. data/spec/models/create_address_request_spec.rb +106 -0
  345. data/spec/models/create_api_token201_response_spec.rb +78 -0
  346. data/spec/models/create_api_token_request_spec.rb +52 -0
  347. data/spec/models/create_order201_response_order_lines_inner_spec.rb +148 -0
  348. data/spec/models/create_order201_response_shipping_address_spec.rb +108 -0
  349. data/spec/models/create_order201_response_spec.rb +142 -0
  350. data/spec/models/create_order_request_order_lines_inner_spec.rb +148 -0
  351. data/spec/models/create_order_request_shipping_address_spec.rb +108 -0
  352. data/spec/models/create_order_request_spec.rb +102 -0
  353. data/spec/models/create_org_webhook201_response_spec.rb +78 -0
  354. data/spec/models/create_org_webhook_request_spec.rb +58 -0
  355. data/spec/models/create_shipment201_response_activities_inner_spec.rb +64 -0
  356. data/spec/models/create_shipment201_response_documents_inner_spec.rb +90 -0
  357. data/spec/models/create_shipment201_response_errors_inner_spec.rb +60 -0
  358. data/spec/models/create_shipment201_response_logs_inner_spec.rb +82 -0
  359. data/spec/models/create_shipment201_response_parcels_inner_dimensions_spec.rb +48 -0
  360. data/spec/models/create_shipment201_response_parcels_inner_order_lines_inner_spec.rb +90 -0
  361. data/spec/models/create_shipment201_response_parcels_inner_spec.rb +100 -0
  362. data/spec/models/create_shipment201_response_parties_inner_attributes_inner_spec.rb +42 -0
  363. data/spec/models/create_shipment201_response_parties_inner_spec.rb +100 -0
  364. data/spec/models/create_shipment201_response_pickup_details_spec.rb +54 -0
  365. data/spec/models/create_shipment201_response_shipping_rule_spec.rb +102 -0
  366. data/spec/models/create_shipment201_response_spec.rb +182 -0
  367. data/spec/models/create_shipment201_response_tracking_spec.rb +66 -0
  368. data/spec/models/create_shipment_request_carrier_settings_spec.rb +54 -0
  369. data/spec/models/create_shipment_request_parcels_inner_dimensions_spec.rb +48 -0
  370. data/spec/models/create_shipment_request_parcels_inner_order_lines_inner_spec.rb +90 -0
  371. data/spec/models/create_shipment_request_parcels_inner_spec.rb +100 -0
  372. data/spec/models/create_shipment_request_parties_inner_attributes_inner_spec.rb +42 -0
  373. data/spec/models/create_shipment_request_parties_inner_spec.rb +100 -0
  374. data/spec/models/create_shipment_request_pickup_details_spec.rb +54 -0
  375. data/spec/models/create_shipment_request_spec.rb +116 -0
  376. data/spec/models/create_shipping_quote200_response_rates_inner_spec.rb +96 -0
  377. data/spec/models/create_shipping_quote200_response_spec.rb +36 -0
  378. data/spec/models/create_shipping_quote400_response_spec.rb +42 -0
  379. data/spec/models/create_shipping_quote404_response_spec.rb +42 -0
  380. data/spec/models/create_shipping_quote_request_destination_spec.rb +66 -0
  381. data/spec/models/create_shipping_quote_request_items_inner_spec.rb +72 -0
  382. data/spec/models/create_shipping_quote_request_spec.rb +54 -0
  383. data/spec/models/create_shipping_rule201_response_spec.rb +208 -0
  384. data/spec/models/create_shipping_rule_request_additional_parameters_any_of_inner_spec.rb +42 -0
  385. data/spec/models/create_shipping_rule_request_additional_parameters_any_of_value_any_of_coordinates_inner_spec.rb +21 -0
  386. data/spec/models/create_shipping_rule_request_additional_parameters_any_of_value_any_of_spec.rb +54 -0
  387. data/spec/models/create_shipping_rule_request_additional_parameters_any_of_value_spec.rb +21 -0
  388. data/spec/models/create_shipping_rule_request_additional_parameters_spec.rb +21 -0
  389. data/spec/models/create_shipping_rule_request_conditions_inner_one_of1_spec.rb +78 -0
  390. data/spec/models/create_shipping_rule_request_conditions_inner_one_of2_spec.rb +74 -0
  391. data/spec/models/create_shipping_rule_request_conditions_inner_one_of3_spec.rb +68 -0
  392. data/spec/models/create_shipping_rule_request_conditions_inner_one_of4_spec.rb +52 -0
  393. data/spec/models/create_shipping_rule_request_conditions_inner_one_of_spec.rb +64 -0
  394. data/spec/models/create_shipping_rule_request_conditions_inner_spec.rb +32 -0
  395. data/spec/models/create_shipping_rule_request_spec.rb +184 -0
  396. data/spec/models/delete_org_webhook200_response_spec.rb +36 -0
  397. data/spec/models/delete_shipping_rule200_response_spec.rb +36 -0
  398. data/spec/models/get_billing_usage200_response_add_ons_inner_spec.rb +58 -0
  399. data/spec/models/get_billing_usage200_response_current_period_spec.rb +42 -0
  400. data/spec/models/get_billing_usage200_response_limits_spec.rb +72 -0
  401. data/spec/models/get_billing_usage200_response_limits_team_members_spec.rb +42 -0
  402. data/spec/models/get_billing_usage200_response_shipments_spec.rb +54 -0
  403. data/spec/models/get_billing_usage200_response_spec.rb +54 -0
  404. data/spec/models/get_order200_response_shipments_inner_spec.rb +98 -0
  405. data/spec/models/get_order200_response_shipping_rule_spec.rb +102 -0
  406. data/spec/models/get_order200_response_spec.rb +160 -0
  407. data/spec/models/get_org200_response_count_spec.rb +36 -0
  408. data/spec/models/get_org200_response_spec.rb +132 -0
  409. data/spec/models/get_org_branding200_response_spec.rb +48 -0
  410. data/spec/models/health_check200_response_spec.rb +48 -0
  411. data/spec/models/list_addresses200_response_data_inner_spec.rb +130 -0
  412. data/spec/models/list_addresses200_response_spec.rb +60 -0
  413. data/spec/models/list_api_tokens200_response_data_inner_created_by_spec.rb +48 -0
  414. data/spec/models/list_api_tokens200_response_data_inner_spec.rb +78 -0
  415. data/spec/models/list_api_tokens200_response_spec.rb +60 -0
  416. data/spec/models/list_api_tokens401_response_spec.rb +52 -0
  417. data/spec/models/list_available_carriers200_response_inner_required_fields_inner_spec.rb +70 -0
  418. data/spec/models/list_available_carriers200_response_inner_spec.rb +96 -0
  419. data/spec/models/list_carrier_product_service_points200_response_inner_address_spec.rb +66 -0
  420. data/spec/models/list_carrier_product_service_points200_response_inner_spec.rb +78 -0
  421. data/spec/models/list_carrier_product_service_points_request_spec.rb +66 -0
  422. data/spec/models/list_carrier_products200_response_inner_additional_parameters_inner_options_inner_spec.rb +48 -0
  423. data/spec/models/list_carrier_products200_response_inner_additional_parameters_inner_spec.rb +76 -0
  424. data/spec/models/list_carrier_products200_response_inner_services_inner_spec.rb +42 -0
  425. data/spec/models/list_carrier_products200_response_inner_spec.rb +100 -0
  426. data/spec/models/list_carrier_products200_response_inner_weight_limits_spec.rb +52 -0
  427. data/spec/models/list_carriers200_response_data_inner_config_value_spec.rb +21 -0
  428. data/spec/models/list_carriers200_response_data_inner_spec.rb +96 -0
  429. data/spec/models/list_carriers200_response_spec.rb +60 -0
  430. data/spec/models/list_orders200_response_data_inner_order_channel_spec.rb +52 -0
  431. data/spec/models/list_orders200_response_data_inner_spec.rb +106 -0
  432. data/spec/models/list_orders200_response_spec.rb +60 -0
  433. data/spec/models/list_org_webhook_deliveries200_response_data_inner_spec.rb +96 -0
  434. data/spec/models/list_org_webhook_deliveries200_response_spec.rb +60 -0
  435. data/spec/models/list_org_webhooks200_response_data_inner_spec.rb +72 -0
  436. data/spec/models/list_org_webhooks200_response_spec.rb +60 -0
  437. data/spec/models/list_shipments200_response_data_inner_address_spec.rb +130 -0
  438. data/spec/models/list_shipments200_response_data_inner_carrier_settings_additional_parameters_value_any_of_spec.rb +54 -0
  439. data/spec/models/list_shipments200_response_data_inner_carrier_settings_additional_parameters_value_spec.rb +21 -0
  440. data/spec/models/list_shipments200_response_data_inner_carrier_settings_spec.rb +54 -0
  441. data/spec/models/list_shipments200_response_data_inner_spec.rb +86 -0
  442. data/spec/models/list_shipments200_response_spec.rb +60 -0
  443. data/spec/models/list_shipping_rules200_response_data_inner_additional_parameters_inner_spec.rb +42 -0
  444. data/spec/models/list_shipping_rules200_response_data_inner_carrier_spec.rb +72 -0
  445. data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of1_spec.rb +78 -0
  446. data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of2_spec.rb +74 -0
  447. data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of3_spec.rb +68 -0
  448. data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of4_spec.rb +52 -0
  449. data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of_spec.rb +64 -0
  450. data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_spec.rb +32 -0
  451. data/spec/models/list_shipping_rules200_response_data_inner_label_printer_spec.rb +42 -0
  452. data/spec/models/list_shipping_rules200_response_data_inner_return_shipping_rule_spec.rb +42 -0
  453. data/spec/models/list_shipping_rules200_response_data_inner_spec.rb +238 -0
  454. data/spec/models/list_shipping_rules200_response_spec.rb +60 -0
  455. data/spec/models/revoke_api_token200_response_spec.rb +36 -0
  456. data/spec/models/send_shipment422_response_errors_inner_spec.rb +42 -0
  457. data/spec/models/send_shipment422_response_spec.rb +58 -0
  458. data/spec/models/split_shipment201_response_spec.rb +42 -0
  459. data/spec/models/split_shipment_parcel200_response_spec.rb +36 -0
  460. data/spec/models/split_shipment_parcel_request_parcels_inner_spec.rb +42 -0
  461. data/spec/models/split_shipment_parcel_request_spec.rb +36 -0
  462. data/spec/models/split_shipment_request_spec.rb +72 -0
  463. data/spec/models/test_org_webhook200_response_spec.rb +36 -0
  464. data/spec/models/track_shipment200_response_events_inner_spec.rb +70 -0
  465. data/spec/models/track_shipment200_response_spec.rb +64 -0
  466. data/spec/models/update_address_request_spec.rb +106 -0
  467. data/spec/models/update_api_token_request_spec.rb +36 -0
  468. data/spec/models/update_carrier_request_spec.rb +48 -0
  469. data/spec/models/update_order_request_spec.rb +100 -0
  470. data/spec/models/update_org200_response_spec.rb +126 -0
  471. data/spec/models/update_org_branding_request_spec.rb +42 -0
  472. data/spec/models/update_org_request_spec.rb +118 -0
  473. data/spec/models/update_org_webhook_request_spec.rb +58 -0
  474. data/spec/models/update_shipment_request_spec.rb +122 -0
  475. data/spec/models/update_shipping_rule_request_spec.rb +184 -0
  476. data/spec/models/verify_api_token200_response_spec.rb +66 -0
  477. data/spec/models/verify_api_token_request_spec.rb +36 -0
  478. data/spec/spec_helper.rb +111 -0
  479. data/zippendo.gemspec +39 -0
  480. metadata +715 -0
@@ -0,0 +1,992 @@
1
+ =begin
2
+ #Zippendo Public API
3
+
4
+ #Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_).
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@zippendo.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.24.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zippendo
17
+ class ListShippingRules200ResponseDataInner < ApiModelBase
18
+ # Unique shipping rule identifier
19
+ attr_accessor :id
20
+
21
+ # Shipping rule name
22
+ attr_accessor :name
23
+
24
+ # Optional description
25
+ attr_accessor :description
26
+
27
+ # Whether this rule is for outbound or inbound (return) shipments
28
+ attr_accessor :direction
29
+
30
+ # Carrier ID
31
+ attr_accessor :carrier_id
32
+
33
+ # Product ID from carrier
34
+ attr_accessor :product_id
35
+
36
+ # List of selected services
37
+ attr_accessor :services
38
+
39
+ # Carrier-specific extra parameters. DEPRECATED array form `[{ name, val }]` where `name` is the carrier parameter `key` (from the product's `additionalParameters[].key`, e.g. `returnFunctionality`) and `val` is the stringified value. This will change to a `{ key: value }` object in a future version — writes already accept either shape.
40
+ attr_accessor :additional_parameters
41
+
42
+ # Sender address ID
43
+ attr_accessor :address_id
44
+
45
+ # List of supported country codes
46
+ attr_accessor :receiving_countries
47
+
48
+ # Send email notification to recipient
49
+ attr_accessor :email_notification
50
+
51
+ # Send SMS notification to recipient
52
+ attr_accessor :phone_notification
53
+
54
+ # Minimum required weight in kg. Orders below this are excluded from the rule.
55
+ attr_accessor :min_weight
56
+
57
+ # Maximum allowed weight in kg. Orders exceeding this are excluded from the rule.
58
+ attr_accessor :max_weight
59
+
60
+ # Minimum required order value in currency units. Orders below this are excluded from the rule.
61
+ attr_accessor :min_order_value
62
+
63
+ # Maximum allowed order value in currency units. Orders exceeding this are excluded from the rule.
64
+ attr_accessor :max_order_value
65
+
66
+ # Rule conditions (weight/price/quantity)
67
+ attr_accessor :conditions
68
+
69
+ # Generate proforma invoice for shipments
70
+ attr_accessor :generate_proforma_invoice
71
+
72
+ # Generate commercial invoice for international shipments
73
+ attr_accessor :generate_commercial_invoice
74
+
75
+ # Generate packing slip with package and item details
76
+ attr_accessor :generate_packing_list
77
+
78
+ # Automatically print labels when shipment is sent
79
+ attr_accessor :auto_print_labels
80
+
81
+ # Automatically print documents when shipment is sent
82
+ attr_accessor :auto_print_documents
83
+
84
+ # ID of the label printer
85
+ attr_accessor :label_printer_id
86
+
87
+ # ID of the document printer
88
+ attr_accessor :document_printer_id
89
+
90
+ # ID of the return shipping rule
91
+ attr_accessor :return_shipping_rule_id
92
+
93
+ # Automatically create and send a return shipment on dispatch
94
+ attr_accessor :auto_create_return_shipment
95
+
96
+ # Owning organization ID
97
+ attr_accessor :org_id
98
+
99
+ # Creation timestamp (ISO 8601)
100
+ attr_accessor :created_at
101
+
102
+ # Last update timestamp (ISO 8601)
103
+ attr_accessor :updated_at
104
+
105
+ attr_accessor :carrier
106
+
107
+ attr_accessor :address
108
+
109
+ attr_accessor :label_printer
110
+
111
+ attr_accessor :document_printer
112
+
113
+ attr_accessor :return_shipping_rule
114
+
115
+ class EnumAttributeValidator
116
+ attr_reader :datatype
117
+ attr_reader :allowable_values
118
+
119
+ def initialize(datatype, allowable_values)
120
+ @allowable_values = allowable_values.map do |value|
121
+ case datatype.to_s
122
+ when /Integer/i
123
+ value.to_i
124
+ when /Float/i
125
+ value.to_f
126
+ else
127
+ value
128
+ end
129
+ end
130
+ end
131
+
132
+ def valid?(value)
133
+ !value || allowable_values.include?(value)
134
+ end
135
+ end
136
+
137
+ # Attribute mapping from ruby-style variable name to JSON key.
138
+ def self.attribute_map
139
+ {
140
+ :'id' => :'id',
141
+ :'name' => :'name',
142
+ :'description' => :'description',
143
+ :'direction' => :'direction',
144
+ :'carrier_id' => :'carrierId',
145
+ :'product_id' => :'productId',
146
+ :'services' => :'services',
147
+ :'additional_parameters' => :'additionalParameters',
148
+ :'address_id' => :'addressId',
149
+ :'receiving_countries' => :'receivingCountries',
150
+ :'email_notification' => :'emailNotification',
151
+ :'phone_notification' => :'phoneNotification',
152
+ :'min_weight' => :'minWeight',
153
+ :'max_weight' => :'maxWeight',
154
+ :'min_order_value' => :'minOrderValue',
155
+ :'max_order_value' => :'maxOrderValue',
156
+ :'conditions' => :'conditions',
157
+ :'generate_proforma_invoice' => :'generateProformaInvoice',
158
+ :'generate_commercial_invoice' => :'generateCommercialInvoice',
159
+ :'generate_packing_list' => :'generatePackingList',
160
+ :'auto_print_labels' => :'autoPrintLabels',
161
+ :'auto_print_documents' => :'autoPrintDocuments',
162
+ :'label_printer_id' => :'labelPrinterId',
163
+ :'document_printer_id' => :'documentPrinterId',
164
+ :'return_shipping_rule_id' => :'returnShippingRuleId',
165
+ :'auto_create_return_shipment' => :'autoCreateReturnShipment',
166
+ :'org_id' => :'orgId',
167
+ :'created_at' => :'createdAt',
168
+ :'updated_at' => :'updatedAt',
169
+ :'carrier' => :'carrier',
170
+ :'address' => :'address',
171
+ :'label_printer' => :'labelPrinter',
172
+ :'document_printer' => :'documentPrinter',
173
+ :'return_shipping_rule' => :'returnShippingRule'
174
+ }
175
+ end
176
+
177
+ # Returns attribute mapping this model knows about
178
+ def self.acceptable_attribute_map
179
+ attribute_map
180
+ end
181
+
182
+ # Returns all the JSON keys this model knows about
183
+ def self.acceptable_attributes
184
+ acceptable_attribute_map.values
185
+ end
186
+
187
+ # Attribute type mapping.
188
+ def self.openapi_types
189
+ {
190
+ :'id' => :'String',
191
+ :'name' => :'String',
192
+ :'description' => :'String',
193
+ :'direction' => :'String',
194
+ :'carrier_id' => :'String',
195
+ :'product_id' => :'String',
196
+ :'services' => :'Array<String>',
197
+ :'additional_parameters' => :'Array<ListShippingRules200ResponseDataInnerAdditionalParametersInner>',
198
+ :'address_id' => :'String',
199
+ :'receiving_countries' => :'Array<String>',
200
+ :'email_notification' => :'Boolean',
201
+ :'phone_notification' => :'Boolean',
202
+ :'min_weight' => :'Float',
203
+ :'max_weight' => :'Float',
204
+ :'min_order_value' => :'Float',
205
+ :'max_order_value' => :'Float',
206
+ :'conditions' => :'Array<ListShippingRules200ResponseDataInnerConditionsInner>',
207
+ :'generate_proforma_invoice' => :'Boolean',
208
+ :'generate_commercial_invoice' => :'Boolean',
209
+ :'generate_packing_list' => :'Boolean',
210
+ :'auto_print_labels' => :'Boolean',
211
+ :'auto_print_documents' => :'Boolean',
212
+ :'label_printer_id' => :'String',
213
+ :'document_printer_id' => :'String',
214
+ :'return_shipping_rule_id' => :'String',
215
+ :'auto_create_return_shipment' => :'Boolean',
216
+ :'org_id' => :'String',
217
+ :'created_at' => :'String',
218
+ :'updated_at' => :'String',
219
+ :'carrier' => :'ListShippingRules200ResponseDataInnerCarrier',
220
+ :'address' => :'ListAddresses200ResponseDataInner',
221
+ :'label_printer' => :'ListShippingRules200ResponseDataInnerLabelPrinter',
222
+ :'document_printer' => :'ListShippingRules200ResponseDataInnerLabelPrinter',
223
+ :'return_shipping_rule' => :'ListShippingRules200ResponseDataInnerReturnShippingRule'
224
+ }
225
+ end
226
+
227
+ # List of attributes with nullable: true
228
+ def self.openapi_nullable
229
+ Set.new([
230
+ :'description',
231
+ :'min_weight',
232
+ :'max_weight',
233
+ :'min_order_value',
234
+ :'max_order_value',
235
+ :'label_printer_id',
236
+ :'document_printer_id',
237
+ :'return_shipping_rule_id',
238
+ :'label_printer',
239
+ :'document_printer',
240
+ :'return_shipping_rule'
241
+ ])
242
+ end
243
+
244
+ # Initializes the object
245
+ # @param [Hash] attributes Model attributes in the form of hash
246
+ def initialize(attributes = {})
247
+ if (!attributes.is_a?(Hash))
248
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zippendo::ListShippingRules200ResponseDataInner` initialize method"
249
+ end
250
+
251
+ # check to see if the attribute exists and convert string to symbol for hash key
252
+ acceptable_attribute_map = self.class.acceptable_attribute_map
253
+ attributes = attributes.each_with_object({}) { |(k, v), h|
254
+ if (!acceptable_attribute_map.key?(k.to_sym))
255
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zippendo::ListShippingRules200ResponseDataInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
256
+ end
257
+ h[k.to_sym] = v
258
+ }
259
+
260
+ if attributes.key?(:'id')
261
+ self.id = attributes[:'id']
262
+ else
263
+ self.id = nil
264
+ end
265
+
266
+ if attributes.key?(:'name')
267
+ self.name = attributes[:'name']
268
+ else
269
+ self.name = nil
270
+ end
271
+
272
+ if attributes.key?(:'description')
273
+ self.description = attributes[:'description']
274
+ else
275
+ self.description = nil
276
+ end
277
+
278
+ if attributes.key?(:'direction')
279
+ self.direction = attributes[:'direction']
280
+ else
281
+ self.direction = 'outbound'
282
+ end
283
+
284
+ if attributes.key?(:'carrier_id')
285
+ self.carrier_id = attributes[:'carrier_id']
286
+ else
287
+ self.carrier_id = nil
288
+ end
289
+
290
+ if attributes.key?(:'product_id')
291
+ self.product_id = attributes[:'product_id']
292
+ else
293
+ self.product_id = nil
294
+ end
295
+
296
+ if attributes.key?(:'services')
297
+ if (value = attributes[:'services']).is_a?(Array)
298
+ self.services = value
299
+ end
300
+ else
301
+ self.services = nil
302
+ end
303
+
304
+ if attributes.key?(:'additional_parameters')
305
+ if (value = attributes[:'additional_parameters']).is_a?(Array)
306
+ self.additional_parameters = value
307
+ end
308
+ else
309
+ self.additional_parameters = nil
310
+ end
311
+
312
+ if attributes.key?(:'address_id')
313
+ self.address_id = attributes[:'address_id']
314
+ else
315
+ self.address_id = nil
316
+ end
317
+
318
+ if attributes.key?(:'receiving_countries')
319
+ if (value = attributes[:'receiving_countries']).is_a?(Array)
320
+ self.receiving_countries = value
321
+ end
322
+ else
323
+ self.receiving_countries = nil
324
+ end
325
+
326
+ if attributes.key?(:'email_notification')
327
+ self.email_notification = attributes[:'email_notification']
328
+ else
329
+ self.email_notification = false
330
+ end
331
+
332
+ if attributes.key?(:'phone_notification')
333
+ self.phone_notification = attributes[:'phone_notification']
334
+ else
335
+ self.phone_notification = false
336
+ end
337
+
338
+ if attributes.key?(:'min_weight')
339
+ self.min_weight = attributes[:'min_weight']
340
+ else
341
+ self.min_weight = nil
342
+ end
343
+
344
+ if attributes.key?(:'max_weight')
345
+ self.max_weight = attributes[:'max_weight']
346
+ else
347
+ self.max_weight = nil
348
+ end
349
+
350
+ if attributes.key?(:'min_order_value')
351
+ self.min_order_value = attributes[:'min_order_value']
352
+ else
353
+ self.min_order_value = nil
354
+ end
355
+
356
+ if attributes.key?(:'max_order_value')
357
+ self.max_order_value = attributes[:'max_order_value']
358
+ else
359
+ self.max_order_value = nil
360
+ end
361
+
362
+ if attributes.key?(:'conditions')
363
+ if (value = attributes[:'conditions']).is_a?(Array)
364
+ self.conditions = value
365
+ end
366
+ else
367
+ self.conditions = nil
368
+ end
369
+
370
+ if attributes.key?(:'generate_proforma_invoice')
371
+ self.generate_proforma_invoice = attributes[:'generate_proforma_invoice']
372
+ else
373
+ self.generate_proforma_invoice = false
374
+ end
375
+
376
+ if attributes.key?(:'generate_commercial_invoice')
377
+ self.generate_commercial_invoice = attributes[:'generate_commercial_invoice']
378
+ else
379
+ self.generate_commercial_invoice = false
380
+ end
381
+
382
+ if attributes.key?(:'generate_packing_list')
383
+ self.generate_packing_list = attributes[:'generate_packing_list']
384
+ else
385
+ self.generate_packing_list = false
386
+ end
387
+
388
+ if attributes.key?(:'auto_print_labels')
389
+ self.auto_print_labels = attributes[:'auto_print_labels']
390
+ else
391
+ self.auto_print_labels = false
392
+ end
393
+
394
+ if attributes.key?(:'auto_print_documents')
395
+ self.auto_print_documents = attributes[:'auto_print_documents']
396
+ else
397
+ self.auto_print_documents = false
398
+ end
399
+
400
+ if attributes.key?(:'label_printer_id')
401
+ self.label_printer_id = attributes[:'label_printer_id']
402
+ else
403
+ self.label_printer_id = nil
404
+ end
405
+
406
+ if attributes.key?(:'document_printer_id')
407
+ self.document_printer_id = attributes[:'document_printer_id']
408
+ else
409
+ self.document_printer_id = nil
410
+ end
411
+
412
+ if attributes.key?(:'return_shipping_rule_id')
413
+ self.return_shipping_rule_id = attributes[:'return_shipping_rule_id']
414
+ else
415
+ self.return_shipping_rule_id = nil
416
+ end
417
+
418
+ if attributes.key?(:'auto_create_return_shipment')
419
+ self.auto_create_return_shipment = attributes[:'auto_create_return_shipment']
420
+ else
421
+ self.auto_create_return_shipment = false
422
+ end
423
+
424
+ if attributes.key?(:'org_id')
425
+ self.org_id = attributes[:'org_id']
426
+ else
427
+ self.org_id = nil
428
+ end
429
+
430
+ if attributes.key?(:'created_at')
431
+ self.created_at = attributes[:'created_at']
432
+ else
433
+ self.created_at = nil
434
+ end
435
+
436
+ if attributes.key?(:'updated_at')
437
+ self.updated_at = attributes[:'updated_at']
438
+ else
439
+ self.updated_at = nil
440
+ end
441
+
442
+ if attributes.key?(:'carrier')
443
+ self.carrier = attributes[:'carrier']
444
+ else
445
+ self.carrier = nil
446
+ end
447
+
448
+ if attributes.key?(:'address')
449
+ self.address = attributes[:'address']
450
+ else
451
+ self.address = nil
452
+ end
453
+
454
+ if attributes.key?(:'label_printer')
455
+ self.label_printer = attributes[:'label_printer']
456
+ end
457
+
458
+ if attributes.key?(:'document_printer')
459
+ self.document_printer = attributes[:'document_printer']
460
+ end
461
+
462
+ if attributes.key?(:'return_shipping_rule')
463
+ self.return_shipping_rule = attributes[:'return_shipping_rule']
464
+ end
465
+ end
466
+
467
+ # Show invalid properties with the reasons. Usually used together with valid?
468
+ # @return Array for valid properties with the reasons
469
+ def list_invalid_properties
470
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
471
+ invalid_properties = Array.new
472
+ if @id.nil?
473
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
474
+ end
475
+
476
+ if @name.nil?
477
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
478
+ end
479
+
480
+ if @name.to_s.length < 1
481
+ invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
482
+ end
483
+
484
+ if @direction.nil?
485
+ invalid_properties.push('invalid value for "direction", direction cannot be nil.')
486
+ end
487
+
488
+ if @carrier_id.nil?
489
+ invalid_properties.push('invalid value for "carrier_id", carrier_id cannot be nil.')
490
+ end
491
+
492
+ if @product_id.nil?
493
+ invalid_properties.push('invalid value for "product_id", product_id cannot be nil.')
494
+ end
495
+
496
+ if @services.nil?
497
+ invalid_properties.push('invalid value for "services", services cannot be nil.')
498
+ end
499
+
500
+ if @additional_parameters.nil?
501
+ invalid_properties.push('invalid value for "additional_parameters", additional_parameters cannot be nil.')
502
+ end
503
+
504
+ if @address_id.nil?
505
+ invalid_properties.push('invalid value for "address_id", address_id cannot be nil.')
506
+ end
507
+
508
+ if @receiving_countries.nil?
509
+ invalid_properties.push('invalid value for "receiving_countries", receiving_countries cannot be nil.')
510
+ end
511
+
512
+ if @email_notification.nil?
513
+ invalid_properties.push('invalid value for "email_notification", email_notification cannot be nil.')
514
+ end
515
+
516
+ if @phone_notification.nil?
517
+ invalid_properties.push('invalid value for "phone_notification", phone_notification cannot be nil.')
518
+ end
519
+
520
+ if @min_weight < 0
521
+ invalid_properties.push('invalid value for "min_weight", must be greater than or equal to 0.')
522
+ end
523
+
524
+ if @max_weight < 0
525
+ invalid_properties.push('invalid value for "max_weight", must be greater than or equal to 0.')
526
+ end
527
+
528
+ if @min_order_value < 0
529
+ invalid_properties.push('invalid value for "min_order_value", must be greater than or equal to 0.')
530
+ end
531
+
532
+ if @max_order_value < 0
533
+ invalid_properties.push('invalid value for "max_order_value", must be greater than or equal to 0.')
534
+ end
535
+
536
+ if @conditions.nil?
537
+ invalid_properties.push('invalid value for "conditions", conditions cannot be nil.')
538
+ end
539
+
540
+ if @generate_proforma_invoice.nil?
541
+ invalid_properties.push('invalid value for "generate_proforma_invoice", generate_proforma_invoice cannot be nil.')
542
+ end
543
+
544
+ if @generate_commercial_invoice.nil?
545
+ invalid_properties.push('invalid value for "generate_commercial_invoice", generate_commercial_invoice cannot be nil.')
546
+ end
547
+
548
+ if @generate_packing_list.nil?
549
+ invalid_properties.push('invalid value for "generate_packing_list", generate_packing_list cannot be nil.')
550
+ end
551
+
552
+ if @auto_print_labels.nil?
553
+ invalid_properties.push('invalid value for "auto_print_labels", auto_print_labels cannot be nil.')
554
+ end
555
+
556
+ if @auto_print_documents.nil?
557
+ invalid_properties.push('invalid value for "auto_print_documents", auto_print_documents cannot be nil.')
558
+ end
559
+
560
+ if @auto_create_return_shipment.nil?
561
+ invalid_properties.push('invalid value for "auto_create_return_shipment", auto_create_return_shipment cannot be nil.')
562
+ end
563
+
564
+ if @org_id.nil?
565
+ invalid_properties.push('invalid value for "org_id", org_id cannot be nil.')
566
+ end
567
+
568
+ if @created_at.nil?
569
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
570
+ end
571
+
572
+ if @updated_at.nil?
573
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
574
+ end
575
+
576
+ if @carrier.nil?
577
+ invalid_properties.push('invalid value for "carrier", carrier cannot be nil.')
578
+ end
579
+
580
+ if @address.nil?
581
+ invalid_properties.push('invalid value for "address", address cannot be nil.')
582
+ end
583
+
584
+ invalid_properties
585
+ end
586
+
587
+ # Check to see if the all the properties in the model are valid
588
+ # @return true if the model is valid
589
+ def valid?
590
+ warn '[DEPRECATED] the `valid?` method is obsolete'
591
+ return false if @id.nil?
592
+ return false if @name.nil?
593
+ return false if @name.to_s.length < 1
594
+ return false if @direction.nil?
595
+ direction_validator = EnumAttributeValidator.new('String', ["outbound", "inbound"])
596
+ return false unless direction_validator.valid?(@direction)
597
+ return false if @carrier_id.nil?
598
+ return false if @product_id.nil?
599
+ return false if @services.nil?
600
+ return false if @additional_parameters.nil?
601
+ return false if @address_id.nil?
602
+ return false if @receiving_countries.nil?
603
+ return false if @email_notification.nil?
604
+ return false if @phone_notification.nil?
605
+ return false if @min_weight < 0
606
+ return false if @max_weight < 0
607
+ return false if @min_order_value < 0
608
+ return false if @max_order_value < 0
609
+ return false if @conditions.nil?
610
+ return false if @generate_proforma_invoice.nil?
611
+ return false if @generate_commercial_invoice.nil?
612
+ return false if @generate_packing_list.nil?
613
+ return false if @auto_print_labels.nil?
614
+ return false if @auto_print_documents.nil?
615
+ return false if @auto_create_return_shipment.nil?
616
+ return false if @org_id.nil?
617
+ return false if @created_at.nil?
618
+ return false if @updated_at.nil?
619
+ return false if @carrier.nil?
620
+ return false if @address.nil?
621
+ true
622
+ end
623
+
624
+ # Custom attribute writer method with validation
625
+ # @param [Object] id Value to be assigned
626
+ def id=(id)
627
+ if id.nil?
628
+ fail ArgumentError, 'id cannot be nil'
629
+ end
630
+
631
+ @id = id
632
+ end
633
+
634
+ # Custom attribute writer method with validation
635
+ # @param [Object] name Value to be assigned
636
+ def name=(name)
637
+ if name.nil?
638
+ fail ArgumentError, 'name cannot be nil'
639
+ end
640
+
641
+ if name.to_s.length < 1
642
+ fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
643
+ end
644
+
645
+ @name = name
646
+ end
647
+
648
+ # Custom attribute writer method checking allowed values (enum).
649
+ # @param [Object] direction Object to be assigned
650
+ def direction=(direction)
651
+ validator = EnumAttributeValidator.new('String', ["outbound", "inbound"])
652
+ unless validator.valid?(direction)
653
+ fail ArgumentError, "invalid value for \"direction\", must be one of #{validator.allowable_values}."
654
+ end
655
+ @direction = direction
656
+ end
657
+
658
+ # Custom attribute writer method with validation
659
+ # @param [Object] carrier_id Value to be assigned
660
+ def carrier_id=(carrier_id)
661
+ if carrier_id.nil?
662
+ fail ArgumentError, 'carrier_id cannot be nil'
663
+ end
664
+
665
+ @carrier_id = carrier_id
666
+ end
667
+
668
+ # Custom attribute writer method with validation
669
+ # @param [Object] product_id Value to be assigned
670
+ def product_id=(product_id)
671
+ if product_id.nil?
672
+ fail ArgumentError, 'product_id cannot be nil'
673
+ end
674
+
675
+ @product_id = product_id
676
+ end
677
+
678
+ # Custom attribute writer method with validation
679
+ # @param [Object] services Value to be assigned
680
+ def services=(services)
681
+ if services.nil?
682
+ fail ArgumentError, 'services cannot be nil'
683
+ end
684
+
685
+ @services = services
686
+ end
687
+
688
+ # Custom attribute writer method with validation
689
+ # @param [Object] additional_parameters Value to be assigned
690
+ def additional_parameters=(additional_parameters)
691
+ if additional_parameters.nil?
692
+ fail ArgumentError, 'additional_parameters cannot be nil'
693
+ end
694
+
695
+ @additional_parameters = additional_parameters
696
+ end
697
+
698
+ # Custom attribute writer method with validation
699
+ # @param [Object] address_id Value to be assigned
700
+ def address_id=(address_id)
701
+ if address_id.nil?
702
+ fail ArgumentError, 'address_id cannot be nil'
703
+ end
704
+
705
+ @address_id = address_id
706
+ end
707
+
708
+ # Custom attribute writer method with validation
709
+ # @param [Object] receiving_countries Value to be assigned
710
+ def receiving_countries=(receiving_countries)
711
+ if receiving_countries.nil?
712
+ fail ArgumentError, 'receiving_countries cannot be nil'
713
+ end
714
+
715
+ @receiving_countries = receiving_countries
716
+ end
717
+
718
+ # Custom attribute writer method with validation
719
+ # @param [Object] email_notification Value to be assigned
720
+ def email_notification=(email_notification)
721
+ if email_notification.nil?
722
+ fail ArgumentError, 'email_notification cannot be nil'
723
+ end
724
+
725
+ @email_notification = email_notification
726
+ end
727
+
728
+ # Custom attribute writer method with validation
729
+ # @param [Object] phone_notification Value to be assigned
730
+ def phone_notification=(phone_notification)
731
+ if phone_notification.nil?
732
+ fail ArgumentError, 'phone_notification cannot be nil'
733
+ end
734
+
735
+ @phone_notification = phone_notification
736
+ end
737
+
738
+ # Custom attribute writer method with validation
739
+ # @param [Object] min_weight Value to be assigned
740
+ def min_weight=(min_weight)
741
+ if !min_weight.nil? && min_weight < 0
742
+ fail ArgumentError, 'invalid value for "min_weight", must be greater than or equal to 0.'
743
+ end
744
+
745
+ @min_weight = min_weight
746
+ end
747
+
748
+ # Custom attribute writer method with validation
749
+ # @param [Object] max_weight Value to be assigned
750
+ def max_weight=(max_weight)
751
+ if !max_weight.nil? && max_weight < 0
752
+ fail ArgumentError, 'invalid value for "max_weight", must be greater than or equal to 0.'
753
+ end
754
+
755
+ @max_weight = max_weight
756
+ end
757
+
758
+ # Custom attribute writer method with validation
759
+ # @param [Object] min_order_value Value to be assigned
760
+ def min_order_value=(min_order_value)
761
+ if !min_order_value.nil? && min_order_value < 0
762
+ fail ArgumentError, 'invalid value for "min_order_value", must be greater than or equal to 0.'
763
+ end
764
+
765
+ @min_order_value = min_order_value
766
+ end
767
+
768
+ # Custom attribute writer method with validation
769
+ # @param [Object] max_order_value Value to be assigned
770
+ def max_order_value=(max_order_value)
771
+ if !max_order_value.nil? && max_order_value < 0
772
+ fail ArgumentError, 'invalid value for "max_order_value", must be greater than or equal to 0.'
773
+ end
774
+
775
+ @max_order_value = max_order_value
776
+ end
777
+
778
+ # Custom attribute writer method with validation
779
+ # @param [Object] conditions Value to be assigned
780
+ def conditions=(conditions)
781
+ if conditions.nil?
782
+ fail ArgumentError, 'conditions cannot be nil'
783
+ end
784
+
785
+ @conditions = conditions
786
+ end
787
+
788
+ # Custom attribute writer method with validation
789
+ # @param [Object] generate_proforma_invoice Value to be assigned
790
+ def generate_proforma_invoice=(generate_proforma_invoice)
791
+ if generate_proforma_invoice.nil?
792
+ fail ArgumentError, 'generate_proforma_invoice cannot be nil'
793
+ end
794
+
795
+ @generate_proforma_invoice = generate_proforma_invoice
796
+ end
797
+
798
+ # Custom attribute writer method with validation
799
+ # @param [Object] generate_commercial_invoice Value to be assigned
800
+ def generate_commercial_invoice=(generate_commercial_invoice)
801
+ if generate_commercial_invoice.nil?
802
+ fail ArgumentError, 'generate_commercial_invoice cannot be nil'
803
+ end
804
+
805
+ @generate_commercial_invoice = generate_commercial_invoice
806
+ end
807
+
808
+ # Custom attribute writer method with validation
809
+ # @param [Object] generate_packing_list Value to be assigned
810
+ def generate_packing_list=(generate_packing_list)
811
+ if generate_packing_list.nil?
812
+ fail ArgumentError, 'generate_packing_list cannot be nil'
813
+ end
814
+
815
+ @generate_packing_list = generate_packing_list
816
+ end
817
+
818
+ # Custom attribute writer method with validation
819
+ # @param [Object] auto_print_labels Value to be assigned
820
+ def auto_print_labels=(auto_print_labels)
821
+ if auto_print_labels.nil?
822
+ fail ArgumentError, 'auto_print_labels cannot be nil'
823
+ end
824
+
825
+ @auto_print_labels = auto_print_labels
826
+ end
827
+
828
+ # Custom attribute writer method with validation
829
+ # @param [Object] auto_print_documents Value to be assigned
830
+ def auto_print_documents=(auto_print_documents)
831
+ if auto_print_documents.nil?
832
+ fail ArgumentError, 'auto_print_documents cannot be nil'
833
+ end
834
+
835
+ @auto_print_documents = auto_print_documents
836
+ end
837
+
838
+ # Custom attribute writer method with validation
839
+ # @param [Object] auto_create_return_shipment Value to be assigned
840
+ def auto_create_return_shipment=(auto_create_return_shipment)
841
+ if auto_create_return_shipment.nil?
842
+ fail ArgumentError, 'auto_create_return_shipment cannot be nil'
843
+ end
844
+
845
+ @auto_create_return_shipment = auto_create_return_shipment
846
+ end
847
+
848
+ # Custom attribute writer method with validation
849
+ # @param [Object] org_id Value to be assigned
850
+ def org_id=(org_id)
851
+ if org_id.nil?
852
+ fail ArgumentError, 'org_id cannot be nil'
853
+ end
854
+
855
+ @org_id = org_id
856
+ end
857
+
858
+ # Custom attribute writer method with validation
859
+ # @param [Object] created_at Value to be assigned
860
+ def created_at=(created_at)
861
+ if created_at.nil?
862
+ fail ArgumentError, 'created_at cannot be nil'
863
+ end
864
+
865
+ @created_at = created_at
866
+ end
867
+
868
+ # Custom attribute writer method with validation
869
+ # @param [Object] updated_at Value to be assigned
870
+ def updated_at=(updated_at)
871
+ if updated_at.nil?
872
+ fail ArgumentError, 'updated_at cannot be nil'
873
+ end
874
+
875
+ @updated_at = updated_at
876
+ end
877
+
878
+ # Custom attribute writer method with validation
879
+ # @param [Object] carrier Value to be assigned
880
+ def carrier=(carrier)
881
+ if carrier.nil?
882
+ fail ArgumentError, 'carrier cannot be nil'
883
+ end
884
+
885
+ @carrier = carrier
886
+ end
887
+
888
+ # Custom attribute writer method with validation
889
+ # @param [Object] address Value to be assigned
890
+ def address=(address)
891
+ if address.nil?
892
+ fail ArgumentError, 'address cannot be nil'
893
+ end
894
+
895
+ @address = address
896
+ end
897
+
898
+ # Checks equality by comparing each attribute.
899
+ # @param [Object] Object to be compared
900
+ def ==(o)
901
+ return true if self.equal?(o)
902
+ self.class == o.class &&
903
+ id == o.id &&
904
+ name == o.name &&
905
+ description == o.description &&
906
+ direction == o.direction &&
907
+ carrier_id == o.carrier_id &&
908
+ product_id == o.product_id &&
909
+ services == o.services &&
910
+ additional_parameters == o.additional_parameters &&
911
+ address_id == o.address_id &&
912
+ receiving_countries == o.receiving_countries &&
913
+ email_notification == o.email_notification &&
914
+ phone_notification == o.phone_notification &&
915
+ min_weight == o.min_weight &&
916
+ max_weight == o.max_weight &&
917
+ min_order_value == o.min_order_value &&
918
+ max_order_value == o.max_order_value &&
919
+ conditions == o.conditions &&
920
+ generate_proforma_invoice == o.generate_proforma_invoice &&
921
+ generate_commercial_invoice == o.generate_commercial_invoice &&
922
+ generate_packing_list == o.generate_packing_list &&
923
+ auto_print_labels == o.auto_print_labels &&
924
+ auto_print_documents == o.auto_print_documents &&
925
+ label_printer_id == o.label_printer_id &&
926
+ document_printer_id == o.document_printer_id &&
927
+ return_shipping_rule_id == o.return_shipping_rule_id &&
928
+ auto_create_return_shipment == o.auto_create_return_shipment &&
929
+ org_id == o.org_id &&
930
+ created_at == o.created_at &&
931
+ updated_at == o.updated_at &&
932
+ carrier == o.carrier &&
933
+ address == o.address &&
934
+ label_printer == o.label_printer &&
935
+ document_printer == o.document_printer &&
936
+ return_shipping_rule == o.return_shipping_rule
937
+ end
938
+
939
+ # @see the `==` method
940
+ # @param [Object] Object to be compared
941
+ def eql?(o)
942
+ self == o
943
+ end
944
+
945
+ # Calculates hash code according to all attributes.
946
+ # @return [Integer] Hash code
947
+ def hash
948
+ [id, name, description, direction, carrier_id, product_id, services, additional_parameters, address_id, receiving_countries, email_notification, phone_notification, min_weight, max_weight, min_order_value, max_order_value, conditions, generate_proforma_invoice, generate_commercial_invoice, generate_packing_list, auto_print_labels, auto_print_documents, label_printer_id, document_printer_id, return_shipping_rule_id, auto_create_return_shipment, org_id, created_at, updated_at, carrier, address, label_printer, document_printer, return_shipping_rule].hash
949
+ end
950
+
951
+ # Builds the object from hash
952
+ # @param [Hash] attributes Model attributes in the form of hash
953
+ # @return [Object] Returns the model itself
954
+ def self.build_from_hash(attributes)
955
+ return nil unless attributes.is_a?(Hash)
956
+ attributes = attributes.transform_keys(&:to_sym)
957
+ transformed_hash = {}
958
+ openapi_types.each_pair do |key, type|
959
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
960
+ transformed_hash["#{key}"] = nil
961
+ elsif type =~ /\AArray<(.*)>/i
962
+ # check to ensure the input is an array given that the attribute
963
+ # is documented as an array but the input is not
964
+ if attributes[attribute_map[key]].is_a?(Array)
965
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
966
+ end
967
+ elsif !attributes[attribute_map[key]].nil?
968
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
969
+ end
970
+ end
971
+ new(transformed_hash)
972
+ end
973
+
974
+ # Returns the object in the form of hash
975
+ # @return [Hash] Returns the object in the form of hash
976
+ def to_hash
977
+ hash = {}
978
+ self.class.attribute_map.each_pair do |attr, param|
979
+ value = self.send(attr)
980
+ if value.nil?
981
+ is_nullable = self.class.openapi_nullable.include?(attr)
982
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
983
+ end
984
+
985
+ hash[param] = _to_hash(value)
986
+ end
987
+ hash
988
+ end
989
+
990
+ end
991
+
992
+ end