order_cloud 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/README.md +476 -0
- data/Rakefile +31 -0
- data/docs/AccessToken.md +10 -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/AdminCompany.md +10 -0
- data/docs/AdminModelOnView.md +7 -0
- data/docs/AdminUserApi.md +323 -0
- data/docs/ApprovalRule.md +20 -0
- data/docs/ApprovalRuleApi.md +342 -0
- data/docs/BaseSpec.md +15 -0
- data/docs/Buyer.md +11 -0
- data/docs/BuyerAddress.md +11 -0
- data/docs/BuyerApi.md +324 -0
- data/docs/BuyerCreditCard.md +9 -0
- data/docs/BuyerProduct.md +9 -0
- data/docs/BuyerSpec.md +9 -0
- data/docs/Category.md +15 -0
- data/docs/CategoryApi.md +684 -0
- data/docs/CategoryAssignment.md +10 -0
- data/docs/CategoryProductAssignment.md +10 -0
- data/docs/CostCenter.md +11 -0
- data/docs/CostCenterApi.md +516 -0
- data/docs/CostCenterAssignment.md +10 -0
- data/docs/CreditCard.md +15 -0
- data/docs/CreditCardApi.md +516 -0
- data/docs/CreditCardAssignment.md +10 -0
- data/docs/EmailTemplate.md +12 -0
- data/docs/EmailTemplateApi.md +223 -0
- data/docs/File.md +10 -0
- data/docs/FileApi.md +162 -0
- data/docs/ImpersonateTokenRequest.md +9 -0
- data/docs/Inventory.md +12 -0
- data/docs/LineItem.md +23 -0
- data/docs/LineItemApi.md +478 -0
- data/docs/LineItemSpec.md +11 -0
- data/docs/ListAddress.md +9 -0
- data/docs/ListAddressAssignment.md +9 -0
- data/docs/ListAdminCompany.md +9 -0
- data/docs/ListApiClient.md +9 -0
- data/docs/ListApprovalRule.md +9 -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/ListBuyerSpec.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/ListDevAccessibleCompany.md +9 -0
- data/docs/ListFile.md +9 -0
- data/docs/ListInventory.md +9 -0
- data/docs/ListLineItem.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/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/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/ListUser.md +9 -0
- data/docs/ListUserGroup.md +9 -0
- data/docs/ListUserGroupAssignment.md +9 -0
- data/docs/ListVariant.md +9 -0
- data/docs/ListWebHook.md +9 -0
- data/docs/ListWebHookRoute.md +9 -0
- data/docs/ListXpIndex.md +9 -0
- data/docs/MeApi.md +1488 -0
- data/docs/Meta.md +12 -0
- data/docs/Order.md +31 -0
- data/docs/OrderApi.md +1277 -0
- data/docs/OrderApproval.md +16 -0
- data/docs/OrderPromotion.md +8 -0
- data/docs/PasswordReset.md +10 -0
- data/docs/PasswordResetApi.md +109 -0
- data/docs/PasswordResetRequest.md +11 -0
- data/docs/Payment.md +16 -0
- data/docs/PaymentApi.md +601 -0
- data/docs/PaymentTransaction.md +15 -0
- data/docs/PingResponse.md +8 -0
- data/docs/PriceBreak.md +9 -0
- data/docs/PriceSchedule.md +18 -0
- data/docs/PriceScheduleApi.md +429 -0
- data/docs/Product.md +22 -0
- data/docs/ProductApi.md +1115 -0
- data/docs/ProductAssignment.md +13 -0
- data/docs/Promotion.md +21 -0
- data/docs/PromotionApi.md +495 -0
- data/docs/PromotionAssignment.md +11 -0
- data/docs/SecurityProfile.md +11 -0
- data/docs/SecurityProfileApi.md +290 -0
- data/docs/SecurityProfileAssignment.md +11 -0
- data/docs/Shipment.md +14 -0
- data/docs/ShipmentApi.md +459 -0
- data/docs/ShipmentItem.md +10 -0
- data/docs/Spec.md +8 -0
- data/docs/SpecApi.md +816 -0
- data/docs/SpecOption.md +14 -0
- data/docs/SpecProductAssignment.md +10 -0
- data/docs/SpendingAccount.md +15 -0
- data/docs/SpendingAccountApi.md +516 -0
- data/docs/SpendingAccountAssignment.md +11 -0
- data/docs/User.md +17 -0
- data/docs/UserApi.md +399 -0
- data/docs/UserGroup.md +11 -0
- data/docs/UserGroupApi.md +508 -0
- data/docs/UserGroupAssignment.md +9 -0
- data/docs/Variant.md +12 -0
- data/docs/WebHook.md +18 -0
- data/docs/WebHookRoute.md +10 -0
- data/docs/XpIndex.md +9 -0
- data/git_push.sh +67 -0
- data/lib/order_cloud.rb +176 -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 +396 -0
- data/lib/order_cloud/api/approval_rule_api.rb +421 -0
- data/lib/order_cloud/api/buyer_api.rb +397 -0
- data/lib/order_cloud/api/category_api.rb +817 -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/email_template_api.rb +283 -0
- data/lib/order_cloud/api/file_api.rb +206 -0
- data/lib/order_cloud/api/line_item_api.rb +583 -0
- data/lib/order_cloud/api/me_api.rb +1747 -0
- data/lib/order_cloud/api/order_api.rb +1509 -0
- data/lib/order_cloud/api/password_reset_api.rb +150 -0
- data/lib/order_cloud/api/payment_api.rb +728 -0
- data/lib/order_cloud/api/price_schedule_api.rb +519 -0
- data/lib/order_cloud/api/product_api.rb +1311 -0
- data/lib/order_cloud/api/promotion_api.rb +596 -0
- data/lib/order_cloud/api/security_profile_api.rb +361 -0
- data/lib/order_cloud/api/shipment_api.rb +558 -0
- data/lib/order_cloud/api/spec_api.rb +965 -0
- data/lib/order_cloud/api/spending_account_api.rb +622 -0
- data/lib/order_cloud/api/user_api.rb +488 -0
- data/lib/order_cloud/api/user_group_api.rb +613 -0
- data/lib/order_cloud/api_auth.rb +99 -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 +244 -0
- data/lib/order_cloud/models/access_token.rb +217 -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/admin_company.rb +217 -0
- data/lib/order_cloud/models/admin_model_on_view.rb +190 -0
- data/lib/order_cloud/models/approval_rule.rb +307 -0
- data/lib/order_cloud/models/base_spec.rb +262 -0
- data/lib/order_cloud/models/buyer.rb +226 -0
- data/lib/order_cloud/models/buyer_address.rb +226 -0
- data/lib/order_cloud/models/buyer_credit_card.rb +208 -0
- data/lib/order_cloud/models/buyer_product.rb +208 -0
- data/lib/order_cloud/models/buyer_spec.rb +210 -0
- data/lib/order_cloud/models/category.rb +262 -0
- data/lib/order_cloud/models/category_assignment.rb +217 -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 +217 -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/email_template.rb +235 -0
- data/lib/order_cloud/models/file.rb +217 -0
- data/lib/order_cloud/models/impersonate_token_request.rb +208 -0
- data/lib/order_cloud/models/inventory.rb +235 -0
- data/lib/order_cloud/models/line_item.rb +336 -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_admin_company.rb +210 -0
- data/lib/order_cloud/models/list_api_client.rb +210 -0
- data/lib/order_cloud/models/list_approval_rule.rb +210 -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_spec.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_dev_accessible_company.rb +210 -0
- data/lib/order_cloud/models/list_file.rb +210 -0
- data/lib/order_cloud/models/list_inventory.rb +210 -0
- data/lib/order_cloud/models/list_line_item.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_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_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_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/list_web_hook.rb +210 -0
- data/lib/order_cloud/models/list_web_hook_route.rb +210 -0
- data/lib/order_cloud/models/list_xp_index.rb +210 -0
- data/lib/order_cloud/models/meta.rb +237 -0
- data/lib/order_cloud/models/order.rb +406 -0
- data/lib/order_cloud/models/order_approval.rb +271 -0
- data/lib/order_cloud/models/order_promotion.rb +199 -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 +273 -0
- data/lib/order_cloud/models/payment_transaction.rb +262 -0
- data/lib/order_cloud/models/ping_response.rb +199 -0
- data/lib/order_cloud/models/price_break.rb +208 -0
- data/lib/order_cloud/models/price_schedule.rb +291 -0
- data/lib/order_cloud/models/product.rb +325 -0
- data/lib/order_cloud/models/product_assignment.rb +244 -0
- data/lib/order_cloud/models/promotion.rb +316 -0
- data/lib/order_cloud/models/promotion_assignment.rb +226 -0
- data/lib/order_cloud/models/security_profile.rb +228 -0
- data/lib/order_cloud/models/security_profile_assignment.rb +226 -0
- data/lib/order_cloud/models/shipment.rb +255 -0
- data/lib/order_cloud/models/shipment_item.rb +217 -0
- data/lib/order_cloud/models/spec.rb +199 -0
- data/lib/order_cloud/models/spec_option.rb +253 -0
- data/lib/order_cloud/models/spec_product_assignment.rb +217 -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/user.rb +280 -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/models/web_hook.rb +289 -0
- data/lib/order_cloud/models/web_hook_route.rb +217 -0
- data/lib/order_cloud/models/xp_index.rb +208 -0
- data/lib/order_cloud/version.rb +26 -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/approval_rule_api_spec.rb +131 -0
- data/spec/api/buyer_api_spec.rb +125 -0
- data/spec/api/category_api_spec.rb +221 -0
- data/spec/api/cost_center_api_spec.rb +177 -0
- data/spec/api/credit_card_api_spec.rb +177 -0
- data/spec/api/email_template_api_spec.rb +100 -0
- data/spec/api/file_api_spec.rb +83 -0
- data/spec/api/line_item_api_spec.rb +167 -0
- data/spec/api/me_api_spec.rb +431 -0
- data/spec/api/order_api_spec.rb +375 -0
- data/spec/api/password_reset_api_spec.rb +71 -0
- data/spec/api/payment_api_spec.rb +199 -0
- data/spec/api/price_schedule_api_spec.rb +151 -0
- data/spec/api/product_api_spec.rb +330 -0
- data/spec/api/promotion_api_spec.rb +170 -0
- data/spec/api/security_profile_api_spec.rb +120 -0
- data/spec/api/shipment_api_spec.rb +161 -0
- data/spec/api/spec_api_spec.rb +250 -0
- data/spec/api/spending_account_api_spec.rb +177 -0
- data/spec/api/user_api_spec.rb +146 -0
- data/spec/api/user_group_api_spec.rb +174 -0
- data/spec/api_auth_spec.rb +165 -0
- data/spec/api_client_spec.rb +237 -0
- data/spec/configuration_spec.rb +80 -0
- data/spec/models/access_token_spec.rb +65 -0
- data/spec/models/address_assignment_spec.rb +77 -0
- data/spec/models/address_spec.rb +125 -0
- data/spec/models/admin_company_spec.rb +65 -0
- data/spec/models/admin_model_on_view_spec.rb +47 -0
- data/spec/models/approval_rule_spec.rb +125 -0
- data/spec/models/base_spec_spec.rb +95 -0
- data/spec/models/buyer_address_spec.rb +71 -0
- data/spec/models/buyer_credit_card_spec.rb +59 -0
- data/spec/models/buyer_product_spec.rb +59 -0
- data/spec/models/buyer_spec.rb +71 -0
- data/spec/models/buyer_spec_spec.rb +59 -0
- data/spec/models/category_assignment_spec.rb +65 -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 +65 -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/email_template_spec.rb +77 -0
- data/spec/models/file_spec.rb +65 -0
- data/spec/models/impersonate_token_request_spec.rb +59 -0
- data/spec/models/inventory_spec.rb +77 -0
- data/spec/models/line_item_spec.rb +143 -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_admin_company_spec.rb +59 -0
- data/spec/models/list_api_client_spec.rb +59 -0
- data/spec/models/list_approval_rule_spec.rb +59 -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_spec.rb +59 -0
- data/spec/models/list_buyer_spec_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_dev_accessible_company_spec.rb +59 -0
- data/spec/models/list_file_spec.rb +59 -0
- data/spec/models/list_inventory_spec.rb +59 -0
- data/spec/models/list_line_item_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_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_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_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/list_web_hook_route_spec.rb +59 -0
- data/spec/models/list_web_hook_spec.rb +59 -0
- data/spec/models/list_xp_index_spec.rb +59 -0
- data/spec/models/meta_spec.rb +77 -0
- data/spec/models/order_approval_spec.rb +101 -0
- data/spec/models/order_promotion_spec.rb +53 -0
- data/spec/models/order_spec.rb +191 -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 +101 -0
- data/spec/models/payment_transaction_spec.rb +95 -0
- data/spec/models/ping_response_spec.rb +53 -0
- data/spec/models/price_break_spec.rb +59 -0
- data/spec/models/price_schedule_spec.rb +113 -0
- data/spec/models/product_assignment_spec.rb +83 -0
- data/spec/models/product_spec.rb +137 -0
- data/spec/models/promotion_assignment_spec.rb +71 -0
- data/spec/models/promotion_spec.rb +131 -0
- data/spec/models/security_profile_assignment_spec.rb +71 -0
- data/spec/models/security_profile_spec.rb +71 -0
- data/spec/models/shipment_item_spec.rb +65 -0
- data/spec/models/shipment_spec.rb +89 -0
- data/spec/models/spec_option_spec.rb +89 -0
- data/spec/models/spec_product_assignment_spec.rb +65 -0
- data/spec/models/spec_spec.rb +53 -0
- data/spec/models/spending_account_assignment_spec.rb +71 -0
- data/spec/models/spending_account_spec.rb +95 -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 +107 -0
- data/spec/models/variant_spec.rb +77 -0
- data/spec/models/web_hook_route_spec.rb +65 -0
- data/spec/models/web_hook_spec.rb +113 -0
- data/spec/models/xp_index_spec.rb +59 -0
- data/spec/spec_helper.rb +122 -0
- metadata +757 -0
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,31 @@
|
|
1
|
+
# OrderCloud::Order
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | | [optional]
|
7
|
+
**type** | **String** | | [optional]
|
8
|
+
**from_user_id** | **String** | | [optional]
|
9
|
+
**from_user_first_name** | **String** | | [optional]
|
10
|
+
**from_user_last_name** | **String** | | [optional]
|
11
|
+
**billing_address_id** | **String** | | [optional]
|
12
|
+
**billing_address** | [**Address**](Address.md) | | [optional]
|
13
|
+
**shipping_address_id** | **String** | | [optional]
|
14
|
+
**comments** | **String** | | [optional]
|
15
|
+
**line_item_count** | **Integer** | | [optional]
|
16
|
+
**status** | **String** | | [optional]
|
17
|
+
**date_created** | **String** | | [optional]
|
18
|
+
**date_submitted** | **String** | | [optional]
|
19
|
+
**date_approved** | **String** | | [optional]
|
20
|
+
**date_declined** | **String** | | [optional]
|
21
|
+
**date_canceled** | **String** | | [optional]
|
22
|
+
**date_completed** | **String** | | [optional]
|
23
|
+
**subtotal** | **Float** | | [optional]
|
24
|
+
**shipping_cost** | **Float** | | [optional]
|
25
|
+
**tax_cost** | **Float** | | [optional]
|
26
|
+
**promotion_discount** | **Float** | | [optional]
|
27
|
+
**total** | **Float** | | [optional]
|
28
|
+
**is_submitted** | **BOOLEAN** | | [optional]
|
29
|
+
**xp** | **Object** | | [optional]
|
30
|
+
|
31
|
+
|
data/docs/OrderApi.md
ADDED
@@ -0,0 +1,1277 @@
|
|
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** /buyers/{buyerID}/orders/{orderID}/promotions/{promoCode} |
|
8
|
+
[**approve**](OrderApi.md#approve) | **POST** /buyers/{buyerID}/orders/{orderID}/approve |
|
9
|
+
[**cancel**](OrderApi.md#cancel) | **POST** /buyers/{buyerID}/orders/{orderID}/cancel |
|
10
|
+
[**create**](OrderApi.md#create) | **POST** /buyers/{buyerID}/orders |
|
11
|
+
[**decline**](OrderApi.md#decline) | **POST** /buyers/{buyerID}/orders/{orderID}/decline |
|
12
|
+
[**delete**](OrderApi.md#delete) | **DELETE** /buyers/{buyerID}/orders/{orderID} |
|
13
|
+
[**get**](OrderApi.md#get) | **GET** /buyers/{buyerID}/orders/{orderID} |
|
14
|
+
[**list_approvals**](OrderApi.md#list_approvals) | **GET** /buyers/{buyerID}/orders/{orderID}/approvals |
|
15
|
+
[**list_eligible_approvers**](OrderApi.md#list_eligible_approvers) | **GET** /buyers/{buyerID}/orders/{orderID}/eligibleapprovers |
|
16
|
+
[**list_incoming**](OrderApi.md#list_incoming) | **GET** /orders/incoming |
|
17
|
+
[**list_outgoing**](OrderApi.md#list_outgoing) | **GET** /orders/outgoing |
|
18
|
+
[**list_promotions**](OrderApi.md#list_promotions) | **GET** /buyers/{buyerID}/orders/{orderID}/promotions |
|
19
|
+
[**patch**](OrderApi.md#patch) | **PATCH** /buyers/{buyerID}/orders/{orderID} |
|
20
|
+
[**patch_billing_address**](OrderApi.md#patch_billing_address) | **PATCH** /buyers/{buyerID}/orders/{orderID}/billto |
|
21
|
+
[**patch_shipping_address**](OrderApi.md#patch_shipping_address) | **PATCH** /buyers/{buyerID}/orders/{orderID}/shipto |
|
22
|
+
[**remove_promotion**](OrderApi.md#remove_promotion) | **DELETE** /buyers/{buyerID}/orders/{orderID}/promotions/{promoCode} |
|
23
|
+
[**set_billing_address**](OrderApi.md#set_billing_address) | **PUT** /buyers/{buyerID}/orders/{orderID}/billto |
|
24
|
+
[**set_shipping_address**](OrderApi.md#set_shipping_address) | **PUT** /buyers/{buyerID}/orders/{orderID}/shipto |
|
25
|
+
[**ship**](OrderApi.md#ship) | **POST** /buyers/{buyerID}/orders/{orderID}/ship |
|
26
|
+
[**submit**](OrderApi.md#submit) | **POST** /buyers/{buyerID}/orders/{orderID}/submit |
|
27
|
+
[**transfer_temp_user_order**](OrderApi.md#transfer_temp_user_order) | **PUT** /buyers/{buyerID}/orders |
|
28
|
+
[**update**](OrderApi.md#update) | **PUT** /buyers/{buyerID}/orders/{orderID} |
|
29
|
+
|
30
|
+
|
31
|
+
# **add_promotion**
|
32
|
+
> Promotion add_promotion(buyer_id, order_id, promo_code)
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
### Example
|
37
|
+
```ruby
|
38
|
+
# load the gem
|
39
|
+
require 'order_cloud'
|
40
|
+
# setup authorization
|
41
|
+
OrderCloud.configure do |config|
|
42
|
+
# Configure OAuth2 access token for authorization: oauth2
|
43
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
44
|
+
end
|
45
|
+
|
46
|
+
api_instance = OrderCloud::OrderApi.new
|
47
|
+
|
48
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
49
|
+
|
50
|
+
order_id = "order_id_example" # String | ID of the order.
|
51
|
+
|
52
|
+
promo_code = "promo_code_example" # String | Promo code of the order.
|
53
|
+
|
54
|
+
|
55
|
+
begin
|
56
|
+
result = api_instance.add_promotion(buyer_id, order_id, promo_code)
|
57
|
+
p result
|
58
|
+
rescue OrderCloud::ApiError => e
|
59
|
+
puts "Exception when calling OrderApi->add_promotion: #{e}"
|
60
|
+
end
|
61
|
+
```
|
62
|
+
|
63
|
+
### Parameters
|
64
|
+
|
65
|
+
Name | Type | Description | Notes
|
66
|
+
------------- | ------------- | ------------- | -------------
|
67
|
+
**buyer_id** | **String**| ID of the buyer. |
|
68
|
+
**order_id** | **String**| ID of the order. |
|
69
|
+
**promo_code** | **String**| Promo code of the order. |
|
70
|
+
|
71
|
+
### Return type
|
72
|
+
|
73
|
+
[**Promotion**](Promotion.md)
|
74
|
+
|
75
|
+
### Authorization
|
76
|
+
|
77
|
+
[oauth2](../README.md#oauth2)
|
78
|
+
|
79
|
+
### HTTP request headers
|
80
|
+
|
81
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
82
|
+
- **Accept**: application/json
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
# **approve**
|
87
|
+
> Order approve(buyer_id, order_id, opts)
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
### Example
|
92
|
+
```ruby
|
93
|
+
# load the gem
|
94
|
+
require 'order_cloud'
|
95
|
+
# setup authorization
|
96
|
+
OrderCloud.configure do |config|
|
97
|
+
# Configure OAuth2 access token for authorization: oauth2
|
98
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
99
|
+
end
|
100
|
+
|
101
|
+
api_instance = OrderCloud::OrderApi.new
|
102
|
+
|
103
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
104
|
+
|
105
|
+
order_id = "order_id_example" # String | ID of the order.
|
106
|
+
|
107
|
+
opts = {
|
108
|
+
comments: "comments_example" # String | Comments to be saved with the order approval.
|
109
|
+
}
|
110
|
+
|
111
|
+
begin
|
112
|
+
result = api_instance.approve(buyer_id, order_id, opts)
|
113
|
+
p result
|
114
|
+
rescue OrderCloud::ApiError => e
|
115
|
+
puts "Exception when calling OrderApi->approve: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
### Parameters
|
120
|
+
|
121
|
+
Name | Type | Description | Notes
|
122
|
+
------------- | ------------- | ------------- | -------------
|
123
|
+
**buyer_id** | **String**| ID of the buyer. |
|
124
|
+
**order_id** | **String**| ID of the order. |
|
125
|
+
**comments** | **String**| Comments to be saved with the order approval. | [optional]
|
126
|
+
|
127
|
+
### Return type
|
128
|
+
|
129
|
+
[**Order**](Order.md)
|
130
|
+
|
131
|
+
### Authorization
|
132
|
+
|
133
|
+
[oauth2](../README.md#oauth2)
|
134
|
+
|
135
|
+
### HTTP request headers
|
136
|
+
|
137
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
138
|
+
- **Accept**: application/json
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
# **cancel**
|
143
|
+
> Order cancel(buyer_id, order_id)
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
### Example
|
148
|
+
```ruby
|
149
|
+
# load the gem
|
150
|
+
require 'order_cloud'
|
151
|
+
# setup authorization
|
152
|
+
OrderCloud.configure do |config|
|
153
|
+
# Configure OAuth2 access token for authorization: oauth2
|
154
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
155
|
+
end
|
156
|
+
|
157
|
+
api_instance = OrderCloud::OrderApi.new
|
158
|
+
|
159
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
160
|
+
|
161
|
+
order_id = "order_id_example" # String | ID of the order.
|
162
|
+
|
163
|
+
|
164
|
+
begin
|
165
|
+
result = api_instance.cancel(buyer_id, order_id)
|
166
|
+
p result
|
167
|
+
rescue OrderCloud::ApiError => e
|
168
|
+
puts "Exception when calling OrderApi->cancel: #{e}"
|
169
|
+
end
|
170
|
+
```
|
171
|
+
|
172
|
+
### Parameters
|
173
|
+
|
174
|
+
Name | Type | Description | Notes
|
175
|
+
------------- | ------------- | ------------- | -------------
|
176
|
+
**buyer_id** | **String**| ID of the buyer. |
|
177
|
+
**order_id** | **String**| ID of the order. |
|
178
|
+
|
179
|
+
### Return type
|
180
|
+
|
181
|
+
[**Order**](Order.md)
|
182
|
+
|
183
|
+
### Authorization
|
184
|
+
|
185
|
+
[oauth2](../README.md#oauth2)
|
186
|
+
|
187
|
+
### HTTP request headers
|
188
|
+
|
189
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
190
|
+
- **Accept**: application/json
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
# **create**
|
195
|
+
> Order create(buyer_id, order)
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
### Example
|
200
|
+
```ruby
|
201
|
+
# load the gem
|
202
|
+
require 'order_cloud'
|
203
|
+
# setup authorization
|
204
|
+
OrderCloud.configure do |config|
|
205
|
+
# Configure OAuth2 access token for authorization: oauth2
|
206
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
207
|
+
end
|
208
|
+
|
209
|
+
api_instance = OrderCloud::OrderApi.new
|
210
|
+
|
211
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
212
|
+
|
213
|
+
order = OrderCloud::Order.new # Order |
|
214
|
+
|
215
|
+
|
216
|
+
begin
|
217
|
+
result = api_instance.create(buyer_id, order)
|
218
|
+
p result
|
219
|
+
rescue OrderCloud::ApiError => e
|
220
|
+
puts "Exception when calling OrderApi->create: #{e}"
|
221
|
+
end
|
222
|
+
```
|
223
|
+
|
224
|
+
### Parameters
|
225
|
+
|
226
|
+
Name | Type | Description | Notes
|
227
|
+
------------- | ------------- | ------------- | -------------
|
228
|
+
**buyer_id** | **String**| ID of the buyer. |
|
229
|
+
**order** | [**Order**](Order.md)| |
|
230
|
+
|
231
|
+
### Return type
|
232
|
+
|
233
|
+
[**Order**](Order.md)
|
234
|
+
|
235
|
+
### Authorization
|
236
|
+
|
237
|
+
[oauth2](../README.md#oauth2)
|
238
|
+
|
239
|
+
### HTTP request headers
|
240
|
+
|
241
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
242
|
+
- **Accept**: application/json
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
# **decline**
|
247
|
+
> Order decline(buyer_id, order_id, opts)
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
### Example
|
252
|
+
```ruby
|
253
|
+
# load the gem
|
254
|
+
require 'order_cloud'
|
255
|
+
# setup authorization
|
256
|
+
OrderCloud.configure do |config|
|
257
|
+
# Configure OAuth2 access token for authorization: oauth2
|
258
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
259
|
+
end
|
260
|
+
|
261
|
+
api_instance = OrderCloud::OrderApi.new
|
262
|
+
|
263
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
264
|
+
|
265
|
+
order_id = "order_id_example" # String | ID of the order.
|
266
|
+
|
267
|
+
opts = {
|
268
|
+
comments: "comments_example" # String | Comments to be saved with the order denial.
|
269
|
+
}
|
270
|
+
|
271
|
+
begin
|
272
|
+
result = api_instance.decline(buyer_id, order_id, opts)
|
273
|
+
p result
|
274
|
+
rescue OrderCloud::ApiError => e
|
275
|
+
puts "Exception when calling OrderApi->decline: #{e}"
|
276
|
+
end
|
277
|
+
```
|
278
|
+
|
279
|
+
### Parameters
|
280
|
+
|
281
|
+
Name | Type | Description | Notes
|
282
|
+
------------- | ------------- | ------------- | -------------
|
283
|
+
**buyer_id** | **String**| ID of the buyer. |
|
284
|
+
**order_id** | **String**| ID of the order. |
|
285
|
+
**comments** | **String**| Comments to be saved with the order denial. | [optional]
|
286
|
+
|
287
|
+
### Return type
|
288
|
+
|
289
|
+
[**Order**](Order.md)
|
290
|
+
|
291
|
+
### Authorization
|
292
|
+
|
293
|
+
[oauth2](../README.md#oauth2)
|
294
|
+
|
295
|
+
### HTTP request headers
|
296
|
+
|
297
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
298
|
+
- **Accept**: application/json
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
# **delete**
|
303
|
+
> delete(buyer_id, order_id)
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
### Example
|
308
|
+
```ruby
|
309
|
+
# load the gem
|
310
|
+
require 'order_cloud'
|
311
|
+
# setup authorization
|
312
|
+
OrderCloud.configure do |config|
|
313
|
+
# Configure OAuth2 access token for authorization: oauth2
|
314
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
315
|
+
end
|
316
|
+
|
317
|
+
api_instance = OrderCloud::OrderApi.new
|
318
|
+
|
319
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
320
|
+
|
321
|
+
order_id = "order_id_example" # String | ID of the order.
|
322
|
+
|
323
|
+
|
324
|
+
begin
|
325
|
+
api_instance.delete(buyer_id, order_id)
|
326
|
+
rescue OrderCloud::ApiError => e
|
327
|
+
puts "Exception when calling OrderApi->delete: #{e}"
|
328
|
+
end
|
329
|
+
```
|
330
|
+
|
331
|
+
### Parameters
|
332
|
+
|
333
|
+
Name | Type | Description | Notes
|
334
|
+
------------- | ------------- | ------------- | -------------
|
335
|
+
**buyer_id** | **String**| ID of the buyer. |
|
336
|
+
**order_id** | **String**| ID of the order. |
|
337
|
+
|
338
|
+
### Return type
|
339
|
+
|
340
|
+
nil (empty response body)
|
341
|
+
|
342
|
+
### Authorization
|
343
|
+
|
344
|
+
[oauth2](../README.md#oauth2)
|
345
|
+
|
346
|
+
### HTTP request headers
|
347
|
+
|
348
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
349
|
+
- **Accept**: application/json
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
# **get**
|
354
|
+
> Order get(buyer_id, order_id)
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
### Example
|
359
|
+
```ruby
|
360
|
+
# load the gem
|
361
|
+
require 'order_cloud'
|
362
|
+
# setup authorization
|
363
|
+
OrderCloud.configure do |config|
|
364
|
+
# Configure OAuth2 access token for authorization: oauth2
|
365
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
366
|
+
end
|
367
|
+
|
368
|
+
api_instance = OrderCloud::OrderApi.new
|
369
|
+
|
370
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
371
|
+
|
372
|
+
order_id = "order_id_example" # String | ID of the order.
|
373
|
+
|
374
|
+
|
375
|
+
begin
|
376
|
+
result = api_instance.get(buyer_id, order_id)
|
377
|
+
p result
|
378
|
+
rescue OrderCloud::ApiError => e
|
379
|
+
puts "Exception when calling OrderApi->get: #{e}"
|
380
|
+
end
|
381
|
+
```
|
382
|
+
|
383
|
+
### Parameters
|
384
|
+
|
385
|
+
Name | Type | Description | Notes
|
386
|
+
------------- | ------------- | ------------- | -------------
|
387
|
+
**buyer_id** | **String**| ID of the buyer. |
|
388
|
+
**order_id** | **String**| ID of the order. |
|
389
|
+
|
390
|
+
### Return type
|
391
|
+
|
392
|
+
[**Order**](Order.md)
|
393
|
+
|
394
|
+
### Authorization
|
395
|
+
|
396
|
+
[oauth2](../README.md#oauth2)
|
397
|
+
|
398
|
+
### HTTP request headers
|
399
|
+
|
400
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
401
|
+
- **Accept**: application/json
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
# **list_approvals**
|
406
|
+
> ListOrderApproval list_approvals(buyer_id, order_id, opts)
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
### Example
|
411
|
+
```ruby
|
412
|
+
# load the gem
|
413
|
+
require 'order_cloud'
|
414
|
+
# setup authorization
|
415
|
+
OrderCloud.configure do |config|
|
416
|
+
# Configure OAuth2 access token for authorization: oauth2
|
417
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
418
|
+
end
|
419
|
+
|
420
|
+
api_instance = OrderCloud::OrderApi.new
|
421
|
+
|
422
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
423
|
+
|
424
|
+
order_id = "order_id_example" # String | ID of the order.
|
425
|
+
|
426
|
+
opts = {
|
427
|
+
search: "search_example", # String | Word or phrase to search for.
|
428
|
+
search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
|
429
|
+
sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
|
430
|
+
page: 56, # Integer | Page of results to return. Default: 1
|
431
|
+
page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
|
432
|
+
filters: {'key' => "filters_example"} # Hash<String, String> | 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.???'
|
433
|
+
}
|
434
|
+
|
435
|
+
begin
|
436
|
+
result = api_instance.list_approvals(buyer_id, order_id, opts)
|
437
|
+
p result
|
438
|
+
rescue OrderCloud::ApiError => e
|
439
|
+
puts "Exception when calling OrderApi->list_approvals: #{e}"
|
440
|
+
end
|
441
|
+
```
|
442
|
+
|
443
|
+
### Parameters
|
444
|
+
|
445
|
+
Name | Type | Description | Notes
|
446
|
+
------------- | ------------- | ------------- | -------------
|
447
|
+
**buyer_id** | **String**| ID of the buyer. |
|
448
|
+
**order_id** | **String**| ID of the order. |
|
449
|
+
**search** | **String**| Word or phrase to search for. | [optional]
|
450
|
+
**search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
|
451
|
+
**sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
|
452
|
+
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
453
|
+
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
454
|
+
**filters** | [**Hash<String, String>**](String.md)| 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.???' | [optional]
|
455
|
+
|
456
|
+
### Return type
|
457
|
+
|
458
|
+
[**ListOrderApproval**](ListOrderApproval.md)
|
459
|
+
|
460
|
+
### Authorization
|
461
|
+
|
462
|
+
[oauth2](../README.md#oauth2)
|
463
|
+
|
464
|
+
### HTTP request headers
|
465
|
+
|
466
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
467
|
+
- **Accept**: application/json
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
# **list_eligible_approvers**
|
472
|
+
> ListUser list_eligible_approvers(buyer_id, order_id, opts)
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
### Example
|
477
|
+
```ruby
|
478
|
+
# load the gem
|
479
|
+
require 'order_cloud'
|
480
|
+
# setup authorization
|
481
|
+
OrderCloud.configure do |config|
|
482
|
+
# Configure OAuth2 access token for authorization: oauth2
|
483
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
484
|
+
end
|
485
|
+
|
486
|
+
api_instance = OrderCloud::OrderApi.new
|
487
|
+
|
488
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
489
|
+
|
490
|
+
order_id = "order_id_example" # String | ID of the order.
|
491
|
+
|
492
|
+
opts = {
|
493
|
+
search: "search_example", # String | Word or phrase to search for.
|
494
|
+
search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
|
495
|
+
sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
|
496
|
+
page: 56, # Integer | Page of results to return. Default: 1
|
497
|
+
page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
|
498
|
+
filters: {'key' => "filters_example"} # Hash<String, String> | 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.???'
|
499
|
+
}
|
500
|
+
|
501
|
+
begin
|
502
|
+
result = api_instance.list_eligible_approvers(buyer_id, order_id, opts)
|
503
|
+
p result
|
504
|
+
rescue OrderCloud::ApiError => e
|
505
|
+
puts "Exception when calling OrderApi->list_eligible_approvers: #{e}"
|
506
|
+
end
|
507
|
+
```
|
508
|
+
|
509
|
+
### Parameters
|
510
|
+
|
511
|
+
Name | Type | Description | Notes
|
512
|
+
------------- | ------------- | ------------- | -------------
|
513
|
+
**buyer_id** | **String**| ID of the buyer. |
|
514
|
+
**order_id** | **String**| ID of the order. |
|
515
|
+
**search** | **String**| Word or phrase to search for. | [optional]
|
516
|
+
**search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
|
517
|
+
**sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
|
518
|
+
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
519
|
+
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
520
|
+
**filters** | [**Hash<String, String>**](String.md)| 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.???' | [optional]
|
521
|
+
|
522
|
+
### Return type
|
523
|
+
|
524
|
+
[**ListUser**](ListUser.md)
|
525
|
+
|
526
|
+
### Authorization
|
527
|
+
|
528
|
+
[oauth2](../README.md#oauth2)
|
529
|
+
|
530
|
+
### HTTP request headers
|
531
|
+
|
532
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
533
|
+
- **Accept**: application/json
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
# **list_incoming**
|
538
|
+
> ListOrder list_incoming(opts)
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
### Example
|
543
|
+
```ruby
|
544
|
+
# load the gem
|
545
|
+
require 'order_cloud'
|
546
|
+
# setup authorization
|
547
|
+
OrderCloud.configure do |config|
|
548
|
+
# Configure OAuth2 access token for authorization: oauth2
|
549
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
550
|
+
end
|
551
|
+
|
552
|
+
api_instance = OrderCloud::OrderApi.new
|
553
|
+
|
554
|
+
opts = {
|
555
|
+
buyer_id: "buyer_id_example", # String | ID of the buyer.
|
556
|
+
from: "from_example", # String | Lower bound of date range that the order was submitted.
|
557
|
+
to: "to_example", # String | Upper bound of date range that the order was submitted.
|
558
|
+
search: "search_example", # String | Word or phrase to search for.
|
559
|
+
search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
|
560
|
+
sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
|
561
|
+
page: 56, # Integer | Page of results to return. Default: 1
|
562
|
+
page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
|
563
|
+
filters: {'key' => "filters_example"} # Hash<String, String> | 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.???'
|
564
|
+
}
|
565
|
+
|
566
|
+
begin
|
567
|
+
result = api_instance.list_incoming(opts)
|
568
|
+
p result
|
569
|
+
rescue OrderCloud::ApiError => e
|
570
|
+
puts "Exception when calling OrderApi->list_incoming: #{e}"
|
571
|
+
end
|
572
|
+
```
|
573
|
+
|
574
|
+
### Parameters
|
575
|
+
|
576
|
+
Name | Type | Description | Notes
|
577
|
+
------------- | ------------- | ------------- | -------------
|
578
|
+
**buyer_id** | **String**| ID of the buyer. | [optional]
|
579
|
+
**from** | **String**| Lower bound of date range that the order was submitted. | [optional]
|
580
|
+
**to** | **String**| Upper bound of date range that the order was submitted. | [optional]
|
581
|
+
**search** | **String**| Word or phrase to search for. | [optional]
|
582
|
+
**search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
|
583
|
+
**sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
|
584
|
+
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
585
|
+
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
586
|
+
**filters** | [**Hash<String, String>**](String.md)| 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.???' | [optional]
|
587
|
+
|
588
|
+
### Return type
|
589
|
+
|
590
|
+
[**ListOrder**](ListOrder.md)
|
591
|
+
|
592
|
+
### Authorization
|
593
|
+
|
594
|
+
[oauth2](../README.md#oauth2)
|
595
|
+
|
596
|
+
### HTTP request headers
|
597
|
+
|
598
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
599
|
+
- **Accept**: application/json
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
# **list_outgoing**
|
604
|
+
> ListOrder list_outgoing(opts)
|
605
|
+
|
606
|
+
|
607
|
+
|
608
|
+
### Example
|
609
|
+
```ruby
|
610
|
+
# load the gem
|
611
|
+
require 'order_cloud'
|
612
|
+
# setup authorization
|
613
|
+
OrderCloud.configure do |config|
|
614
|
+
# Configure OAuth2 access token for authorization: oauth2
|
615
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
616
|
+
end
|
617
|
+
|
618
|
+
api_instance = OrderCloud::OrderApi.new
|
619
|
+
|
620
|
+
opts = {
|
621
|
+
buyer_id: "buyer_id_example", # String | ID of the buyer.
|
622
|
+
from: "from_example", # String | Lower bound of date range that the order was created.
|
623
|
+
to: "to_example", # String | Upper bound of date range that the order was created.
|
624
|
+
search: "search_example", # String | Word or phrase to search for.
|
625
|
+
search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
|
626
|
+
sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
|
627
|
+
page: 56, # Integer | Page of results to return. Default: 1
|
628
|
+
page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
|
629
|
+
filters: {'key' => "filters_example"} # Hash<String, String> | 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.???'
|
630
|
+
}
|
631
|
+
|
632
|
+
begin
|
633
|
+
result = api_instance.list_outgoing(opts)
|
634
|
+
p result
|
635
|
+
rescue OrderCloud::ApiError => e
|
636
|
+
puts "Exception when calling OrderApi->list_outgoing: #{e}"
|
637
|
+
end
|
638
|
+
```
|
639
|
+
|
640
|
+
### Parameters
|
641
|
+
|
642
|
+
Name | Type | Description | Notes
|
643
|
+
------------- | ------------- | ------------- | -------------
|
644
|
+
**buyer_id** | **String**| ID of the buyer. | [optional]
|
645
|
+
**from** | **String**| Lower bound of date range that the order was created. | [optional]
|
646
|
+
**to** | **String**| Upper bound of date range that the order was created. | [optional]
|
647
|
+
**search** | **String**| Word or phrase to search for. | [optional]
|
648
|
+
**search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
|
649
|
+
**sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
|
650
|
+
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
651
|
+
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
652
|
+
**filters** | [**Hash<String, String>**](String.md)| 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.???' | [optional]
|
653
|
+
|
654
|
+
### Return type
|
655
|
+
|
656
|
+
[**ListOrder**](ListOrder.md)
|
657
|
+
|
658
|
+
### Authorization
|
659
|
+
|
660
|
+
[oauth2](../README.md#oauth2)
|
661
|
+
|
662
|
+
### HTTP request headers
|
663
|
+
|
664
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
665
|
+
- **Accept**: application/json
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
# **list_promotions**
|
670
|
+
> ListOrderPromotion list_promotions(buyer_id, order_id, opts)
|
671
|
+
|
672
|
+
|
673
|
+
|
674
|
+
### Example
|
675
|
+
```ruby
|
676
|
+
# load the gem
|
677
|
+
require 'order_cloud'
|
678
|
+
# setup authorization
|
679
|
+
OrderCloud.configure do |config|
|
680
|
+
# Configure OAuth2 access token for authorization: oauth2
|
681
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
682
|
+
end
|
683
|
+
|
684
|
+
api_instance = OrderCloud::OrderApi.new
|
685
|
+
|
686
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
687
|
+
|
688
|
+
order_id = "order_id_example" # String | ID of the order.
|
689
|
+
|
690
|
+
opts = {
|
691
|
+
search: "search_example", # String | Word or phrase to search for.
|
692
|
+
search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
|
693
|
+
sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
|
694
|
+
page: 56, # Integer | Page of results to return. Default: 1
|
695
|
+
page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
|
696
|
+
filters: {'key' => "filters_example"} # Hash<String, String> | 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.???'
|
697
|
+
}
|
698
|
+
|
699
|
+
begin
|
700
|
+
result = api_instance.list_promotions(buyer_id, order_id, opts)
|
701
|
+
p result
|
702
|
+
rescue OrderCloud::ApiError => e
|
703
|
+
puts "Exception when calling OrderApi->list_promotions: #{e}"
|
704
|
+
end
|
705
|
+
```
|
706
|
+
|
707
|
+
### Parameters
|
708
|
+
|
709
|
+
Name | Type | Description | Notes
|
710
|
+
------------- | ------------- | ------------- | -------------
|
711
|
+
**buyer_id** | **String**| ID of the buyer. |
|
712
|
+
**order_id** | **String**| ID of the order. |
|
713
|
+
**search** | **String**| Word or phrase to search for. | [optional]
|
714
|
+
**search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
|
715
|
+
**sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
|
716
|
+
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
717
|
+
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
718
|
+
**filters** | [**Hash<String, String>**](String.md)| 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.???' | [optional]
|
719
|
+
|
720
|
+
### Return type
|
721
|
+
|
722
|
+
[**ListOrderPromotion**](ListOrderPromotion.md)
|
723
|
+
|
724
|
+
### Authorization
|
725
|
+
|
726
|
+
[oauth2](../README.md#oauth2)
|
727
|
+
|
728
|
+
### HTTP request headers
|
729
|
+
|
730
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
731
|
+
- **Accept**: application/json
|
732
|
+
|
733
|
+
|
734
|
+
|
735
|
+
# **patch**
|
736
|
+
> Order patch(buyer_id, order_id, partial_order)
|
737
|
+
|
738
|
+
|
739
|
+
|
740
|
+
### Example
|
741
|
+
```ruby
|
742
|
+
# load the gem
|
743
|
+
require 'order_cloud'
|
744
|
+
# setup authorization
|
745
|
+
OrderCloud.configure do |config|
|
746
|
+
# Configure OAuth2 access token for authorization: oauth2
|
747
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
748
|
+
end
|
749
|
+
|
750
|
+
api_instance = OrderCloud::OrderApi.new
|
751
|
+
|
752
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
753
|
+
|
754
|
+
order_id = "order_id_example" # String | ID of the order.
|
755
|
+
|
756
|
+
partial_order = OrderCloud::Order.new # Order |
|
757
|
+
|
758
|
+
|
759
|
+
begin
|
760
|
+
result = api_instance.patch(buyer_id, order_id, partial_order)
|
761
|
+
p result
|
762
|
+
rescue OrderCloud::ApiError => e
|
763
|
+
puts "Exception when calling OrderApi->patch: #{e}"
|
764
|
+
end
|
765
|
+
```
|
766
|
+
|
767
|
+
### Parameters
|
768
|
+
|
769
|
+
Name | Type | Description | Notes
|
770
|
+
------------- | ------------- | ------------- | -------------
|
771
|
+
**buyer_id** | **String**| ID of the buyer. |
|
772
|
+
**order_id** | **String**| ID of the order. |
|
773
|
+
**partial_order** | [**Order**](Order.md)| |
|
774
|
+
|
775
|
+
### Return type
|
776
|
+
|
777
|
+
[**Order**](Order.md)
|
778
|
+
|
779
|
+
### Authorization
|
780
|
+
|
781
|
+
[oauth2](../README.md#oauth2)
|
782
|
+
|
783
|
+
### HTTP request headers
|
784
|
+
|
785
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
786
|
+
- **Accept**: application/json
|
787
|
+
|
788
|
+
|
789
|
+
|
790
|
+
# **patch_billing_address**
|
791
|
+
> Order patch_billing_address(buyer_id, order_id, address)
|
792
|
+
|
793
|
+
|
794
|
+
|
795
|
+
### Example
|
796
|
+
```ruby
|
797
|
+
# load the gem
|
798
|
+
require 'order_cloud'
|
799
|
+
# setup authorization
|
800
|
+
OrderCloud.configure do |config|
|
801
|
+
# Configure OAuth2 access token for authorization: oauth2
|
802
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
803
|
+
end
|
804
|
+
|
805
|
+
api_instance = OrderCloud::OrderApi.new
|
806
|
+
|
807
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
808
|
+
|
809
|
+
order_id = "order_id_example" # String | ID of the order.
|
810
|
+
|
811
|
+
address = OrderCloud::Address.new # Address |
|
812
|
+
|
813
|
+
|
814
|
+
begin
|
815
|
+
result = api_instance.patch_billing_address(buyer_id, order_id, address)
|
816
|
+
p result
|
817
|
+
rescue OrderCloud::ApiError => e
|
818
|
+
puts "Exception when calling OrderApi->patch_billing_address: #{e}"
|
819
|
+
end
|
820
|
+
```
|
821
|
+
|
822
|
+
### Parameters
|
823
|
+
|
824
|
+
Name | Type | Description | Notes
|
825
|
+
------------- | ------------- | ------------- | -------------
|
826
|
+
**buyer_id** | **String**| ID of the buyer. |
|
827
|
+
**order_id** | **String**| ID of the order. |
|
828
|
+
**address** | [**Address**](Address.md)| |
|
829
|
+
|
830
|
+
### Return type
|
831
|
+
|
832
|
+
[**Order**](Order.md)
|
833
|
+
|
834
|
+
### Authorization
|
835
|
+
|
836
|
+
[oauth2](../README.md#oauth2)
|
837
|
+
|
838
|
+
### HTTP request headers
|
839
|
+
|
840
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
841
|
+
- **Accept**: application/json
|
842
|
+
|
843
|
+
|
844
|
+
|
845
|
+
# **patch_shipping_address**
|
846
|
+
> Order patch_shipping_address(buyer_id, order_id, address)
|
847
|
+
|
848
|
+
|
849
|
+
|
850
|
+
### Example
|
851
|
+
```ruby
|
852
|
+
# load the gem
|
853
|
+
require 'order_cloud'
|
854
|
+
# setup authorization
|
855
|
+
OrderCloud.configure do |config|
|
856
|
+
# Configure OAuth2 access token for authorization: oauth2
|
857
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
858
|
+
end
|
859
|
+
|
860
|
+
api_instance = OrderCloud::OrderApi.new
|
861
|
+
|
862
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
863
|
+
|
864
|
+
order_id = "order_id_example" # String | ID of the order.
|
865
|
+
|
866
|
+
address = OrderCloud::Address.new # Address |
|
867
|
+
|
868
|
+
|
869
|
+
begin
|
870
|
+
result = api_instance.patch_shipping_address(buyer_id, order_id, address)
|
871
|
+
p result
|
872
|
+
rescue OrderCloud::ApiError => e
|
873
|
+
puts "Exception when calling OrderApi->patch_shipping_address: #{e}"
|
874
|
+
end
|
875
|
+
```
|
876
|
+
|
877
|
+
### Parameters
|
878
|
+
|
879
|
+
Name | Type | Description | Notes
|
880
|
+
------------- | ------------- | ------------- | -------------
|
881
|
+
**buyer_id** | **String**| ID of the buyer. |
|
882
|
+
**order_id** | **String**| ID of the order. |
|
883
|
+
**address** | [**Address**](Address.md)| |
|
884
|
+
|
885
|
+
### Return type
|
886
|
+
|
887
|
+
[**Order**](Order.md)
|
888
|
+
|
889
|
+
### Authorization
|
890
|
+
|
891
|
+
[oauth2](../README.md#oauth2)
|
892
|
+
|
893
|
+
### HTTP request headers
|
894
|
+
|
895
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
896
|
+
- **Accept**: application/json
|
897
|
+
|
898
|
+
|
899
|
+
|
900
|
+
# **remove_promotion**
|
901
|
+
> Order remove_promotion(buyer_id, order_id, promo_code)
|
902
|
+
|
903
|
+
|
904
|
+
|
905
|
+
### Example
|
906
|
+
```ruby
|
907
|
+
# load the gem
|
908
|
+
require 'order_cloud'
|
909
|
+
# setup authorization
|
910
|
+
OrderCloud.configure do |config|
|
911
|
+
# Configure OAuth2 access token for authorization: oauth2
|
912
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
913
|
+
end
|
914
|
+
|
915
|
+
api_instance = OrderCloud::OrderApi.new
|
916
|
+
|
917
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
918
|
+
|
919
|
+
order_id = "order_id_example" # String | ID of the order.
|
920
|
+
|
921
|
+
promo_code = "promo_code_example" # String | Promo code of the order.
|
922
|
+
|
923
|
+
|
924
|
+
begin
|
925
|
+
result = api_instance.remove_promotion(buyer_id, order_id, promo_code)
|
926
|
+
p result
|
927
|
+
rescue OrderCloud::ApiError => e
|
928
|
+
puts "Exception when calling OrderApi->remove_promotion: #{e}"
|
929
|
+
end
|
930
|
+
```
|
931
|
+
|
932
|
+
### Parameters
|
933
|
+
|
934
|
+
Name | Type | Description | Notes
|
935
|
+
------------- | ------------- | ------------- | -------------
|
936
|
+
**buyer_id** | **String**| ID of the buyer. |
|
937
|
+
**order_id** | **String**| ID of the order. |
|
938
|
+
**promo_code** | **String**| Promo code of the order. |
|
939
|
+
|
940
|
+
### Return type
|
941
|
+
|
942
|
+
[**Order**](Order.md)
|
943
|
+
|
944
|
+
### Authorization
|
945
|
+
|
946
|
+
[oauth2](../README.md#oauth2)
|
947
|
+
|
948
|
+
### HTTP request headers
|
949
|
+
|
950
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
951
|
+
- **Accept**: application/json
|
952
|
+
|
953
|
+
|
954
|
+
|
955
|
+
# **set_billing_address**
|
956
|
+
> Order set_billing_address(buyer_id, order_id, address)
|
957
|
+
|
958
|
+
|
959
|
+
|
960
|
+
### Example
|
961
|
+
```ruby
|
962
|
+
# load the gem
|
963
|
+
require 'order_cloud'
|
964
|
+
# setup authorization
|
965
|
+
OrderCloud.configure do |config|
|
966
|
+
# Configure OAuth2 access token for authorization: oauth2
|
967
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
968
|
+
end
|
969
|
+
|
970
|
+
api_instance = OrderCloud::OrderApi.new
|
971
|
+
|
972
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
973
|
+
|
974
|
+
order_id = "order_id_example" # String | ID of the order.
|
975
|
+
|
976
|
+
address = OrderCloud::Address.new # Address |
|
977
|
+
|
978
|
+
|
979
|
+
begin
|
980
|
+
result = api_instance.set_billing_address(buyer_id, order_id, address)
|
981
|
+
p result
|
982
|
+
rescue OrderCloud::ApiError => e
|
983
|
+
puts "Exception when calling OrderApi->set_billing_address: #{e}"
|
984
|
+
end
|
985
|
+
```
|
986
|
+
|
987
|
+
### Parameters
|
988
|
+
|
989
|
+
Name | Type | Description | Notes
|
990
|
+
------------- | ------------- | ------------- | -------------
|
991
|
+
**buyer_id** | **String**| ID of the buyer. |
|
992
|
+
**order_id** | **String**| ID of the order. |
|
993
|
+
**address** | [**Address**](Address.md)| |
|
994
|
+
|
995
|
+
### Return type
|
996
|
+
|
997
|
+
[**Order**](Order.md)
|
998
|
+
|
999
|
+
### Authorization
|
1000
|
+
|
1001
|
+
[oauth2](../README.md#oauth2)
|
1002
|
+
|
1003
|
+
### HTTP request headers
|
1004
|
+
|
1005
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
1006
|
+
- **Accept**: application/json
|
1007
|
+
|
1008
|
+
|
1009
|
+
|
1010
|
+
# **set_shipping_address**
|
1011
|
+
> Order set_shipping_address(buyer_id, order_id, address)
|
1012
|
+
|
1013
|
+
|
1014
|
+
|
1015
|
+
### Example
|
1016
|
+
```ruby
|
1017
|
+
# load the gem
|
1018
|
+
require 'order_cloud'
|
1019
|
+
# setup authorization
|
1020
|
+
OrderCloud.configure do |config|
|
1021
|
+
# Configure OAuth2 access token for authorization: oauth2
|
1022
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
api_instance = OrderCloud::OrderApi.new
|
1026
|
+
|
1027
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
1028
|
+
|
1029
|
+
order_id = "order_id_example" # String | ID of the order.
|
1030
|
+
|
1031
|
+
address = OrderCloud::Address.new # Address |
|
1032
|
+
|
1033
|
+
|
1034
|
+
begin
|
1035
|
+
result = api_instance.set_shipping_address(buyer_id, order_id, address)
|
1036
|
+
p result
|
1037
|
+
rescue OrderCloud::ApiError => e
|
1038
|
+
puts "Exception when calling OrderApi->set_shipping_address: #{e}"
|
1039
|
+
end
|
1040
|
+
```
|
1041
|
+
|
1042
|
+
### Parameters
|
1043
|
+
|
1044
|
+
Name | Type | Description | Notes
|
1045
|
+
------------- | ------------- | ------------- | -------------
|
1046
|
+
**buyer_id** | **String**| ID of the buyer. |
|
1047
|
+
**order_id** | **String**| ID of the order. |
|
1048
|
+
**address** | [**Address**](Address.md)| |
|
1049
|
+
|
1050
|
+
### Return type
|
1051
|
+
|
1052
|
+
[**Order**](Order.md)
|
1053
|
+
|
1054
|
+
### Authorization
|
1055
|
+
|
1056
|
+
[oauth2](../README.md#oauth2)
|
1057
|
+
|
1058
|
+
### HTTP request headers
|
1059
|
+
|
1060
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
1061
|
+
- **Accept**: application/json
|
1062
|
+
|
1063
|
+
|
1064
|
+
|
1065
|
+
# **ship**
|
1066
|
+
> Order ship(buyer_id, order_id, shipment)
|
1067
|
+
|
1068
|
+
|
1069
|
+
|
1070
|
+
### Example
|
1071
|
+
```ruby
|
1072
|
+
# load the gem
|
1073
|
+
require 'order_cloud'
|
1074
|
+
# setup authorization
|
1075
|
+
OrderCloud.configure do |config|
|
1076
|
+
# Configure OAuth2 access token for authorization: oauth2
|
1077
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
api_instance = OrderCloud::OrderApi.new
|
1081
|
+
|
1082
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
1083
|
+
|
1084
|
+
order_id = "order_id_example" # String | ID of the order.
|
1085
|
+
|
1086
|
+
shipment = OrderCloud::Shipment.new # Shipment |
|
1087
|
+
|
1088
|
+
|
1089
|
+
begin
|
1090
|
+
result = api_instance.ship(buyer_id, order_id, shipment)
|
1091
|
+
p result
|
1092
|
+
rescue OrderCloud::ApiError => e
|
1093
|
+
puts "Exception when calling OrderApi->ship: #{e}"
|
1094
|
+
end
|
1095
|
+
```
|
1096
|
+
|
1097
|
+
### Parameters
|
1098
|
+
|
1099
|
+
Name | Type | Description | Notes
|
1100
|
+
------------- | ------------- | ------------- | -------------
|
1101
|
+
**buyer_id** | **String**| ID of the buyer. |
|
1102
|
+
**order_id** | **String**| ID of the order. |
|
1103
|
+
**shipment** | [**Shipment**](Shipment.md)| |
|
1104
|
+
|
1105
|
+
### Return type
|
1106
|
+
|
1107
|
+
[**Order**](Order.md)
|
1108
|
+
|
1109
|
+
### Authorization
|
1110
|
+
|
1111
|
+
[oauth2](../README.md#oauth2)
|
1112
|
+
|
1113
|
+
### HTTP request headers
|
1114
|
+
|
1115
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
1116
|
+
- **Accept**: application/json
|
1117
|
+
|
1118
|
+
|
1119
|
+
|
1120
|
+
# **submit**
|
1121
|
+
> Order submit(buyer_id, order_id)
|
1122
|
+
|
1123
|
+
|
1124
|
+
|
1125
|
+
### Example
|
1126
|
+
```ruby
|
1127
|
+
# load the gem
|
1128
|
+
require 'order_cloud'
|
1129
|
+
# setup authorization
|
1130
|
+
OrderCloud.configure do |config|
|
1131
|
+
# Configure OAuth2 access token for authorization: oauth2
|
1132
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1133
|
+
end
|
1134
|
+
|
1135
|
+
api_instance = OrderCloud::OrderApi.new
|
1136
|
+
|
1137
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
1138
|
+
|
1139
|
+
order_id = "order_id_example" # String | ID of the order.
|
1140
|
+
|
1141
|
+
|
1142
|
+
begin
|
1143
|
+
result = api_instance.submit(buyer_id, order_id)
|
1144
|
+
p result
|
1145
|
+
rescue OrderCloud::ApiError => e
|
1146
|
+
puts "Exception when calling OrderApi->submit: #{e}"
|
1147
|
+
end
|
1148
|
+
```
|
1149
|
+
|
1150
|
+
### Parameters
|
1151
|
+
|
1152
|
+
Name | Type | Description | Notes
|
1153
|
+
------------- | ------------- | ------------- | -------------
|
1154
|
+
**buyer_id** | **String**| ID of the buyer. |
|
1155
|
+
**order_id** | **String**| ID of the order. |
|
1156
|
+
|
1157
|
+
### Return type
|
1158
|
+
|
1159
|
+
[**Order**](Order.md)
|
1160
|
+
|
1161
|
+
### Authorization
|
1162
|
+
|
1163
|
+
[oauth2](../README.md#oauth2)
|
1164
|
+
|
1165
|
+
### HTTP request headers
|
1166
|
+
|
1167
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
1168
|
+
- **Accept**: application/json
|
1169
|
+
|
1170
|
+
|
1171
|
+
|
1172
|
+
# **transfer_temp_user_order**
|
1173
|
+
> transfer_temp_user_order(buyer_id, temp_user_token)
|
1174
|
+
|
1175
|
+
|
1176
|
+
|
1177
|
+
### Example
|
1178
|
+
```ruby
|
1179
|
+
# load the gem
|
1180
|
+
require 'order_cloud'
|
1181
|
+
# setup authorization
|
1182
|
+
OrderCloud.configure do |config|
|
1183
|
+
# Configure OAuth2 access token for authorization: oauth2
|
1184
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1185
|
+
end
|
1186
|
+
|
1187
|
+
api_instance = OrderCloud::OrderApi.new
|
1188
|
+
|
1189
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
1190
|
+
|
1191
|
+
temp_user_token = "temp_user_token_example" # String | Temp user token of the order.
|
1192
|
+
|
1193
|
+
|
1194
|
+
begin
|
1195
|
+
api_instance.transfer_temp_user_order(buyer_id, temp_user_token)
|
1196
|
+
rescue OrderCloud::ApiError => e
|
1197
|
+
puts "Exception when calling OrderApi->transfer_temp_user_order: #{e}"
|
1198
|
+
end
|
1199
|
+
```
|
1200
|
+
|
1201
|
+
### Parameters
|
1202
|
+
|
1203
|
+
Name | Type | Description | Notes
|
1204
|
+
------------- | ------------- | ------------- | -------------
|
1205
|
+
**buyer_id** | **String**| ID of the buyer. |
|
1206
|
+
**temp_user_token** | **String**| Temp user token of the order. |
|
1207
|
+
|
1208
|
+
### Return type
|
1209
|
+
|
1210
|
+
nil (empty response body)
|
1211
|
+
|
1212
|
+
### Authorization
|
1213
|
+
|
1214
|
+
[oauth2](../README.md#oauth2)
|
1215
|
+
|
1216
|
+
### HTTP request headers
|
1217
|
+
|
1218
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
1219
|
+
- **Accept**: application/json
|
1220
|
+
|
1221
|
+
|
1222
|
+
|
1223
|
+
# **update**
|
1224
|
+
> Order update(buyer_id, order_id, order)
|
1225
|
+
|
1226
|
+
|
1227
|
+
|
1228
|
+
### Example
|
1229
|
+
```ruby
|
1230
|
+
# load the gem
|
1231
|
+
require 'order_cloud'
|
1232
|
+
# setup authorization
|
1233
|
+
OrderCloud.configure do |config|
|
1234
|
+
# Configure OAuth2 access token for authorization: oauth2
|
1235
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1236
|
+
end
|
1237
|
+
|
1238
|
+
api_instance = OrderCloud::OrderApi.new
|
1239
|
+
|
1240
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
1241
|
+
|
1242
|
+
order_id = "order_id_example" # String | ID of the order.
|
1243
|
+
|
1244
|
+
order = OrderCloud::Order.new # Order |
|
1245
|
+
|
1246
|
+
|
1247
|
+
begin
|
1248
|
+
result = api_instance.update(buyer_id, order_id, order)
|
1249
|
+
p result
|
1250
|
+
rescue OrderCloud::ApiError => e
|
1251
|
+
puts "Exception when calling OrderApi->update: #{e}"
|
1252
|
+
end
|
1253
|
+
```
|
1254
|
+
|
1255
|
+
### Parameters
|
1256
|
+
|
1257
|
+
Name | Type | Description | Notes
|
1258
|
+
------------- | ------------- | ------------- | -------------
|
1259
|
+
**buyer_id** | **String**| ID of the buyer. |
|
1260
|
+
**order_id** | **String**| ID of the order. |
|
1261
|
+
**order** | [**Order**](Order.md)| |
|
1262
|
+
|
1263
|
+
### Return type
|
1264
|
+
|
1265
|
+
[**Order**](Order.md)
|
1266
|
+
|
1267
|
+
### Authorization
|
1268
|
+
|
1269
|
+
[oauth2](../README.md#oauth2)
|
1270
|
+
|
1271
|
+
### HTTP request headers
|
1272
|
+
|
1273
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
1274
|
+
- **Accept**: application/json
|
1275
|
+
|
1276
|
+
|
1277
|
+
|