order_cloud 1.0.45.pre.staging → 1.0.57
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +28 -0
- data/Gemfile.lock +34 -0
- data/LICENSE +201 -0
- data/README.md +552 -0
- data/Rakefile +31 -0
- data/docs/AccessToken.md +11 -0
- data/docs/Address.md +20 -0
- data/docs/AddressApi.md +520 -0
- data/docs/AddressAssignment.md +12 -0
- data/docs/AdminAddressApi.md +324 -0
- data/docs/AdminUserApi.md +324 -0
- data/docs/AdminUserGroupApi.md +482 -0
- data/docs/ApprovalRule.md +13 -0
- data/docs/ApprovalRuleApi.md +342 -0
- data/docs/BaseSpec.md +16 -0
- data/docs/Buyer.md +12 -0
- data/docs/BuyerAddress.md +23 -0
- data/docs/BuyerApi.md +324 -0
- data/docs/BuyerCreditCard.md +16 -0
- data/docs/BuyerProduct.md +23 -0
- data/docs/BuyerShipment.md +19 -0
- data/docs/BuyerSpec.md +17 -0
- data/docs/Catalog.md +13 -0
- data/docs/CatalogApi.md +640 -0
- data/docs/CatalogAssignment.md +11 -0
- data/docs/Category.md +15 -0
- data/docs/CategoryApi.md +690 -0
- data/docs/CategoryAssignment.md +12 -0
- data/docs/CategoryProductAssignment.md +10 -0
- data/docs/CostCenter.md +11 -0
- data/docs/CostCenterApi.md +516 -0
- data/docs/CostCenterAssignment.md +9 -0
- data/docs/CreditCard.md +15 -0
- data/docs/CreditCardApi.md +516 -0
- data/docs/CreditCardAssignment.md +10 -0
- data/docs/ImpersonateTokenRequest.md +9 -0
- data/docs/ImpersonationConfig.md +16 -0
- data/docs/ImpersonationConfigApi.md +324 -0
- data/docs/Inventory.md +13 -0
- data/docs/LineItem.md +24 -0
- data/docs/LineItemApi.md +478 -0
- data/docs/LineItemProduct.md +16 -0
- data/docs/LineItemSpec.md +11 -0
- data/docs/ListAddress.md +9 -0
- data/docs/ListAddressAssignment.md +9 -0
- data/docs/ListApprovalRule.md +9 -0
- data/docs/ListArgs.md +13 -0
- data/docs/ListBuyer.md +9 -0
- data/docs/ListBuyerAddress.md +9 -0
- data/docs/ListBuyerCreditCard.md +9 -0
- data/docs/ListBuyerProduct.md +9 -0
- data/docs/ListBuyerShipment.md +9 -0
- data/docs/ListBuyerSpec.md +9 -0
- data/docs/ListCatalog.md +9 -0
- data/docs/ListCatalogAssignment.md +9 -0
- data/docs/ListCategory.md +9 -0
- data/docs/ListCategoryAssignment.md +9 -0
- data/docs/ListCategoryProductAssignment.md +9 -0
- data/docs/ListCostCenter.md +9 -0
- data/docs/ListCostCenterAssignment.md +9 -0
- data/docs/ListCreditCard.md +9 -0
- data/docs/ListCreditCardAssignment.md +9 -0
- data/docs/ListImpersonationConfig.md +9 -0
- data/docs/ListLineItem.md +9 -0
- data/docs/ListMessageCCListenerAssignment.md +9 -0
- data/docs/ListMessageConfig.md +9 -0
- data/docs/ListMessageSender.md +9 -0
- data/docs/ListMessageSenderAssignment.md +9 -0
- data/docs/ListOrder.md +9 -0
- data/docs/ListOrderApproval.md +9 -0
- data/docs/ListOrderPromotion.md +9 -0
- data/docs/ListPayment.md +9 -0
- data/docs/ListPriceSchedule.md +9 -0
- data/docs/ListProduct.md +9 -0
- data/docs/ListProductAssignment.md +9 -0
- data/docs/ListProductCatalogAssignment.md +9 -0
- data/docs/ListPromotion.md +9 -0
- data/docs/ListPromotionAssignment.md +9 -0
- data/docs/ListSecurityProfile.md +9 -0
- data/docs/ListSecurityProfileAssignment.md +9 -0
- data/docs/ListShipment.md +9 -0
- data/docs/ListShipmentItem.md +9 -0
- data/docs/ListSpec.md +9 -0
- data/docs/ListSpecOption.md +9 -0
- data/docs/ListSpecProductAssignment.md +9 -0
- data/docs/ListSpendingAccount.md +9 -0
- data/docs/ListSpendingAccountAssignment.md +9 -0
- data/docs/ListSupplier.md +9 -0
- data/docs/ListUser.md +9 -0
- data/docs/ListUserGroup.md +9 -0
- data/docs/ListUserGroupAssignment.md +9 -0
- data/docs/ListVariant.md +9 -0
- data/docs/MeApi.md +2002 -0
- data/docs/MeBuyer.md +9 -0
- data/docs/MeUser.md +19 -0
- data/docs/MessageCCListenerAssignment.md +13 -0
- data/docs/MessageConfig.md +14 -0
- data/docs/MessageSender.md +10 -0
- data/docs/MessageSenderAssignment.md +11 -0
- data/docs/MessageSendersApi.md +398 -0
- data/docs/Meta.md +12 -0
- data/docs/Order.md +30 -0
- data/docs/OrderApi.md +1161 -0
- data/docs/OrderApproval.md +14 -0
- data/docs/OrderApprovalInfo.md +9 -0
- data/docs/OrderPromotion.md +22 -0
- data/docs/PasswordReset.md +10 -0
- data/docs/PasswordResetApi.md +109 -0
- data/docs/PasswordResetRequest.md +11 -0
- data/docs/Payment.md +17 -0
- data/docs/PaymentApi.md +418 -0
- data/docs/PaymentTransaction.md +15 -0
- data/docs/PriceBreak.md +9 -0
- data/docs/PriceSchedule.md +17 -0
- data/docs/PriceScheduleApi.md +429 -0
- data/docs/Product.md +23 -0
- data/docs/ProductApi.md +953 -0
- data/docs/ProductAssignment.md +11 -0
- data/docs/ProductBase.md +22 -0
- data/docs/ProductCatalogAssignment.md +9 -0
- data/docs/Promotion.md +21 -0
- data/docs/PromotionApi.md +494 -0
- data/docs/PromotionAssignment.md +10 -0
- data/docs/SecurityProfile.md +10 -0
- data/docs/SecurityProfileApi.md +292 -0
- data/docs/SecurityProfileAssignment.md +12 -0
- data/docs/Shipment.md +20 -0
- data/docs/ShipmentApi.md +554 -0
- data/docs/ShipmentItem.md +16 -0
- data/docs/Spec.md +17 -0
- data/docs/SpecApi.md +820 -0
- data/docs/SpecOption.md +14 -0
- data/docs/SpecProductAssignment.md +11 -0
- data/docs/SpendingAccount.md +15 -0
- data/docs/SpendingAccountApi.md +516 -0
- data/docs/SpendingAccountAssignment.md +11 -0
- data/docs/Supplier.md +11 -0
- data/docs/SupplierApi.md +324 -0
- data/docs/SupplierUserApi.md +400 -0
- data/docs/SupplierUserGroupApi.md +509 -0
- data/docs/TokenPasswordReset.md +8 -0
- data/docs/User.md +18 -0
- data/docs/UserApi.md +400 -0
- data/docs/UserGroup.md +11 -0
- data/docs/UserGroupApi.md +509 -0
- data/docs/UserGroupAssignment.md +9 -0
- data/docs/Variant.md +12 -0
- data/git_push.sh +67 -0
- data/lib/order_cloud.rb +193 -0
- data/lib/order_cloud/api/address_api.rb +628 -0
- data/lib/order_cloud/api/admin_address_api.rb +397 -0
- data/lib/order_cloud/api/admin_user_api.rb +397 -0
- data/lib/order_cloud/api/admin_user_group_api.rb +578 -0
- data/lib/order_cloud/api/approval_rule_api.rb +421 -0
- data/lib/order_cloud/api/auth_api.rb +138 -0
- data/lib/order_cloud/api/buyer_api.rb +397 -0
- data/lib/order_cloud/api/catalog_api.rb +760 -0
- data/lib/order_cloud/api/category_api.rb +826 -0
- data/lib/order_cloud/api/cost_center_api.rb +622 -0
- data/lib/order_cloud/api/credit_card_api.rb +622 -0
- data/lib/order_cloud/api/impersonation_config_api.rb +397 -0
- data/lib/order_cloud/api/line_item_api.rb +583 -0
- data/lib/order_cloud/api/me_api.rb +2345 -0
- data/lib/order_cloud/api/message_senders_api.rb +484 -0
- data/lib/order_cloud/api/order_api.rb +1377 -0
- data/lib/order_cloud/api/password_reset_api.rb +150 -0
- data/lib/order_cloud/api/payment_api.rb +513 -0
- data/lib/order_cloud/api/price_schedule_api.rb +519 -0
- data/lib/order_cloud/api/product_api.rb +1126 -0
- data/lib/order_cloud/api/promotion_api.rb +594 -0
- data/lib/order_cloud/api/security_profile_api.rb +363 -0
- data/lib/order_cloud/api/shipment_api.rb +665 -0
- data/lib/order_cloud/api/spec_api.rb +971 -0
- data/lib/order_cloud/api/spending_account_api.rb +622 -0
- data/lib/order_cloud/api/supplier_api.rb +397 -0
- data/lib/order_cloud/api/supplier_user_api.rb +489 -0
- data/lib/order_cloud/api/supplier_user_group_api.rb +614 -0
- data/lib/order_cloud/api/user_api.rb +489 -0
- data/lib/order_cloud/api/user_group_api.rb +614 -0
- data/lib/order_cloud/api_client.rb +385 -0
- data/lib/order_cloud/api_error.rb +47 -0
- data/lib/order_cloud/configuration.rb +245 -0
- data/lib/order_cloud/models/access_token.rb +226 -0
- data/lib/order_cloud/models/address.rb +307 -0
- data/lib/order_cloud/models/address_assignment.rb +235 -0
- data/lib/order_cloud/models/approval_rule.rb +244 -0
- data/lib/order_cloud/models/base_spec.rb +271 -0
- data/lib/order_cloud/models/buyer.rb +235 -0
- data/lib/order_cloud/models/buyer_address.rb +334 -0
- data/lib/order_cloud/models/buyer_credit_card.rb +271 -0
- data/lib/order_cloud/models/buyer_product.rb +334 -0
- data/lib/order_cloud/models/buyer_shipment.rb +298 -0
- data/lib/order_cloud/models/buyer_spec.rb +282 -0
- data/lib/order_cloud/models/catalog.rb +244 -0
- data/lib/order_cloud/models/catalog_assignment.rb +226 -0
- data/lib/order_cloud/models/category.rb +262 -0
- data/lib/order_cloud/models/category_assignment.rb +235 -0
- data/lib/order_cloud/models/category_product_assignment.rb +217 -0
- data/lib/order_cloud/models/cost_center.rb +226 -0
- data/lib/order_cloud/models/cost_center_assignment.rb +208 -0
- data/lib/order_cloud/models/credit_card.rb +262 -0
- data/lib/order_cloud/models/credit_card_assignment.rb +217 -0
- data/lib/order_cloud/models/impersonate_token_request.rb +210 -0
- data/lib/order_cloud/models/impersonation_config.rb +271 -0
- data/lib/order_cloud/models/inventory.rb +244 -0
- data/lib/order_cloud/models/line_item.rb +345 -0
- data/lib/order_cloud/models/line_item_product.rb +271 -0
- data/lib/order_cloud/models/line_item_spec.rb +226 -0
- data/lib/order_cloud/models/list_address.rb +210 -0
- data/lib/order_cloud/models/list_address_assignment.rb +210 -0
- data/lib/order_cloud/models/list_approval_rule.rb +210 -0
- data/lib/order_cloud/models/list_args.rb +248 -0
- data/lib/order_cloud/models/list_buyer.rb +210 -0
- data/lib/order_cloud/models/list_buyer_address.rb +210 -0
- data/lib/order_cloud/models/list_buyer_credit_card.rb +210 -0
- data/lib/order_cloud/models/list_buyer_product.rb +210 -0
- data/lib/order_cloud/models/list_buyer_shipment.rb +210 -0
- data/lib/order_cloud/models/list_buyer_spec.rb +210 -0
- data/lib/order_cloud/models/list_catalog.rb +210 -0
- data/lib/order_cloud/models/list_catalog_assignment.rb +210 -0
- data/lib/order_cloud/models/list_category.rb +210 -0
- data/lib/order_cloud/models/list_category_assignment.rb +210 -0
- data/lib/order_cloud/models/list_category_product_assignment.rb +210 -0
- data/lib/order_cloud/models/list_cost_center.rb +210 -0
- data/lib/order_cloud/models/list_cost_center_assignment.rb +210 -0
- data/lib/order_cloud/models/list_credit_card.rb +210 -0
- data/lib/order_cloud/models/list_credit_card_assignment.rb +210 -0
- data/lib/order_cloud/models/list_impersonation_config.rb +210 -0
- data/lib/order_cloud/models/list_line_item.rb +210 -0
- data/lib/order_cloud/models/list_message_cc_listener_assignment.rb +210 -0
- data/lib/order_cloud/models/list_message_config.rb +210 -0
- data/lib/order_cloud/models/list_message_sender.rb +210 -0
- data/lib/order_cloud/models/list_message_sender_assignment.rb +210 -0
- data/lib/order_cloud/models/list_order.rb +210 -0
- data/lib/order_cloud/models/list_order_approval.rb +210 -0
- data/lib/order_cloud/models/list_order_promotion.rb +210 -0
- data/lib/order_cloud/models/list_payment.rb +210 -0
- data/lib/order_cloud/models/list_price_schedule.rb +210 -0
- data/lib/order_cloud/models/list_product.rb +210 -0
- data/lib/order_cloud/models/list_product_assignment.rb +210 -0
- data/lib/order_cloud/models/list_product_catalog_assignment.rb +210 -0
- data/lib/order_cloud/models/list_promotion.rb +210 -0
- data/lib/order_cloud/models/list_promotion_assignment.rb +210 -0
- data/lib/order_cloud/models/list_security_profile.rb +210 -0
- data/lib/order_cloud/models/list_security_profile_assignment.rb +210 -0
- data/lib/order_cloud/models/list_shipment.rb +210 -0
- data/lib/order_cloud/models/list_shipment_item.rb +210 -0
- data/lib/order_cloud/models/list_spec.rb +210 -0
- data/lib/order_cloud/models/list_spec_option.rb +210 -0
- data/lib/order_cloud/models/list_spec_product_assignment.rb +210 -0
- data/lib/order_cloud/models/list_spending_account.rb +210 -0
- data/lib/order_cloud/models/list_spending_account_assignment.rb +210 -0
- data/lib/order_cloud/models/list_supplier.rb +210 -0
- data/lib/order_cloud/models/list_user.rb +210 -0
- data/lib/order_cloud/models/list_user_group.rb +210 -0
- data/lib/order_cloud/models/list_user_group_assignment.rb +210 -0
- data/lib/order_cloud/models/list_variant.rb +210 -0
- data/lib/order_cloud/models/me_buyer.rb +208 -0
- data/lib/order_cloud/models/me_user.rb +300 -0
- data/lib/order_cloud/models/message_cc_listener_assignment.rb +244 -0
- data/lib/order_cloud/models/message_config.rb +255 -0
- data/lib/order_cloud/models/message_sender.rb +219 -0
- data/lib/order_cloud/models/message_sender_assignment.rb +226 -0
- data/lib/order_cloud/models/meta.rb +237 -0
- data/lib/order_cloud/models/order.rb +397 -0
- data/lib/order_cloud/models/order_approval.rb +253 -0
- data/lib/order_cloud/models/order_approval_info.rb +208 -0
- data/lib/order_cloud/models/order_promotion.rb +325 -0
- data/lib/order_cloud/models/password_reset.rb +217 -0
- data/lib/order_cloud/models/password_reset_request.rb +226 -0
- data/lib/order_cloud/models/payment.rb +282 -0
- data/lib/order_cloud/models/payment_transaction.rb +262 -0
- data/lib/order_cloud/models/price_break.rb +208 -0
- data/lib/order_cloud/models/price_schedule.rb +282 -0
- data/lib/order_cloud/models/product.rb +334 -0
- data/lib/order_cloud/models/product_assignment.rb +226 -0
- data/lib/order_cloud/models/product_base.rb +325 -0
- data/lib/order_cloud/models/product_catalog_assignment.rb +208 -0
- data/lib/order_cloud/models/promotion.rb +316 -0
- data/lib/order_cloud/models/promotion_assignment.rb +217 -0
- data/lib/order_cloud/models/security_profile.rb +219 -0
- data/lib/order_cloud/models/security_profile_assignment.rb +235 -0
- data/lib/order_cloud/models/shipment.rb +307 -0
- data/lib/order_cloud/models/shipment_item.rb +273 -0
- data/lib/order_cloud/models/spec.rb +280 -0
- data/lib/order_cloud/models/spec_option.rb +253 -0
- data/lib/order_cloud/models/spec_product_assignment.rb +226 -0
- data/lib/order_cloud/models/spending_account.rb +262 -0
- data/lib/order_cloud/models/spending_account_assignment.rb +226 -0
- data/lib/order_cloud/models/supplier.rb +226 -0
- data/lib/order_cloud/models/token_password_reset.rb +199 -0
- data/lib/order_cloud/models/user.rb +291 -0
- data/lib/order_cloud/models/user_group.rb +226 -0
- data/lib/order_cloud/models/user_group_assignment.rb +208 -0
- data/lib/order_cloud/models/variant.rb +235 -0
- data/lib/order_cloud/version.rb +26 -0
- data/order_cloud-1.0.56.gem +0 -0
- data/order_cloud.gemspec +56 -0
- data/spec/api/address_api_spec.rb +179 -0
- data/spec/api/admin_address_api_spec.rb +125 -0
- data/spec/api/admin_user_api_spec.rb +125 -0
- data/spec/api/admin_user_group_api_spec.rb +165 -0
- data/spec/api/approval_rule_api_spec.rb +131 -0
- data/spec/api/auth_api_spec.rb +165 -0
- data/spec/api/buyer_api_spec.rb +125 -0
- data/spec/api/catalog_api_spec.rb +205 -0
- data/spec/api/category_api_spec.rb +223 -0
- data/spec/api/cost_center_api_spec.rb +177 -0
- data/spec/api/credit_card_api_spec.rb +177 -0
- data/spec/api/impersonation_config_api_spec.rb +125 -0
- data/spec/api/line_item_api_spec.rb +167 -0
- data/spec/api/me_api_spec.rb +568 -0
- data/spec/api/message_senders_api_spec.rb +149 -0
- data/spec/api/order_api_spec.rb +344 -0
- data/spec/api/password_reset_api_spec.rb +71 -0
- data/spec/api/payment_api_spec.rb +152 -0
- data/spec/api/price_schedule_api_spec.rb +151 -0
- data/spec/api/product_api_spec.rb +290 -0
- data/spec/api/promotion_api_spec.rb +170 -0
- data/spec/api/security_profile_api_spec.rb +122 -0
- data/spec/api/shipment_api_spec.rb +185 -0
- data/spec/api/spec_api_spec.rb +252 -0
- data/spec/api/spending_account_api_spec.rb +177 -0
- data/spec/api/supplier_api_spec.rb +125 -0
- data/spec/api/supplier_user_api_spec.rb +146 -0
- data/spec/api/supplier_user_group_api_spec.rb +174 -0
- data/spec/api/user_api_spec.rb +146 -0
- data/spec/api/user_group_api_spec.rb +174 -0
- data/spec/api_client_spec.rb +237 -0
- data/spec/configuration_spec.rb +80 -0
- data/spec/models/access_token_spec.rb +71 -0
- data/spec/models/address_assignment_spec.rb +77 -0
- data/spec/models/address_spec.rb +125 -0
- data/spec/models/approval_rule_spec.rb +83 -0
- data/spec/models/base_spec_spec.rb +101 -0
- data/spec/models/buyer_address_spec.rb +143 -0
- data/spec/models/buyer_credit_card_spec.rb +101 -0
- data/spec/models/buyer_product_spec.rb +143 -0
- data/spec/models/buyer_shipment_spec.rb +119 -0
- data/spec/models/buyer_spec.rb +77 -0
- data/spec/models/buyer_spec_spec.rb +107 -0
- data/spec/models/catalog_assignment_spec.rb +71 -0
- data/spec/models/catalog_spec.rb +83 -0
- data/spec/models/category_assignment_spec.rb +77 -0
- data/spec/models/category_product_assignment_spec.rb +65 -0
- data/spec/models/category_spec.rb +95 -0
- data/spec/models/cost_center_assignment_spec.rb +59 -0
- data/spec/models/cost_center_spec.rb +71 -0
- data/spec/models/credit_card_assignment_spec.rb +65 -0
- data/spec/models/credit_card_spec.rb +95 -0
- data/spec/models/impersonate_token_request_spec.rb +59 -0
- data/spec/models/impersonation_config_spec.rb +101 -0
- data/spec/models/inventory_spec.rb +83 -0
- data/spec/models/line_item_product_spec.rb +101 -0
- data/spec/models/line_item_spec.rb +149 -0
- data/spec/models/line_item_spec_spec.rb +71 -0
- data/spec/models/list_address_assignment_spec.rb +59 -0
- data/spec/models/list_address_spec.rb +59 -0
- data/spec/models/list_approval_rule_spec.rb +59 -0
- data/spec/models/list_args_spec.rb +83 -0
- data/spec/models/list_buyer_address_spec.rb +59 -0
- data/spec/models/list_buyer_credit_card_spec.rb +59 -0
- data/spec/models/list_buyer_product_spec.rb +59 -0
- data/spec/models/list_buyer_shipment_spec.rb +59 -0
- data/spec/models/list_buyer_spec.rb +59 -0
- data/spec/models/list_buyer_spec_spec.rb +59 -0
- data/spec/models/list_catalog_assignment_spec.rb +59 -0
- data/spec/models/list_catalog_spec.rb +59 -0
- data/spec/models/list_category_assignment_spec.rb +59 -0
- data/spec/models/list_category_product_assignment_spec.rb +59 -0
- data/spec/models/list_category_spec.rb +59 -0
- data/spec/models/list_cost_center_assignment_spec.rb +59 -0
- data/spec/models/list_cost_center_spec.rb +59 -0
- data/spec/models/list_credit_card_assignment_spec.rb +59 -0
- data/spec/models/list_credit_card_spec.rb +59 -0
- data/spec/models/list_impersonation_config_spec.rb +59 -0
- data/spec/models/list_line_item_spec.rb +59 -0
- data/spec/models/list_message_cc_listener_assignment_spec.rb +59 -0
- data/spec/models/list_message_config_spec.rb +59 -0
- data/spec/models/list_message_sender_assignment_spec.rb +59 -0
- data/spec/models/list_message_sender_spec.rb +59 -0
- data/spec/models/list_order_approval_spec.rb +59 -0
- data/spec/models/list_order_promotion_spec.rb +59 -0
- data/spec/models/list_order_spec.rb +59 -0
- data/spec/models/list_payment_spec.rb +59 -0
- data/spec/models/list_price_schedule_spec.rb +59 -0
- data/spec/models/list_product_assignment_spec.rb +59 -0
- data/spec/models/list_product_catalog_assignment_spec.rb +59 -0
- data/spec/models/list_product_spec.rb +59 -0
- data/spec/models/list_promotion_assignment_spec.rb +59 -0
- data/spec/models/list_promotion_spec.rb +59 -0
- data/spec/models/list_security_profile_assignment_spec.rb +59 -0
- data/spec/models/list_security_profile_spec.rb +59 -0
- data/spec/models/list_shipment_item_spec.rb +59 -0
- data/spec/models/list_shipment_spec.rb +59 -0
- data/spec/models/list_spec_option_spec.rb +59 -0
- data/spec/models/list_spec_product_assignment_spec.rb +59 -0
- data/spec/models/list_spec_spec.rb +59 -0
- data/spec/models/list_spending_account_assignment_spec.rb +59 -0
- data/spec/models/list_spending_account_spec.rb +59 -0
- data/spec/models/list_supplier_spec.rb +59 -0
- data/spec/models/list_user_group_assignment_spec.rb +59 -0
- data/spec/models/list_user_group_spec.rb +59 -0
- data/spec/models/list_user_spec.rb +59 -0
- data/spec/models/list_variant_spec.rb +59 -0
- data/spec/models/me_buyer_spec.rb +59 -0
- data/spec/models/me_user_spec.rb +119 -0
- data/spec/models/message_cc_listener_assignment_spec.rb +83 -0
- data/spec/models/message_config_spec.rb +89 -0
- data/spec/models/message_sender_assignment_spec.rb +71 -0
- data/spec/models/message_sender_spec.rb +65 -0
- data/spec/models/meta_spec.rb +77 -0
- data/spec/models/order_approval_info_spec.rb +59 -0
- data/spec/models/order_approval_spec.rb +89 -0
- data/spec/models/order_promotion_spec.rb +137 -0
- data/spec/models/order_spec.rb +185 -0
- data/spec/models/password_reset_request_spec.rb +71 -0
- data/spec/models/password_reset_spec.rb +65 -0
- data/spec/models/payment_spec.rb +107 -0
- data/spec/models/payment_transaction_spec.rb +95 -0
- data/spec/models/price_break_spec.rb +59 -0
- data/spec/models/price_schedule_spec.rb +107 -0
- data/spec/models/product_assignment_spec.rb +71 -0
- data/spec/models/product_base_spec.rb +137 -0
- data/spec/models/product_catalog_assignment_spec.rb +59 -0
- data/spec/models/product_spec.rb +143 -0
- data/spec/models/promotion_assignment_spec.rb +65 -0
- data/spec/models/promotion_spec.rb +131 -0
- data/spec/models/security_profile_assignment_spec.rb +77 -0
- data/spec/models/security_profile_spec.rb +65 -0
- data/spec/models/shipment_item_spec.rb +101 -0
- data/spec/models/shipment_spec.rb +125 -0
- data/spec/models/spec_option_spec.rb +89 -0
- data/spec/models/spec_product_assignment_spec.rb +71 -0
- data/spec/models/spec_spec.rb +107 -0
- data/spec/models/spending_account_assignment_spec.rb +71 -0
- data/spec/models/spending_account_spec.rb +95 -0
- data/spec/models/supplier_spec.rb +71 -0
- data/spec/models/token_password_reset_spec.rb +53 -0
- data/spec/models/user_group_assignment_spec.rb +59 -0
- data/spec/models/user_group_spec.rb +71 -0
- data/spec/models/user_spec.rb +113 -0
- data/spec/models/variant_spec.rb +77 -0
- data/spec/spec_helper.rb +122 -0
- metadata +596 -6
data/docs/Meta.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# OrderCloud::Meta
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**page** | **Integer** | | [optional]
|
7
|
+
**page_size** | **Integer** | | [optional]
|
8
|
+
**total_count** | **Integer** | | [optional]
|
9
|
+
**total_pages** | **Integer** | | [optional]
|
10
|
+
**item_range** | **Array<Integer>** | | [optional]
|
11
|
+
|
12
|
+
|
data/docs/Order.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# OrderCloud::Order
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | | [optional]
|
7
|
+
**from_user** | [**User**](User.md) | | [optional]
|
8
|
+
**from_company_id** | **String** | | [optional]
|
9
|
+
**from_user_id** | **String** | | [optional]
|
10
|
+
**billing_address_id** | **String** | | [optional]
|
11
|
+
**billing_address** | [**Address**](Address.md) | | [optional]
|
12
|
+
**shipping_address_id** | **String** | | [optional]
|
13
|
+
**comments** | **String** | | [optional]
|
14
|
+
**line_item_count** | **Integer** | | [optional]
|
15
|
+
**status** | **String** | | [optional]
|
16
|
+
**date_created** | **String** | | [optional]
|
17
|
+
**date_submitted** | **String** | | [optional]
|
18
|
+
**date_approved** | **String** | | [optional]
|
19
|
+
**date_declined** | **String** | | [optional]
|
20
|
+
**date_canceled** | **String** | | [optional]
|
21
|
+
**date_completed** | **String** | | [optional]
|
22
|
+
**subtotal** | **Float** | | [optional]
|
23
|
+
**shipping_cost** | **Float** | | [optional]
|
24
|
+
**tax_cost** | **Float** | | [optional]
|
25
|
+
**promotion_discount** | **Float** | | [optional]
|
26
|
+
**total** | **Float** | | [optional]
|
27
|
+
**is_submitted** | **BOOLEAN** | | [optional]
|
28
|
+
**xp** | **Object** | | [optional]
|
29
|
+
|
30
|
+
|
data/docs/OrderApi.md
ADDED
@@ -0,0 +1,1161 @@
|
|
1
|
+
# OrderCloud::OrderApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.ordercloud.io/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**add_promotion**](OrderApi.md#add_promotion) | **POST** /orders/{direction}/{orderID}/promotions/{promoCode} |
|
8
|
+
[**approve**](OrderApi.md#approve) | **POST** /orders/{direction}/{orderID}/approve |
|
9
|
+
[**cancel**](OrderApi.md#cancel) | **POST** /orders/{direction}/{orderID}/cancel |
|
10
|
+
[**create**](OrderApi.md#create) | **POST** /orders/{direction} |
|
11
|
+
[**decline**](OrderApi.md#decline) | **POST** /orders/{direction}/{orderID}/decline |
|
12
|
+
[**delete**](OrderApi.md#delete) | **DELETE** /orders/{direction}/{orderID} |
|
13
|
+
[**get**](OrderApi.md#get) | **GET** /orders/{direction}/{orderID} |
|
14
|
+
[**list**](OrderApi.md#list) | **GET** /orders/{direction} |
|
15
|
+
[**list_approvals**](OrderApi.md#list_approvals) | **GET** /orders/{direction}/{orderID}/approvals |
|
16
|
+
[**list_eligible_approvers**](OrderApi.md#list_eligible_approvers) | **GET** /orders/{direction}/{orderID}/eligibleapprovers |
|
17
|
+
[**list_promotions**](OrderApi.md#list_promotions) | **GET** /orders/{direction}/{orderID}/promotions |
|
18
|
+
[**patch**](OrderApi.md#patch) | **PATCH** /orders/{direction}/{orderID} |
|
19
|
+
[**patch_billing_address**](OrderApi.md#patch_billing_address) | **PATCH** /orders/{direction}/{orderID}/billto |
|
20
|
+
[**patch_shipping_address**](OrderApi.md#patch_shipping_address) | **PATCH** /orders/{direction}/{orderID}/shipto |
|
21
|
+
[**remove_promotion**](OrderApi.md#remove_promotion) | **DELETE** /orders/{direction}/{orderID}/promotions/{promoCode} |
|
22
|
+
[**set_billing_address**](OrderApi.md#set_billing_address) | **PUT** /orders/{direction}/{orderID}/billto |
|
23
|
+
[**set_shipping_address**](OrderApi.md#set_shipping_address) | **PUT** /orders/{direction}/{orderID}/shipto |
|
24
|
+
[**ship**](OrderApi.md#ship) | **POST** /orders/{direction}/{orderID}/ship |
|
25
|
+
[**submit**](OrderApi.md#submit) | **POST** /orders/{direction}/{orderID}/submit |
|
26
|
+
[**update**](OrderApi.md#update) | **PUT** /orders/{direction}/{orderID} |
|
27
|
+
|
28
|
+
|
29
|
+
# **add_promotion**
|
30
|
+
> Promotion add_promotion(direction, order_id, promo_code)
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
### Example
|
35
|
+
```ruby
|
36
|
+
# load the gem
|
37
|
+
require 'order_cloud'
|
38
|
+
# setup authorization
|
39
|
+
OrderCloud.configure do |config|
|
40
|
+
# Configure OAuth2 access token for authorization: oauth2
|
41
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
42
|
+
end
|
43
|
+
|
44
|
+
api_instance = OrderCloud::OrderApi.new
|
45
|
+
|
46
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
47
|
+
|
48
|
+
order_id = "order_id_example" # String | ID of the order.
|
49
|
+
|
50
|
+
promo_code = "promo_code_example" # String | Promo code of the order.
|
51
|
+
|
52
|
+
|
53
|
+
begin
|
54
|
+
result = api_instance.add_promotion(direction, order_id, promo_code)
|
55
|
+
p result
|
56
|
+
rescue OrderCloud::ApiError => e
|
57
|
+
puts "Exception when calling OrderApi->add_promotion: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
Name | Type | Description | Notes
|
64
|
+
------------- | ------------- | ------------- | -------------
|
65
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
66
|
+
**order_id** | **String**| ID of the order. |
|
67
|
+
**promo_code** | **String**| Promo code of the order. |
|
68
|
+
|
69
|
+
### Return type
|
70
|
+
|
71
|
+
[**Promotion**](Promotion.md)
|
72
|
+
|
73
|
+
### Authorization
|
74
|
+
|
75
|
+
[oauth2](../README.md#oauth2)
|
76
|
+
|
77
|
+
### HTTP request headers
|
78
|
+
|
79
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
80
|
+
- **Accept**: application/json
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
# **approve**
|
85
|
+
> Order approve(direction, order_id, info)
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
### Example
|
90
|
+
```ruby
|
91
|
+
# load the gem
|
92
|
+
require 'order_cloud'
|
93
|
+
# setup authorization
|
94
|
+
OrderCloud.configure do |config|
|
95
|
+
# Configure OAuth2 access token for authorization: oauth2
|
96
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
97
|
+
end
|
98
|
+
|
99
|
+
api_instance = OrderCloud::OrderApi.new
|
100
|
+
|
101
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
102
|
+
|
103
|
+
order_id = "order_id_example" # String | ID of the order.
|
104
|
+
|
105
|
+
info = OrderCloud::OrderApprovalInfo.new # OrderApprovalInfo |
|
106
|
+
|
107
|
+
|
108
|
+
begin
|
109
|
+
result = api_instance.approve(direction, order_id, info)
|
110
|
+
p result
|
111
|
+
rescue OrderCloud::ApiError => e
|
112
|
+
puts "Exception when calling OrderApi->approve: #{e}"
|
113
|
+
end
|
114
|
+
```
|
115
|
+
|
116
|
+
### Parameters
|
117
|
+
|
118
|
+
Name | Type | Description | Notes
|
119
|
+
------------- | ------------- | ------------- | -------------
|
120
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
121
|
+
**order_id** | **String**| ID of the order. |
|
122
|
+
**info** | [**OrderApprovalInfo**](OrderApprovalInfo.md)| |
|
123
|
+
|
124
|
+
### Return type
|
125
|
+
|
126
|
+
[**Order**](Order.md)
|
127
|
+
|
128
|
+
### Authorization
|
129
|
+
|
130
|
+
[oauth2](../README.md#oauth2)
|
131
|
+
|
132
|
+
### HTTP request headers
|
133
|
+
|
134
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
135
|
+
- **Accept**: application/json
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
# **cancel**
|
140
|
+
> Order cancel(direction, order_id)
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
### Example
|
145
|
+
```ruby
|
146
|
+
# load the gem
|
147
|
+
require 'order_cloud'
|
148
|
+
# setup authorization
|
149
|
+
OrderCloud.configure do |config|
|
150
|
+
# Configure OAuth2 access token for authorization: oauth2
|
151
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
152
|
+
end
|
153
|
+
|
154
|
+
api_instance = OrderCloud::OrderApi.new
|
155
|
+
|
156
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
157
|
+
|
158
|
+
order_id = "order_id_example" # String | ID of the order.
|
159
|
+
|
160
|
+
|
161
|
+
begin
|
162
|
+
result = api_instance.cancel(direction, order_id)
|
163
|
+
p result
|
164
|
+
rescue OrderCloud::ApiError => e
|
165
|
+
puts "Exception when calling OrderApi->cancel: #{e}"
|
166
|
+
end
|
167
|
+
```
|
168
|
+
|
169
|
+
### Parameters
|
170
|
+
|
171
|
+
Name | Type | Description | Notes
|
172
|
+
------------- | ------------- | ------------- | -------------
|
173
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
174
|
+
**order_id** | **String**| ID of the order. |
|
175
|
+
|
176
|
+
### Return type
|
177
|
+
|
178
|
+
[**Order**](Order.md)
|
179
|
+
|
180
|
+
### Authorization
|
181
|
+
|
182
|
+
[oauth2](../README.md#oauth2)
|
183
|
+
|
184
|
+
### HTTP request headers
|
185
|
+
|
186
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
187
|
+
- **Accept**: application/json
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
# **create**
|
192
|
+
> Order create(direction, order)
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
### Example
|
197
|
+
```ruby
|
198
|
+
# load the gem
|
199
|
+
require 'order_cloud'
|
200
|
+
# setup authorization
|
201
|
+
OrderCloud.configure do |config|
|
202
|
+
# Configure OAuth2 access token for authorization: oauth2
|
203
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
204
|
+
end
|
205
|
+
|
206
|
+
api_instance = OrderCloud::OrderApi.new
|
207
|
+
|
208
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
209
|
+
|
210
|
+
order = OrderCloud::Order.new # Order |
|
211
|
+
|
212
|
+
|
213
|
+
begin
|
214
|
+
result = api_instance.create(direction, order)
|
215
|
+
p result
|
216
|
+
rescue OrderCloud::ApiError => e
|
217
|
+
puts "Exception when calling OrderApi->create: #{e}"
|
218
|
+
end
|
219
|
+
```
|
220
|
+
|
221
|
+
### Parameters
|
222
|
+
|
223
|
+
Name | Type | Description | Notes
|
224
|
+
------------- | ------------- | ------------- | -------------
|
225
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
226
|
+
**order** | [**Order**](Order.md)| |
|
227
|
+
|
228
|
+
### Return type
|
229
|
+
|
230
|
+
[**Order**](Order.md)
|
231
|
+
|
232
|
+
### Authorization
|
233
|
+
|
234
|
+
[oauth2](../README.md#oauth2)
|
235
|
+
|
236
|
+
### HTTP request headers
|
237
|
+
|
238
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
239
|
+
- **Accept**: application/json
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
# **decline**
|
244
|
+
> Order decline(direction, order_id, info)
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
### Example
|
249
|
+
```ruby
|
250
|
+
# load the gem
|
251
|
+
require 'order_cloud'
|
252
|
+
# setup authorization
|
253
|
+
OrderCloud.configure do |config|
|
254
|
+
# Configure OAuth2 access token for authorization: oauth2
|
255
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
256
|
+
end
|
257
|
+
|
258
|
+
api_instance = OrderCloud::OrderApi.new
|
259
|
+
|
260
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
261
|
+
|
262
|
+
order_id = "order_id_example" # String | ID of the order.
|
263
|
+
|
264
|
+
info = OrderCloud::OrderApprovalInfo.new # OrderApprovalInfo |
|
265
|
+
|
266
|
+
|
267
|
+
begin
|
268
|
+
result = api_instance.decline(direction, order_id, info)
|
269
|
+
p result
|
270
|
+
rescue OrderCloud::ApiError => e
|
271
|
+
puts "Exception when calling OrderApi->decline: #{e}"
|
272
|
+
end
|
273
|
+
```
|
274
|
+
|
275
|
+
### Parameters
|
276
|
+
|
277
|
+
Name | Type | Description | Notes
|
278
|
+
------------- | ------------- | ------------- | -------------
|
279
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
280
|
+
**order_id** | **String**| ID of the order. |
|
281
|
+
**info** | [**OrderApprovalInfo**](OrderApprovalInfo.md)| |
|
282
|
+
|
283
|
+
### Return type
|
284
|
+
|
285
|
+
[**Order**](Order.md)
|
286
|
+
|
287
|
+
### Authorization
|
288
|
+
|
289
|
+
[oauth2](../README.md#oauth2)
|
290
|
+
|
291
|
+
### HTTP request headers
|
292
|
+
|
293
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
294
|
+
- **Accept**: application/json
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
# **delete**
|
299
|
+
> delete(direction, order_id)
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
### Example
|
304
|
+
```ruby
|
305
|
+
# load the gem
|
306
|
+
require 'order_cloud'
|
307
|
+
# setup authorization
|
308
|
+
OrderCloud.configure do |config|
|
309
|
+
# Configure OAuth2 access token for authorization: oauth2
|
310
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
311
|
+
end
|
312
|
+
|
313
|
+
api_instance = OrderCloud::OrderApi.new
|
314
|
+
|
315
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
316
|
+
|
317
|
+
order_id = "order_id_example" # String | ID of the order.
|
318
|
+
|
319
|
+
|
320
|
+
begin
|
321
|
+
api_instance.delete(direction, order_id)
|
322
|
+
rescue OrderCloud::ApiError => e
|
323
|
+
puts "Exception when calling OrderApi->delete: #{e}"
|
324
|
+
end
|
325
|
+
```
|
326
|
+
|
327
|
+
### Parameters
|
328
|
+
|
329
|
+
Name | Type | Description | Notes
|
330
|
+
------------- | ------------- | ------------- | -------------
|
331
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
332
|
+
**order_id** | **String**| ID of the order. |
|
333
|
+
|
334
|
+
### Return type
|
335
|
+
|
336
|
+
nil (empty response body)
|
337
|
+
|
338
|
+
### Authorization
|
339
|
+
|
340
|
+
[oauth2](../README.md#oauth2)
|
341
|
+
|
342
|
+
### HTTP request headers
|
343
|
+
|
344
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
345
|
+
- **Accept**: application/json
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
# **get**
|
350
|
+
> Order get(direction, order_id)
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
### Example
|
355
|
+
```ruby
|
356
|
+
# load the gem
|
357
|
+
require 'order_cloud'
|
358
|
+
# setup authorization
|
359
|
+
OrderCloud.configure do |config|
|
360
|
+
# Configure OAuth2 access token for authorization: oauth2
|
361
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
362
|
+
end
|
363
|
+
|
364
|
+
api_instance = OrderCloud::OrderApi.new
|
365
|
+
|
366
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
367
|
+
|
368
|
+
order_id = "order_id_example" # String | ID of the order.
|
369
|
+
|
370
|
+
|
371
|
+
begin
|
372
|
+
result = api_instance.get(direction, order_id)
|
373
|
+
p result
|
374
|
+
rescue OrderCloud::ApiError => e
|
375
|
+
puts "Exception when calling OrderApi->get: #{e}"
|
376
|
+
end
|
377
|
+
```
|
378
|
+
|
379
|
+
### Parameters
|
380
|
+
|
381
|
+
Name | Type | Description | Notes
|
382
|
+
------------- | ------------- | ------------- | -------------
|
383
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
384
|
+
**order_id** | **String**| ID of the order. |
|
385
|
+
|
386
|
+
### Return type
|
387
|
+
|
388
|
+
[**Order**](Order.md)
|
389
|
+
|
390
|
+
### Authorization
|
391
|
+
|
392
|
+
[oauth2](../README.md#oauth2)
|
393
|
+
|
394
|
+
### HTTP request headers
|
395
|
+
|
396
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
397
|
+
- **Accept**: application/json
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
# **list**
|
402
|
+
> ListOrder list(direction, opts)
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
### Example
|
407
|
+
```ruby
|
408
|
+
# load the gem
|
409
|
+
require 'order_cloud'
|
410
|
+
# setup authorization
|
411
|
+
OrderCloud.configure do |config|
|
412
|
+
# Configure OAuth2 access token for authorization: oauth2
|
413
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
414
|
+
end
|
415
|
+
|
416
|
+
api_instance = OrderCloud::OrderApi.new
|
417
|
+
|
418
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
419
|
+
|
420
|
+
opts = {
|
421
|
+
buyer_id: "buyer_id_example", # String | ID of the buyer.
|
422
|
+
supplier_id: "supplier_id_example", # String | ID of the supplier.
|
423
|
+
from: "from_example", # String | Lower bound of date range that the order was created.
|
424
|
+
to: "to_example", # String | Upper bound of date range that the order was created.
|
425
|
+
search: "search_example", # String | Search of the order.
|
426
|
+
search_on: ["search_on_example"], # Array<String> | Search on of the order.
|
427
|
+
sort_by: ["sort_by_example"], # Array<String> | Sort by of the order.
|
428
|
+
page: 56, # Integer | Page of the order.
|
429
|
+
page_size: 56, # Integer | Page size of the order.
|
430
|
+
filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the order.
|
431
|
+
}
|
432
|
+
|
433
|
+
begin
|
434
|
+
result = api_instance.list(direction, opts)
|
435
|
+
p result
|
436
|
+
rescue OrderCloud::ApiError => e
|
437
|
+
puts "Exception when calling OrderApi->list: #{e}"
|
438
|
+
end
|
439
|
+
```
|
440
|
+
|
441
|
+
### Parameters
|
442
|
+
|
443
|
+
Name | Type | Description | Notes
|
444
|
+
------------- | ------------- | ------------- | -------------
|
445
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
446
|
+
**buyer_id** | **String**| ID of the buyer. | [optional]
|
447
|
+
**supplier_id** | **String**| ID of the supplier. | [optional]
|
448
|
+
**from** | **String**| Lower bound of date range that the order was created. | [optional]
|
449
|
+
**to** | **String**| Upper bound of date range that the order was created. | [optional]
|
450
|
+
**search** | **String**| Search of the order. | [optional]
|
451
|
+
**search_on** | [**Array<String>**](String.md)| Search on of the order. | [optional]
|
452
|
+
**sort_by** | [**Array<String>**](String.md)| Sort by of the order. | [optional]
|
453
|
+
**page** | **Integer**| Page of the order. | [optional]
|
454
|
+
**page_size** | **Integer**| Page size of the order. | [optional]
|
455
|
+
**filters** | [**Hash<String, String>**](String.md)| Filters of the order. | [optional]
|
456
|
+
|
457
|
+
### Return type
|
458
|
+
|
459
|
+
[**ListOrder**](ListOrder.md)
|
460
|
+
|
461
|
+
### Authorization
|
462
|
+
|
463
|
+
[oauth2](../README.md#oauth2)
|
464
|
+
|
465
|
+
### HTTP request headers
|
466
|
+
|
467
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
468
|
+
- **Accept**: application/json
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
# **list_approvals**
|
473
|
+
> ListOrderApproval list_approvals(direction, order_id, opts)
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
### Example
|
478
|
+
```ruby
|
479
|
+
# load the gem
|
480
|
+
require 'order_cloud'
|
481
|
+
# setup authorization
|
482
|
+
OrderCloud.configure do |config|
|
483
|
+
# Configure OAuth2 access token for authorization: oauth2
|
484
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
485
|
+
end
|
486
|
+
|
487
|
+
api_instance = OrderCloud::OrderApi.new
|
488
|
+
|
489
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
490
|
+
|
491
|
+
order_id = "order_id_example" # String | ID of the order.
|
492
|
+
|
493
|
+
opts = {
|
494
|
+
search: "search_example", # String | Search of the order.
|
495
|
+
search_on: ["search_on_example"], # Array<String> | Search on of the order.
|
496
|
+
sort_by: ["sort_by_example"], # Array<String> | Sort by of the order.
|
497
|
+
page: 56, # Integer | Page of the order.
|
498
|
+
page_size: 56, # Integer | Page size of the order.
|
499
|
+
filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the order.
|
500
|
+
}
|
501
|
+
|
502
|
+
begin
|
503
|
+
result = api_instance.list_approvals(direction, order_id, opts)
|
504
|
+
p result
|
505
|
+
rescue OrderCloud::ApiError => e
|
506
|
+
puts "Exception when calling OrderApi->list_approvals: #{e}"
|
507
|
+
end
|
508
|
+
```
|
509
|
+
|
510
|
+
### Parameters
|
511
|
+
|
512
|
+
Name | Type | Description | Notes
|
513
|
+
------------- | ------------- | ------------- | -------------
|
514
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
515
|
+
**order_id** | **String**| ID of the order. |
|
516
|
+
**search** | **String**| Search of the order. | [optional]
|
517
|
+
**search_on** | [**Array<String>**](String.md)| Search on of the order. | [optional]
|
518
|
+
**sort_by** | [**Array<String>**](String.md)| Sort by of the order. | [optional]
|
519
|
+
**page** | **Integer**| Page of the order. | [optional]
|
520
|
+
**page_size** | **Integer**| Page size of the order. | [optional]
|
521
|
+
**filters** | [**Hash<String, String>**](String.md)| Filters of the order. | [optional]
|
522
|
+
|
523
|
+
### Return type
|
524
|
+
|
525
|
+
[**ListOrderApproval**](ListOrderApproval.md)
|
526
|
+
|
527
|
+
### Authorization
|
528
|
+
|
529
|
+
[oauth2](../README.md#oauth2)
|
530
|
+
|
531
|
+
### HTTP request headers
|
532
|
+
|
533
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
534
|
+
- **Accept**: application/json
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
# **list_eligible_approvers**
|
539
|
+
> ListUser list_eligible_approvers(direction, order_id, opts)
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
### Example
|
544
|
+
```ruby
|
545
|
+
# load the gem
|
546
|
+
require 'order_cloud'
|
547
|
+
# setup authorization
|
548
|
+
OrderCloud.configure do |config|
|
549
|
+
# Configure OAuth2 access token for authorization: oauth2
|
550
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
551
|
+
end
|
552
|
+
|
553
|
+
api_instance = OrderCloud::OrderApi.new
|
554
|
+
|
555
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
556
|
+
|
557
|
+
order_id = "order_id_example" # String | ID of the order.
|
558
|
+
|
559
|
+
opts = {
|
560
|
+
search: "search_example", # String | Search of the order.
|
561
|
+
search_on: ["search_on_example"], # Array<String> | Search on of the order.
|
562
|
+
sort_by: ["sort_by_example"], # Array<String> | Sort by of the order.
|
563
|
+
page: 56, # Integer | Page of the order.
|
564
|
+
page_size: 56, # Integer | Page size of the order.
|
565
|
+
filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the order.
|
566
|
+
}
|
567
|
+
|
568
|
+
begin
|
569
|
+
result = api_instance.list_eligible_approvers(direction, order_id, opts)
|
570
|
+
p result
|
571
|
+
rescue OrderCloud::ApiError => e
|
572
|
+
puts "Exception when calling OrderApi->list_eligible_approvers: #{e}"
|
573
|
+
end
|
574
|
+
```
|
575
|
+
|
576
|
+
### Parameters
|
577
|
+
|
578
|
+
Name | Type | Description | Notes
|
579
|
+
------------- | ------------- | ------------- | -------------
|
580
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
581
|
+
**order_id** | **String**| ID of the order. |
|
582
|
+
**search** | **String**| Search of the order. | [optional]
|
583
|
+
**search_on** | [**Array<String>**](String.md)| Search on of the order. | [optional]
|
584
|
+
**sort_by** | [**Array<String>**](String.md)| Sort by of the order. | [optional]
|
585
|
+
**page** | **Integer**| Page of the order. | [optional]
|
586
|
+
**page_size** | **Integer**| Page size of the order. | [optional]
|
587
|
+
**filters** | [**Hash<String, String>**](String.md)| Filters of the order. | [optional]
|
588
|
+
|
589
|
+
### Return type
|
590
|
+
|
591
|
+
[**ListUser**](ListUser.md)
|
592
|
+
|
593
|
+
### Authorization
|
594
|
+
|
595
|
+
[oauth2](../README.md#oauth2)
|
596
|
+
|
597
|
+
### HTTP request headers
|
598
|
+
|
599
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
600
|
+
- **Accept**: application/json
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
# **list_promotions**
|
605
|
+
> ListOrderPromotion list_promotions(direction, order_id, opts)
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
### Example
|
610
|
+
```ruby
|
611
|
+
# load the gem
|
612
|
+
require 'order_cloud'
|
613
|
+
# setup authorization
|
614
|
+
OrderCloud.configure do |config|
|
615
|
+
# Configure OAuth2 access token for authorization: oauth2
|
616
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
617
|
+
end
|
618
|
+
|
619
|
+
api_instance = OrderCloud::OrderApi.new
|
620
|
+
|
621
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
622
|
+
|
623
|
+
order_id = "order_id_example" # String | ID of the order.
|
624
|
+
|
625
|
+
opts = {
|
626
|
+
search: "search_example", # String | Search of the order.
|
627
|
+
search_on: ["search_on_example"], # Array<String> | Search on of the order.
|
628
|
+
sort_by: ["sort_by_example"], # Array<String> | Sort by of the order.
|
629
|
+
page: 56, # Integer | Page of the order.
|
630
|
+
page_size: 56, # Integer | Page size of the order.
|
631
|
+
filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the order.
|
632
|
+
}
|
633
|
+
|
634
|
+
begin
|
635
|
+
result = api_instance.list_promotions(direction, order_id, opts)
|
636
|
+
p result
|
637
|
+
rescue OrderCloud::ApiError => e
|
638
|
+
puts "Exception when calling OrderApi->list_promotions: #{e}"
|
639
|
+
end
|
640
|
+
```
|
641
|
+
|
642
|
+
### Parameters
|
643
|
+
|
644
|
+
Name | Type | Description | Notes
|
645
|
+
------------- | ------------- | ------------- | -------------
|
646
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
647
|
+
**order_id** | **String**| ID of the order. |
|
648
|
+
**search** | **String**| Search of the order. | [optional]
|
649
|
+
**search_on** | [**Array<String>**](String.md)| Search on of the order. | [optional]
|
650
|
+
**sort_by** | [**Array<String>**](String.md)| Sort by of the order. | [optional]
|
651
|
+
**page** | **Integer**| Page of the order. | [optional]
|
652
|
+
**page_size** | **Integer**| Page size of the order. | [optional]
|
653
|
+
**filters** | [**Hash<String, String>**](String.md)| Filters of the order. | [optional]
|
654
|
+
|
655
|
+
### Return type
|
656
|
+
|
657
|
+
[**ListOrderPromotion**](ListOrderPromotion.md)
|
658
|
+
|
659
|
+
### Authorization
|
660
|
+
|
661
|
+
[oauth2](../README.md#oauth2)
|
662
|
+
|
663
|
+
### HTTP request headers
|
664
|
+
|
665
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
666
|
+
- **Accept**: application/json
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
# **patch**
|
671
|
+
> Order patch(direction, order_id, partial_order)
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
### Example
|
676
|
+
```ruby
|
677
|
+
# load the gem
|
678
|
+
require 'order_cloud'
|
679
|
+
# setup authorization
|
680
|
+
OrderCloud.configure do |config|
|
681
|
+
# Configure OAuth2 access token for authorization: oauth2
|
682
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
683
|
+
end
|
684
|
+
|
685
|
+
api_instance = OrderCloud::OrderApi.new
|
686
|
+
|
687
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
688
|
+
|
689
|
+
order_id = "order_id_example" # String | ID of the order.
|
690
|
+
|
691
|
+
partial_order = OrderCloud::Order.new # Order |
|
692
|
+
|
693
|
+
|
694
|
+
begin
|
695
|
+
result = api_instance.patch(direction, order_id, partial_order)
|
696
|
+
p result
|
697
|
+
rescue OrderCloud::ApiError => e
|
698
|
+
puts "Exception when calling OrderApi->patch: #{e}"
|
699
|
+
end
|
700
|
+
```
|
701
|
+
|
702
|
+
### Parameters
|
703
|
+
|
704
|
+
Name | Type | Description | Notes
|
705
|
+
------------- | ------------- | ------------- | -------------
|
706
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
707
|
+
**order_id** | **String**| ID of the order. |
|
708
|
+
**partial_order** | [**Order**](Order.md)| |
|
709
|
+
|
710
|
+
### Return type
|
711
|
+
|
712
|
+
[**Order**](Order.md)
|
713
|
+
|
714
|
+
### Authorization
|
715
|
+
|
716
|
+
[oauth2](../README.md#oauth2)
|
717
|
+
|
718
|
+
### HTTP request headers
|
719
|
+
|
720
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
721
|
+
- **Accept**: application/json
|
722
|
+
|
723
|
+
|
724
|
+
|
725
|
+
# **patch_billing_address**
|
726
|
+
> Order patch_billing_address(direction, order_id, address)
|
727
|
+
|
728
|
+
|
729
|
+
|
730
|
+
### Example
|
731
|
+
```ruby
|
732
|
+
# load the gem
|
733
|
+
require 'order_cloud'
|
734
|
+
# setup authorization
|
735
|
+
OrderCloud.configure do |config|
|
736
|
+
# Configure OAuth2 access token for authorization: oauth2
|
737
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
738
|
+
end
|
739
|
+
|
740
|
+
api_instance = OrderCloud::OrderApi.new
|
741
|
+
|
742
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
743
|
+
|
744
|
+
order_id = "order_id_example" # String | ID of the order.
|
745
|
+
|
746
|
+
address = OrderCloud::Address.new # Address |
|
747
|
+
|
748
|
+
|
749
|
+
begin
|
750
|
+
result = api_instance.patch_billing_address(direction, order_id, address)
|
751
|
+
p result
|
752
|
+
rescue OrderCloud::ApiError => e
|
753
|
+
puts "Exception when calling OrderApi->patch_billing_address: #{e}"
|
754
|
+
end
|
755
|
+
```
|
756
|
+
|
757
|
+
### Parameters
|
758
|
+
|
759
|
+
Name | Type | Description | Notes
|
760
|
+
------------- | ------------- | ------------- | -------------
|
761
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
762
|
+
**order_id** | **String**| ID of the order. |
|
763
|
+
**address** | [**Address**](Address.md)| |
|
764
|
+
|
765
|
+
### Return type
|
766
|
+
|
767
|
+
[**Order**](Order.md)
|
768
|
+
|
769
|
+
### Authorization
|
770
|
+
|
771
|
+
[oauth2](../README.md#oauth2)
|
772
|
+
|
773
|
+
### HTTP request headers
|
774
|
+
|
775
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
776
|
+
- **Accept**: application/json
|
777
|
+
|
778
|
+
|
779
|
+
|
780
|
+
# **patch_shipping_address**
|
781
|
+
> Order patch_shipping_address(direction, order_id, address)
|
782
|
+
|
783
|
+
|
784
|
+
|
785
|
+
### Example
|
786
|
+
```ruby
|
787
|
+
# load the gem
|
788
|
+
require 'order_cloud'
|
789
|
+
# setup authorization
|
790
|
+
OrderCloud.configure do |config|
|
791
|
+
# Configure OAuth2 access token for authorization: oauth2
|
792
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
793
|
+
end
|
794
|
+
|
795
|
+
api_instance = OrderCloud::OrderApi.new
|
796
|
+
|
797
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
798
|
+
|
799
|
+
order_id = "order_id_example" # String | ID of the order.
|
800
|
+
|
801
|
+
address = OrderCloud::Address.new # Address |
|
802
|
+
|
803
|
+
|
804
|
+
begin
|
805
|
+
result = api_instance.patch_shipping_address(direction, order_id, address)
|
806
|
+
p result
|
807
|
+
rescue OrderCloud::ApiError => e
|
808
|
+
puts "Exception when calling OrderApi->patch_shipping_address: #{e}"
|
809
|
+
end
|
810
|
+
```
|
811
|
+
|
812
|
+
### Parameters
|
813
|
+
|
814
|
+
Name | Type | Description | Notes
|
815
|
+
------------- | ------------- | ------------- | -------------
|
816
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
817
|
+
**order_id** | **String**| ID of the order. |
|
818
|
+
**address** | [**Address**](Address.md)| |
|
819
|
+
|
820
|
+
### Return type
|
821
|
+
|
822
|
+
[**Order**](Order.md)
|
823
|
+
|
824
|
+
### Authorization
|
825
|
+
|
826
|
+
[oauth2](../README.md#oauth2)
|
827
|
+
|
828
|
+
### HTTP request headers
|
829
|
+
|
830
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
831
|
+
- **Accept**: application/json
|
832
|
+
|
833
|
+
|
834
|
+
|
835
|
+
# **remove_promotion**
|
836
|
+
> Order remove_promotion(direction, order_id, promo_code)
|
837
|
+
|
838
|
+
|
839
|
+
|
840
|
+
### Example
|
841
|
+
```ruby
|
842
|
+
# load the gem
|
843
|
+
require 'order_cloud'
|
844
|
+
# setup authorization
|
845
|
+
OrderCloud.configure do |config|
|
846
|
+
# Configure OAuth2 access token for authorization: oauth2
|
847
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
848
|
+
end
|
849
|
+
|
850
|
+
api_instance = OrderCloud::OrderApi.new
|
851
|
+
|
852
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
853
|
+
|
854
|
+
order_id = "order_id_example" # String | ID of the order.
|
855
|
+
|
856
|
+
promo_code = "promo_code_example" # String | Promo code of the order.
|
857
|
+
|
858
|
+
|
859
|
+
begin
|
860
|
+
result = api_instance.remove_promotion(direction, order_id, promo_code)
|
861
|
+
p result
|
862
|
+
rescue OrderCloud::ApiError => e
|
863
|
+
puts "Exception when calling OrderApi->remove_promotion: #{e}"
|
864
|
+
end
|
865
|
+
```
|
866
|
+
|
867
|
+
### Parameters
|
868
|
+
|
869
|
+
Name | Type | Description | Notes
|
870
|
+
------------- | ------------- | ------------- | -------------
|
871
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
872
|
+
**order_id** | **String**| ID of the order. |
|
873
|
+
**promo_code** | **String**| Promo code of the order. |
|
874
|
+
|
875
|
+
### Return type
|
876
|
+
|
877
|
+
[**Order**](Order.md)
|
878
|
+
|
879
|
+
### Authorization
|
880
|
+
|
881
|
+
[oauth2](../README.md#oauth2)
|
882
|
+
|
883
|
+
### HTTP request headers
|
884
|
+
|
885
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
886
|
+
- **Accept**: application/json
|
887
|
+
|
888
|
+
|
889
|
+
|
890
|
+
# **set_billing_address**
|
891
|
+
> Order set_billing_address(direction, order_id, address)
|
892
|
+
|
893
|
+
|
894
|
+
|
895
|
+
### Example
|
896
|
+
```ruby
|
897
|
+
# load the gem
|
898
|
+
require 'order_cloud'
|
899
|
+
# setup authorization
|
900
|
+
OrderCloud.configure do |config|
|
901
|
+
# Configure OAuth2 access token for authorization: oauth2
|
902
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
903
|
+
end
|
904
|
+
|
905
|
+
api_instance = OrderCloud::OrderApi.new
|
906
|
+
|
907
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
908
|
+
|
909
|
+
order_id = "order_id_example" # String | ID of the order.
|
910
|
+
|
911
|
+
address = OrderCloud::Address.new # Address |
|
912
|
+
|
913
|
+
|
914
|
+
begin
|
915
|
+
result = api_instance.set_billing_address(direction, order_id, address)
|
916
|
+
p result
|
917
|
+
rescue OrderCloud::ApiError => e
|
918
|
+
puts "Exception when calling OrderApi->set_billing_address: #{e}"
|
919
|
+
end
|
920
|
+
```
|
921
|
+
|
922
|
+
### Parameters
|
923
|
+
|
924
|
+
Name | Type | Description | Notes
|
925
|
+
------------- | ------------- | ------------- | -------------
|
926
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
927
|
+
**order_id** | **String**| ID of the order. |
|
928
|
+
**address** | [**Address**](Address.md)| |
|
929
|
+
|
930
|
+
### Return type
|
931
|
+
|
932
|
+
[**Order**](Order.md)
|
933
|
+
|
934
|
+
### Authorization
|
935
|
+
|
936
|
+
[oauth2](../README.md#oauth2)
|
937
|
+
|
938
|
+
### HTTP request headers
|
939
|
+
|
940
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
941
|
+
- **Accept**: application/json
|
942
|
+
|
943
|
+
|
944
|
+
|
945
|
+
# **set_shipping_address**
|
946
|
+
> Order set_shipping_address(direction, order_id, address)
|
947
|
+
|
948
|
+
|
949
|
+
|
950
|
+
### Example
|
951
|
+
```ruby
|
952
|
+
# load the gem
|
953
|
+
require 'order_cloud'
|
954
|
+
# setup authorization
|
955
|
+
OrderCloud.configure do |config|
|
956
|
+
# Configure OAuth2 access token for authorization: oauth2
|
957
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
958
|
+
end
|
959
|
+
|
960
|
+
api_instance = OrderCloud::OrderApi.new
|
961
|
+
|
962
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
963
|
+
|
964
|
+
order_id = "order_id_example" # String | ID of the order.
|
965
|
+
|
966
|
+
address = OrderCloud::Address.new # Address |
|
967
|
+
|
968
|
+
|
969
|
+
begin
|
970
|
+
result = api_instance.set_shipping_address(direction, order_id, address)
|
971
|
+
p result
|
972
|
+
rescue OrderCloud::ApiError => e
|
973
|
+
puts "Exception when calling OrderApi->set_shipping_address: #{e}"
|
974
|
+
end
|
975
|
+
```
|
976
|
+
|
977
|
+
### Parameters
|
978
|
+
|
979
|
+
Name | Type | Description | Notes
|
980
|
+
------------- | ------------- | ------------- | -------------
|
981
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
982
|
+
**order_id** | **String**| ID of the order. |
|
983
|
+
**address** | [**Address**](Address.md)| |
|
984
|
+
|
985
|
+
### Return type
|
986
|
+
|
987
|
+
[**Order**](Order.md)
|
988
|
+
|
989
|
+
### Authorization
|
990
|
+
|
991
|
+
[oauth2](../README.md#oauth2)
|
992
|
+
|
993
|
+
### HTTP request headers
|
994
|
+
|
995
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
996
|
+
- **Accept**: application/json
|
997
|
+
|
998
|
+
|
999
|
+
|
1000
|
+
# **ship**
|
1001
|
+
> Order ship(direction, order_id, shipment)
|
1002
|
+
|
1003
|
+
|
1004
|
+
|
1005
|
+
### Example
|
1006
|
+
```ruby
|
1007
|
+
# load the gem
|
1008
|
+
require 'order_cloud'
|
1009
|
+
# setup authorization
|
1010
|
+
OrderCloud.configure do |config|
|
1011
|
+
# Configure OAuth2 access token for authorization: oauth2
|
1012
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
api_instance = OrderCloud::OrderApi.new
|
1016
|
+
|
1017
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
1018
|
+
|
1019
|
+
order_id = "order_id_example" # String | ID of the order.
|
1020
|
+
|
1021
|
+
shipment = OrderCloud::BuyerShipment.new # BuyerShipment |
|
1022
|
+
|
1023
|
+
|
1024
|
+
begin
|
1025
|
+
result = api_instance.ship(direction, order_id, shipment)
|
1026
|
+
p result
|
1027
|
+
rescue OrderCloud::ApiError => e
|
1028
|
+
puts "Exception when calling OrderApi->ship: #{e}"
|
1029
|
+
end
|
1030
|
+
```
|
1031
|
+
|
1032
|
+
### Parameters
|
1033
|
+
|
1034
|
+
Name | Type | Description | Notes
|
1035
|
+
------------- | ------------- | ------------- | -------------
|
1036
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
1037
|
+
**order_id** | **String**| ID of the order. |
|
1038
|
+
**shipment** | [**BuyerShipment**](BuyerShipment.md)| |
|
1039
|
+
|
1040
|
+
### Return type
|
1041
|
+
|
1042
|
+
[**Order**](Order.md)
|
1043
|
+
|
1044
|
+
### Authorization
|
1045
|
+
|
1046
|
+
[oauth2](../README.md#oauth2)
|
1047
|
+
|
1048
|
+
### HTTP request headers
|
1049
|
+
|
1050
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
1051
|
+
- **Accept**: application/json
|
1052
|
+
|
1053
|
+
|
1054
|
+
|
1055
|
+
# **submit**
|
1056
|
+
> Order submit(direction, order_id)
|
1057
|
+
|
1058
|
+
|
1059
|
+
|
1060
|
+
### Example
|
1061
|
+
```ruby
|
1062
|
+
# load the gem
|
1063
|
+
require 'order_cloud'
|
1064
|
+
# setup authorization
|
1065
|
+
OrderCloud.configure do |config|
|
1066
|
+
# Configure OAuth2 access token for authorization: oauth2
|
1067
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
api_instance = OrderCloud::OrderApi.new
|
1071
|
+
|
1072
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
1073
|
+
|
1074
|
+
order_id = "order_id_example" # String | ID of the order.
|
1075
|
+
|
1076
|
+
|
1077
|
+
begin
|
1078
|
+
result = api_instance.submit(direction, order_id)
|
1079
|
+
p result
|
1080
|
+
rescue OrderCloud::ApiError => e
|
1081
|
+
puts "Exception when calling OrderApi->submit: #{e}"
|
1082
|
+
end
|
1083
|
+
```
|
1084
|
+
|
1085
|
+
### Parameters
|
1086
|
+
|
1087
|
+
Name | Type | Description | Notes
|
1088
|
+
------------- | ------------- | ------------- | -------------
|
1089
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
1090
|
+
**order_id** | **String**| ID of the order. |
|
1091
|
+
|
1092
|
+
### Return type
|
1093
|
+
|
1094
|
+
[**Order**](Order.md)
|
1095
|
+
|
1096
|
+
### Authorization
|
1097
|
+
|
1098
|
+
[oauth2](../README.md#oauth2)
|
1099
|
+
|
1100
|
+
### HTTP request headers
|
1101
|
+
|
1102
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
1103
|
+
- **Accept**: application/json
|
1104
|
+
|
1105
|
+
|
1106
|
+
|
1107
|
+
# **update**
|
1108
|
+
> Order update(direction, order_id, order)
|
1109
|
+
|
1110
|
+
|
1111
|
+
|
1112
|
+
### Example
|
1113
|
+
```ruby
|
1114
|
+
# load the gem
|
1115
|
+
require 'order_cloud'
|
1116
|
+
# setup authorization
|
1117
|
+
OrderCloud.configure do |config|
|
1118
|
+
# Configure OAuth2 access token for authorization: oauth2
|
1119
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1120
|
+
end
|
1121
|
+
|
1122
|
+
api_instance = OrderCloud::OrderApi.new
|
1123
|
+
|
1124
|
+
direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
|
1125
|
+
|
1126
|
+
order_id = "order_id_example" # String | ID of the order.
|
1127
|
+
|
1128
|
+
order = OrderCloud::Order.new # Order |
|
1129
|
+
|
1130
|
+
|
1131
|
+
begin
|
1132
|
+
result = api_instance.update(direction, order_id, order)
|
1133
|
+
p result
|
1134
|
+
rescue OrderCloud::ApiError => e
|
1135
|
+
puts "Exception when calling OrderApi->update: #{e}"
|
1136
|
+
end
|
1137
|
+
```
|
1138
|
+
|
1139
|
+
### Parameters
|
1140
|
+
|
1141
|
+
Name | Type | Description | Notes
|
1142
|
+
------------- | ------------- | ------------- | -------------
|
1143
|
+
**direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
|
1144
|
+
**order_id** | **String**| ID of the order. |
|
1145
|
+
**order** | [**Order**](Order.md)| |
|
1146
|
+
|
1147
|
+
### Return type
|
1148
|
+
|
1149
|
+
[**Order**](Order.md)
|
1150
|
+
|
1151
|
+
### Authorization
|
1152
|
+
|
1153
|
+
[oauth2](../README.md#oauth2)
|
1154
|
+
|
1155
|
+
### HTTP request headers
|
1156
|
+
|
1157
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
1158
|
+
- **Accept**: application/json
|
1159
|
+
|
1160
|
+
|
1161
|
+
|