order_cloud 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +39 -14
- data/Rakefile +1 -1
- data/docs/AdminUserGroupApi.md +482 -0
- data/docs/CategoryApi.md +4 -3
- data/docs/ListMessageCCListenerAssignment.md +9 -0
- data/docs/{ListApiClient.md → ListMessageConfig.md} +2 -2
- data/docs/{ListDevAccessibleCompany.md → ListMessageSender.md} +2 -2
- data/docs/ListMessageSenderAssignment.md +9 -0
- data/docs/MessageCCListenerAssignment.md +13 -0
- data/docs/MessageConfig.md +11 -0
- data/docs/MessageSender.md +10 -0
- data/docs/MessageSenderAssignment.md +12 -0
- data/docs/MessageSendersApi.md +398 -0
- data/docs/Product.md +4 -0
- data/docs/ProductApi.md +4 -3
- data/docs/ProductAssignment.md +2 -2
- data/docs/SecurityProfileApi.md +5 -5
- data/docs/User.md +1 -0
- data/docs/UserApi.md +4 -3
- data/docs/UserGroupApi.md +4 -3
- data/git_push.sh +0 -0
- data/lib/order_cloud.rb +11 -4
- data/lib/order_cloud/api/address_api.rb +1 -1
- data/lib/order_cloud/api/admin_address_api.rb +1 -1
- data/lib/order_cloud/api/admin_user_api.rb +1 -1
- data/lib/order_cloud/api/admin_user_group_api.rb +578 -0
- data/lib/order_cloud/api/approval_rule_api.rb +1 -1
- data/lib/order_cloud/api/buyer_api.rb +1 -1
- data/lib/order_cloud/api/category_api.rb +7 -6
- data/lib/order_cloud/api/cost_center_api.rb +1 -1
- data/lib/order_cloud/api/credit_card_api.rb +1 -1
- data/lib/order_cloud/api/email_template_api.rb +1 -1
- data/lib/order_cloud/api/line_item_api.rb +1 -1
- data/lib/order_cloud/api/me_api.rb +1 -1
- data/lib/order_cloud/api/message_senders_api.rb +484 -0
- data/lib/order_cloud/api/order_api.rb +1 -1
- data/lib/order_cloud/api/password_reset_api.rb +1 -1
- data/lib/order_cloud/api/payment_api.rb +1 -1
- data/lib/order_cloud/api/price_schedule_api.rb +1 -1
- data/lib/order_cloud/api/product_api.rb +7 -6
- data/lib/order_cloud/api/promotion_api.rb +1 -1
- data/lib/order_cloud/api/security_profile_api.rb +6 -6
- data/lib/order_cloud/api/shipment_api.rb +1 -1
- data/lib/order_cloud/api/spec_api.rb +1 -1
- data/lib/order_cloud/api/spending_account_api.rb +1 -1
- data/lib/order_cloud/api/user_api.rb +7 -6
- data/lib/order_cloud/api/user_group_api.rb +7 -6
- data/lib/order_cloud/api_auth.rb +1 -1
- data/lib/order_cloud/api_client.rb +1 -1
- data/lib/order_cloud/api_error.rb +1 -1
- data/lib/order_cloud/configuration.rb +1 -1
- data/lib/order_cloud/models/access_token.rb +1 -1
- data/lib/order_cloud/models/address.rb +1 -1
- data/lib/order_cloud/models/address_assignment.rb +1 -1
- data/lib/order_cloud/models/admin_company.rb +1 -1
- data/lib/order_cloud/models/admin_model_on_view.rb +1 -1
- data/lib/order_cloud/models/approval_rule.rb +1 -1
- data/lib/order_cloud/models/base_spec.rb +1 -1
- data/lib/order_cloud/models/buyer.rb +1 -1
- data/lib/order_cloud/models/buyer_address.rb +1 -1
- data/lib/order_cloud/models/buyer_credit_card.rb +1 -1
- data/lib/order_cloud/models/buyer_product.rb +1 -1
- data/lib/order_cloud/models/buyer_spec.rb +1 -1
- data/lib/order_cloud/models/category.rb +1 -1
- data/lib/order_cloud/models/category_assignment.rb +1 -1
- data/lib/order_cloud/models/category_product_assignment.rb +1 -1
- data/lib/order_cloud/models/cost_center.rb +1 -1
- data/lib/order_cloud/models/cost_center_assignment.rb +1 -1
- data/lib/order_cloud/models/credit_card.rb +1 -1
- data/lib/order_cloud/models/credit_card_assignment.rb +1 -1
- data/lib/order_cloud/models/email_template.rb +1 -1
- data/lib/order_cloud/models/file.rb +1 -1
- data/lib/order_cloud/models/impersonate_token_request.rb +1 -1
- data/lib/order_cloud/models/inventory.rb +1 -1
- data/lib/order_cloud/models/line_item.rb +1 -1
- data/lib/order_cloud/models/line_item_spec.rb +1 -1
- data/lib/order_cloud/models/list_address.rb +1 -1
- data/lib/order_cloud/models/list_address_assignment.rb +1 -1
- data/lib/order_cloud/models/list_admin_company.rb +1 -1
- data/lib/order_cloud/models/list_approval_rule.rb +1 -1
- data/lib/order_cloud/models/list_buyer.rb +1 -1
- data/lib/order_cloud/models/list_buyer_address.rb +1 -1
- data/lib/order_cloud/models/list_buyer_credit_card.rb +1 -1
- data/lib/order_cloud/models/list_buyer_product.rb +1 -1
- data/lib/order_cloud/models/list_buyer_spec.rb +1 -1
- data/lib/order_cloud/models/list_category.rb +1 -1
- data/lib/order_cloud/models/list_category_assignment.rb +1 -1
- data/lib/order_cloud/models/list_category_product_assignment.rb +1 -1
- data/lib/order_cloud/models/list_cost_center.rb +1 -1
- data/lib/order_cloud/models/list_cost_center_assignment.rb +1 -1
- data/lib/order_cloud/models/list_credit_card.rb +1 -1
- data/lib/order_cloud/models/list_credit_card_assignment.rb +1 -1
- data/lib/order_cloud/models/list_file.rb +1 -1
- data/lib/order_cloud/models/list_inventory.rb +1 -1
- data/lib/order_cloud/models/list_line_item.rb +1 -1
- data/lib/order_cloud/models/list_message_cc_listener_assignment.rb +210 -0
- data/lib/order_cloud/models/{list_api_client.rb → list_message_config.rb} +3 -3
- data/lib/order_cloud/models/{list_dev_accessible_company.rb → list_message_sender.rb} +3 -3
- data/lib/order_cloud/models/list_message_sender_assignment.rb +210 -0
- data/lib/order_cloud/models/list_order.rb +1 -1
- data/lib/order_cloud/models/list_order_approval.rb +1 -1
- data/lib/order_cloud/models/list_order_promotion.rb +1 -1
- data/lib/order_cloud/models/list_payment.rb +1 -1
- data/lib/order_cloud/models/list_price_schedule.rb +1 -1
- data/lib/order_cloud/models/list_product.rb +1 -1
- data/lib/order_cloud/models/list_product_assignment.rb +1 -1
- data/lib/order_cloud/models/list_promotion.rb +1 -1
- data/lib/order_cloud/models/list_promotion_assignment.rb +1 -1
- data/lib/order_cloud/models/list_security_profile.rb +1 -1
- data/lib/order_cloud/models/list_security_profile_assignment.rb +1 -1
- data/lib/order_cloud/models/list_shipment.rb +1 -1
- data/lib/order_cloud/models/list_spec.rb +1 -1
- data/lib/order_cloud/models/list_spec_option.rb +1 -1
- data/lib/order_cloud/models/list_spec_product_assignment.rb +1 -1
- data/lib/order_cloud/models/list_spending_account.rb +1 -1
- data/lib/order_cloud/models/list_spending_account_assignment.rb +1 -1
- data/lib/order_cloud/models/list_user.rb +1 -1
- data/lib/order_cloud/models/list_user_group.rb +1 -1
- data/lib/order_cloud/models/list_user_group_assignment.rb +1 -1
- data/lib/order_cloud/models/list_variant.rb +1 -1
- data/lib/order_cloud/models/list_web_hook.rb +1 -1
- data/lib/order_cloud/models/list_web_hook_route.rb +1 -1
- data/lib/order_cloud/models/list_xp_index.rb +1 -1
- data/lib/order_cloud/models/message_cc_listener_assignment.rb +244 -0
- data/lib/order_cloud/models/message_config.rb +226 -0
- data/lib/order_cloud/models/message_sender.rb +217 -0
- data/lib/order_cloud/models/message_sender_assignment.rb +235 -0
- data/lib/order_cloud/models/meta.rb +1 -1
- data/lib/order_cloud/models/order.rb +1 -1
- data/lib/order_cloud/models/order_approval.rb +1 -1
- data/lib/order_cloud/models/order_promotion.rb +1 -1
- data/lib/order_cloud/models/password_reset.rb +1 -1
- data/lib/order_cloud/models/password_reset_request.rb +1 -1
- data/lib/order_cloud/models/payment.rb +1 -1
- data/lib/order_cloud/models/payment_transaction.rb +1 -1
- data/lib/order_cloud/models/ping_response.rb +1 -1
- data/lib/order_cloud/models/price_break.rb +1 -1
- data/lib/order_cloud/models/price_schedule.rb +1 -1
- data/lib/order_cloud/models/product.rb +41 -5
- data/lib/order_cloud/models/product_assignment.rb +20 -20
- data/lib/order_cloud/models/promotion.rb +1 -1
- data/lib/order_cloud/models/promotion_assignment.rb +1 -1
- data/lib/order_cloud/models/security_profile.rb +1 -1
- data/lib/order_cloud/models/security_profile_assignment.rb +1 -1
- data/lib/order_cloud/models/shipment.rb +1 -1
- data/lib/order_cloud/models/shipment_item.rb +1 -1
- data/lib/order_cloud/models/spec.rb +1 -1
- data/lib/order_cloud/models/spec_option.rb +1 -1
- data/lib/order_cloud/models/spec_product_assignment.rb +1 -1
- data/lib/order_cloud/models/spending_account.rb +1 -1
- data/lib/order_cloud/models/spending_account_assignment.rb +1 -1
- data/lib/order_cloud/models/user.rb +16 -5
- data/lib/order_cloud/models/user_group.rb +1 -1
- data/lib/order_cloud/models/user_group_assignment.rb +1 -1
- data/lib/order_cloud/models/variant.rb +1 -1
- data/lib/order_cloud/models/web_hook.rb +1 -1
- data/lib/order_cloud/models/web_hook_route.rb +1 -1
- data/lib/order_cloud/models/xp_index.rb +1 -1
- data/lib/order_cloud/version.rb +2 -2
- data/order_cloud.gemspec +2 -2
- data/spec/api/address_api_spec.rb +1 -1
- data/spec/api/admin_address_api_spec.rb +1 -1
- data/spec/api/admin_user_api_spec.rb +1 -1
- data/spec/api/admin_user_group_api_spec.rb +165 -0
- data/spec/api/approval_rule_api_spec.rb +1 -1
- data/spec/api/buyer_api_spec.rb +1 -1
- data/spec/api/category_api_spec.rb +2 -2
- data/spec/api/cost_center_api_spec.rb +1 -1
- data/spec/api/credit_card_api_spec.rb +1 -1
- data/spec/api/email_template_api_spec.rb +1 -1
- data/spec/api/line_item_api_spec.rb +1 -1
- data/spec/api/me_api_spec.rb +1 -1
- data/spec/api/message_senders_api_spec.rb +149 -0
- data/spec/api/order_api_spec.rb +1 -1
- data/spec/api/password_reset_api_spec.rb +1 -1
- data/spec/api/payment_api_spec.rb +1 -1
- data/spec/api/price_schedule_api_spec.rb +1 -1
- data/spec/api/product_api_spec.rb +2 -2
- data/spec/api/promotion_api_spec.rb +1 -1
- data/spec/api/security_profile_api_spec.rb +1 -1
- data/spec/api/shipment_api_spec.rb +1 -1
- data/spec/api/spec_api_spec.rb +1 -1
- data/spec/api/spending_account_api_spec.rb +1 -1
- data/spec/api/user_api_spec.rb +2 -2
- data/spec/api/user_group_api_spec.rb +2 -2
- data/spec/api_auth_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/access_token_spec.rb +1 -1
- data/spec/models/address_assignment_spec.rb +1 -1
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/admin_company_spec.rb +1 -1
- data/spec/models/admin_model_on_view_spec.rb +1 -1
- data/spec/models/approval_rule_spec.rb +1 -1
- data/spec/models/base_spec_spec.rb +1 -1
- data/spec/models/buyer_address_spec.rb +1 -1
- data/spec/models/buyer_credit_card_spec.rb +1 -1
- data/spec/models/buyer_product_spec.rb +1 -1
- data/spec/models/buyer_spec.rb +1 -1
- data/spec/models/buyer_spec_spec.rb +1 -1
- data/spec/models/category_assignment_spec.rb +1 -1
- data/spec/models/category_product_assignment_spec.rb +1 -1
- data/spec/models/category_spec.rb +1 -1
- data/spec/models/cost_center_assignment_spec.rb +1 -1
- data/spec/models/cost_center_spec.rb +1 -1
- data/spec/models/credit_card_assignment_spec.rb +1 -1
- data/spec/models/credit_card_spec.rb +1 -1
- data/spec/models/email_template_spec.rb +1 -1
- data/spec/models/file_spec.rb +1 -1
- data/spec/models/impersonate_token_request_spec.rb +1 -1
- data/spec/models/inventory_spec.rb +1 -1
- data/spec/models/line_item_spec.rb +1 -1
- data/spec/models/line_item_spec_spec.rb +1 -1
- data/spec/models/list_address_assignment_spec.rb +1 -1
- data/spec/models/list_address_spec.rb +1 -1
- data/spec/models/list_admin_company_spec.rb +1 -1
- data/spec/models/list_approval_rule_spec.rb +1 -1
- data/spec/models/list_buyer_address_spec.rb +1 -1
- data/spec/models/list_buyer_credit_card_spec.rb +1 -1
- data/spec/models/list_buyer_product_spec.rb +1 -1
- data/spec/models/list_buyer_spec.rb +1 -1
- data/spec/models/list_buyer_spec_spec.rb +1 -1
- data/spec/models/list_category_assignment_spec.rb +1 -1
- data/spec/models/list_category_product_assignment_spec.rb +1 -1
- data/spec/models/list_category_spec.rb +1 -1
- data/spec/models/list_cost_center_assignment_spec.rb +1 -1
- data/spec/models/list_cost_center_spec.rb +1 -1
- data/spec/models/list_credit_card_assignment_spec.rb +1 -1
- data/spec/models/list_credit_card_spec.rb +1 -1
- data/spec/models/list_file_spec.rb +1 -1
- data/spec/models/list_inventory_spec.rb +1 -1
- data/spec/models/list_line_item_spec.rb +1 -1
- data/spec/models/list_message_cc_listener_assignment_spec.rb +59 -0
- data/spec/models/{list_api_client_spec.rb → list_message_config_spec.rb} +7 -7
- data/spec/models/list_message_sender_assignment_spec.rb +59 -0
- data/spec/models/{list_dev_accessible_company_spec.rb → list_message_sender_spec.rb} +7 -7
- data/spec/models/list_order_approval_spec.rb +1 -1
- data/spec/models/list_order_promotion_spec.rb +1 -1
- data/spec/models/list_order_spec.rb +1 -1
- data/spec/models/list_payment_spec.rb +1 -1
- data/spec/models/list_price_schedule_spec.rb +1 -1
- data/spec/models/list_product_assignment_spec.rb +1 -1
- data/spec/models/list_product_spec.rb +1 -1
- data/spec/models/list_promotion_assignment_spec.rb +1 -1
- data/spec/models/list_promotion_spec.rb +1 -1
- data/spec/models/list_security_profile_assignment_spec.rb +1 -1
- data/spec/models/list_security_profile_spec.rb +1 -1
- data/spec/models/list_shipment_spec.rb +1 -1
- data/spec/models/list_spec_option_spec.rb +1 -1
- data/spec/models/list_spec_product_assignment_spec.rb +1 -1
- data/spec/models/list_spec_spec.rb +1 -1
- data/spec/models/list_spending_account_assignment_spec.rb +1 -1
- data/spec/models/list_spending_account_spec.rb +1 -1
- data/spec/models/list_user_group_assignment_spec.rb +1 -1
- data/spec/models/list_user_group_spec.rb +1 -1
- data/spec/models/list_user_spec.rb +1 -1
- data/spec/models/list_variant_spec.rb +1 -1
- data/spec/models/list_web_hook_route_spec.rb +1 -1
- data/spec/models/list_web_hook_spec.rb +1 -1
- data/spec/models/list_xp_index_spec.rb +1 -1
- data/spec/models/message_cc_listener_assignment_spec.rb +83 -0
- data/spec/models/message_config_spec.rb +71 -0
- data/spec/models/message_sender_assignment_spec.rb +77 -0
- data/spec/models/message_sender_spec.rb +65 -0
- data/spec/models/meta_spec.rb +1 -1
- data/spec/models/order_approval_spec.rb +1 -1
- data/spec/models/order_promotion_spec.rb +1 -1
- data/spec/models/order_spec.rb +1 -1
- data/spec/models/password_reset_request_spec.rb +1 -1
- data/spec/models/password_reset_spec.rb +1 -1
- data/spec/models/payment_spec.rb +1 -1
- data/spec/models/payment_transaction_spec.rb +1 -1
- data/spec/models/ping_response_spec.rb +1 -1
- data/spec/models/price_break_spec.rb +1 -1
- data/spec/models/price_schedule_spec.rb +1 -1
- data/spec/models/product_assignment_spec.rb +6 -6
- data/spec/models/product_spec.rb +25 -1
- data/spec/models/promotion_assignment_spec.rb +1 -1
- data/spec/models/promotion_spec.rb +1 -1
- data/spec/models/security_profile_assignment_spec.rb +1 -1
- data/spec/models/security_profile_spec.rb +1 -1
- data/spec/models/shipment_item_spec.rb +1 -1
- data/spec/models/shipment_spec.rb +1 -1
- data/spec/models/spec_option_spec.rb +1 -1
- data/spec/models/spec_product_assignment_spec.rb +1 -1
- data/spec/models/spec_spec.rb +1 -1
- data/spec/models/spending_account_assignment_spec.rb +1 -1
- data/spec/models/spending_account_spec.rb +1 -1
- data/spec/models/user_group_assignment_spec.rb +1 -1
- data/spec/models/user_group_spec.rb +1 -1
- data/spec/models/user_spec.rb +7 -1
- data/spec/models/variant_spec.rb +1 -1
- data/spec/models/web_hook_route_spec.rb +1 -1
- data/spec/models/web_hook_spec.rb +1 -1
- data/spec/models/xp_index_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +42 -15
- data/Gemfile.lock +0 -34
- data/docs/FileApi.md +0 -162
- data/lib/order_cloud/api/file_api.rb +0 -206
- data/spec/api/file_api_spec.rb +0 -83
data/docs/Product.md
CHANGED
@@ -8,6 +8,9 @@ Name | Type | Description | Notes
|
|
8
8
|
**description** | **String** | | [optional]
|
9
9
|
**quantity_multiplier** | **Integer** | | [optional]
|
10
10
|
**ship_weight** | **Float** | | [optional]
|
11
|
+
**ship_height** | **Float** | | [optional]
|
12
|
+
**ship_width** | **Float** | | [optional]
|
13
|
+
**ship_length** | **Float** | | [optional]
|
11
14
|
**active** | **BOOLEAN** | | [optional]
|
12
15
|
**type** | **String** | | [optional]
|
13
16
|
**inventory_enabled** | **BOOLEAN** | | [optional]
|
@@ -18,5 +21,6 @@ Name | Type | Description | Notes
|
|
18
21
|
**allow_order_exceed_inventory** | **BOOLEAN** | | [optional]
|
19
22
|
**inventory_visible** | **BOOLEAN** | | [optional]
|
20
23
|
**variant_count** | **Integer** | | [optional]
|
24
|
+
**ship_from_address_id** | **String** | | [optional]
|
21
25
|
|
22
26
|
|
data/docs/ProductApi.md
CHANGED
@@ -746,7 +746,7 @@ Name | Type | Description | Notes
|
|
746
746
|
|
747
747
|
|
748
748
|
# **patch**
|
749
|
-
> patch(product_id, product)
|
749
|
+
> Product patch(product_id, product)
|
750
750
|
|
751
751
|
|
752
752
|
|
@@ -768,7 +768,8 @@ product = OrderCloud::Product.new # Product |
|
|
768
768
|
|
769
769
|
|
770
770
|
begin
|
771
|
-
api_instance.patch(product_id, product)
|
771
|
+
result = api_instance.patch(product_id, product)
|
772
|
+
p result
|
772
773
|
rescue OrderCloud::ApiError => e
|
773
774
|
puts "Exception when calling ProductApi->patch: #{e}"
|
774
775
|
end
|
@@ -783,7 +784,7 @@ Name | Type | Description | Notes
|
|
783
784
|
|
784
785
|
### Return type
|
785
786
|
|
786
|
-
|
787
|
+
[**Product**](Product.md)
|
787
788
|
|
788
789
|
### Authorization
|
789
790
|
|
data/docs/ProductAssignment.md
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**product_id** | **String** | | [optional]
|
7
|
+
**price_schedule_id** | **String** | | [optional]
|
7
8
|
**standard_price_schedule_id** | **String** | | [optional]
|
8
|
-
**
|
9
|
+
**buyer_id** | **String** | | [optional]
|
9
10
|
**user_id** | **String** | | [optional]
|
10
11
|
**user_group_id** | **String** | | [optional]
|
11
|
-
**buyer_id** | **String** | | [optional]
|
12
12
|
|
13
13
|
|
data/docs/SecurityProfileApi.md
CHANGED
@@ -4,11 +4,11 @@ All URIs are relative to *https://api.ordercloud.io/v1*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**delete_assignment**](SecurityProfileApi.md#delete_assignment) | **DELETE** /
|
8
|
-
[**get**](SecurityProfileApi.md#get) | **GET** /
|
9
|
-
[**list**](SecurityProfileApi.md#list) | **GET** /
|
10
|
-
[**list_assignments**](SecurityProfileApi.md#list_assignments) | **GET** /
|
11
|
-
[**save_assignment**](SecurityProfileApi.md#save_assignment) | **POST** /
|
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
12
|
|
13
13
|
|
14
14
|
# **delete_assignment**
|
data/docs/User.md
CHANGED
data/docs/UserApi.md
CHANGED
@@ -289,7 +289,7 @@ Name | Type | Description | Notes
|
|
289
289
|
|
290
290
|
|
291
291
|
# **patch**
|
292
|
-
> patch(buyer_id, user_id, user)
|
292
|
+
> User patch(buyer_id, user_id, user)
|
293
293
|
|
294
294
|
|
295
295
|
|
@@ -313,7 +313,8 @@ user = OrderCloud::User.new # User |
|
|
313
313
|
|
314
314
|
|
315
315
|
begin
|
316
|
-
api_instance.patch(buyer_id, user_id, user)
|
316
|
+
result = api_instance.patch(buyer_id, user_id, user)
|
317
|
+
p result
|
317
318
|
rescue OrderCloud::ApiError => e
|
318
319
|
puts "Exception when calling UserApi->patch: #{e}"
|
319
320
|
end
|
@@ -329,7 +330,7 @@ Name | Type | Description | Notes
|
|
329
330
|
|
330
331
|
### Return type
|
331
332
|
|
332
|
-
|
333
|
+
[**User**](User.md)
|
333
334
|
|
334
335
|
### Authorization
|
335
336
|
|
data/docs/UserGroupApi.md
CHANGED
@@ -347,7 +347,7 @@ Name | Type | Description | Notes
|
|
347
347
|
|
348
348
|
|
349
349
|
# **patch**
|
350
|
-
> patch(buyer_id, user_group_id, group)
|
350
|
+
> UserGroup patch(buyer_id, user_group_id, group)
|
351
351
|
|
352
352
|
|
353
353
|
|
@@ -371,7 +371,8 @@ group = OrderCloud::UserGroup.new # UserGroup |
|
|
371
371
|
|
372
372
|
|
373
373
|
begin
|
374
|
-
api_instance.patch(buyer_id, user_group_id, group)
|
374
|
+
result = api_instance.patch(buyer_id, user_group_id, group)
|
375
|
+
p result
|
375
376
|
rescue OrderCloud::ApiError => e
|
376
377
|
puts "Exception when calling UserGroupApi->patch: #{e}"
|
377
378
|
end
|
@@ -387,7 +388,7 @@ Name | Type | Description | Notes
|
|
387
388
|
|
388
389
|
### Return type
|
389
390
|
|
390
|
-
|
391
|
+
[**UserGroup**](UserGroup.md)
|
391
392
|
|
392
393
|
### Authorization
|
393
394
|
|
data/git_push.sh
CHANGED
File without changes
|
data/lib/order_cloud.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#OrderCloud
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
6
|
OpenAPI spec version: 1.0
|
7
7
|
Contact: ordercloud@four51.com
|
@@ -57,7 +57,6 @@ require 'order_cloud/models/line_item_spec'
|
|
57
57
|
require 'order_cloud/models/list_address'
|
58
58
|
require 'order_cloud/models/list_address_assignment'
|
59
59
|
require 'order_cloud/models/list_admin_company'
|
60
|
-
require 'order_cloud/models/list_api_client'
|
61
60
|
require 'order_cloud/models/list_approval_rule'
|
62
61
|
require 'order_cloud/models/list_buyer'
|
63
62
|
require 'order_cloud/models/list_buyer_address'
|
@@ -71,10 +70,13 @@ require 'order_cloud/models/list_cost_center'
|
|
71
70
|
require 'order_cloud/models/list_cost_center_assignment'
|
72
71
|
require 'order_cloud/models/list_credit_card'
|
73
72
|
require 'order_cloud/models/list_credit_card_assignment'
|
74
|
-
require 'order_cloud/models/list_dev_accessible_company'
|
75
73
|
require 'order_cloud/models/list_file'
|
76
74
|
require 'order_cloud/models/list_inventory'
|
77
75
|
require 'order_cloud/models/list_line_item'
|
76
|
+
require 'order_cloud/models/list_message_cc_listener_assignment'
|
77
|
+
require 'order_cloud/models/list_message_config'
|
78
|
+
require 'order_cloud/models/list_message_sender'
|
79
|
+
require 'order_cloud/models/list_message_sender_assignment'
|
78
80
|
require 'order_cloud/models/list_order'
|
79
81
|
require 'order_cloud/models/list_order_approval'
|
80
82
|
require 'order_cloud/models/list_order_promotion'
|
@@ -99,6 +101,10 @@ require 'order_cloud/models/list_variant'
|
|
99
101
|
require 'order_cloud/models/list_web_hook'
|
100
102
|
require 'order_cloud/models/list_web_hook_route'
|
101
103
|
require 'order_cloud/models/list_xp_index'
|
104
|
+
require 'order_cloud/models/message_cc_listener_assignment'
|
105
|
+
require 'order_cloud/models/message_config'
|
106
|
+
require 'order_cloud/models/message_sender'
|
107
|
+
require 'order_cloud/models/message_sender_assignment'
|
102
108
|
require 'order_cloud/models/meta'
|
103
109
|
require 'order_cloud/models/order'
|
104
110
|
require 'order_cloud/models/order_approval'
|
@@ -135,15 +141,16 @@ require 'order_cloud/models/xp_index'
|
|
135
141
|
require 'order_cloud/api/address_api'
|
136
142
|
require 'order_cloud/api/admin_address_api'
|
137
143
|
require 'order_cloud/api/admin_user_api'
|
144
|
+
require 'order_cloud/api/admin_user_group_api'
|
138
145
|
require 'order_cloud/api/approval_rule_api'
|
139
146
|
require 'order_cloud/api/buyer_api'
|
140
147
|
require 'order_cloud/api/category_api'
|
141
148
|
require 'order_cloud/api/cost_center_api'
|
142
149
|
require 'order_cloud/api/credit_card_api'
|
143
150
|
require 'order_cloud/api/email_template_api'
|
144
|
-
require 'order_cloud/api/file_api'
|
145
151
|
require 'order_cloud/api/line_item_api'
|
146
152
|
require 'order_cloud/api/me_api'
|
153
|
+
require 'order_cloud/api/message_senders_api'
|
147
154
|
require 'order_cloud/api/order_api'
|
148
155
|
require 'order_cloud/api/password_reset_api'
|
149
156
|
require 'order_cloud/api/payment_api'
|
@@ -0,0 +1,578 @@
|
|
1
|
+
=begin
|
2
|
+
#OrderCloud
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
Contact: ordercloud@four51.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require "uri"
|
25
|
+
|
26
|
+
module OrderCloud
|
27
|
+
class AdminUserGroupApi
|
28
|
+
attr_accessor :api_client
|
29
|
+
|
30
|
+
def initialize(api_client = ApiClient.default)
|
31
|
+
@api_client = api_client
|
32
|
+
end
|
33
|
+
|
34
|
+
#
|
35
|
+
#
|
36
|
+
# @param group
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [UserGroup]
|
39
|
+
def create(group, opts = {})
|
40
|
+
data, _status_code, _headers = create_with_http_info(group, opts)
|
41
|
+
return data
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
#
|
46
|
+
# @param group
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers
|
49
|
+
def create_with_http_info(group, opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug "Calling API: AdminUserGroupApi.create ..."
|
52
|
+
end
|
53
|
+
# verify the required parameter 'group' is set
|
54
|
+
fail ArgumentError, "Missing the required parameter 'group' when calling AdminUserGroupApi.create" if group.nil?
|
55
|
+
# resource path
|
56
|
+
local_var_path = "/usergroups".sub('{format}','json')
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = {}
|
63
|
+
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
local_header_accept = ['application/json']
|
66
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
+
|
68
|
+
# HTTP header 'Content-Type'
|
69
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
|
75
|
+
# http body (model)
|
76
|
+
post_body = @api_client.object_to_http_body(group)
|
77
|
+
auth_names = ['oauth2']
|
78
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names,
|
84
|
+
:return_type => 'UserGroup')
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: AdminUserGroupApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
|
91
|
+
#
|
92
|
+
#
|
93
|
+
# @param user_group_id ID of the user group.
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [nil]
|
96
|
+
def delete(user_group_id, opts = {})
|
97
|
+
delete_with_http_info(user_group_id, opts)
|
98
|
+
return nil
|
99
|
+
end
|
100
|
+
|
101
|
+
#
|
102
|
+
#
|
103
|
+
# @param user_group_id ID of the user group.
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
106
|
+
def delete_with_http_info(user_group_id, opts = {})
|
107
|
+
if @api_client.config.debugging
|
108
|
+
@api_client.config.logger.debug "Calling API: AdminUserGroupApi.delete ..."
|
109
|
+
end
|
110
|
+
# verify the required parameter 'user_group_id' is set
|
111
|
+
fail ArgumentError, "Missing the required parameter 'user_group_id' when calling AdminUserGroupApi.delete" if user_group_id.nil?
|
112
|
+
# resource path
|
113
|
+
local_var_path = "/usergroups/{userGroupID}".sub('{format}','json').sub('{' + 'userGroupID' + '}', user_group_id.to_s)
|
114
|
+
|
115
|
+
# query parameters
|
116
|
+
query_params = {}
|
117
|
+
|
118
|
+
# header parameters
|
119
|
+
header_params = {}
|
120
|
+
|
121
|
+
# HTTP header 'Accept' (if needed)
|
122
|
+
local_header_accept = ['application/json']
|
123
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
124
|
+
|
125
|
+
# HTTP header 'Content-Type'
|
126
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
127
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
128
|
+
|
129
|
+
# form parameters
|
130
|
+
form_params = {}
|
131
|
+
|
132
|
+
# http body (model)
|
133
|
+
post_body = nil
|
134
|
+
auth_names = ['oauth2']
|
135
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
136
|
+
:header_params => header_params,
|
137
|
+
:query_params => query_params,
|
138
|
+
:form_params => form_params,
|
139
|
+
:body => post_body,
|
140
|
+
:auth_names => auth_names)
|
141
|
+
if @api_client.config.debugging
|
142
|
+
@api_client.config.logger.debug "API called: AdminUserGroupApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
143
|
+
end
|
144
|
+
return data, status_code, headers
|
145
|
+
end
|
146
|
+
|
147
|
+
#
|
148
|
+
#
|
149
|
+
# @param user_group_id ID of the user group.
|
150
|
+
# @param user_id ID of the user.
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @return [nil]
|
153
|
+
def delete_user_assignment(user_group_id, user_id, opts = {})
|
154
|
+
delete_user_assignment_with_http_info(user_group_id, user_id, opts)
|
155
|
+
return nil
|
156
|
+
end
|
157
|
+
|
158
|
+
#
|
159
|
+
#
|
160
|
+
# @param user_group_id ID of the user group.
|
161
|
+
# @param user_id ID of the user.
|
162
|
+
# @param [Hash] opts the optional parameters
|
163
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
164
|
+
def delete_user_assignment_with_http_info(user_group_id, user_id, opts = {})
|
165
|
+
if @api_client.config.debugging
|
166
|
+
@api_client.config.logger.debug "Calling API: AdminUserGroupApi.delete_user_assignment ..."
|
167
|
+
end
|
168
|
+
# verify the required parameter 'user_group_id' is set
|
169
|
+
fail ArgumentError, "Missing the required parameter 'user_group_id' when calling AdminUserGroupApi.delete_user_assignment" if user_group_id.nil?
|
170
|
+
# verify the required parameter 'user_id' is set
|
171
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling AdminUserGroupApi.delete_user_assignment" if user_id.nil?
|
172
|
+
# resource path
|
173
|
+
local_var_path = "/usergroups/{userGroupID}/assignments/{userID}".sub('{format}','json').sub('{' + 'userGroupID' + '}', user_group_id.to_s).sub('{' + 'userID' + '}', user_id.to_s)
|
174
|
+
|
175
|
+
# query parameters
|
176
|
+
query_params = {}
|
177
|
+
|
178
|
+
# header parameters
|
179
|
+
header_params = {}
|
180
|
+
|
181
|
+
# HTTP header 'Accept' (if needed)
|
182
|
+
local_header_accept = ['application/json']
|
183
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
184
|
+
|
185
|
+
# HTTP header 'Content-Type'
|
186
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
187
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
188
|
+
|
189
|
+
# form parameters
|
190
|
+
form_params = {}
|
191
|
+
|
192
|
+
# http body (model)
|
193
|
+
post_body = nil
|
194
|
+
auth_names = ['oauth2']
|
195
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
196
|
+
:header_params => header_params,
|
197
|
+
:query_params => query_params,
|
198
|
+
:form_params => form_params,
|
199
|
+
:body => post_body,
|
200
|
+
:auth_names => auth_names)
|
201
|
+
if @api_client.config.debugging
|
202
|
+
@api_client.config.logger.debug "API called: AdminUserGroupApi#delete_user_assignment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
203
|
+
end
|
204
|
+
return data, status_code, headers
|
205
|
+
end
|
206
|
+
|
207
|
+
#
|
208
|
+
#
|
209
|
+
# @param user_group_id ID of the user group.
|
210
|
+
# @param [Hash] opts the optional parameters
|
211
|
+
# @return [UserGroup]
|
212
|
+
def get(user_group_id, opts = {})
|
213
|
+
data, _status_code, _headers = get_with_http_info(user_group_id, opts)
|
214
|
+
return data
|
215
|
+
end
|
216
|
+
|
217
|
+
#
|
218
|
+
#
|
219
|
+
# @param user_group_id ID of the user group.
|
220
|
+
# @param [Hash] opts the optional parameters
|
221
|
+
# @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers
|
222
|
+
def get_with_http_info(user_group_id, opts = {})
|
223
|
+
if @api_client.config.debugging
|
224
|
+
@api_client.config.logger.debug "Calling API: AdminUserGroupApi.get ..."
|
225
|
+
end
|
226
|
+
# verify the required parameter 'user_group_id' is set
|
227
|
+
fail ArgumentError, "Missing the required parameter 'user_group_id' when calling AdminUserGroupApi.get" if user_group_id.nil?
|
228
|
+
# resource path
|
229
|
+
local_var_path = "/usergroups/{userGroupID}".sub('{format}','json').sub('{' + 'userGroupID' + '}', user_group_id.to_s)
|
230
|
+
|
231
|
+
# query parameters
|
232
|
+
query_params = {}
|
233
|
+
|
234
|
+
# header parameters
|
235
|
+
header_params = {}
|
236
|
+
|
237
|
+
# HTTP header 'Accept' (if needed)
|
238
|
+
local_header_accept = ['application/json']
|
239
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
240
|
+
|
241
|
+
# HTTP header 'Content-Type'
|
242
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
243
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
244
|
+
|
245
|
+
# form parameters
|
246
|
+
form_params = {}
|
247
|
+
|
248
|
+
# http body (model)
|
249
|
+
post_body = nil
|
250
|
+
auth_names = ['oauth2']
|
251
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
252
|
+
:header_params => header_params,
|
253
|
+
:query_params => query_params,
|
254
|
+
:form_params => form_params,
|
255
|
+
:body => post_body,
|
256
|
+
:auth_names => auth_names,
|
257
|
+
:return_type => 'UserGroup')
|
258
|
+
if @api_client.config.debugging
|
259
|
+
@api_client.config.logger.debug "API called: AdminUserGroupApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
260
|
+
end
|
261
|
+
return data, status_code, headers
|
262
|
+
end
|
263
|
+
|
264
|
+
#
|
265
|
+
#
|
266
|
+
# @param [Hash] opts the optional parameters
|
267
|
+
# @option opts [String] :search Word or phrase to search for.
|
268
|
+
# @option opts [String] :search_on Comma-delimited list of fields to search on.
|
269
|
+
# @option opts [String] :sort_by Comma-delimited list of fields to sort by.
|
270
|
+
# @option opts [Integer] :page Page of results to return. Default: 1
|
271
|
+
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
272
|
+
# @option opts [Hash<String, String>] :filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
|
273
|
+
# @return [ListUserGroup]
|
274
|
+
def list(opts = {})
|
275
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
276
|
+
return data
|
277
|
+
end
|
278
|
+
|
279
|
+
#
|
280
|
+
#
|
281
|
+
# @param [Hash] opts the optional parameters
|
282
|
+
# @option opts [String] :search Word or phrase to search for.
|
283
|
+
# @option opts [String] :search_on Comma-delimited list of fields to search on.
|
284
|
+
# @option opts [String] :sort_by Comma-delimited list of fields to sort by.
|
285
|
+
# @option opts [Integer] :page Page of results to return. Default: 1
|
286
|
+
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
287
|
+
# @option opts [Hash<String, String>] :filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
|
288
|
+
# @return [Array<(ListUserGroup, Fixnum, Hash)>] ListUserGroup data, response status code and response headers
|
289
|
+
def list_with_http_info(opts = {})
|
290
|
+
if @api_client.config.debugging
|
291
|
+
@api_client.config.logger.debug "Calling API: AdminUserGroupApi.list ..."
|
292
|
+
end
|
293
|
+
# resource path
|
294
|
+
local_var_path = "/usergroups".sub('{format}','json')
|
295
|
+
|
296
|
+
# query parameters
|
297
|
+
query_params = {}
|
298
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
299
|
+
query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
|
300
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
301
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
302
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
303
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
304
|
+
|
305
|
+
# header parameters
|
306
|
+
header_params = {}
|
307
|
+
|
308
|
+
# HTTP header 'Accept' (if needed)
|
309
|
+
local_header_accept = ['application/json']
|
310
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
311
|
+
|
312
|
+
# HTTP header 'Content-Type'
|
313
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
314
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
315
|
+
|
316
|
+
# form parameters
|
317
|
+
form_params = {}
|
318
|
+
|
319
|
+
# http body (model)
|
320
|
+
post_body = nil
|
321
|
+
auth_names = ['oauth2']
|
322
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
323
|
+
:header_params => header_params,
|
324
|
+
:query_params => query_params,
|
325
|
+
:form_params => form_params,
|
326
|
+
:body => post_body,
|
327
|
+
:auth_names => auth_names,
|
328
|
+
:return_type => 'ListUserGroup')
|
329
|
+
if @api_client.config.debugging
|
330
|
+
@api_client.config.logger.debug "API called: AdminUserGroupApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
331
|
+
end
|
332
|
+
return data, status_code, headers
|
333
|
+
end
|
334
|
+
|
335
|
+
#
|
336
|
+
#
|
337
|
+
# @param [Hash] opts the optional parameters
|
338
|
+
# @option opts [String] :user_group_id ID of the user group.
|
339
|
+
# @option opts [String] :user_id ID of the user.
|
340
|
+
# @option opts [Integer] :page Page of results to return. Default: 1
|
341
|
+
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
342
|
+
# @return [ListUserGroupAssignment]
|
343
|
+
def list_user_assignments(opts = {})
|
344
|
+
data, _status_code, _headers = list_user_assignments_with_http_info(opts)
|
345
|
+
return data
|
346
|
+
end
|
347
|
+
|
348
|
+
#
|
349
|
+
#
|
350
|
+
# @param [Hash] opts the optional parameters
|
351
|
+
# @option opts [String] :user_group_id ID of the user group.
|
352
|
+
# @option opts [String] :user_id ID of the user.
|
353
|
+
# @option opts [Integer] :page Page of results to return. Default: 1
|
354
|
+
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
355
|
+
# @return [Array<(ListUserGroupAssignment, Fixnum, Hash)>] ListUserGroupAssignment data, response status code and response headers
|
356
|
+
def list_user_assignments_with_http_info(opts = {})
|
357
|
+
if @api_client.config.debugging
|
358
|
+
@api_client.config.logger.debug "Calling API: AdminUserGroupApi.list_user_assignments ..."
|
359
|
+
end
|
360
|
+
# resource path
|
361
|
+
local_var_path = "/usergroups/assignments".sub('{format}','json')
|
362
|
+
|
363
|
+
# query parameters
|
364
|
+
query_params = {}
|
365
|
+
query_params[:'userGroupID'] = opts[:'user_group_id'] if !opts[:'user_group_id'].nil?
|
366
|
+
query_params[:'userID'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
367
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
368
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
369
|
+
|
370
|
+
# header parameters
|
371
|
+
header_params = {}
|
372
|
+
|
373
|
+
# HTTP header 'Accept' (if needed)
|
374
|
+
local_header_accept = ['application/json']
|
375
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
376
|
+
|
377
|
+
# HTTP header 'Content-Type'
|
378
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
379
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
380
|
+
|
381
|
+
# form parameters
|
382
|
+
form_params = {}
|
383
|
+
|
384
|
+
# http body (model)
|
385
|
+
post_body = nil
|
386
|
+
auth_names = ['oauth2']
|
387
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
388
|
+
:header_params => header_params,
|
389
|
+
:query_params => query_params,
|
390
|
+
:form_params => form_params,
|
391
|
+
:body => post_body,
|
392
|
+
:auth_names => auth_names,
|
393
|
+
:return_type => 'ListUserGroupAssignment')
|
394
|
+
if @api_client.config.debugging
|
395
|
+
@api_client.config.logger.debug "API called: AdminUserGroupApi#list_user_assignments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
396
|
+
end
|
397
|
+
return data, status_code, headers
|
398
|
+
end
|
399
|
+
|
400
|
+
#
|
401
|
+
#
|
402
|
+
# @param user_group_id ID of the user group.
|
403
|
+
# @param group
|
404
|
+
# @param [Hash] opts the optional parameters
|
405
|
+
# @return [UserGroup]
|
406
|
+
def patch(user_group_id, group, opts = {})
|
407
|
+
data, _status_code, _headers = patch_with_http_info(user_group_id, group, opts)
|
408
|
+
return data
|
409
|
+
end
|
410
|
+
|
411
|
+
#
|
412
|
+
#
|
413
|
+
# @param user_group_id ID of the user group.
|
414
|
+
# @param group
|
415
|
+
# @param [Hash] opts the optional parameters
|
416
|
+
# @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers
|
417
|
+
def patch_with_http_info(user_group_id, group, opts = {})
|
418
|
+
if @api_client.config.debugging
|
419
|
+
@api_client.config.logger.debug "Calling API: AdminUserGroupApi.patch ..."
|
420
|
+
end
|
421
|
+
# verify the required parameter 'user_group_id' is set
|
422
|
+
fail ArgumentError, "Missing the required parameter 'user_group_id' when calling AdminUserGroupApi.patch" if user_group_id.nil?
|
423
|
+
# verify the required parameter 'group' is set
|
424
|
+
fail ArgumentError, "Missing the required parameter 'group' when calling AdminUserGroupApi.patch" if group.nil?
|
425
|
+
# resource path
|
426
|
+
local_var_path = "/usergroups/{userGroupID}".sub('{format}','json').sub('{' + 'userGroupID' + '}', user_group_id.to_s)
|
427
|
+
|
428
|
+
# query parameters
|
429
|
+
query_params = {}
|
430
|
+
|
431
|
+
# header parameters
|
432
|
+
header_params = {}
|
433
|
+
|
434
|
+
# HTTP header 'Accept' (if needed)
|
435
|
+
local_header_accept = ['application/json']
|
436
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
437
|
+
|
438
|
+
# HTTP header 'Content-Type'
|
439
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
440
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
441
|
+
|
442
|
+
# form parameters
|
443
|
+
form_params = {}
|
444
|
+
|
445
|
+
# http body (model)
|
446
|
+
post_body = @api_client.object_to_http_body(group)
|
447
|
+
auth_names = ['oauth2']
|
448
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
449
|
+
:header_params => header_params,
|
450
|
+
:query_params => query_params,
|
451
|
+
:form_params => form_params,
|
452
|
+
:body => post_body,
|
453
|
+
:auth_names => auth_names,
|
454
|
+
:return_type => 'UserGroup')
|
455
|
+
if @api_client.config.debugging
|
456
|
+
@api_client.config.logger.debug "API called: AdminUserGroupApi#patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
457
|
+
end
|
458
|
+
return data, status_code, headers
|
459
|
+
end
|
460
|
+
|
461
|
+
#
|
462
|
+
#
|
463
|
+
# @param user_group_assignment
|
464
|
+
# @param [Hash] opts the optional parameters
|
465
|
+
# @return [nil]
|
466
|
+
def save_user_assignment(user_group_assignment, opts = {})
|
467
|
+
save_user_assignment_with_http_info(user_group_assignment, opts)
|
468
|
+
return nil
|
469
|
+
end
|
470
|
+
|
471
|
+
#
|
472
|
+
#
|
473
|
+
# @param user_group_assignment
|
474
|
+
# @param [Hash] opts the optional parameters
|
475
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
476
|
+
def save_user_assignment_with_http_info(user_group_assignment, opts = {})
|
477
|
+
if @api_client.config.debugging
|
478
|
+
@api_client.config.logger.debug "Calling API: AdminUserGroupApi.save_user_assignment ..."
|
479
|
+
end
|
480
|
+
# verify the required parameter 'user_group_assignment' is set
|
481
|
+
fail ArgumentError, "Missing the required parameter 'user_group_assignment' when calling AdminUserGroupApi.save_user_assignment" if user_group_assignment.nil?
|
482
|
+
# resource path
|
483
|
+
local_var_path = "/usergroups/assignments".sub('{format}','json')
|
484
|
+
|
485
|
+
# query parameters
|
486
|
+
query_params = {}
|
487
|
+
|
488
|
+
# header parameters
|
489
|
+
header_params = {}
|
490
|
+
|
491
|
+
# HTTP header 'Accept' (if needed)
|
492
|
+
local_header_accept = ['application/json']
|
493
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
494
|
+
|
495
|
+
# HTTP header 'Content-Type'
|
496
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
497
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
498
|
+
|
499
|
+
# form parameters
|
500
|
+
form_params = {}
|
501
|
+
|
502
|
+
# http body (model)
|
503
|
+
post_body = @api_client.object_to_http_body(user_group_assignment)
|
504
|
+
auth_names = ['oauth2']
|
505
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
506
|
+
:header_params => header_params,
|
507
|
+
:query_params => query_params,
|
508
|
+
:form_params => form_params,
|
509
|
+
:body => post_body,
|
510
|
+
:auth_names => auth_names)
|
511
|
+
if @api_client.config.debugging
|
512
|
+
@api_client.config.logger.debug "API called: AdminUserGroupApi#save_user_assignment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
513
|
+
end
|
514
|
+
return data, status_code, headers
|
515
|
+
end
|
516
|
+
|
517
|
+
#
|
518
|
+
#
|
519
|
+
# @param user_group_id ID of the user group.
|
520
|
+
# @param group
|
521
|
+
# @param [Hash] opts the optional parameters
|
522
|
+
# @return [UserGroup]
|
523
|
+
def update(user_group_id, group, opts = {})
|
524
|
+
data, _status_code, _headers = update_with_http_info(user_group_id, group, opts)
|
525
|
+
return data
|
526
|
+
end
|
527
|
+
|
528
|
+
#
|
529
|
+
#
|
530
|
+
# @param user_group_id ID of the user group.
|
531
|
+
# @param group
|
532
|
+
# @param [Hash] opts the optional parameters
|
533
|
+
# @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers
|
534
|
+
def update_with_http_info(user_group_id, group, opts = {})
|
535
|
+
if @api_client.config.debugging
|
536
|
+
@api_client.config.logger.debug "Calling API: AdminUserGroupApi.update ..."
|
537
|
+
end
|
538
|
+
# verify the required parameter 'user_group_id' is set
|
539
|
+
fail ArgumentError, "Missing the required parameter 'user_group_id' when calling AdminUserGroupApi.update" if user_group_id.nil?
|
540
|
+
# verify the required parameter 'group' is set
|
541
|
+
fail ArgumentError, "Missing the required parameter 'group' when calling AdminUserGroupApi.update" if group.nil?
|
542
|
+
# resource path
|
543
|
+
local_var_path = "/usergroups/{userGroupID}".sub('{format}','json').sub('{' + 'userGroupID' + '}', user_group_id.to_s)
|
544
|
+
|
545
|
+
# query parameters
|
546
|
+
query_params = {}
|
547
|
+
|
548
|
+
# header parameters
|
549
|
+
header_params = {}
|
550
|
+
|
551
|
+
# HTTP header 'Accept' (if needed)
|
552
|
+
local_header_accept = ['application/json']
|
553
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
554
|
+
|
555
|
+
# HTTP header 'Content-Type'
|
556
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
557
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
558
|
+
|
559
|
+
# form parameters
|
560
|
+
form_params = {}
|
561
|
+
|
562
|
+
# http body (model)
|
563
|
+
post_body = @api_client.object_to_http_body(group)
|
564
|
+
auth_names = ['oauth2']
|
565
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
566
|
+
:header_params => header_params,
|
567
|
+
:query_params => query_params,
|
568
|
+
:form_params => form_params,
|
569
|
+
:body => post_body,
|
570
|
+
:auth_names => auth_names,
|
571
|
+
:return_type => 'UserGroup')
|
572
|
+
if @api_client.config.debugging
|
573
|
+
@api_client.config.logger.debug "API called: AdminUserGroupApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
574
|
+
end
|
575
|
+
return data, status_code, headers
|
576
|
+
end
|
577
|
+
end
|
578
|
+
end
|