order_cloud 0.0.6 → 1.0.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- metadata +45 -594
- data/Gemfile +0 -28
- data/Gemfile.lock +0 -34
- data/LICENSE +0 -201
- data/README.md +0 -498
- data/Rakefile +0 -31
- data/docs/AccessToken.md +0 -10
- data/docs/Address.md +0 -20
- data/docs/AddressApi.md +0 -520
- data/docs/AddressAssignment.md +0 -12
- data/docs/AdminAddressApi.md +0 -324
- data/docs/AdminCompany.md +0 -10
- data/docs/AdminModelOnView.md +0 -7
- data/docs/AdminUserApi.md +0 -323
- data/docs/AdminUserGroupApi.md +0 -482
- data/docs/ApprovalRule.md +0 -20
- data/docs/ApprovalRuleApi.md +0 -342
- data/docs/BaseSpec.md +0 -15
- data/docs/Buyer.md +0 -11
- data/docs/BuyerAddress.md +0 -11
- data/docs/BuyerApi.md +0 -324
- data/docs/BuyerCreditCard.md +0 -9
- data/docs/BuyerProduct.md +0 -9
- data/docs/BuyerSpec.md +0 -9
- data/docs/Category.md +0 -15
- data/docs/CategoryApi.md +0 -685
- data/docs/CategoryAssignment.md +0 -10
- data/docs/CategoryProductAssignment.md +0 -10
- data/docs/CostCenter.md +0 -11
- data/docs/CostCenterApi.md +0 -516
- data/docs/CostCenterAssignment.md +0 -10
- data/docs/CreditCard.md +0 -15
- data/docs/CreditCardApi.md +0 -516
- data/docs/CreditCardAssignment.md +0 -10
- data/docs/EmailTemplate.md +0 -12
- data/docs/EmailTemplateApi.md +0 -223
- data/docs/File.md +0 -10
- data/docs/ImpersonateTokenRequest.md +0 -9
- data/docs/Inventory.md +0 -12
- data/docs/LineItem.md +0 -23
- data/docs/LineItemApi.md +0 -478
- data/docs/LineItemSpec.md +0 -11
- data/docs/ListAddress.md +0 -9
- data/docs/ListAddressAssignment.md +0 -9
- data/docs/ListAdminCompany.md +0 -9
- data/docs/ListApprovalRule.md +0 -9
- data/docs/ListBuyer.md +0 -9
- data/docs/ListBuyerAddress.md +0 -9
- data/docs/ListBuyerCreditCard.md +0 -9
- data/docs/ListBuyerProduct.md +0 -9
- data/docs/ListBuyerSpec.md +0 -9
- data/docs/ListCategory.md +0 -9
- data/docs/ListCategoryAssignment.md +0 -9
- data/docs/ListCategoryProductAssignment.md +0 -9
- data/docs/ListCostCenter.md +0 -9
- data/docs/ListCostCenterAssignment.md +0 -9
- data/docs/ListCreditCard.md +0 -9
- data/docs/ListCreditCardAssignment.md +0 -9
- data/docs/ListFile.md +0 -9
- data/docs/ListInventory.md +0 -9
- data/docs/ListLineItem.md +0 -9
- data/docs/ListMessageCCListenerAssignment.md +0 -9
- data/docs/ListMessageConfig.md +0 -9
- data/docs/ListMessageSender.md +0 -9
- data/docs/ListMessageSenderAssignment.md +0 -9
- data/docs/ListOrder.md +0 -9
- data/docs/ListOrderApproval.md +0 -9
- data/docs/ListOrderPromotion.md +0 -9
- data/docs/ListPayment.md +0 -9
- data/docs/ListPriceSchedule.md +0 -9
- data/docs/ListProduct.md +0 -9
- data/docs/ListProductAssignment.md +0 -9
- data/docs/ListPromotion.md +0 -9
- data/docs/ListPromotionAssignment.md +0 -9
- data/docs/ListSecurityProfile.md +0 -9
- data/docs/ListSecurityProfileAssignment.md +0 -9
- data/docs/ListShipment.md +0 -9
- data/docs/ListSpec.md +0 -9
- data/docs/ListSpecOption.md +0 -9
- data/docs/ListSpecProductAssignment.md +0 -9
- data/docs/ListSpendingAccount.md +0 -9
- data/docs/ListSpendingAccountAssignment.md +0 -9
- data/docs/ListUser.md +0 -9
- data/docs/ListUserGroup.md +0 -9
- data/docs/ListUserGroupAssignment.md +0 -9
- data/docs/ListVariant.md +0 -9
- data/docs/ListWebHook.md +0 -9
- data/docs/ListWebHookRoute.md +0 -9
- data/docs/ListXpIndex.md +0 -9
- data/docs/MeApi.md +0 -1488
- data/docs/MessageCCListenerAssignment.md +0 -13
- data/docs/MessageConfig.md +0 -11
- data/docs/MessageSender.md +0 -10
- data/docs/MessageSenderAssignment.md +0 -12
- data/docs/MessageSendersApi.md +0 -398
- data/docs/Meta.md +0 -12
- data/docs/Order.md +0 -31
- data/docs/OrderApi.md +0 -1277
- data/docs/OrderApproval.md +0 -16
- data/docs/OrderPromotion.md +0 -8
- data/docs/PasswordReset.md +0 -10
- data/docs/PasswordResetApi.md +0 -109
- data/docs/PasswordResetRequest.md +0 -11
- data/docs/Payment.md +0 -16
- data/docs/PaymentApi.md +0 -601
- data/docs/PaymentTransaction.md +0 -15
- data/docs/PingResponse.md +0 -8
- data/docs/PriceBreak.md +0 -9
- data/docs/PriceSchedule.md +0 -18
- data/docs/PriceScheduleApi.md +0 -429
- data/docs/Product.md +0 -26
- data/docs/ProductApi.md +0 -1116
- data/docs/ProductAssignment.md +0 -13
- data/docs/Promotion.md +0 -21
- data/docs/PromotionApi.md +0 -495
- data/docs/PromotionAssignment.md +0 -11
- data/docs/SecurityProfile.md +0 -11
- data/docs/SecurityProfileApi.md +0 -290
- data/docs/SecurityProfileAssignment.md +0 -11
- data/docs/Shipment.md +0 -14
- data/docs/ShipmentApi.md +0 -459
- data/docs/ShipmentItem.md +0 -10
- data/docs/Spec.md +0 -8
- data/docs/SpecApi.md +0 -816
- data/docs/SpecOption.md +0 -14
- data/docs/SpecProductAssignment.md +0 -10
- data/docs/SpendingAccount.md +0 -15
- data/docs/SpendingAccountApi.md +0 -516
- data/docs/SpendingAccountAssignment.md +0 -11
- data/docs/User.md +0 -18
- data/docs/UserApi.md +0 -400
- data/docs/UserGroup.md +0 -11
- data/docs/UserGroupApi.md +0 -509
- data/docs/UserGroupAssignment.md +0 -9
- data/docs/Variant.md +0 -12
- data/docs/WebHook.md +0 -18
- data/docs/WebHookRoute.md +0 -10
- data/docs/XpIndex.md +0 -9
- data/git_push.sh +0 -67
- data/lib/order_cloud.rb +0 -183
- data/lib/order_cloud/api/address_api.rb +0 -628
- data/lib/order_cloud/api/admin_address_api.rb +0 -397
- data/lib/order_cloud/api/admin_user_api.rb +0 -396
- data/lib/order_cloud/api/admin_user_group_api.rb +0 -578
- data/lib/order_cloud/api/approval_rule_api.rb +0 -421
- data/lib/order_cloud/api/buyer_api.rb +0 -397
- data/lib/order_cloud/api/category_api.rb +0 -818
- data/lib/order_cloud/api/cost_center_api.rb +0 -622
- data/lib/order_cloud/api/credit_card_api.rb +0 -622
- data/lib/order_cloud/api/email_template_api.rb +0 -283
- data/lib/order_cloud/api/line_item_api.rb +0 -583
- data/lib/order_cloud/api/me_api.rb +0 -1747
- data/lib/order_cloud/api/message_senders_api.rb +0 -484
- data/lib/order_cloud/api/order_api.rb +0 -1509
- data/lib/order_cloud/api/password_reset_api.rb +0 -150
- data/lib/order_cloud/api/payment_api.rb +0 -728
- data/lib/order_cloud/api/price_schedule_api.rb +0 -519
- data/lib/order_cloud/api/product_api.rb +0 -1312
- data/lib/order_cloud/api/promotion_api.rb +0 -596
- data/lib/order_cloud/api/security_profile_api.rb +0 -361
- data/lib/order_cloud/api/shipment_api.rb +0 -558
- data/lib/order_cloud/api/spec_api.rb +0 -965
- data/lib/order_cloud/api/spending_account_api.rb +0 -622
- data/lib/order_cloud/api/user_api.rb +0 -489
- data/lib/order_cloud/api/user_group_api.rb +0 -614
- data/lib/order_cloud/api_auth.rb +0 -108
- data/lib/order_cloud/api_client.rb +0 -385
- data/lib/order_cloud/api_error.rb +0 -47
- data/lib/order_cloud/configuration.rb +0 -245
- data/lib/order_cloud/models/access_token.rb +0 -217
- data/lib/order_cloud/models/address.rb +0 -307
- data/lib/order_cloud/models/address_assignment.rb +0 -235
- data/lib/order_cloud/models/admin_company.rb +0 -217
- data/lib/order_cloud/models/admin_model_on_view.rb +0 -190
- data/lib/order_cloud/models/approval_rule.rb +0 -307
- data/lib/order_cloud/models/base_spec.rb +0 -262
- data/lib/order_cloud/models/buyer.rb +0 -226
- data/lib/order_cloud/models/buyer_address.rb +0 -226
- data/lib/order_cloud/models/buyer_credit_card.rb +0 -208
- data/lib/order_cloud/models/buyer_product.rb +0 -208
- data/lib/order_cloud/models/buyer_spec.rb +0 -210
- data/lib/order_cloud/models/category.rb +0 -262
- data/lib/order_cloud/models/category_assignment.rb +0 -217
- data/lib/order_cloud/models/category_product_assignment.rb +0 -217
- data/lib/order_cloud/models/cost_center.rb +0 -226
- data/lib/order_cloud/models/cost_center_assignment.rb +0 -217
- data/lib/order_cloud/models/credit_card.rb +0 -262
- data/lib/order_cloud/models/credit_card_assignment.rb +0 -217
- data/lib/order_cloud/models/email_template.rb +0 -235
- data/lib/order_cloud/models/file.rb +0 -217
- data/lib/order_cloud/models/impersonate_token_request.rb +0 -208
- data/lib/order_cloud/models/inventory.rb +0 -235
- data/lib/order_cloud/models/line_item.rb +0 -336
- data/lib/order_cloud/models/line_item_spec.rb +0 -226
- data/lib/order_cloud/models/list_address.rb +0 -210
- data/lib/order_cloud/models/list_address_assignment.rb +0 -210
- data/lib/order_cloud/models/list_admin_company.rb +0 -210
- data/lib/order_cloud/models/list_approval_rule.rb +0 -210
- data/lib/order_cloud/models/list_buyer.rb +0 -210
- data/lib/order_cloud/models/list_buyer_address.rb +0 -210
- data/lib/order_cloud/models/list_buyer_credit_card.rb +0 -210
- data/lib/order_cloud/models/list_buyer_product.rb +0 -210
- data/lib/order_cloud/models/list_buyer_spec.rb +0 -210
- data/lib/order_cloud/models/list_category.rb +0 -210
- data/lib/order_cloud/models/list_category_assignment.rb +0 -210
- data/lib/order_cloud/models/list_category_product_assignment.rb +0 -210
- data/lib/order_cloud/models/list_cost_center.rb +0 -210
- data/lib/order_cloud/models/list_cost_center_assignment.rb +0 -210
- data/lib/order_cloud/models/list_credit_card.rb +0 -210
- data/lib/order_cloud/models/list_credit_card_assignment.rb +0 -210
- data/lib/order_cloud/models/list_file.rb +0 -210
- data/lib/order_cloud/models/list_inventory.rb +0 -210
- data/lib/order_cloud/models/list_line_item.rb +0 -210
- data/lib/order_cloud/models/list_message_cc_listener_assignment.rb +0 -210
- data/lib/order_cloud/models/list_message_config.rb +0 -210
- data/lib/order_cloud/models/list_message_sender.rb +0 -210
- data/lib/order_cloud/models/list_message_sender_assignment.rb +0 -210
- data/lib/order_cloud/models/list_order.rb +0 -210
- data/lib/order_cloud/models/list_order_approval.rb +0 -210
- data/lib/order_cloud/models/list_order_promotion.rb +0 -210
- data/lib/order_cloud/models/list_payment.rb +0 -210
- data/lib/order_cloud/models/list_price_schedule.rb +0 -210
- data/lib/order_cloud/models/list_product.rb +0 -210
- data/lib/order_cloud/models/list_product_assignment.rb +0 -210
- data/lib/order_cloud/models/list_promotion.rb +0 -210
- data/lib/order_cloud/models/list_promotion_assignment.rb +0 -210
- data/lib/order_cloud/models/list_security_profile.rb +0 -210
- data/lib/order_cloud/models/list_security_profile_assignment.rb +0 -210
- data/lib/order_cloud/models/list_shipment.rb +0 -210
- data/lib/order_cloud/models/list_spec.rb +0 -210
- data/lib/order_cloud/models/list_spec_option.rb +0 -210
- data/lib/order_cloud/models/list_spec_product_assignment.rb +0 -210
- data/lib/order_cloud/models/list_spending_account.rb +0 -210
- data/lib/order_cloud/models/list_spending_account_assignment.rb +0 -210
- data/lib/order_cloud/models/list_user.rb +0 -210
- data/lib/order_cloud/models/list_user_group.rb +0 -210
- data/lib/order_cloud/models/list_user_group_assignment.rb +0 -210
- data/lib/order_cloud/models/list_variant.rb +0 -210
- data/lib/order_cloud/models/list_web_hook.rb +0 -210
- data/lib/order_cloud/models/list_web_hook_route.rb +0 -210
- data/lib/order_cloud/models/list_xp_index.rb +0 -210
- data/lib/order_cloud/models/message_cc_listener_assignment.rb +0 -244
- data/lib/order_cloud/models/message_config.rb +0 -226
- data/lib/order_cloud/models/message_sender.rb +0 -217
- data/lib/order_cloud/models/message_sender_assignment.rb +0 -235
- data/lib/order_cloud/models/meta.rb +0 -237
- data/lib/order_cloud/models/order.rb +0 -406
- data/lib/order_cloud/models/order_approval.rb +0 -271
- data/lib/order_cloud/models/order_promotion.rb +0 -199
- data/lib/order_cloud/models/password_reset.rb +0 -217
- data/lib/order_cloud/models/password_reset_request.rb +0 -226
- data/lib/order_cloud/models/payment.rb +0 -273
- data/lib/order_cloud/models/payment_transaction.rb +0 -262
- data/lib/order_cloud/models/ping_response.rb +0 -199
- data/lib/order_cloud/models/price_break.rb +0 -208
- data/lib/order_cloud/models/price_schedule.rb +0 -291
- data/lib/order_cloud/models/product.rb +0 -361
- data/lib/order_cloud/models/product_assignment.rb +0 -244
- data/lib/order_cloud/models/promotion.rb +0 -316
- data/lib/order_cloud/models/promotion_assignment.rb +0 -226
- data/lib/order_cloud/models/security_profile.rb +0 -228
- data/lib/order_cloud/models/security_profile_assignment.rb +0 -226
- data/lib/order_cloud/models/shipment.rb +0 -255
- data/lib/order_cloud/models/shipment_item.rb +0 -217
- data/lib/order_cloud/models/spec.rb +0 -199
- data/lib/order_cloud/models/spec_option.rb +0 -253
- data/lib/order_cloud/models/spec_product_assignment.rb +0 -217
- data/lib/order_cloud/models/spending_account.rb +0 -262
- data/lib/order_cloud/models/spending_account_assignment.rb +0 -226
- data/lib/order_cloud/models/user.rb +0 -291
- data/lib/order_cloud/models/user_group.rb +0 -226
- data/lib/order_cloud/models/user_group_assignment.rb +0 -208
- data/lib/order_cloud/models/variant.rb +0 -235
- data/lib/order_cloud/models/web_hook.rb +0 -289
- data/lib/order_cloud/models/web_hook_route.rb +0 -217
- data/lib/order_cloud/models/xp_index.rb +0 -208
- data/lib/order_cloud/version.rb +0 -26
- data/order_cloud.gemspec +0 -56
- data/spec/api/address_api_spec.rb +0 -179
- data/spec/api/admin_address_api_spec.rb +0 -125
- data/spec/api/admin_user_api_spec.rb +0 -125
- data/spec/api/admin_user_group_api_spec.rb +0 -165
- data/spec/api/approval_rule_api_spec.rb +0 -131
- data/spec/api/buyer_api_spec.rb +0 -125
- data/spec/api/category_api_spec.rb +0 -221
- data/spec/api/cost_center_api_spec.rb +0 -177
- data/spec/api/credit_card_api_spec.rb +0 -177
- data/spec/api/email_template_api_spec.rb +0 -100
- data/spec/api/line_item_api_spec.rb +0 -167
- data/spec/api/me_api_spec.rb +0 -431
- data/spec/api/message_senders_api_spec.rb +0 -149
- data/spec/api/order_api_spec.rb +0 -375
- data/spec/api/password_reset_api_spec.rb +0 -71
- data/spec/api/payment_api_spec.rb +0 -199
- data/spec/api/price_schedule_api_spec.rb +0 -151
- data/spec/api/product_api_spec.rb +0 -330
- data/spec/api/promotion_api_spec.rb +0 -170
- data/spec/api/security_profile_api_spec.rb +0 -120
- data/spec/api/shipment_api_spec.rb +0 -161
- data/spec/api/spec_api_spec.rb +0 -250
- data/spec/api/spending_account_api_spec.rb +0 -177
- data/spec/api/user_api_spec.rb +0 -146
- data/spec/api/user_group_api_spec.rb +0 -174
- data/spec/api_auth_spec.rb +0 -165
- data/spec/api_client_spec.rb +0 -237
- data/spec/configuration_spec.rb +0 -80
- data/spec/models/access_token_spec.rb +0 -65
- data/spec/models/address_assignment_spec.rb +0 -77
- data/spec/models/address_spec.rb +0 -125
- data/spec/models/admin_company_spec.rb +0 -65
- data/spec/models/admin_model_on_view_spec.rb +0 -47
- data/spec/models/approval_rule_spec.rb +0 -125
- data/spec/models/base_spec_spec.rb +0 -95
- data/spec/models/buyer_address_spec.rb +0 -71
- data/spec/models/buyer_credit_card_spec.rb +0 -59
- data/spec/models/buyer_product_spec.rb +0 -59
- data/spec/models/buyer_spec.rb +0 -71
- data/spec/models/buyer_spec_spec.rb +0 -59
- data/spec/models/category_assignment_spec.rb +0 -65
- data/spec/models/category_product_assignment_spec.rb +0 -65
- data/spec/models/category_spec.rb +0 -95
- data/spec/models/cost_center_assignment_spec.rb +0 -65
- data/spec/models/cost_center_spec.rb +0 -71
- data/spec/models/credit_card_assignment_spec.rb +0 -65
- data/spec/models/credit_card_spec.rb +0 -95
- data/spec/models/email_template_spec.rb +0 -77
- data/spec/models/file_spec.rb +0 -65
- data/spec/models/impersonate_token_request_spec.rb +0 -59
- data/spec/models/inventory_spec.rb +0 -77
- data/spec/models/line_item_spec.rb +0 -143
- data/spec/models/line_item_spec_spec.rb +0 -71
- data/spec/models/list_address_assignment_spec.rb +0 -59
- data/spec/models/list_address_spec.rb +0 -59
- data/spec/models/list_admin_company_spec.rb +0 -59
- data/spec/models/list_approval_rule_spec.rb +0 -59
- data/spec/models/list_buyer_address_spec.rb +0 -59
- data/spec/models/list_buyer_credit_card_spec.rb +0 -59
- data/spec/models/list_buyer_product_spec.rb +0 -59
- data/spec/models/list_buyer_spec.rb +0 -59
- data/spec/models/list_buyer_spec_spec.rb +0 -59
- data/spec/models/list_category_assignment_spec.rb +0 -59
- data/spec/models/list_category_product_assignment_spec.rb +0 -59
- data/spec/models/list_category_spec.rb +0 -59
- data/spec/models/list_cost_center_assignment_spec.rb +0 -59
- data/spec/models/list_cost_center_spec.rb +0 -59
- data/spec/models/list_credit_card_assignment_spec.rb +0 -59
- data/spec/models/list_credit_card_spec.rb +0 -59
- data/spec/models/list_file_spec.rb +0 -59
- data/spec/models/list_inventory_spec.rb +0 -59
- data/spec/models/list_line_item_spec.rb +0 -59
- data/spec/models/list_message_cc_listener_assignment_spec.rb +0 -59
- data/spec/models/list_message_config_spec.rb +0 -59
- data/spec/models/list_message_sender_assignment_spec.rb +0 -59
- data/spec/models/list_message_sender_spec.rb +0 -59
- data/spec/models/list_order_approval_spec.rb +0 -59
- data/spec/models/list_order_promotion_spec.rb +0 -59
- data/spec/models/list_order_spec.rb +0 -59
- data/spec/models/list_payment_spec.rb +0 -59
- data/spec/models/list_price_schedule_spec.rb +0 -59
- data/spec/models/list_product_assignment_spec.rb +0 -59
- data/spec/models/list_product_spec.rb +0 -59
- data/spec/models/list_promotion_assignment_spec.rb +0 -59
- data/spec/models/list_promotion_spec.rb +0 -59
- data/spec/models/list_security_profile_assignment_spec.rb +0 -59
- data/spec/models/list_security_profile_spec.rb +0 -59
- data/spec/models/list_shipment_spec.rb +0 -59
- data/spec/models/list_spec_option_spec.rb +0 -59
- data/spec/models/list_spec_product_assignment_spec.rb +0 -59
- data/spec/models/list_spec_spec.rb +0 -59
- data/spec/models/list_spending_account_assignment_spec.rb +0 -59
- data/spec/models/list_spending_account_spec.rb +0 -59
- data/spec/models/list_user_group_assignment_spec.rb +0 -59
- data/spec/models/list_user_group_spec.rb +0 -59
- data/spec/models/list_user_spec.rb +0 -59
- data/spec/models/list_variant_spec.rb +0 -59
- data/spec/models/list_web_hook_route_spec.rb +0 -59
- data/spec/models/list_web_hook_spec.rb +0 -59
- data/spec/models/list_xp_index_spec.rb +0 -59
- data/spec/models/message_cc_listener_assignment_spec.rb +0 -83
- data/spec/models/message_config_spec.rb +0 -71
- data/spec/models/message_sender_assignment_spec.rb +0 -77
- data/spec/models/message_sender_spec.rb +0 -65
- data/spec/models/meta_spec.rb +0 -77
- data/spec/models/order_approval_spec.rb +0 -101
- data/spec/models/order_promotion_spec.rb +0 -53
- data/spec/models/order_spec.rb +0 -191
- data/spec/models/password_reset_request_spec.rb +0 -71
- data/spec/models/password_reset_spec.rb +0 -65
- data/spec/models/payment_spec.rb +0 -101
- data/spec/models/payment_transaction_spec.rb +0 -95
- data/spec/models/ping_response_spec.rb +0 -53
- data/spec/models/price_break_spec.rb +0 -59
- data/spec/models/price_schedule_spec.rb +0 -113
- data/spec/models/product_assignment_spec.rb +0 -83
- data/spec/models/product_spec.rb +0 -161
- data/spec/models/promotion_assignment_spec.rb +0 -71
- data/spec/models/promotion_spec.rb +0 -131
- data/spec/models/security_profile_assignment_spec.rb +0 -71
- data/spec/models/security_profile_spec.rb +0 -71
- data/spec/models/shipment_item_spec.rb +0 -65
- data/spec/models/shipment_spec.rb +0 -89
- data/spec/models/spec_option_spec.rb +0 -89
- data/spec/models/spec_product_assignment_spec.rb +0 -65
- data/spec/models/spec_spec.rb +0 -53
- data/spec/models/spending_account_assignment_spec.rb +0 -71
- data/spec/models/spending_account_spec.rb +0 -95
- data/spec/models/user_group_assignment_spec.rb +0 -59
- data/spec/models/user_group_spec.rb +0 -71
- data/spec/models/user_spec.rb +0 -113
- data/spec/models/variant_spec.rb +0 -77
- data/spec/models/web_hook_route_spec.rb +0 -65
- data/spec/models/web_hook_spec.rb +0 -113
- data/spec/models/xp_index_spec.rb +0 -59
- data/spec/spec_helper.rb +0 -122
@@ -1,336 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#OrderCloud
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
Contact: ordercloud@four51.com
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
21
|
-
|
22
|
-
=end
|
23
|
-
|
24
|
-
require 'date'
|
25
|
-
|
26
|
-
module OrderCloud
|
27
|
-
|
28
|
-
class LineItem
|
29
|
-
attr_accessor :id
|
30
|
-
|
31
|
-
attr_accessor :product_id
|
32
|
-
|
33
|
-
attr_accessor :quantity
|
34
|
-
|
35
|
-
attr_accessor :date_added
|
36
|
-
|
37
|
-
attr_accessor :quantity_shipped
|
38
|
-
|
39
|
-
attr_accessor :unit_price
|
40
|
-
|
41
|
-
attr_accessor :line_total
|
42
|
-
|
43
|
-
attr_accessor :cost_center
|
44
|
-
|
45
|
-
attr_accessor :date_needed
|
46
|
-
|
47
|
-
attr_accessor :shipping_account
|
48
|
-
|
49
|
-
attr_accessor :shipping_address_id
|
50
|
-
|
51
|
-
attr_accessor :shipping_address
|
52
|
-
|
53
|
-
attr_accessor :ship_from_address_id
|
54
|
-
|
55
|
-
attr_accessor :ship_from_address
|
56
|
-
|
57
|
-
attr_accessor :specs
|
58
|
-
|
59
|
-
attr_accessor :xp
|
60
|
-
|
61
|
-
|
62
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
63
|
-
def self.attribute_map
|
64
|
-
{
|
65
|
-
:'id' => :'ID',
|
66
|
-
:'product_id' => :'ProductID',
|
67
|
-
:'quantity' => :'Quantity',
|
68
|
-
:'date_added' => :'DateAdded',
|
69
|
-
:'quantity_shipped' => :'QuantityShipped',
|
70
|
-
:'unit_price' => :'UnitPrice',
|
71
|
-
:'line_total' => :'LineTotal',
|
72
|
-
:'cost_center' => :'CostCenter',
|
73
|
-
:'date_needed' => :'DateNeeded',
|
74
|
-
:'shipping_account' => :'ShippingAccount',
|
75
|
-
:'shipping_address_id' => :'ShippingAddressID',
|
76
|
-
:'shipping_address' => :'ShippingAddress',
|
77
|
-
:'ship_from_address_id' => :'ShipFromAddressID',
|
78
|
-
:'ship_from_address' => :'ShipFromAddress',
|
79
|
-
:'specs' => :'Specs',
|
80
|
-
:'xp' => :'xp'
|
81
|
-
}
|
82
|
-
end
|
83
|
-
|
84
|
-
# Attribute type mapping.
|
85
|
-
def self.swagger_types
|
86
|
-
{
|
87
|
-
:'id' => :'String',
|
88
|
-
:'product_id' => :'String',
|
89
|
-
:'quantity' => :'Integer',
|
90
|
-
:'date_added' => :'String',
|
91
|
-
:'quantity_shipped' => :'Integer',
|
92
|
-
:'unit_price' => :'Float',
|
93
|
-
:'line_total' => :'Float',
|
94
|
-
:'cost_center' => :'String',
|
95
|
-
:'date_needed' => :'String',
|
96
|
-
:'shipping_account' => :'String',
|
97
|
-
:'shipping_address_id' => :'String',
|
98
|
-
:'shipping_address' => :'Address',
|
99
|
-
:'ship_from_address_id' => :'String',
|
100
|
-
:'ship_from_address' => :'Address',
|
101
|
-
:'specs' => :'Array<LineItemSpec>',
|
102
|
-
:'xp' => :'Object'
|
103
|
-
}
|
104
|
-
end
|
105
|
-
|
106
|
-
# Initializes the object
|
107
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
-
def initialize(attributes = {})
|
109
|
-
return unless attributes.is_a?(Hash)
|
110
|
-
|
111
|
-
# convert string to symbol for hash key
|
112
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
113
|
-
|
114
|
-
if attributes.has_key?(:'ID')
|
115
|
-
self.id = attributes[:'ID']
|
116
|
-
end
|
117
|
-
|
118
|
-
if attributes.has_key?(:'ProductID')
|
119
|
-
self.product_id = attributes[:'ProductID']
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes.has_key?(:'Quantity')
|
123
|
-
self.quantity = attributes[:'Quantity']
|
124
|
-
end
|
125
|
-
|
126
|
-
if attributes.has_key?(:'DateAdded')
|
127
|
-
self.date_added = attributes[:'DateAdded']
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes.has_key?(:'QuantityShipped')
|
131
|
-
self.quantity_shipped = attributes[:'QuantityShipped']
|
132
|
-
end
|
133
|
-
|
134
|
-
if attributes.has_key?(:'UnitPrice')
|
135
|
-
self.unit_price = attributes[:'UnitPrice']
|
136
|
-
end
|
137
|
-
|
138
|
-
if attributes.has_key?(:'LineTotal')
|
139
|
-
self.line_total = attributes[:'LineTotal']
|
140
|
-
end
|
141
|
-
|
142
|
-
if attributes.has_key?(:'CostCenter')
|
143
|
-
self.cost_center = attributes[:'CostCenter']
|
144
|
-
end
|
145
|
-
|
146
|
-
if attributes.has_key?(:'DateNeeded')
|
147
|
-
self.date_needed = attributes[:'DateNeeded']
|
148
|
-
end
|
149
|
-
|
150
|
-
if attributes.has_key?(:'ShippingAccount')
|
151
|
-
self.shipping_account = attributes[:'ShippingAccount']
|
152
|
-
end
|
153
|
-
|
154
|
-
if attributes.has_key?(:'ShippingAddressID')
|
155
|
-
self.shipping_address_id = attributes[:'ShippingAddressID']
|
156
|
-
end
|
157
|
-
|
158
|
-
if attributes.has_key?(:'ShippingAddress')
|
159
|
-
self.shipping_address = attributes[:'ShippingAddress']
|
160
|
-
end
|
161
|
-
|
162
|
-
if attributes.has_key?(:'ShipFromAddressID')
|
163
|
-
self.ship_from_address_id = attributes[:'ShipFromAddressID']
|
164
|
-
end
|
165
|
-
|
166
|
-
if attributes.has_key?(:'ShipFromAddress')
|
167
|
-
self.ship_from_address = attributes[:'ShipFromAddress']
|
168
|
-
end
|
169
|
-
|
170
|
-
if attributes.has_key?(:'Specs')
|
171
|
-
if (value = attributes[:'Specs']).is_a?(Array)
|
172
|
-
self.specs = value
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
if attributes.has_key?(:'xp')
|
177
|
-
self.xp = attributes[:'xp']
|
178
|
-
end
|
179
|
-
|
180
|
-
end
|
181
|
-
|
182
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
183
|
-
# @return Array for valid properies with the reasons
|
184
|
-
def list_invalid_properties
|
185
|
-
invalid_properties = Array.new
|
186
|
-
return invalid_properties
|
187
|
-
end
|
188
|
-
|
189
|
-
# Check to see if the all the properties in the model are valid
|
190
|
-
# @return true if the model is valid
|
191
|
-
def valid?
|
192
|
-
return true
|
193
|
-
end
|
194
|
-
|
195
|
-
# Checks equality by comparing each attribute.
|
196
|
-
# @param [Object] Object to be compared
|
197
|
-
def ==(o)
|
198
|
-
return true if self.equal?(o)
|
199
|
-
self.class == o.class &&
|
200
|
-
id == o.id &&
|
201
|
-
product_id == o.product_id &&
|
202
|
-
quantity == o.quantity &&
|
203
|
-
date_added == o.date_added &&
|
204
|
-
quantity_shipped == o.quantity_shipped &&
|
205
|
-
unit_price == o.unit_price &&
|
206
|
-
line_total == o.line_total &&
|
207
|
-
cost_center == o.cost_center &&
|
208
|
-
date_needed == o.date_needed &&
|
209
|
-
shipping_account == o.shipping_account &&
|
210
|
-
shipping_address_id == o.shipping_address_id &&
|
211
|
-
shipping_address == o.shipping_address &&
|
212
|
-
ship_from_address_id == o.ship_from_address_id &&
|
213
|
-
ship_from_address == o.ship_from_address &&
|
214
|
-
specs == o.specs &&
|
215
|
-
xp == o.xp
|
216
|
-
end
|
217
|
-
|
218
|
-
# @see the `==` method
|
219
|
-
# @param [Object] Object to be compared
|
220
|
-
def eql?(o)
|
221
|
-
self == o
|
222
|
-
end
|
223
|
-
|
224
|
-
# Calculates hash code according to all attributes.
|
225
|
-
# @return [Fixnum] Hash code
|
226
|
-
def hash
|
227
|
-
[id, product_id, quantity, date_added, quantity_shipped, unit_price, line_total, cost_center, date_needed, shipping_account, shipping_address_id, shipping_address, ship_from_address_id, ship_from_address, specs, xp].hash
|
228
|
-
end
|
229
|
-
|
230
|
-
# Builds the object from hash
|
231
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
232
|
-
# @return [Object] Returns the model itself
|
233
|
-
def build_from_hash(attributes)
|
234
|
-
return nil unless attributes.is_a?(Hash)
|
235
|
-
self.class.swagger_types.each_pair do |key, type|
|
236
|
-
if type =~ /^Array<(.*)>/i
|
237
|
-
# check to ensure the input is an array given that the the attribute
|
238
|
-
# is documented as an array but the input is not
|
239
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
240
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
241
|
-
end
|
242
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
243
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
244
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
245
|
-
end
|
246
|
-
|
247
|
-
self
|
248
|
-
end
|
249
|
-
|
250
|
-
# Deserializes the data based on type
|
251
|
-
# @param string type Data type
|
252
|
-
# @param string value Value to be deserialized
|
253
|
-
# @return [Object] Deserialized data
|
254
|
-
def _deserialize(type, value)
|
255
|
-
case type.to_sym
|
256
|
-
when :DateTime
|
257
|
-
DateTime.parse(value)
|
258
|
-
when :Date
|
259
|
-
Date.parse(value)
|
260
|
-
when :String
|
261
|
-
value.to_s
|
262
|
-
when :Integer
|
263
|
-
value.to_i
|
264
|
-
when :Float
|
265
|
-
value.to_f
|
266
|
-
when :BOOLEAN
|
267
|
-
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
268
|
-
true
|
269
|
-
else
|
270
|
-
false
|
271
|
-
end
|
272
|
-
when :Object
|
273
|
-
# generic object (usually a Hash), return directly
|
274
|
-
value
|
275
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
276
|
-
inner_type = Regexp.last_match[:inner_type]
|
277
|
-
value.map { |v| _deserialize(inner_type, v) }
|
278
|
-
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
279
|
-
k_type = Regexp.last_match[:k_type]
|
280
|
-
v_type = Regexp.last_match[:v_type]
|
281
|
-
{}.tap do |hash|
|
282
|
-
value.each do |k, v|
|
283
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
284
|
-
end
|
285
|
-
end
|
286
|
-
else # model
|
287
|
-
temp_model = OrderCloud.const_get(type).new
|
288
|
-
temp_model.build_from_hash(value)
|
289
|
-
end
|
290
|
-
end
|
291
|
-
|
292
|
-
# Returns the string representation of the object
|
293
|
-
# @return [String] String presentation of the object
|
294
|
-
def to_s
|
295
|
-
to_hash.to_s
|
296
|
-
end
|
297
|
-
|
298
|
-
# to_body is an alias to to_hash (backward compatibility)
|
299
|
-
# @return [Hash] Returns the object in the form of hash
|
300
|
-
def to_body
|
301
|
-
to_hash
|
302
|
-
end
|
303
|
-
|
304
|
-
# Returns the object in the form of hash
|
305
|
-
# @return [Hash] Returns the object in the form of hash
|
306
|
-
def to_hash
|
307
|
-
hash = {}
|
308
|
-
self.class.attribute_map.each_pair do |attr, param|
|
309
|
-
value = self.send(attr)
|
310
|
-
next if value.nil?
|
311
|
-
hash[param] = _to_hash(value)
|
312
|
-
end
|
313
|
-
hash
|
314
|
-
end
|
315
|
-
|
316
|
-
# Outputs non-array value in the form of hash
|
317
|
-
# For object, use to_hash. Otherwise, just return the value
|
318
|
-
# @param [Object] value Any valid value
|
319
|
-
# @return [Hash] Returns the value in the form of hash
|
320
|
-
def _to_hash(value)
|
321
|
-
if value.is_a?(Array)
|
322
|
-
value.compact.map{ |v| _to_hash(v) }
|
323
|
-
elsif value.is_a?(Hash)
|
324
|
-
{}.tap do |hash|
|
325
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
326
|
-
end
|
327
|
-
elsif value.respond_to? :to_hash
|
328
|
-
value.to_hash
|
329
|
-
else
|
330
|
-
value
|
331
|
-
end
|
332
|
-
end
|
333
|
-
|
334
|
-
end
|
335
|
-
|
336
|
-
end
|
@@ -1,226 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#OrderCloud
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
Contact: ordercloud@four51.com
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
21
|
-
|
22
|
-
=end
|
23
|
-
|
24
|
-
require 'date'
|
25
|
-
|
26
|
-
module OrderCloud
|
27
|
-
|
28
|
-
class LineItemSpec
|
29
|
-
attr_accessor :spec_id
|
30
|
-
|
31
|
-
attr_accessor :name
|
32
|
-
|
33
|
-
attr_accessor :option_id
|
34
|
-
|
35
|
-
attr_accessor :value
|
36
|
-
|
37
|
-
|
38
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
-
def self.attribute_map
|
40
|
-
{
|
41
|
-
:'spec_id' => :'SpecID',
|
42
|
-
:'name' => :'Name',
|
43
|
-
:'option_id' => :'OptionID',
|
44
|
-
:'value' => :'Value'
|
45
|
-
}
|
46
|
-
end
|
47
|
-
|
48
|
-
# Attribute type mapping.
|
49
|
-
def self.swagger_types
|
50
|
-
{
|
51
|
-
:'spec_id' => :'String',
|
52
|
-
:'name' => :'String',
|
53
|
-
:'option_id' => :'String',
|
54
|
-
:'value' => :'String'
|
55
|
-
}
|
56
|
-
end
|
57
|
-
|
58
|
-
# Initializes the object
|
59
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
-
def initialize(attributes = {})
|
61
|
-
return unless attributes.is_a?(Hash)
|
62
|
-
|
63
|
-
# convert string to symbol for hash key
|
64
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
65
|
-
|
66
|
-
if attributes.has_key?(:'SpecID')
|
67
|
-
self.spec_id = attributes[:'SpecID']
|
68
|
-
end
|
69
|
-
|
70
|
-
if attributes.has_key?(:'Name')
|
71
|
-
self.name = attributes[:'Name']
|
72
|
-
end
|
73
|
-
|
74
|
-
if attributes.has_key?(:'OptionID')
|
75
|
-
self.option_id = attributes[:'OptionID']
|
76
|
-
end
|
77
|
-
|
78
|
-
if attributes.has_key?(:'Value')
|
79
|
-
self.value = attributes[:'Value']
|
80
|
-
end
|
81
|
-
|
82
|
-
end
|
83
|
-
|
84
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
85
|
-
# @return Array for valid properies with the reasons
|
86
|
-
def list_invalid_properties
|
87
|
-
invalid_properties = Array.new
|
88
|
-
return invalid_properties
|
89
|
-
end
|
90
|
-
|
91
|
-
# Check to see if the all the properties in the model are valid
|
92
|
-
# @return true if the model is valid
|
93
|
-
def valid?
|
94
|
-
return true
|
95
|
-
end
|
96
|
-
|
97
|
-
# Checks equality by comparing each attribute.
|
98
|
-
# @param [Object] Object to be compared
|
99
|
-
def ==(o)
|
100
|
-
return true if self.equal?(o)
|
101
|
-
self.class == o.class &&
|
102
|
-
spec_id == o.spec_id &&
|
103
|
-
name == o.name &&
|
104
|
-
option_id == o.option_id &&
|
105
|
-
value == o.value
|
106
|
-
end
|
107
|
-
|
108
|
-
# @see the `==` method
|
109
|
-
# @param [Object] Object to be compared
|
110
|
-
def eql?(o)
|
111
|
-
self == o
|
112
|
-
end
|
113
|
-
|
114
|
-
# Calculates hash code according to all attributes.
|
115
|
-
# @return [Fixnum] Hash code
|
116
|
-
def hash
|
117
|
-
[spec_id, name, option_id, value].hash
|
118
|
-
end
|
119
|
-
|
120
|
-
# Builds the object from hash
|
121
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
122
|
-
# @return [Object] Returns the model itself
|
123
|
-
def build_from_hash(attributes)
|
124
|
-
return nil unless attributes.is_a?(Hash)
|
125
|
-
self.class.swagger_types.each_pair do |key, type|
|
126
|
-
if type =~ /^Array<(.*)>/i
|
127
|
-
# check to ensure the input is an array given that the the attribute
|
128
|
-
# is documented as an array but the input is not
|
129
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
130
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
131
|
-
end
|
132
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
133
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
134
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
135
|
-
end
|
136
|
-
|
137
|
-
self
|
138
|
-
end
|
139
|
-
|
140
|
-
# Deserializes the data based on type
|
141
|
-
# @param string type Data type
|
142
|
-
# @param string value Value to be deserialized
|
143
|
-
# @return [Object] Deserialized data
|
144
|
-
def _deserialize(type, value)
|
145
|
-
case type.to_sym
|
146
|
-
when :DateTime
|
147
|
-
DateTime.parse(value)
|
148
|
-
when :Date
|
149
|
-
Date.parse(value)
|
150
|
-
when :String
|
151
|
-
value.to_s
|
152
|
-
when :Integer
|
153
|
-
value.to_i
|
154
|
-
when :Float
|
155
|
-
value.to_f
|
156
|
-
when :BOOLEAN
|
157
|
-
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
158
|
-
true
|
159
|
-
else
|
160
|
-
false
|
161
|
-
end
|
162
|
-
when :Object
|
163
|
-
# generic object (usually a Hash), return directly
|
164
|
-
value
|
165
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
166
|
-
inner_type = Regexp.last_match[:inner_type]
|
167
|
-
value.map { |v| _deserialize(inner_type, v) }
|
168
|
-
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
169
|
-
k_type = Regexp.last_match[:k_type]
|
170
|
-
v_type = Regexp.last_match[:v_type]
|
171
|
-
{}.tap do |hash|
|
172
|
-
value.each do |k, v|
|
173
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
174
|
-
end
|
175
|
-
end
|
176
|
-
else # model
|
177
|
-
temp_model = OrderCloud.const_get(type).new
|
178
|
-
temp_model.build_from_hash(value)
|
179
|
-
end
|
180
|
-
end
|
181
|
-
|
182
|
-
# Returns the string representation of the object
|
183
|
-
# @return [String] String presentation of the object
|
184
|
-
def to_s
|
185
|
-
to_hash.to_s
|
186
|
-
end
|
187
|
-
|
188
|
-
# to_body is an alias to to_hash (backward compatibility)
|
189
|
-
# @return [Hash] Returns the object in the form of hash
|
190
|
-
def to_body
|
191
|
-
to_hash
|
192
|
-
end
|
193
|
-
|
194
|
-
# Returns the object in the form of hash
|
195
|
-
# @return [Hash] Returns the object in the form of hash
|
196
|
-
def to_hash
|
197
|
-
hash = {}
|
198
|
-
self.class.attribute_map.each_pair do |attr, param|
|
199
|
-
value = self.send(attr)
|
200
|
-
next if value.nil?
|
201
|
-
hash[param] = _to_hash(value)
|
202
|
-
end
|
203
|
-
hash
|
204
|
-
end
|
205
|
-
|
206
|
-
# Outputs non-array value in the form of hash
|
207
|
-
# For object, use to_hash. Otherwise, just return the value
|
208
|
-
# @param [Object] value Any valid value
|
209
|
-
# @return [Hash] Returns the value in the form of hash
|
210
|
-
def _to_hash(value)
|
211
|
-
if value.is_a?(Array)
|
212
|
-
value.compact.map{ |v| _to_hash(v) }
|
213
|
-
elsif value.is_a?(Hash)
|
214
|
-
{}.tap do |hash|
|
215
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
216
|
-
end
|
217
|
-
elsif value.respond_to? :to_hash
|
218
|
-
value.to_hash
|
219
|
-
else
|
220
|
-
value
|
221
|
-
end
|
222
|
-
end
|
223
|
-
|
224
|
-
end
|
225
|
-
|
226
|
-
end
|