order_cloud 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -0,0 +1,11 @@
|
|
1
|
+
# OrderCloud::PromotionAssignment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**promotion_id** | **String** | | [optional]
|
7
|
+
**buyer_id** | **String** | | [optional]
|
8
|
+
**user_id** | **String** | | [optional]
|
9
|
+
**user_group_id** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# OrderCloud::SecurityProfile
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | | [optional]
|
7
|
+
**is_dev_profile** | **BOOLEAN** | | [optional]
|
8
|
+
**name** | **String** | | [optional]
|
9
|
+
**roles** | **Array<String>** | | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,290 @@
|
|
1
|
+
# OrderCloud::SecurityProfileApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.ordercloud.io/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**delete_assignment**](SecurityProfileApi.md#delete_assignment) | **DELETE** /SecurityProfiles/{securityProfileID}/assignments |
|
8
|
+
[**get**](SecurityProfileApi.md#get) | **GET** /SecurityProfiles/{securityProfileID} |
|
9
|
+
[**list**](SecurityProfileApi.md#list) | **GET** /SecurityProfiles |
|
10
|
+
[**list_assignments**](SecurityProfileApi.md#list_assignments) | **GET** /SecurityProfiles/assignments |
|
11
|
+
[**save_assignment**](SecurityProfileApi.md#save_assignment) | **POST** /SecurityProfiles/assignments |
|
12
|
+
|
13
|
+
|
14
|
+
# **delete_assignment**
|
15
|
+
> delete_assignment(buyer_id, security_profile_id, opts)
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'order_cloud'
|
23
|
+
# setup authorization
|
24
|
+
OrderCloud.configure do |config|
|
25
|
+
# Configure OAuth2 access token for authorization: oauth2
|
26
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = OrderCloud::SecurityProfileApi.new
|
30
|
+
|
31
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
32
|
+
|
33
|
+
security_profile_id = "security_profile_id_example" # String | ID of the security profile.
|
34
|
+
|
35
|
+
opts = {
|
36
|
+
user_id: "user_id_example", # String | ID of the user.
|
37
|
+
user_group_id: "user_group_id_example" # String | ID of the user group.
|
38
|
+
}
|
39
|
+
|
40
|
+
begin
|
41
|
+
api_instance.delete_assignment(buyer_id, security_profile_id, opts)
|
42
|
+
rescue OrderCloud::ApiError => e
|
43
|
+
puts "Exception when calling SecurityProfileApi->delete_assignment: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**buyer_id** | **String**| ID of the buyer. |
|
52
|
+
**security_profile_id** | **String**| ID of the security profile. |
|
53
|
+
**user_id** | **String**| ID of the user. | [optional]
|
54
|
+
**user_group_id** | **String**| ID of the user group. | [optional]
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
nil (empty response body)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[oauth2](../README.md#oauth2)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
67
|
+
- **Accept**: application/json
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
# **get**
|
72
|
+
> SecurityProfile get(security_profile_id)
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
### Example
|
77
|
+
```ruby
|
78
|
+
# load the gem
|
79
|
+
require 'order_cloud'
|
80
|
+
# setup authorization
|
81
|
+
OrderCloud.configure do |config|
|
82
|
+
# Configure OAuth2 access token for authorization: oauth2
|
83
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
84
|
+
end
|
85
|
+
|
86
|
+
api_instance = OrderCloud::SecurityProfileApi.new
|
87
|
+
|
88
|
+
security_profile_id = "security_profile_id_example" # String | ID of the security profile.
|
89
|
+
|
90
|
+
|
91
|
+
begin
|
92
|
+
result = api_instance.get(security_profile_id)
|
93
|
+
p result
|
94
|
+
rescue OrderCloud::ApiError => e
|
95
|
+
puts "Exception when calling SecurityProfileApi->get: #{e}"
|
96
|
+
end
|
97
|
+
```
|
98
|
+
|
99
|
+
### Parameters
|
100
|
+
|
101
|
+
Name | Type | Description | Notes
|
102
|
+
------------- | ------------- | ------------- | -------------
|
103
|
+
**security_profile_id** | **String**| ID of the security profile. |
|
104
|
+
|
105
|
+
### Return type
|
106
|
+
|
107
|
+
[**SecurityProfile**](SecurityProfile.md)
|
108
|
+
|
109
|
+
### Authorization
|
110
|
+
|
111
|
+
[oauth2](../README.md#oauth2)
|
112
|
+
|
113
|
+
### HTTP request headers
|
114
|
+
|
115
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
116
|
+
- **Accept**: application/json
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
# **list**
|
121
|
+
> ListSecurityProfile list(opts)
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
### Example
|
126
|
+
```ruby
|
127
|
+
# load the gem
|
128
|
+
require 'order_cloud'
|
129
|
+
# setup authorization
|
130
|
+
OrderCloud.configure do |config|
|
131
|
+
# Configure OAuth2 access token for authorization: oauth2
|
132
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
133
|
+
end
|
134
|
+
|
135
|
+
api_instance = OrderCloud::SecurityProfileApi.new
|
136
|
+
|
137
|
+
opts = {
|
138
|
+
search: "search_example", # String | Word or phrase to search for.
|
139
|
+
search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
|
140
|
+
sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
|
141
|
+
page: 56, # Integer | Page of results to return. Default: 1
|
142
|
+
page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
|
143
|
+
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.???'
|
144
|
+
}
|
145
|
+
|
146
|
+
begin
|
147
|
+
result = api_instance.list(opts)
|
148
|
+
p result
|
149
|
+
rescue OrderCloud::ApiError => e
|
150
|
+
puts "Exception when calling SecurityProfileApi->list: #{e}"
|
151
|
+
end
|
152
|
+
```
|
153
|
+
|
154
|
+
### Parameters
|
155
|
+
|
156
|
+
Name | Type | Description | Notes
|
157
|
+
------------- | ------------- | ------------- | -------------
|
158
|
+
**search** | **String**| Word or phrase to search for. | [optional]
|
159
|
+
**search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
|
160
|
+
**sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
|
161
|
+
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
162
|
+
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
163
|
+
**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]
|
164
|
+
|
165
|
+
### Return type
|
166
|
+
|
167
|
+
[**ListSecurityProfile**](ListSecurityProfile.md)
|
168
|
+
|
169
|
+
### Authorization
|
170
|
+
|
171
|
+
[oauth2](../README.md#oauth2)
|
172
|
+
|
173
|
+
### HTTP request headers
|
174
|
+
|
175
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
176
|
+
- **Accept**: application/json
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
# **list_assignments**
|
181
|
+
> ListSecurityProfileAssignment list_assignments(buyer_id, opts)
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
### Example
|
186
|
+
```ruby
|
187
|
+
# load the gem
|
188
|
+
require 'order_cloud'
|
189
|
+
# setup authorization
|
190
|
+
OrderCloud.configure do |config|
|
191
|
+
# Configure OAuth2 access token for authorization: oauth2
|
192
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
193
|
+
end
|
194
|
+
|
195
|
+
api_instance = OrderCloud::SecurityProfileApi.new
|
196
|
+
|
197
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
198
|
+
|
199
|
+
opts = {
|
200
|
+
security_profile_id: "security_profile_id_example", # String | ID of the security profile.
|
201
|
+
user_id: "user_id_example", # String | ID of the user.
|
202
|
+
user_group_id: "user_group_id_example", # String | ID of the user group.
|
203
|
+
level: "level_example", # String | Level of the security profile.
|
204
|
+
page: 56, # Integer | Page of results to return. Default: 1
|
205
|
+
page_size: 56 # Integer | Number of results to return per page. Default: 20, max: 100.
|
206
|
+
}
|
207
|
+
|
208
|
+
begin
|
209
|
+
result = api_instance.list_assignments(buyer_id, opts)
|
210
|
+
p result
|
211
|
+
rescue OrderCloud::ApiError => e
|
212
|
+
puts "Exception when calling SecurityProfileApi->list_assignments: #{e}"
|
213
|
+
end
|
214
|
+
```
|
215
|
+
|
216
|
+
### Parameters
|
217
|
+
|
218
|
+
Name | Type | Description | Notes
|
219
|
+
------------- | ------------- | ------------- | -------------
|
220
|
+
**buyer_id** | **String**| ID of the buyer. |
|
221
|
+
**security_profile_id** | **String**| ID of the security profile. | [optional]
|
222
|
+
**user_id** | **String**| ID of the user. | [optional]
|
223
|
+
**user_group_id** | **String**| ID of the user group. | [optional]
|
224
|
+
**level** | **String**| Level of the security profile. | [optional]
|
225
|
+
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
226
|
+
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
227
|
+
|
228
|
+
### Return type
|
229
|
+
|
230
|
+
[**ListSecurityProfileAssignment**](ListSecurityProfileAssignment.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
|
+
# **save_assignment**
|
244
|
+
> save_assignment(assignment)
|
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::SecurityProfileApi.new
|
259
|
+
|
260
|
+
assignment = OrderCloud::SecurityProfileAssignment.new # SecurityProfileAssignment |
|
261
|
+
|
262
|
+
|
263
|
+
begin
|
264
|
+
api_instance.save_assignment(assignment)
|
265
|
+
rescue OrderCloud::ApiError => e
|
266
|
+
puts "Exception when calling SecurityProfileApi->save_assignment: #{e}"
|
267
|
+
end
|
268
|
+
```
|
269
|
+
|
270
|
+
### Parameters
|
271
|
+
|
272
|
+
Name | Type | Description | Notes
|
273
|
+
------------- | ------------- | ------------- | -------------
|
274
|
+
**assignment** | [**SecurityProfileAssignment**](SecurityProfileAssignment.md)| |
|
275
|
+
|
276
|
+
### Return type
|
277
|
+
|
278
|
+
nil (empty response body)
|
279
|
+
|
280
|
+
### Authorization
|
281
|
+
|
282
|
+
[oauth2](../README.md#oauth2)
|
283
|
+
|
284
|
+
### HTTP request headers
|
285
|
+
|
286
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
287
|
+
- **Accept**: application/json
|
288
|
+
|
289
|
+
|
290
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# OrderCloud::SecurityProfileAssignment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**security_profile_id** | **String** | | [optional]
|
7
|
+
**buyer_id** | **String** | | [optional]
|
8
|
+
**user_id** | **String** | | [optional]
|
9
|
+
**user_group_id** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/Shipment.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# OrderCloud::Shipment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | | [optional]
|
7
|
+
**shipper** | **String** | | [optional]
|
8
|
+
**date_shipped** | **String** | | [optional]
|
9
|
+
**tracking_number** | **String** | | [optional]
|
10
|
+
**cost** | **Float** | | [optional]
|
11
|
+
**items** | [**Array<ShipmentItem>**](ShipmentItem.md) | | [optional]
|
12
|
+
**xp** | **Object** | | [optional]
|
13
|
+
|
14
|
+
|
data/docs/ShipmentApi.md
ADDED
@@ -0,0 +1,459 @@
|
|
1
|
+
# OrderCloud::ShipmentApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.ordercloud.io/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](ShipmentApi.md#create) | **POST** /buyers/{buyerID}/shipments |
|
8
|
+
[**delete**](ShipmentApi.md#delete) | **DELETE** /buyers/{buyerID}/shipments/{shipmentID} |
|
9
|
+
[**delete_item**](ShipmentApi.md#delete_item) | **DELETE** /buyers/{buyerID}/shipments/{shipmentID}/items/{orderID}/{lineItemID} |
|
10
|
+
[**get**](ShipmentApi.md#get) | **GET** /buyers/{buyerID}/shipments/{shipmentID} |
|
11
|
+
[**list**](ShipmentApi.md#list) | **GET** /buyers/{buyerID}/shipments |
|
12
|
+
[**patch**](ShipmentApi.md#patch) | **PATCH** /buyers/{buyerID}/shipments/{shipmentID} |
|
13
|
+
[**save_item**](ShipmentApi.md#save_item) | **POST** /buyers/{buyerID}/shipments/{shipmentID}/items |
|
14
|
+
[**update**](ShipmentApi.md#update) | **PUT** /buyers/{buyerID}/shipments/{shipmentID} |
|
15
|
+
|
16
|
+
|
17
|
+
# **create**
|
18
|
+
> Shipment create(buyer_id, shipment)
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
### Example
|
23
|
+
```ruby
|
24
|
+
# load the gem
|
25
|
+
require 'order_cloud'
|
26
|
+
# setup authorization
|
27
|
+
OrderCloud.configure do |config|
|
28
|
+
# Configure OAuth2 access token for authorization: oauth2
|
29
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = OrderCloud::ShipmentApi.new
|
33
|
+
|
34
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
35
|
+
|
36
|
+
shipment = OrderCloud::Shipment.new # Shipment |
|
37
|
+
|
38
|
+
|
39
|
+
begin
|
40
|
+
result = api_instance.create(buyer_id, shipment)
|
41
|
+
p result
|
42
|
+
rescue OrderCloud::ApiError => e
|
43
|
+
puts "Exception when calling ShipmentApi->create: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**buyer_id** | **String**| ID of the buyer. |
|
52
|
+
**shipment** | [**Shipment**](Shipment.md)| |
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
[**Shipment**](Shipment.md)
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[oauth2](../README.md#oauth2)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
65
|
+
- **Accept**: application/json
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# **delete**
|
70
|
+
> delete(buyer_id, shipment_id)
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
### Example
|
75
|
+
```ruby
|
76
|
+
# load the gem
|
77
|
+
require 'order_cloud'
|
78
|
+
# setup authorization
|
79
|
+
OrderCloud.configure do |config|
|
80
|
+
# Configure OAuth2 access token for authorization: oauth2
|
81
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
82
|
+
end
|
83
|
+
|
84
|
+
api_instance = OrderCloud::ShipmentApi.new
|
85
|
+
|
86
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
87
|
+
|
88
|
+
shipment_id = "shipment_id_example" # String | ID of the shipment.
|
89
|
+
|
90
|
+
|
91
|
+
begin
|
92
|
+
api_instance.delete(buyer_id, shipment_id)
|
93
|
+
rescue OrderCloud::ApiError => e
|
94
|
+
puts "Exception when calling ShipmentApi->delete: #{e}"
|
95
|
+
end
|
96
|
+
```
|
97
|
+
|
98
|
+
### Parameters
|
99
|
+
|
100
|
+
Name | Type | Description | Notes
|
101
|
+
------------- | ------------- | ------------- | -------------
|
102
|
+
**buyer_id** | **String**| ID of the buyer. |
|
103
|
+
**shipment_id** | **String**| ID of the shipment. |
|
104
|
+
|
105
|
+
### Return type
|
106
|
+
|
107
|
+
nil (empty response body)
|
108
|
+
|
109
|
+
### Authorization
|
110
|
+
|
111
|
+
[oauth2](../README.md#oauth2)
|
112
|
+
|
113
|
+
### HTTP request headers
|
114
|
+
|
115
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
116
|
+
- **Accept**: application/json
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
# **delete_item**
|
121
|
+
> Shipment delete_item(buyer_id, shipment_id, order_id, line_item_id)
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
### Example
|
126
|
+
```ruby
|
127
|
+
# load the gem
|
128
|
+
require 'order_cloud'
|
129
|
+
# setup authorization
|
130
|
+
OrderCloud.configure do |config|
|
131
|
+
# Configure OAuth2 access token for authorization: oauth2
|
132
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
133
|
+
end
|
134
|
+
|
135
|
+
api_instance = OrderCloud::ShipmentApi.new
|
136
|
+
|
137
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
138
|
+
|
139
|
+
shipment_id = "shipment_id_example" # String | ID of the shipment.
|
140
|
+
|
141
|
+
order_id = "order_id_example" # String | ID of the order.
|
142
|
+
|
143
|
+
line_item_id = "line_item_id_example" # String | ID of the line item.
|
144
|
+
|
145
|
+
|
146
|
+
begin
|
147
|
+
result = api_instance.delete_item(buyer_id, shipment_id, order_id, line_item_id)
|
148
|
+
p result
|
149
|
+
rescue OrderCloud::ApiError => e
|
150
|
+
puts "Exception when calling ShipmentApi->delete_item: #{e}"
|
151
|
+
end
|
152
|
+
```
|
153
|
+
|
154
|
+
### Parameters
|
155
|
+
|
156
|
+
Name | Type | Description | Notes
|
157
|
+
------------- | ------------- | ------------- | -------------
|
158
|
+
**buyer_id** | **String**| ID of the buyer. |
|
159
|
+
**shipment_id** | **String**| ID of the shipment. |
|
160
|
+
**order_id** | **String**| ID of the order. |
|
161
|
+
**line_item_id** | **String**| ID of the line item. |
|
162
|
+
|
163
|
+
### Return type
|
164
|
+
|
165
|
+
[**Shipment**](Shipment.md)
|
166
|
+
|
167
|
+
### Authorization
|
168
|
+
|
169
|
+
[oauth2](../README.md#oauth2)
|
170
|
+
|
171
|
+
### HTTP request headers
|
172
|
+
|
173
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
174
|
+
- **Accept**: application/json
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
# **get**
|
179
|
+
> Shipment get(buyer_id, shipment_id)
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
### Example
|
184
|
+
```ruby
|
185
|
+
# load the gem
|
186
|
+
require 'order_cloud'
|
187
|
+
# setup authorization
|
188
|
+
OrderCloud.configure do |config|
|
189
|
+
# Configure OAuth2 access token for authorization: oauth2
|
190
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
191
|
+
end
|
192
|
+
|
193
|
+
api_instance = OrderCloud::ShipmentApi.new
|
194
|
+
|
195
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
196
|
+
|
197
|
+
shipment_id = "shipment_id_example" # String | ID of the shipment.
|
198
|
+
|
199
|
+
|
200
|
+
begin
|
201
|
+
result = api_instance.get(buyer_id, shipment_id)
|
202
|
+
p result
|
203
|
+
rescue OrderCloud::ApiError => e
|
204
|
+
puts "Exception when calling ShipmentApi->get: #{e}"
|
205
|
+
end
|
206
|
+
```
|
207
|
+
|
208
|
+
### Parameters
|
209
|
+
|
210
|
+
Name | Type | Description | Notes
|
211
|
+
------------- | ------------- | ------------- | -------------
|
212
|
+
**buyer_id** | **String**| ID of the buyer. |
|
213
|
+
**shipment_id** | **String**| ID of the shipment. |
|
214
|
+
|
215
|
+
### Return type
|
216
|
+
|
217
|
+
[**Shipment**](Shipment.md)
|
218
|
+
|
219
|
+
### Authorization
|
220
|
+
|
221
|
+
[oauth2](../README.md#oauth2)
|
222
|
+
|
223
|
+
### HTTP request headers
|
224
|
+
|
225
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
226
|
+
- **Accept**: application/json
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
# **list**
|
231
|
+
> ListShipment list(buyer_id, opts)
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
### Example
|
236
|
+
```ruby
|
237
|
+
# load the gem
|
238
|
+
require 'order_cloud'
|
239
|
+
# setup authorization
|
240
|
+
OrderCloud.configure do |config|
|
241
|
+
# Configure OAuth2 access token for authorization: oauth2
|
242
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
243
|
+
end
|
244
|
+
|
245
|
+
api_instance = OrderCloud::ShipmentApi.new
|
246
|
+
|
247
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
248
|
+
|
249
|
+
opts = {
|
250
|
+
order_id: "order_id_example", # String | ID of the order.
|
251
|
+
search: "search_example", # String | Word or phrase to search for.
|
252
|
+
search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
|
253
|
+
sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
|
254
|
+
page: 56, # Integer | Page of results to return. Default: 1
|
255
|
+
page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
|
256
|
+
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.???'
|
257
|
+
}
|
258
|
+
|
259
|
+
begin
|
260
|
+
result = api_instance.list(buyer_id, opts)
|
261
|
+
p result
|
262
|
+
rescue OrderCloud::ApiError => e
|
263
|
+
puts "Exception when calling ShipmentApi->list: #{e}"
|
264
|
+
end
|
265
|
+
```
|
266
|
+
|
267
|
+
### Parameters
|
268
|
+
|
269
|
+
Name | Type | Description | Notes
|
270
|
+
------------- | ------------- | ------------- | -------------
|
271
|
+
**buyer_id** | **String**| ID of the buyer. |
|
272
|
+
**order_id** | **String**| ID of the order. | [optional]
|
273
|
+
**search** | **String**| Word or phrase to search for. | [optional]
|
274
|
+
**search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
|
275
|
+
**sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
|
276
|
+
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
277
|
+
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
278
|
+
**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]
|
279
|
+
|
280
|
+
### Return type
|
281
|
+
|
282
|
+
[**ListShipment**](ListShipment.md)
|
283
|
+
|
284
|
+
### Authorization
|
285
|
+
|
286
|
+
[oauth2](../README.md#oauth2)
|
287
|
+
|
288
|
+
### HTTP request headers
|
289
|
+
|
290
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
291
|
+
- **Accept**: application/json
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
# **patch**
|
296
|
+
> Shipment patch(buyer_id, shipment_id, shipment)
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
### Example
|
301
|
+
```ruby
|
302
|
+
# load the gem
|
303
|
+
require 'order_cloud'
|
304
|
+
# setup authorization
|
305
|
+
OrderCloud.configure do |config|
|
306
|
+
# Configure OAuth2 access token for authorization: oauth2
|
307
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
308
|
+
end
|
309
|
+
|
310
|
+
api_instance = OrderCloud::ShipmentApi.new
|
311
|
+
|
312
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
313
|
+
|
314
|
+
shipment_id = "shipment_id_example" # String | ID of the shipment.
|
315
|
+
|
316
|
+
shipment = OrderCloud::Shipment.new # Shipment |
|
317
|
+
|
318
|
+
|
319
|
+
begin
|
320
|
+
result = api_instance.patch(buyer_id, shipment_id, shipment)
|
321
|
+
p result
|
322
|
+
rescue OrderCloud::ApiError => e
|
323
|
+
puts "Exception when calling ShipmentApi->patch: #{e}"
|
324
|
+
end
|
325
|
+
```
|
326
|
+
|
327
|
+
### Parameters
|
328
|
+
|
329
|
+
Name | Type | Description | Notes
|
330
|
+
------------- | ------------- | ------------- | -------------
|
331
|
+
**buyer_id** | **String**| ID of the buyer. |
|
332
|
+
**shipment_id** | **String**| ID of the shipment. |
|
333
|
+
**shipment** | [**Shipment**](Shipment.md)| |
|
334
|
+
|
335
|
+
### Return type
|
336
|
+
|
337
|
+
[**Shipment**](Shipment.md)
|
338
|
+
|
339
|
+
### Authorization
|
340
|
+
|
341
|
+
[oauth2](../README.md#oauth2)
|
342
|
+
|
343
|
+
### HTTP request headers
|
344
|
+
|
345
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
346
|
+
- **Accept**: application/json
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
# **save_item**
|
351
|
+
> Shipment save_item(buyer_id, shipment_id, item)
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
### Example
|
356
|
+
```ruby
|
357
|
+
# load the gem
|
358
|
+
require 'order_cloud'
|
359
|
+
# setup authorization
|
360
|
+
OrderCloud.configure do |config|
|
361
|
+
# Configure OAuth2 access token for authorization: oauth2
|
362
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
363
|
+
end
|
364
|
+
|
365
|
+
api_instance = OrderCloud::ShipmentApi.new
|
366
|
+
|
367
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
368
|
+
|
369
|
+
shipment_id = "shipment_id_example" # String | ID of the shipment.
|
370
|
+
|
371
|
+
item = OrderCloud::ShipmentItem.new # ShipmentItem |
|
372
|
+
|
373
|
+
|
374
|
+
begin
|
375
|
+
result = api_instance.save_item(buyer_id, shipment_id, item)
|
376
|
+
p result
|
377
|
+
rescue OrderCloud::ApiError => e
|
378
|
+
puts "Exception when calling ShipmentApi->save_item: #{e}"
|
379
|
+
end
|
380
|
+
```
|
381
|
+
|
382
|
+
### Parameters
|
383
|
+
|
384
|
+
Name | Type | Description | Notes
|
385
|
+
------------- | ------------- | ------------- | -------------
|
386
|
+
**buyer_id** | **String**| ID of the buyer. |
|
387
|
+
**shipment_id** | **String**| ID of the shipment. |
|
388
|
+
**item** | [**ShipmentItem**](ShipmentItem.md)| |
|
389
|
+
|
390
|
+
### Return type
|
391
|
+
|
392
|
+
[**Shipment**](Shipment.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
|
+
# **update**
|
406
|
+
> Shipment update(buyer_id, shipment_id, shipment)
|
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::ShipmentApi.new
|
421
|
+
|
422
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
423
|
+
|
424
|
+
shipment_id = "shipment_id_example" # String | ID of the shipment.
|
425
|
+
|
426
|
+
shipment = OrderCloud::Shipment.new # Shipment |
|
427
|
+
|
428
|
+
|
429
|
+
begin
|
430
|
+
result = api_instance.update(buyer_id, shipment_id, shipment)
|
431
|
+
p result
|
432
|
+
rescue OrderCloud::ApiError => e
|
433
|
+
puts "Exception when calling ShipmentApi->update: #{e}"
|
434
|
+
end
|
435
|
+
```
|
436
|
+
|
437
|
+
### Parameters
|
438
|
+
|
439
|
+
Name | Type | Description | Notes
|
440
|
+
------------- | ------------- | ------------- | -------------
|
441
|
+
**buyer_id** | **String**| ID of the buyer. |
|
442
|
+
**shipment_id** | **String**| ID of the shipment. |
|
443
|
+
**shipment** | [**Shipment**](Shipment.md)| |
|
444
|
+
|
445
|
+
### Return type
|
446
|
+
|
447
|
+
[**Shipment**](Shipment.md)
|
448
|
+
|
449
|
+
### Authorization
|
450
|
+
|
451
|
+
[oauth2](../README.md#oauth2)
|
452
|
+
|
453
|
+
### HTTP request headers
|
454
|
+
|
455
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
456
|
+
- **Accept**: application/json
|
457
|
+
|
458
|
+
|
459
|
+
|