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
data/docs/UserGroupAssignment.md
DELETED
data/docs/Variant.md
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# OrderCloud::Variant
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**id** | **String** | | [optional]
|
7
|
-
**name** | **String** | | [optional]
|
8
|
-
**description** | **String** | | [optional]
|
9
|
-
**active** | **BOOLEAN** | | [optional]
|
10
|
-
**xp** | **Object** | | [optional]
|
11
|
-
|
12
|
-
|
data/docs/WebHook.md
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# OrderCloud::WebHook
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**id** | **Integer** | | [optional]
|
7
|
-
**name** | **String** | | [optional]
|
8
|
-
**type** | **String** | | [optional]
|
9
|
-
**description** | **String** | | [optional]
|
10
|
-
**base_url** | **String** | | [optional]
|
11
|
-
**shared_key** | **String** | | [optional]
|
12
|
-
**client_id** | **String** | | [optional]
|
13
|
-
**append_route** | **BOOLEAN** | | [optional]
|
14
|
-
**use_verb** | **BOOLEAN** | | [optional]
|
15
|
-
**elevated_claims_list** | **String** | | [optional]
|
16
|
-
**config_data** | **Object** | | [optional]
|
17
|
-
|
18
|
-
|
data/docs/WebHookRoute.md
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# OrderCloud::WebHookRoute
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**id** | **Integer** | | [optional]
|
7
|
-
**route** | **String** | | [optional]
|
8
|
-
**verb** | **String** | | [optional]
|
9
|
-
|
10
|
-
|
data/docs/XpIndex.md
DELETED
data/git_push.sh
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
#
|
17
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
18
|
-
#
|
19
|
-
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
20
|
-
|
21
|
-
git_user_id=$1
|
22
|
-
git_repo_id=$2
|
23
|
-
release_note=$3
|
24
|
-
|
25
|
-
if [ "$git_user_id" = "" ]; then
|
26
|
-
git_user_id="ordercloud-api"
|
27
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
28
|
-
fi
|
29
|
-
|
30
|
-
if [ "$git_repo_id" = "" ]; then
|
31
|
-
git_repo_id="ordercloud-ruby-sdk"
|
32
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
33
|
-
fi
|
34
|
-
|
35
|
-
if [ "$release_note" = "" ]; then
|
36
|
-
release_note="Minor update"
|
37
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
38
|
-
fi
|
39
|
-
|
40
|
-
# Initialize the local directory as a Git repository
|
41
|
-
git init
|
42
|
-
|
43
|
-
# Adds the files in the local repository and stages them for commit.
|
44
|
-
git add .
|
45
|
-
|
46
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
47
|
-
git commit -m "$release_note"
|
48
|
-
|
49
|
-
# Sets the new remote
|
50
|
-
git_remote=`git remote`
|
51
|
-
if [ "$git_remote" = "" ]; then # git remote not defined
|
52
|
-
|
53
|
-
if [ "$GIT_TOKEN" = "" ]; then
|
54
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
|
55
|
-
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
56
|
-
else
|
57
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
58
|
-
fi
|
59
|
-
|
60
|
-
fi
|
61
|
-
|
62
|
-
git pull origin master
|
63
|
-
|
64
|
-
# Pushes (Forces) the changes in the local repository up to the remote repository
|
65
|
-
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
66
|
-
git push origin master 2>&1 | grep -v 'To https'
|
67
|
-
|
data/lib/order_cloud.rb
DELETED
@@ -1,183 +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
|
-
# Common files
|
25
|
-
require 'order_cloud/api_client'
|
26
|
-
require 'order_cloud/api_auth'
|
27
|
-
require 'order_cloud/api_error'
|
28
|
-
require 'order_cloud/version'
|
29
|
-
require 'order_cloud/configuration'
|
30
|
-
|
31
|
-
# Models
|
32
|
-
require 'order_cloud/models/access_token'
|
33
|
-
require 'order_cloud/models/address'
|
34
|
-
require 'order_cloud/models/address_assignment'
|
35
|
-
require 'order_cloud/models/admin_company'
|
36
|
-
require 'order_cloud/models/admin_model_on_view'
|
37
|
-
require 'order_cloud/models/approval_rule'
|
38
|
-
require 'order_cloud/models/base_spec'
|
39
|
-
require 'order_cloud/models/buyer'
|
40
|
-
require 'order_cloud/models/buyer_address'
|
41
|
-
require 'order_cloud/models/buyer_credit_card'
|
42
|
-
require 'order_cloud/models/buyer_product'
|
43
|
-
require 'order_cloud/models/buyer_spec'
|
44
|
-
require 'order_cloud/models/category'
|
45
|
-
require 'order_cloud/models/category_assignment'
|
46
|
-
require 'order_cloud/models/category_product_assignment'
|
47
|
-
require 'order_cloud/models/cost_center'
|
48
|
-
require 'order_cloud/models/cost_center_assignment'
|
49
|
-
require 'order_cloud/models/credit_card'
|
50
|
-
require 'order_cloud/models/credit_card_assignment'
|
51
|
-
require 'order_cloud/models/email_template'
|
52
|
-
require 'order_cloud/models/file'
|
53
|
-
require 'order_cloud/models/impersonate_token_request'
|
54
|
-
require 'order_cloud/models/inventory'
|
55
|
-
require 'order_cloud/models/line_item'
|
56
|
-
require 'order_cloud/models/line_item_spec'
|
57
|
-
require 'order_cloud/models/list_address'
|
58
|
-
require 'order_cloud/models/list_address_assignment'
|
59
|
-
require 'order_cloud/models/list_admin_company'
|
60
|
-
require 'order_cloud/models/list_approval_rule'
|
61
|
-
require 'order_cloud/models/list_buyer'
|
62
|
-
require 'order_cloud/models/list_buyer_address'
|
63
|
-
require 'order_cloud/models/list_buyer_credit_card'
|
64
|
-
require 'order_cloud/models/list_buyer_product'
|
65
|
-
require 'order_cloud/models/list_buyer_spec'
|
66
|
-
require 'order_cloud/models/list_category'
|
67
|
-
require 'order_cloud/models/list_category_assignment'
|
68
|
-
require 'order_cloud/models/list_category_product_assignment'
|
69
|
-
require 'order_cloud/models/list_cost_center'
|
70
|
-
require 'order_cloud/models/list_cost_center_assignment'
|
71
|
-
require 'order_cloud/models/list_credit_card'
|
72
|
-
require 'order_cloud/models/list_credit_card_assignment'
|
73
|
-
require 'order_cloud/models/list_file'
|
74
|
-
require 'order_cloud/models/list_inventory'
|
75
|
-
require 'order_cloud/models/list_line_item'
|
76
|
-
require 'order_cloud/models/list_message_cc_listener_assignment'
|
77
|
-
require 'order_cloud/models/list_message_config'
|
78
|
-
require 'order_cloud/models/list_message_sender'
|
79
|
-
require 'order_cloud/models/list_message_sender_assignment'
|
80
|
-
require 'order_cloud/models/list_order'
|
81
|
-
require 'order_cloud/models/list_order_approval'
|
82
|
-
require 'order_cloud/models/list_order_promotion'
|
83
|
-
require 'order_cloud/models/list_payment'
|
84
|
-
require 'order_cloud/models/list_price_schedule'
|
85
|
-
require 'order_cloud/models/list_product'
|
86
|
-
require 'order_cloud/models/list_product_assignment'
|
87
|
-
require 'order_cloud/models/list_promotion'
|
88
|
-
require 'order_cloud/models/list_promotion_assignment'
|
89
|
-
require 'order_cloud/models/list_security_profile'
|
90
|
-
require 'order_cloud/models/list_security_profile_assignment'
|
91
|
-
require 'order_cloud/models/list_shipment'
|
92
|
-
require 'order_cloud/models/list_spec'
|
93
|
-
require 'order_cloud/models/list_spec_option'
|
94
|
-
require 'order_cloud/models/list_spec_product_assignment'
|
95
|
-
require 'order_cloud/models/list_spending_account'
|
96
|
-
require 'order_cloud/models/list_spending_account_assignment'
|
97
|
-
require 'order_cloud/models/list_user'
|
98
|
-
require 'order_cloud/models/list_user_group'
|
99
|
-
require 'order_cloud/models/list_user_group_assignment'
|
100
|
-
require 'order_cloud/models/list_variant'
|
101
|
-
require 'order_cloud/models/list_web_hook'
|
102
|
-
require 'order_cloud/models/list_web_hook_route'
|
103
|
-
require 'order_cloud/models/list_xp_index'
|
104
|
-
require 'order_cloud/models/message_cc_listener_assignment'
|
105
|
-
require 'order_cloud/models/message_config'
|
106
|
-
require 'order_cloud/models/message_sender'
|
107
|
-
require 'order_cloud/models/message_sender_assignment'
|
108
|
-
require 'order_cloud/models/meta'
|
109
|
-
require 'order_cloud/models/order'
|
110
|
-
require 'order_cloud/models/order_approval'
|
111
|
-
require 'order_cloud/models/order_promotion'
|
112
|
-
require 'order_cloud/models/password_reset'
|
113
|
-
require 'order_cloud/models/password_reset_request'
|
114
|
-
require 'order_cloud/models/payment'
|
115
|
-
require 'order_cloud/models/payment_transaction'
|
116
|
-
require 'order_cloud/models/ping_response'
|
117
|
-
require 'order_cloud/models/price_break'
|
118
|
-
require 'order_cloud/models/price_schedule'
|
119
|
-
require 'order_cloud/models/product'
|
120
|
-
require 'order_cloud/models/product_assignment'
|
121
|
-
require 'order_cloud/models/promotion'
|
122
|
-
require 'order_cloud/models/promotion_assignment'
|
123
|
-
require 'order_cloud/models/security_profile'
|
124
|
-
require 'order_cloud/models/security_profile_assignment'
|
125
|
-
require 'order_cloud/models/shipment'
|
126
|
-
require 'order_cloud/models/shipment_item'
|
127
|
-
require 'order_cloud/models/spec'
|
128
|
-
require 'order_cloud/models/spec_option'
|
129
|
-
require 'order_cloud/models/spec_product_assignment'
|
130
|
-
require 'order_cloud/models/spending_account'
|
131
|
-
require 'order_cloud/models/spending_account_assignment'
|
132
|
-
require 'order_cloud/models/user'
|
133
|
-
require 'order_cloud/models/user_group'
|
134
|
-
require 'order_cloud/models/user_group_assignment'
|
135
|
-
require 'order_cloud/models/variant'
|
136
|
-
require 'order_cloud/models/web_hook'
|
137
|
-
require 'order_cloud/models/web_hook_route'
|
138
|
-
require 'order_cloud/models/xp_index'
|
139
|
-
|
140
|
-
# APIs
|
141
|
-
require 'order_cloud/api/address_api'
|
142
|
-
require 'order_cloud/api/admin_address_api'
|
143
|
-
require 'order_cloud/api/admin_user_api'
|
144
|
-
require 'order_cloud/api/admin_user_group_api'
|
145
|
-
require 'order_cloud/api/approval_rule_api'
|
146
|
-
require 'order_cloud/api/buyer_api'
|
147
|
-
require 'order_cloud/api/category_api'
|
148
|
-
require 'order_cloud/api/cost_center_api'
|
149
|
-
require 'order_cloud/api/credit_card_api'
|
150
|
-
require 'order_cloud/api/email_template_api'
|
151
|
-
require 'order_cloud/api/line_item_api'
|
152
|
-
require 'order_cloud/api/me_api'
|
153
|
-
require 'order_cloud/api/message_senders_api'
|
154
|
-
require 'order_cloud/api/order_api'
|
155
|
-
require 'order_cloud/api/password_reset_api'
|
156
|
-
require 'order_cloud/api/payment_api'
|
157
|
-
require 'order_cloud/api/price_schedule_api'
|
158
|
-
require 'order_cloud/api/product_api'
|
159
|
-
require 'order_cloud/api/promotion_api'
|
160
|
-
require 'order_cloud/api/security_profile_api'
|
161
|
-
require 'order_cloud/api/shipment_api'
|
162
|
-
require 'order_cloud/api/spec_api'
|
163
|
-
require 'order_cloud/api/spending_account_api'
|
164
|
-
require 'order_cloud/api/user_api'
|
165
|
-
require 'order_cloud/api/user_group_api'
|
166
|
-
|
167
|
-
module OrderCloud
|
168
|
-
class << self
|
169
|
-
# Customize default settings for the SDK using block.
|
170
|
-
# OrderCloud.configure do |config|
|
171
|
-
# config.username = "xxx"
|
172
|
-
# config.password = "xxx"
|
173
|
-
# end
|
174
|
-
# If no block given, return the default Configuration object.
|
175
|
-
def configure
|
176
|
-
if block_given?
|
177
|
-
yield(Configuration.default)
|
178
|
-
else
|
179
|
-
Configuration.default
|
180
|
-
end
|
181
|
-
end
|
182
|
-
end
|
183
|
-
end
|
@@ -1,628 +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 "uri"
|
25
|
-
|
26
|
-
module OrderCloud
|
27
|
-
class AddressApi
|
28
|
-
attr_accessor :api_client
|
29
|
-
|
30
|
-
def initialize(api_client = ApiClient.default)
|
31
|
-
@api_client = api_client
|
32
|
-
end
|
33
|
-
|
34
|
-
#
|
35
|
-
#
|
36
|
-
# @param buyer_id ID of the buyer.
|
37
|
-
# @param address
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @return [Address]
|
40
|
-
def create(buyer_id, address, opts = {})
|
41
|
-
data, _status_code, _headers = create_with_http_info(buyer_id, address, opts)
|
42
|
-
return data
|
43
|
-
end
|
44
|
-
|
45
|
-
#
|
46
|
-
#
|
47
|
-
# @param buyer_id ID of the buyer.
|
48
|
-
# @param address
|
49
|
-
# @param [Hash] opts the optional parameters
|
50
|
-
# @return [Array<(Address, Fixnum, Hash)>] Address data, response status code and response headers
|
51
|
-
def create_with_http_info(buyer_id, address, opts = {})
|
52
|
-
if @api_client.config.debugging
|
53
|
-
@api_client.config.logger.debug "Calling API: AddressApi.create ..."
|
54
|
-
end
|
55
|
-
# verify the required parameter 'buyer_id' is set
|
56
|
-
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling AddressApi.create" if buyer_id.nil?
|
57
|
-
# verify the required parameter 'address' is set
|
58
|
-
fail ArgumentError, "Missing the required parameter 'address' when calling AddressApi.create" if address.nil?
|
59
|
-
# resource path
|
60
|
-
local_var_path = "/buyers/{buyerID}/addresses".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s)
|
61
|
-
|
62
|
-
# query parameters
|
63
|
-
query_params = {}
|
64
|
-
|
65
|
-
# header parameters
|
66
|
-
header_params = {}
|
67
|
-
|
68
|
-
# HTTP header 'Accept' (if needed)
|
69
|
-
local_header_accept = ['application/json']
|
70
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
71
|
-
|
72
|
-
# HTTP header 'Content-Type'
|
73
|
-
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
74
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
75
|
-
|
76
|
-
# form parameters
|
77
|
-
form_params = {}
|
78
|
-
|
79
|
-
# http body (model)
|
80
|
-
post_body = @api_client.object_to_http_body(address)
|
81
|
-
auth_names = ['oauth2']
|
82
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
83
|
-
:header_params => header_params,
|
84
|
-
:query_params => query_params,
|
85
|
-
:form_params => form_params,
|
86
|
-
:body => post_body,
|
87
|
-
:auth_names => auth_names,
|
88
|
-
:return_type => 'Address')
|
89
|
-
if @api_client.config.debugging
|
90
|
-
@api_client.config.logger.debug "API called: AddressApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
91
|
-
end
|
92
|
-
return data, status_code, headers
|
93
|
-
end
|
94
|
-
|
95
|
-
#
|
96
|
-
#
|
97
|
-
# @param buyer_id ID of the buyer.
|
98
|
-
# @param address_id ID of the address.
|
99
|
-
# @param [Hash] opts the optional parameters
|
100
|
-
# @return [nil]
|
101
|
-
def delete(buyer_id, address_id, opts = {})
|
102
|
-
delete_with_http_info(buyer_id, address_id, opts)
|
103
|
-
return nil
|
104
|
-
end
|
105
|
-
|
106
|
-
#
|
107
|
-
#
|
108
|
-
# @param buyer_id ID of the buyer.
|
109
|
-
# @param address_id ID of the address.
|
110
|
-
# @param [Hash] opts the optional parameters
|
111
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
112
|
-
def delete_with_http_info(buyer_id, address_id, opts = {})
|
113
|
-
if @api_client.config.debugging
|
114
|
-
@api_client.config.logger.debug "Calling API: AddressApi.delete ..."
|
115
|
-
end
|
116
|
-
# verify the required parameter 'buyer_id' is set
|
117
|
-
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling AddressApi.delete" if buyer_id.nil?
|
118
|
-
# verify the required parameter 'address_id' is set
|
119
|
-
fail ArgumentError, "Missing the required parameter 'address_id' when calling AddressApi.delete" if address_id.nil?
|
120
|
-
# resource path
|
121
|
-
local_var_path = "/buyers/{buyerID}/addresses/{addressID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'addressID' + '}', address_id.to_s)
|
122
|
-
|
123
|
-
# query parameters
|
124
|
-
query_params = {}
|
125
|
-
|
126
|
-
# header parameters
|
127
|
-
header_params = {}
|
128
|
-
|
129
|
-
# HTTP header 'Accept' (if needed)
|
130
|
-
local_header_accept = ['application/json']
|
131
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
132
|
-
|
133
|
-
# HTTP header 'Content-Type'
|
134
|
-
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
135
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
136
|
-
|
137
|
-
# form parameters
|
138
|
-
form_params = {}
|
139
|
-
|
140
|
-
# http body (model)
|
141
|
-
post_body = nil
|
142
|
-
auth_names = ['oauth2']
|
143
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
144
|
-
:header_params => header_params,
|
145
|
-
:query_params => query_params,
|
146
|
-
:form_params => form_params,
|
147
|
-
:body => post_body,
|
148
|
-
:auth_names => auth_names)
|
149
|
-
if @api_client.config.debugging
|
150
|
-
@api_client.config.logger.debug "API called: AddressApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
151
|
-
end
|
152
|
-
return data, status_code, headers
|
153
|
-
end
|
154
|
-
|
155
|
-
#
|
156
|
-
#
|
157
|
-
# @param buyer_id ID of the buyer.
|
158
|
-
# @param address_id ID of the address.
|
159
|
-
# @param [Hash] opts the optional parameters
|
160
|
-
# @option opts [String] :user_id ID of the user.
|
161
|
-
# @option opts [String] :user_group_id ID of the user group.
|
162
|
-
# @return [nil]
|
163
|
-
def delete_assignment(buyer_id, address_id, opts = {})
|
164
|
-
delete_assignment_with_http_info(buyer_id, address_id, opts)
|
165
|
-
return nil
|
166
|
-
end
|
167
|
-
|
168
|
-
#
|
169
|
-
#
|
170
|
-
# @param buyer_id ID of the buyer.
|
171
|
-
# @param address_id ID of the address.
|
172
|
-
# @param [Hash] opts the optional parameters
|
173
|
-
# @option opts [String] :user_id ID of the user.
|
174
|
-
# @option opts [String] :user_group_id ID of the user group.
|
175
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
176
|
-
def delete_assignment_with_http_info(buyer_id, address_id, opts = {})
|
177
|
-
if @api_client.config.debugging
|
178
|
-
@api_client.config.logger.debug "Calling API: AddressApi.delete_assignment ..."
|
179
|
-
end
|
180
|
-
# verify the required parameter 'buyer_id' is set
|
181
|
-
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling AddressApi.delete_assignment" if buyer_id.nil?
|
182
|
-
# verify the required parameter 'address_id' is set
|
183
|
-
fail ArgumentError, "Missing the required parameter 'address_id' when calling AddressApi.delete_assignment" if address_id.nil?
|
184
|
-
# resource path
|
185
|
-
local_var_path = "/buyers/{buyerID}/addresses/{addressID}/assignments".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'addressID' + '}', address_id.to_s)
|
186
|
-
|
187
|
-
# query parameters
|
188
|
-
query_params = {}
|
189
|
-
query_params[:'userID'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
190
|
-
query_params[:'userGroupID'] = opts[:'user_group_id'] if !opts[:'user_group_id'].nil?
|
191
|
-
|
192
|
-
# header parameters
|
193
|
-
header_params = {}
|
194
|
-
|
195
|
-
# HTTP header 'Accept' (if needed)
|
196
|
-
local_header_accept = ['application/json']
|
197
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
198
|
-
|
199
|
-
# HTTP header 'Content-Type'
|
200
|
-
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
201
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
202
|
-
|
203
|
-
# form parameters
|
204
|
-
form_params = {}
|
205
|
-
|
206
|
-
# http body (model)
|
207
|
-
post_body = nil
|
208
|
-
auth_names = ['oauth2']
|
209
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
210
|
-
:header_params => header_params,
|
211
|
-
:query_params => query_params,
|
212
|
-
:form_params => form_params,
|
213
|
-
:body => post_body,
|
214
|
-
:auth_names => auth_names)
|
215
|
-
if @api_client.config.debugging
|
216
|
-
@api_client.config.logger.debug "API called: AddressApi#delete_assignment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
217
|
-
end
|
218
|
-
return data, status_code, headers
|
219
|
-
end
|
220
|
-
|
221
|
-
#
|
222
|
-
#
|
223
|
-
# @param buyer_id ID of the buyer.
|
224
|
-
# @param address_id ID of the address.
|
225
|
-
# @param [Hash] opts the optional parameters
|
226
|
-
# @return [Address]
|
227
|
-
def get(buyer_id, address_id, opts = {})
|
228
|
-
data, _status_code, _headers = get_with_http_info(buyer_id, address_id, opts)
|
229
|
-
return data
|
230
|
-
end
|
231
|
-
|
232
|
-
#
|
233
|
-
#
|
234
|
-
# @param buyer_id ID of the buyer.
|
235
|
-
# @param address_id ID of the address.
|
236
|
-
# @param [Hash] opts the optional parameters
|
237
|
-
# @return [Array<(Address, Fixnum, Hash)>] Address data, response status code and response headers
|
238
|
-
def get_with_http_info(buyer_id, address_id, opts = {})
|
239
|
-
if @api_client.config.debugging
|
240
|
-
@api_client.config.logger.debug "Calling API: AddressApi.get ..."
|
241
|
-
end
|
242
|
-
# verify the required parameter 'buyer_id' is set
|
243
|
-
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling AddressApi.get" if buyer_id.nil?
|
244
|
-
# verify the required parameter 'address_id' is set
|
245
|
-
fail ArgumentError, "Missing the required parameter 'address_id' when calling AddressApi.get" if address_id.nil?
|
246
|
-
# resource path
|
247
|
-
local_var_path = "/buyers/{buyerID}/addresses/{addressID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'addressID' + '}', address_id.to_s)
|
248
|
-
|
249
|
-
# query parameters
|
250
|
-
query_params = {}
|
251
|
-
|
252
|
-
# header parameters
|
253
|
-
header_params = {}
|
254
|
-
|
255
|
-
# HTTP header 'Accept' (if needed)
|
256
|
-
local_header_accept = ['application/json']
|
257
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
258
|
-
|
259
|
-
# HTTP header 'Content-Type'
|
260
|
-
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
261
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
262
|
-
|
263
|
-
# form parameters
|
264
|
-
form_params = {}
|
265
|
-
|
266
|
-
# http body (model)
|
267
|
-
post_body = nil
|
268
|
-
auth_names = ['oauth2']
|
269
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
270
|
-
:header_params => header_params,
|
271
|
-
:query_params => query_params,
|
272
|
-
:form_params => form_params,
|
273
|
-
:body => post_body,
|
274
|
-
:auth_names => auth_names,
|
275
|
-
:return_type => 'Address')
|
276
|
-
if @api_client.config.debugging
|
277
|
-
@api_client.config.logger.debug "API called: AddressApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
278
|
-
end
|
279
|
-
return data, status_code, headers
|
280
|
-
end
|
281
|
-
|
282
|
-
#
|
283
|
-
#
|
284
|
-
# @param buyer_id ID of the buyer.
|
285
|
-
# @param [Hash] opts the optional parameters
|
286
|
-
# @option opts [String] :search Word or phrase to search for.
|
287
|
-
# @option opts [String] :search_on Comma-delimited list of fields to search on.
|
288
|
-
# @option opts [String] :sort_by Comma-delimited list of fields to sort by.
|
289
|
-
# @option opts [Integer] :page Page of results to return. Default: 1
|
290
|
-
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
291
|
-
# @option opts [Hash<String, String>] :filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
|
292
|
-
# @return [ListAddress]
|
293
|
-
def list(buyer_id, opts = {})
|
294
|
-
data, _status_code, _headers = list_with_http_info(buyer_id, opts)
|
295
|
-
return data
|
296
|
-
end
|
297
|
-
|
298
|
-
#
|
299
|
-
#
|
300
|
-
# @param buyer_id ID of the buyer.
|
301
|
-
# @param [Hash] opts the optional parameters
|
302
|
-
# @option opts [String] :search Word or phrase to search for.
|
303
|
-
# @option opts [String] :search_on Comma-delimited list of fields to search on.
|
304
|
-
# @option opts [String] :sort_by Comma-delimited list of fields to sort by.
|
305
|
-
# @option opts [Integer] :page Page of results to return. Default: 1
|
306
|
-
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
307
|
-
# @option opts [Hash<String, String>] :filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
|
308
|
-
# @return [Array<(ListAddress, Fixnum, Hash)>] ListAddress data, response status code and response headers
|
309
|
-
def list_with_http_info(buyer_id, opts = {})
|
310
|
-
if @api_client.config.debugging
|
311
|
-
@api_client.config.logger.debug "Calling API: AddressApi.list ..."
|
312
|
-
end
|
313
|
-
# verify the required parameter 'buyer_id' is set
|
314
|
-
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling AddressApi.list" if buyer_id.nil?
|
315
|
-
# resource path
|
316
|
-
local_var_path = "/buyers/{buyerID}/addresses".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s)
|
317
|
-
|
318
|
-
# query parameters
|
319
|
-
query_params = {}
|
320
|
-
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
321
|
-
query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
|
322
|
-
query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
323
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
324
|
-
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
325
|
-
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
326
|
-
|
327
|
-
# header parameters
|
328
|
-
header_params = {}
|
329
|
-
|
330
|
-
# HTTP header 'Accept' (if needed)
|
331
|
-
local_header_accept = ['application/json']
|
332
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
333
|
-
|
334
|
-
# HTTP header 'Content-Type'
|
335
|
-
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
336
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
337
|
-
|
338
|
-
# form parameters
|
339
|
-
form_params = {}
|
340
|
-
|
341
|
-
# http body (model)
|
342
|
-
post_body = nil
|
343
|
-
auth_names = ['oauth2']
|
344
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
345
|
-
:header_params => header_params,
|
346
|
-
:query_params => query_params,
|
347
|
-
:form_params => form_params,
|
348
|
-
:body => post_body,
|
349
|
-
:auth_names => auth_names,
|
350
|
-
:return_type => 'ListAddress')
|
351
|
-
if @api_client.config.debugging
|
352
|
-
@api_client.config.logger.debug "API called: AddressApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
353
|
-
end
|
354
|
-
return data, status_code, headers
|
355
|
-
end
|
356
|
-
|
357
|
-
#
|
358
|
-
#
|
359
|
-
# @param buyer_id ID of the buyer.
|
360
|
-
# @param [Hash] opts the optional parameters
|
361
|
-
# @option opts [String] :address_id ID of the address.
|
362
|
-
# @option opts [String] :user_id ID of the user.
|
363
|
-
# @option opts [String] :user_group_id ID of the user group.
|
364
|
-
# @option opts [String] :level Level of the address.
|
365
|
-
# @option opts [BOOLEAN] :is_shipping Is shipping of the address.
|
366
|
-
# @option opts [BOOLEAN] :is_billing Is billing of the address.
|
367
|
-
# @option opts [Integer] :page Page of results to return. Default: 1
|
368
|
-
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
369
|
-
# @return [ListAddressAssignment]
|
370
|
-
def list_assignments(buyer_id, opts = {})
|
371
|
-
data, _status_code, _headers = list_assignments_with_http_info(buyer_id, opts)
|
372
|
-
return data
|
373
|
-
end
|
374
|
-
|
375
|
-
#
|
376
|
-
#
|
377
|
-
# @param buyer_id ID of the buyer.
|
378
|
-
# @param [Hash] opts the optional parameters
|
379
|
-
# @option opts [String] :address_id ID of the address.
|
380
|
-
# @option opts [String] :user_id ID of the user.
|
381
|
-
# @option opts [String] :user_group_id ID of the user group.
|
382
|
-
# @option opts [String] :level Level of the address.
|
383
|
-
# @option opts [BOOLEAN] :is_shipping Is shipping of the address.
|
384
|
-
# @option opts [BOOLEAN] :is_billing Is billing of the address.
|
385
|
-
# @option opts [Integer] :page Page of results to return. Default: 1
|
386
|
-
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
387
|
-
# @return [Array<(ListAddressAssignment, Fixnum, Hash)>] ListAddressAssignment data, response status code and response headers
|
388
|
-
def list_assignments_with_http_info(buyer_id, opts = {})
|
389
|
-
if @api_client.config.debugging
|
390
|
-
@api_client.config.logger.debug "Calling API: AddressApi.list_assignments ..."
|
391
|
-
end
|
392
|
-
# verify the required parameter 'buyer_id' is set
|
393
|
-
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling AddressApi.list_assignments" if buyer_id.nil?
|
394
|
-
# resource path
|
395
|
-
local_var_path = "/buyers/{buyerID}/addresses/assignments".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s)
|
396
|
-
|
397
|
-
# query parameters
|
398
|
-
query_params = {}
|
399
|
-
query_params[:'addressID'] = opts[:'address_id'] if !opts[:'address_id'].nil?
|
400
|
-
query_params[:'userID'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
401
|
-
query_params[:'userGroupID'] = opts[:'user_group_id'] if !opts[:'user_group_id'].nil?
|
402
|
-
query_params[:'level'] = opts[:'level'] if !opts[:'level'].nil?
|
403
|
-
query_params[:'isShipping'] = opts[:'is_shipping'] if !opts[:'is_shipping'].nil?
|
404
|
-
query_params[:'isBilling'] = opts[:'is_billing'] if !opts[:'is_billing'].nil?
|
405
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
406
|
-
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
407
|
-
|
408
|
-
# header parameters
|
409
|
-
header_params = {}
|
410
|
-
|
411
|
-
# HTTP header 'Accept' (if needed)
|
412
|
-
local_header_accept = ['application/json']
|
413
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
414
|
-
|
415
|
-
# HTTP header 'Content-Type'
|
416
|
-
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
417
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
418
|
-
|
419
|
-
# form parameters
|
420
|
-
form_params = {}
|
421
|
-
|
422
|
-
# http body (model)
|
423
|
-
post_body = nil
|
424
|
-
auth_names = ['oauth2']
|
425
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
426
|
-
:header_params => header_params,
|
427
|
-
:query_params => query_params,
|
428
|
-
:form_params => form_params,
|
429
|
-
:body => post_body,
|
430
|
-
:auth_names => auth_names,
|
431
|
-
:return_type => 'ListAddressAssignment')
|
432
|
-
if @api_client.config.debugging
|
433
|
-
@api_client.config.logger.debug "API called: AddressApi#list_assignments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
434
|
-
end
|
435
|
-
return data, status_code, headers
|
436
|
-
end
|
437
|
-
|
438
|
-
#
|
439
|
-
#
|
440
|
-
# @param buyer_id ID of the buyer.
|
441
|
-
# @param address_id ID of the address.
|
442
|
-
# @param address
|
443
|
-
# @param [Hash] opts the optional parameters
|
444
|
-
# @return [Address]
|
445
|
-
def patch(buyer_id, address_id, address, opts = {})
|
446
|
-
data, _status_code, _headers = patch_with_http_info(buyer_id, address_id, address, opts)
|
447
|
-
return data
|
448
|
-
end
|
449
|
-
|
450
|
-
#
|
451
|
-
#
|
452
|
-
# @param buyer_id ID of the buyer.
|
453
|
-
# @param address_id ID of the address.
|
454
|
-
# @param address
|
455
|
-
# @param [Hash] opts the optional parameters
|
456
|
-
# @return [Array<(Address, Fixnum, Hash)>] Address data, response status code and response headers
|
457
|
-
def patch_with_http_info(buyer_id, address_id, address, opts = {})
|
458
|
-
if @api_client.config.debugging
|
459
|
-
@api_client.config.logger.debug "Calling API: AddressApi.patch ..."
|
460
|
-
end
|
461
|
-
# verify the required parameter 'buyer_id' is set
|
462
|
-
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling AddressApi.patch" if buyer_id.nil?
|
463
|
-
# verify the required parameter 'address_id' is set
|
464
|
-
fail ArgumentError, "Missing the required parameter 'address_id' when calling AddressApi.patch" if address_id.nil?
|
465
|
-
# verify the required parameter 'address' is set
|
466
|
-
fail ArgumentError, "Missing the required parameter 'address' when calling AddressApi.patch" if address.nil?
|
467
|
-
# resource path
|
468
|
-
local_var_path = "/buyers/{buyerID}/addresses/{addressID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'addressID' + '}', address_id.to_s)
|
469
|
-
|
470
|
-
# query parameters
|
471
|
-
query_params = {}
|
472
|
-
|
473
|
-
# header parameters
|
474
|
-
header_params = {}
|
475
|
-
|
476
|
-
# HTTP header 'Accept' (if needed)
|
477
|
-
local_header_accept = ['application/json']
|
478
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
479
|
-
|
480
|
-
# HTTP header 'Content-Type'
|
481
|
-
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
482
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
483
|
-
|
484
|
-
# form parameters
|
485
|
-
form_params = {}
|
486
|
-
|
487
|
-
# http body (model)
|
488
|
-
post_body = @api_client.object_to_http_body(address)
|
489
|
-
auth_names = ['oauth2']
|
490
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
491
|
-
:header_params => header_params,
|
492
|
-
:query_params => query_params,
|
493
|
-
:form_params => form_params,
|
494
|
-
:body => post_body,
|
495
|
-
:auth_names => auth_names,
|
496
|
-
:return_type => 'Address')
|
497
|
-
if @api_client.config.debugging
|
498
|
-
@api_client.config.logger.debug "API called: AddressApi#patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
499
|
-
end
|
500
|
-
return data, status_code, headers
|
501
|
-
end
|
502
|
-
|
503
|
-
#
|
504
|
-
#
|
505
|
-
# @param buyer_id ID of the buyer.
|
506
|
-
# @param assignment
|
507
|
-
# @param [Hash] opts the optional parameters
|
508
|
-
# @return [nil]
|
509
|
-
def save_assignment(buyer_id, assignment, opts = {})
|
510
|
-
save_assignment_with_http_info(buyer_id, assignment, opts)
|
511
|
-
return nil
|
512
|
-
end
|
513
|
-
|
514
|
-
#
|
515
|
-
#
|
516
|
-
# @param buyer_id ID of the buyer.
|
517
|
-
# @param assignment
|
518
|
-
# @param [Hash] opts the optional parameters
|
519
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
520
|
-
def save_assignment_with_http_info(buyer_id, assignment, opts = {})
|
521
|
-
if @api_client.config.debugging
|
522
|
-
@api_client.config.logger.debug "Calling API: AddressApi.save_assignment ..."
|
523
|
-
end
|
524
|
-
# verify the required parameter 'buyer_id' is set
|
525
|
-
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling AddressApi.save_assignment" if buyer_id.nil?
|
526
|
-
# verify the required parameter 'assignment' is set
|
527
|
-
fail ArgumentError, "Missing the required parameter 'assignment' when calling AddressApi.save_assignment" if assignment.nil?
|
528
|
-
# resource path
|
529
|
-
local_var_path = "/buyers/{buyerID}/addresses/assignments".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s)
|
530
|
-
|
531
|
-
# query parameters
|
532
|
-
query_params = {}
|
533
|
-
|
534
|
-
# header parameters
|
535
|
-
header_params = {}
|
536
|
-
|
537
|
-
# HTTP header 'Accept' (if needed)
|
538
|
-
local_header_accept = ['application/json']
|
539
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
540
|
-
|
541
|
-
# HTTP header 'Content-Type'
|
542
|
-
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
543
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
544
|
-
|
545
|
-
# form parameters
|
546
|
-
form_params = {}
|
547
|
-
|
548
|
-
# http body (model)
|
549
|
-
post_body = @api_client.object_to_http_body(assignment)
|
550
|
-
auth_names = ['oauth2']
|
551
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
552
|
-
:header_params => header_params,
|
553
|
-
:query_params => query_params,
|
554
|
-
:form_params => form_params,
|
555
|
-
:body => post_body,
|
556
|
-
:auth_names => auth_names)
|
557
|
-
if @api_client.config.debugging
|
558
|
-
@api_client.config.logger.debug "API called: AddressApi#save_assignment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
559
|
-
end
|
560
|
-
return data, status_code, headers
|
561
|
-
end
|
562
|
-
|
563
|
-
#
|
564
|
-
#
|
565
|
-
# @param buyer_id ID of the buyer.
|
566
|
-
# @param address_id ID of the address.
|
567
|
-
# @param address
|
568
|
-
# @param [Hash] opts the optional parameters
|
569
|
-
# @return [Address]
|
570
|
-
def update(buyer_id, address_id, address, opts = {})
|
571
|
-
data, _status_code, _headers = update_with_http_info(buyer_id, address_id, address, opts)
|
572
|
-
return data
|
573
|
-
end
|
574
|
-
|
575
|
-
#
|
576
|
-
#
|
577
|
-
# @param buyer_id ID of the buyer.
|
578
|
-
# @param address_id ID of the address.
|
579
|
-
# @param address
|
580
|
-
# @param [Hash] opts the optional parameters
|
581
|
-
# @return [Array<(Address, Fixnum, Hash)>] Address data, response status code and response headers
|
582
|
-
def update_with_http_info(buyer_id, address_id, address, opts = {})
|
583
|
-
if @api_client.config.debugging
|
584
|
-
@api_client.config.logger.debug "Calling API: AddressApi.update ..."
|
585
|
-
end
|
586
|
-
# verify the required parameter 'buyer_id' is set
|
587
|
-
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling AddressApi.update" if buyer_id.nil?
|
588
|
-
# verify the required parameter 'address_id' is set
|
589
|
-
fail ArgumentError, "Missing the required parameter 'address_id' when calling AddressApi.update" if address_id.nil?
|
590
|
-
# verify the required parameter 'address' is set
|
591
|
-
fail ArgumentError, "Missing the required parameter 'address' when calling AddressApi.update" if address.nil?
|
592
|
-
# resource path
|
593
|
-
local_var_path = "/buyers/{buyerID}/addresses/{addressID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'addressID' + '}', address_id.to_s)
|
594
|
-
|
595
|
-
# query parameters
|
596
|
-
query_params = {}
|
597
|
-
|
598
|
-
# header parameters
|
599
|
-
header_params = {}
|
600
|
-
|
601
|
-
# HTTP header 'Accept' (if needed)
|
602
|
-
local_header_accept = ['application/json']
|
603
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
604
|
-
|
605
|
-
# HTTP header 'Content-Type'
|
606
|
-
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
607
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
608
|
-
|
609
|
-
# form parameters
|
610
|
-
form_params = {}
|
611
|
-
|
612
|
-
# http body (model)
|
613
|
-
post_body = @api_client.object_to_http_body(address)
|
614
|
-
auth_names = ['oauth2']
|
615
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
616
|
-
:header_params => header_params,
|
617
|
-
:query_params => query_params,
|
618
|
-
:form_params => form_params,
|
619
|
-
:body => post_body,
|
620
|
-
:auth_names => auth_names,
|
621
|
-
:return_type => 'Address')
|
622
|
-
if @api_client.config.debugging
|
623
|
-
@api_client.config.logger.debug "API called: AddressApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
624
|
-
end
|
625
|
-
return data, status_code, headers
|
626
|
-
end
|
627
|
-
end
|
628
|
-
end
|