api-sdk-rb 1.11.111 → 1.11.133
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 +4 -4
- data/README.md +207 -381
- data/docs/{GetPartnerCreditTransactions200Response.md → AccountCreditTransactionListResponse.md} +2 -2
- data/docs/{GetUserAdapterConnections200Response.md → AdapterConnectionListResponse.md} +2 -2
- data/docs/{RemoveUserAdapterConnection200Response.md → AdapterConnectionRemovalResponse.md} +2 -2
- data/docs/{SetUserAdapterConnection200Response.md → AdapterConnectionResponse.md} +2 -2
- data/docs/{AddAiAnswersKnowledgeDocument201Response.md → AiAnswersKnowledgeDocumentResponse.md} +2 -2
- data/docs/BrandKitApi.md +74 -74
- data/docs/BrandKitTokens.md +2 -0
- data/docs/BrandKitView.md +1 -1
- data/docs/BrandTextStyle.md +22 -0
- data/docs/CanvasesApi.md +45 -45
- data/docs/{CreateCompositionDatabaseRecord201Response.md → CompositionDatabaseRecordResponse.md} +2 -2
- data/docs/CompositionsApi.md +615 -349
- data/docs/{CreateCompositionContentItem201Response.md → ContentItemWriteResultResponse.md} +2 -2
- data/docs/CreditsApi.md +20 -20
- data/docs/{CreateCompositionFromWidget201Response.md → DeleteUpload200Response.md} +3 -3
- data/docs/{UploadsIdDelete200ResponseData.md → DeleteUpload200ResponseData.md} +2 -2
- data/docs/{GetPartnerDesignDefaults200Response.md → DesignDefaultsResponse.md} +2 -2
- data/docs/EntitlementsApi.md +18 -18
- data/docs/{OperationsIdGetResponse.md → GetOperationResponse.md} +3 -3
- data/docs/{OperationsIdGetResponseData.md → GetOperationResponseData.md} +3 -3
- data/docs/GetOperationResponseDataMetadata.md +24 -0
- data/docs/InvoicesApi.md +9 -9
- data/docs/{UploadsGet200Response.md → ListUploads200Response.md} +2 -2
- data/docs/{GetManagedUserLimits200Response.md → ManagedUserLimitsResponse.md} +2 -2
- data/docs/{DeleteManagedUser200Response.md → ManagedUserRemovalResponse.md} +2 -2
- data/docs/ManagedUsersApi.md +261 -171
- data/docs/OperationsApi.md +11 -11
- data/docs/PartnersApi.md +388 -388
- data/docs/PatchBrandKitRequest.md +2 -0
- data/docs/PublicEmbedApi.md +95 -95
- data/docs/PublicWorkflowEventsRequestEventsInner.md +3 -1
- data/docs/{GetPublicWorkflow200Response.md → PublicWorkflowResponse.md} +2 -2
- data/docs/TokensApi.md +11 -9
- data/docs/Upload.md +1 -1
- data/docs/UploadLimits.md +3 -3
- data/docs/UploadsApi.md +85 -85
- data/docs/UsersApi.md +125 -125
- data/docs/WidgetClarification.md +22 -0
- data/docs/WidgetClarificationOption.md +22 -0
- data/docs/WidgetClarificationQuestion.md +26 -0
- data/docs/WidgetNextStep.md +24 -0
- data/docs/WidgetPlan.md +26 -0
- data/docs/WidgetPlanDecisions.md +32 -0
- data/docs/WidgetPlanDecisionsAdaptersInner.md +20 -0
- data/docs/WidgetPlanDecisionsLibrariesInner.md +22 -0
- data/docs/WidgetPlanDecisionsResponsive.md +22 -0
- data/docs/WidgetPlanTask.md +24 -0
- data/docs/WidgetsApi.md +38 -38
- data/docs/{CreateWorkspaceWorkflowFromPreset201Response.md → WorkflowDetailResponse.md} +2 -2
- data/docs/WorkflowFailureReason.md +15 -0
- data/docs/WorkflowFailureReasonCounter.md +22 -0
- data/docs/{SaveWorkspaceWorkflow200Response.md → WorkflowResponse.md} +2 -2
- data/docs/WorkflowStats.md +4 -2
- data/docs/WorkflowsApi.md +197 -413
- data/lib/api-sdk-rb/api/brand_kit_api.rb +61 -61
- data/lib/api-sdk-rb/api/canvases_api.rb +39 -39
- data/lib/api-sdk-rb/api/compositions_api.rb +770 -441
- data/lib/api-sdk-rb/api/credits_api.rb +20 -20
- data/lib/api-sdk-rb/api/entitlements_api.rb +14 -14
- data/lib/api-sdk-rb/api/invoices_api.rb +10 -10
- data/lib/api-sdk-rb/api/managed_users_api.rb +278 -172
- data/lib/api-sdk-rb/api/operations_api.rb +10 -10
- data/lib/api-sdk-rb/api/partners_api.rb +389 -389
- data/lib/api-sdk-rb/api/public_embed_api.rb +95 -95
- data/lib/api-sdk-rb/api/tokens_api.rb +8 -6
- data/lib/api-sdk-rb/api/uploads_api.rb +96 -96
- data/lib/api-sdk-rb/api/users_api.rb +132 -132
- data/lib/api-sdk-rb/api/widgets_api.rb +40 -40
- data/lib/api-sdk-rb/api/workflows_api.rb +246 -468
- data/lib/api-sdk-rb/configuration.rb +0 -60
- data/lib/api-sdk-rb/models/{get_user_adapter_connections200_response.rb → account_credit_transaction_list_response.rb} +4 -4
- data/lib/api-sdk-rb/models/{get_partner_credit_transactions200_response.rb → adapter_connection_list_response.rb} +4 -4
- data/lib/api-sdk-rb/models/{save_workspace_workflow200_response.rb → adapter_connection_removal_response.rb} +4 -4
- data/lib/api-sdk-rb/models/{set_user_adapter_connection200_response.rb → adapter_connection_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{add_ai_answers_knowledge_document201_response.rb → ai_answers_knowledge_document_response.rb} +3 -3
- data/lib/api-sdk-rb/models/brand_kit_tokens.rb +33 -2
- data/lib/api-sdk-rb/models/brand_kit_view.rb +1 -1
- data/lib/api-sdk-rb/models/brand_text_style.rb +344 -0
- data/lib/api-sdk-rb/models/{create_composition_database_record201_response.rb → composition_database_record_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{create_composition_content_item201_response.rb → content_item_write_result_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{operations_id_get_response.rb → delete_upload200_response.rb} +4 -5
- data/lib/api-sdk-rb/models/{uploads_id_delete200_response_data.rb → delete_upload200_response_data.rb} +3 -3
- data/lib/api-sdk-rb/models/{get_partner_design_defaults200_response.rb → design_defaults_response.rb} +3 -3
- data/lib/api-sdk-rb/models/get_operation_response.rb +247 -0
- data/lib/api-sdk-rb/models/{operations_id_get_response_data.rb → get_operation_response_data.rb} +5 -8
- data/lib/api-sdk-rb/models/get_operation_response_data_metadata.rb +283 -0
- data/lib/api-sdk-rb/models/{uploads_get200_response.rb → list_uploads200_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{get_managed_user_limits200_response.rb → managed_user_limits_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{uploads_id_delete200_response.rb → managed_user_removal_response.rb} +4 -4
- data/lib/api-sdk-rb/models/patch_brand_kit_request.rb +32 -1
- data/lib/api-sdk-rb/models/public_workflow_events_request_events_inner.rb +26 -4
- data/lib/api-sdk-rb/models/{get_public_workflow200_response.rb → public_workflow_response.rb} +3 -3
- data/lib/api-sdk-rb/models/upload.rb +1 -1
- data/lib/api-sdk-rb/models/upload_limits.rb +3 -3
- data/lib/api-sdk-rb/models/widget_clarification.rb +279 -0
- data/lib/api-sdk-rb/models/{create_composition_from_widget201_response.rb → widget_clarification_option.rb} +40 -30
- data/lib/api-sdk-rb/models/widget_clarification_question.rb +329 -0
- data/lib/api-sdk-rb/models/widget_next_step.rb +307 -0
- data/lib/api-sdk-rb/models/widget_plan.rb +306 -0
- data/lib/api-sdk-rb/models/widget_plan_decisions.rb +346 -0
- data/lib/api-sdk-rb/models/widget_plan_decisions_adapters_inner.rb +237 -0
- data/lib/api-sdk-rb/models/{create_workspace_workflow_from_preset201_response.rb → widget_plan_decisions_libraries_inner.rb} +39 -30
- data/lib/api-sdk-rb/models/widget_plan_decisions_responsive.rb +311 -0
- data/lib/api-sdk-rb/models/widget_plan_task.rb +320 -0
- data/lib/api-sdk-rb/models/{delete_managed_user200_response.rb → workflow_detail_response.rb} +4 -4
- data/lib/api-sdk-rb/models/workflow_failure_reason.rb +42 -0
- data/lib/api-sdk-rb/models/workflow_failure_reason_counter.rb +277 -0
- data/lib/api-sdk-rb/models/workflow_response.rb +246 -0
- data/lib/api-sdk-rb/models/workflow_stats.rb +17 -5
- data/lib/api-sdk-rb/version.rb +1 -1
- data/lib/api-sdk-rb.rb +32 -21
- data/spec/api/brand_kit_api_spec.rb +18 -18
- data/spec/api/canvases_api_spec.rb +10 -10
- data/spec/api/compositions_api_spec.rb +144 -83
- data/spec/api/credits_api_spec.rb +5 -5
- data/spec/api/entitlements_api_spec.rb +4 -4
- data/spec/api/invoices_api_spec.rb +2 -2
- data/spec/api/managed_users_api_spec.rb +63 -42
- data/spec/api/operations_api_spec.rb +3 -3
- data/spec/api/partners_api_spec.rb +91 -91
- data/spec/api/public_embed_api_spec.rb +23 -23
- data/spec/api/tokens_api_spec.rb +3 -2
- data/spec/api/uploads_api_spec.rb +24 -24
- data/spec/api/users_api_spec.rb +30 -30
- data/spec/api/widgets_api_spec.rb +9 -9
- data/spec/api/workflows_api_spec.rb +50 -89
- data/spec/models/{get_user_adapter_connections200_response_spec.rb → account_credit_transaction_list_response_spec.rb} +6 -6
- data/spec/models/{get_public_workflow200_response_spec.rb → adapter_connection_list_response_spec.rb} +6 -6
- data/spec/models/{save_workspace_workflow200_response_spec.rb → adapter_connection_removal_response_spec.rb} +6 -6
- data/spec/models/{delete_managed_user200_response_spec.rb → adapter_connection_response_spec.rb} +6 -6
- data/spec/models/ai_answers_knowledge_document_response_spec.rb +48 -0
- data/spec/models/brand_kit_tokens_spec.rb +6 -0
- data/spec/models/{create_composition_from_widget201_response_spec.rb → brand_text_style_spec.rb} +13 -9
- data/spec/models/{get_managed_user_limits200_response_spec.rb → composition_database_record_response_spec.rb} +6 -6
- data/spec/models/content_item_write_result_response_spec.rb +48 -0
- data/spec/models/{uploads_id_delete200_response_data_spec.rb → delete_upload200_response_data_spec.rb} +6 -6
- data/spec/models/{operations_id_get_response_spec.rb → delete_upload200_response_spec.rb} +6 -6
- data/spec/models/design_defaults_response_spec.rb +48 -0
- data/spec/models/get_operation_response_data_metadata_spec.rb +58 -0
- data/spec/models/{operations_id_get_response_data_spec.rb → get_operation_response_data_spec.rb} +6 -6
- data/spec/models/{uploads_get200_response_spec.rb → get_operation_response_spec.rb} +6 -6
- data/spec/models/list_uploads200_response_spec.rb +48 -0
- data/spec/models/managed_user_limits_response_spec.rb +48 -0
- data/spec/models/{uploads_id_delete200_response_spec.rb → managed_user_removal_response_spec.rb} +6 -6
- data/spec/models/patch_brand_kit_request_spec.rb +6 -0
- data/spec/models/public_workflow_events_request_events_inner_spec.rb +10 -0
- data/spec/models/public_workflow_response_spec.rb +48 -0
- data/spec/models/widget_clarification_option_spec.rb +48 -0
- data/spec/models/widget_clarification_question_spec.rb +60 -0
- data/spec/models/widget_clarification_spec.rb +48 -0
- data/spec/models/widget_next_step_spec.rb +58 -0
- data/spec/models/widget_plan_decisions_adapters_inner_spec.rb +42 -0
- data/spec/models/widget_plan_decisions_libraries_inner_spec.rb +48 -0
- data/spec/models/widget_plan_decisions_responsive_spec.rb +48 -0
- data/spec/models/widget_plan_decisions_spec.rb +78 -0
- data/spec/models/{create_composition_database_record201_response_spec.rb → widget_plan_spec.rb} +21 -9
- data/spec/models/widget_plan_task_spec.rb +62 -0
- data/spec/models/workflow_detail_response_spec.rb +48 -0
- data/spec/models/workflow_failure_reason_counter_spec.rb +48 -0
- data/spec/models/workflow_failure_reason_spec.rb +30 -0
- data/spec/models/workflow_response_spec.rb +48 -0
- data/spec/models/workflow_stats_spec.rb +6 -0
- metadata +130 -86
- data/docs/PartnerApi.md +0 -12714
- data/docs/UploadsIdDelete200Response.md +0 -22
- data/docs/WorkspacesApi.md +0 -1527
- data/lib/api-sdk-rb/api/partner_api.rb +0 -13791
- data/lib/api-sdk-rb/api/workspaces_api.rb +0 -1775
- data/lib/api-sdk-rb/models/remove_user_adapter_connection200_response.rb +0 -246
- data/spec/api/partner_api_spec.rb +0 -2437
- data/spec/api/workspaces_api_spec.rb +0 -339
- data/spec/models/add_ai_answers_knowledge_document201_response_spec.rb +0 -48
- data/spec/models/create_composition_content_item201_response_spec.rb +0 -48
- data/spec/models/create_workspace_workflow_from_preset201_response_spec.rb +0 -48
- data/spec/models/get_partner_credit_transactions200_response_spec.rb +0 -48
- data/spec/models/get_partner_design_defaults200_response_spec.rb +0 -48
- data/spec/models/remove_user_adapter_connection200_response_spec.rb +0 -48
- data/spec/models/set_user_adapter_connection200_response_spec.rb +0 -48
|
@@ -26,9 +26,9 @@ module ApiSdkRb
|
|
|
26
26
|
# @param credential_key [String] The credential's name within the adapter
|
|
27
27
|
# @param confirm_adapter_connection_request [ConfirmAdapterConnectionRequest]
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
29
|
-
# @return [
|
|
30
|
-
def
|
|
31
|
-
data, _status_code, _headers =
|
|
29
|
+
# @return [AdapterConnectionResponse]
|
|
30
|
+
def confirm_partner_adapter_connection(partner_id, adapter_id, credential_key, confirm_adapter_connection_request, opts = {})
|
|
31
|
+
data, _status_code, _headers = confirm_partner_adapter_connection_with_http_info(partner_id, adapter_id, credential_key, confirm_adapter_connection_request, opts)
|
|
32
32
|
data
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -39,34 +39,34 @@ module ApiSdkRb
|
|
|
39
39
|
# @param credential_key [String] The credential's name within the adapter
|
|
40
40
|
# @param confirm_adapter_connection_request [ConfirmAdapterConnectionRequest]
|
|
41
41
|
# @param [Hash] opts the optional parameters
|
|
42
|
-
# @return [Array<(
|
|
43
|
-
def
|
|
42
|
+
# @return [Array<(AdapterConnectionResponse, Integer, Hash)>] AdapterConnectionResponse data, response status code and response headers
|
|
43
|
+
def confirm_partner_adapter_connection_with_http_info(partner_id, adapter_id, credential_key, confirm_adapter_connection_request, opts = {})
|
|
44
44
|
if @api_client.config.debugging
|
|
45
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.confirm_partner_adapter_connection ...'
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'partner_id' is set
|
|
48
48
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.confirm_partner_adapter_connection"
|
|
50
50
|
end
|
|
51
51
|
# verify the required parameter 'adapter_id' is set
|
|
52
52
|
if @api_client.config.client_side_validation && adapter_id.nil?
|
|
53
|
-
fail ArgumentError, "Missing the required parameter 'adapter_id' when calling PartnersApi.
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'adapter_id' when calling PartnersApi.confirm_partner_adapter_connection"
|
|
54
54
|
end
|
|
55
55
|
if @api_client.config.client_side_validation && adapter_id.to_s.length > 40
|
|
56
|
-
fail ArgumentError, 'invalid value for "adapter_id" when calling PartnersApi.
|
|
56
|
+
fail ArgumentError, 'invalid value for "adapter_id" when calling PartnersApi.confirm_partner_adapter_connection, the character length must be smaller than or equal to 40.'
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
# verify the required parameter 'credential_key' is set
|
|
60
60
|
if @api_client.config.client_side_validation && credential_key.nil?
|
|
61
|
-
fail ArgumentError, "Missing the required parameter 'credential_key' when calling PartnersApi.
|
|
61
|
+
fail ArgumentError, "Missing the required parameter 'credential_key' when calling PartnersApi.confirm_partner_adapter_connection"
|
|
62
62
|
end
|
|
63
63
|
if @api_client.config.client_side_validation && credential_key.to_s.length > 40
|
|
64
|
-
fail ArgumentError, 'invalid value for "credential_key" when calling PartnersApi.
|
|
64
|
+
fail ArgumentError, 'invalid value for "credential_key" when calling PartnersApi.confirm_partner_adapter_connection, the character length must be smaller than or equal to 40.'
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
# verify the required parameter 'confirm_adapter_connection_request' is set
|
|
68
68
|
if @api_client.config.client_side_validation && confirm_adapter_connection_request.nil?
|
|
69
|
-
fail ArgumentError, "Missing the required parameter 'confirm_adapter_connection_request' when calling PartnersApi.
|
|
69
|
+
fail ArgumentError, "Missing the required parameter 'confirm_adapter_connection_request' when calling PartnersApi.confirm_partner_adapter_connection"
|
|
70
70
|
end
|
|
71
71
|
# resource path
|
|
72
72
|
local_var_path = '/partners/{partnerId}/adapter-connections/{adapterId}/{credentialKey}/confirm'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s)).sub('{' + 'adapterId' + '}', CGI.escape(adapter_id.to_s)).sub('{' + 'credentialKey' + '}', CGI.escape(credential_key.to_s))
|
|
@@ -91,13 +91,13 @@ module ApiSdkRb
|
|
|
91
91
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(confirm_adapter_connection_request)
|
|
92
92
|
|
|
93
93
|
# return_type
|
|
94
|
-
return_type = opts[:debug_return_type] || '
|
|
94
|
+
return_type = opts[:debug_return_type] || 'AdapterConnectionResponse'
|
|
95
95
|
|
|
96
96
|
# auth_names
|
|
97
97
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
98
98
|
|
|
99
99
|
new_options = opts.merge(
|
|
100
|
-
:operation => :"PartnersApi.
|
|
100
|
+
:operation => :"PartnersApi.confirm_partner_adapter_connection",
|
|
101
101
|
:header_params => header_params,
|
|
102
102
|
:query_params => query_params,
|
|
103
103
|
:form_params => form_params,
|
|
@@ -108,7 +108,7 @@ module ApiSdkRb
|
|
|
108
108
|
|
|
109
109
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
110
110
|
if @api_client.config.debugging
|
|
111
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
111
|
+
@api_client.config.logger.debug "API called: PartnersApi#confirm_partner_adapter_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
112
112
|
end
|
|
113
113
|
return data, status_code, headers
|
|
114
114
|
end
|
|
@@ -120,8 +120,8 @@ module ApiSdkRb
|
|
|
120
120
|
# @param request_extra_credits [RequestExtraCredits]
|
|
121
121
|
# @param [Hash] opts the optional parameters
|
|
122
122
|
# @return [PartnerExtraCreditsInvoiceResponse]
|
|
123
|
-
def
|
|
124
|
-
data, _status_code, _headers =
|
|
123
|
+
def create_partner_extra_credits_invoice(partner_id, idempotency_key, request_extra_credits, opts = {})
|
|
124
|
+
data, _status_code, _headers = create_partner_extra_credits_invoice_with_http_info(partner_id, idempotency_key, request_extra_credits, opts)
|
|
125
125
|
data
|
|
126
126
|
end
|
|
127
127
|
|
|
@@ -132,34 +132,34 @@ module ApiSdkRb
|
|
|
132
132
|
# @param request_extra_credits [RequestExtraCredits]
|
|
133
133
|
# @param [Hash] opts the optional parameters
|
|
134
134
|
# @return [Array<(PartnerExtraCreditsInvoiceResponse, Integer, Hash)>] PartnerExtraCreditsInvoiceResponse data, response status code and response headers
|
|
135
|
-
def
|
|
135
|
+
def create_partner_extra_credits_invoice_with_http_info(partner_id, idempotency_key, request_extra_credits, opts = {})
|
|
136
136
|
if @api_client.config.debugging
|
|
137
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
137
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.create_partner_extra_credits_invoice ...'
|
|
138
138
|
end
|
|
139
139
|
# verify the required parameter 'partner_id' is set
|
|
140
140
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
141
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
141
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.create_partner_extra_credits_invoice"
|
|
142
142
|
end
|
|
143
143
|
# verify the required parameter 'idempotency_key' is set
|
|
144
144
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
145
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.
|
|
145
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.create_partner_extra_credits_invoice"
|
|
146
146
|
end
|
|
147
147
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
|
|
148
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.
|
|
148
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.create_partner_extra_credits_invoice, the character length must be smaller than or equal to 50.'
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
|
|
152
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.
|
|
152
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.create_partner_extra_credits_invoice, the character length must be great than or equal to 8.'
|
|
153
153
|
end
|
|
154
154
|
|
|
155
155
|
pattern = Regexp.new(/^[A-Za-z0-9_-]+$/)
|
|
156
156
|
if @api_client.config.client_side_validation && idempotency_key !~ pattern
|
|
157
|
-
fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.
|
|
157
|
+
fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.create_partner_extra_credits_invoice, must conform to the pattern #{pattern}."
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
# verify the required parameter 'request_extra_credits' is set
|
|
161
161
|
if @api_client.config.client_side_validation && request_extra_credits.nil?
|
|
162
|
-
fail ArgumentError, "Missing the required parameter 'request_extra_credits' when calling PartnersApi.
|
|
162
|
+
fail ArgumentError, "Missing the required parameter 'request_extra_credits' when calling PartnersApi.create_partner_extra_credits_invoice"
|
|
163
163
|
end
|
|
164
164
|
# resource path
|
|
165
165
|
local_var_path = '/partners/{partnerId}/credits/extra-invoice'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -191,7 +191,7 @@ module ApiSdkRb
|
|
|
191
191
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
192
192
|
|
|
193
193
|
new_options = opts.merge(
|
|
194
|
-
:operation => :"PartnersApi.
|
|
194
|
+
:operation => :"PartnersApi.create_partner_extra_credits_invoice",
|
|
195
195
|
:header_params => header_params,
|
|
196
196
|
:query_params => query_params,
|
|
197
197
|
:form_params => form_params,
|
|
@@ -202,7 +202,7 @@ module ApiSdkRb
|
|
|
202
202
|
|
|
203
203
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
204
204
|
if @api_client.config.debugging
|
|
205
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
205
|
+
@api_client.config.logger.debug "API called: PartnersApi#create_partner_extra_credits_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
206
206
|
end
|
|
207
207
|
return data, status_code, headers
|
|
208
208
|
end
|
|
@@ -211,8 +211,8 @@ module ApiSdkRb
|
|
|
211
211
|
# Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key is that account's key, so it reads its own partner here. An account that administers no partner is not refused: it gets `standing: not_a_partner` and an empty list, so a dashboard can tell \"this is not a partner account\" from \"something failed\". The call stays open while the partner is paused, not yet active or in payment arrears: that is when its dashboard has to say why.
|
|
212
212
|
# @param [Hash] opts the optional parameters
|
|
213
213
|
# @return [MyPartnersResponse]
|
|
214
|
-
def
|
|
215
|
-
data, _status_code, _headers =
|
|
214
|
+
def get_my_partners(opts = {})
|
|
215
|
+
data, _status_code, _headers = get_my_partners_with_http_info(opts)
|
|
216
216
|
data
|
|
217
217
|
end
|
|
218
218
|
|
|
@@ -220,9 +220,9 @@ module ApiSdkRb
|
|
|
220
220
|
# Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key is that account's key, so it reads its own partner here. An account that administers no partner is not refused: it gets `standing: not_a_partner` and an empty list, so a dashboard can tell \"this is not a partner account\" from \"something failed\". The call stays open while the partner is paused, not yet active or in payment arrears: that is when its dashboard has to say why.
|
|
221
221
|
# @param [Hash] opts the optional parameters
|
|
222
222
|
# @return [Array<(MyPartnersResponse, Integer, Hash)>] MyPartnersResponse data, response status code and response headers
|
|
223
|
-
def
|
|
223
|
+
def get_my_partners_with_http_info(opts = {})
|
|
224
224
|
if @api_client.config.debugging
|
|
225
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
225
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_my_partners ...'
|
|
226
226
|
end
|
|
227
227
|
# resource path
|
|
228
228
|
local_var_path = '/partners/mine'
|
|
@@ -248,7 +248,7 @@ module ApiSdkRb
|
|
|
248
248
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
249
249
|
|
|
250
250
|
new_options = opts.merge(
|
|
251
|
-
:operation => :"PartnersApi.
|
|
251
|
+
:operation => :"PartnersApi.get_my_partners",
|
|
252
252
|
:header_params => header_params,
|
|
253
253
|
:query_params => query_params,
|
|
254
254
|
:form_params => form_params,
|
|
@@ -259,7 +259,7 @@ module ApiSdkRb
|
|
|
259
259
|
|
|
260
260
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
261
261
|
if @api_client.config.debugging
|
|
262
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
262
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_my_partners\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
263
263
|
end
|
|
264
264
|
return data, status_code, headers
|
|
265
265
|
end
|
|
@@ -268,9 +268,9 @@ module ApiSdkRb
|
|
|
268
268
|
# Widget adapters are capabilities a widget can use, and some of them act through a service the account that made the widget has with a provider: an adapter that sends email needs an email provider key, one that sends texts needs an SMS provider key. For the widgets of the customers a partner manages, those keys are the partner's. This lists every key an adapter takes from a partner and whether the partner has connected it. An empty list means no adapter takes a key from a partner at the moment. The list never contains a key: only whether one is connected and when it was last set. Connect a key with `setPartnerAdapterConnection`; take it away with `removePartnerAdapterConnection`. A managed customer never holds a key: the widgets of a managed customer use the partner's, and never the personal key of the person who administers the partner. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
|
|
269
269
|
# @param partner_id [String] The partner whose adapter keys to list
|
|
270
270
|
# @param [Hash] opts the optional parameters
|
|
271
|
-
# @return [
|
|
272
|
-
def
|
|
273
|
-
data, _status_code, _headers =
|
|
271
|
+
# @return [AdapterConnectionListResponse]
|
|
272
|
+
def get_partner_adapter_connections(partner_id, opts = {})
|
|
273
|
+
data, _status_code, _headers = get_partner_adapter_connections_with_http_info(partner_id, opts)
|
|
274
274
|
data
|
|
275
275
|
end
|
|
276
276
|
|
|
@@ -278,14 +278,14 @@ module ApiSdkRb
|
|
|
278
278
|
# Widget adapters are capabilities a widget can use, and some of them act through a service the account that made the widget has with a provider: an adapter that sends email needs an email provider key, one that sends texts needs an SMS provider key. For the widgets of the customers a partner manages, those keys are the partner's. This lists every key an adapter takes from a partner and whether the partner has connected it. An empty list means no adapter takes a key from a partner at the moment. The list never contains a key: only whether one is connected and when it was last set. Connect a key with `setPartnerAdapterConnection`; take it away with `removePartnerAdapterConnection`. A managed customer never holds a key: the widgets of a managed customer use the partner's, and never the personal key of the person who administers the partner. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
|
|
279
279
|
# @param partner_id [String] The partner whose adapter keys to list
|
|
280
280
|
# @param [Hash] opts the optional parameters
|
|
281
|
-
# @return [Array<(
|
|
282
|
-
def
|
|
281
|
+
# @return [Array<(AdapterConnectionListResponse, Integer, Hash)>] AdapterConnectionListResponse data, response status code and response headers
|
|
282
|
+
def get_partner_adapter_connections_with_http_info(partner_id, opts = {})
|
|
283
283
|
if @api_client.config.debugging
|
|
284
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
284
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_adapter_connections ...'
|
|
285
285
|
end
|
|
286
286
|
# verify the required parameter 'partner_id' is set
|
|
287
287
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
288
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
288
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_adapter_connections"
|
|
289
289
|
end
|
|
290
290
|
# resource path
|
|
291
291
|
local_var_path = '/partners/{partnerId}/adapter-connections'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -305,13 +305,13 @@ module ApiSdkRb
|
|
|
305
305
|
post_body = opts[:debug_body]
|
|
306
306
|
|
|
307
307
|
# return_type
|
|
308
|
-
return_type = opts[:debug_return_type] || '
|
|
308
|
+
return_type = opts[:debug_return_type] || 'AdapterConnectionListResponse'
|
|
309
309
|
|
|
310
310
|
# auth_names
|
|
311
311
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
312
312
|
|
|
313
313
|
new_options = opts.merge(
|
|
314
|
-
:operation => :"PartnersApi.
|
|
314
|
+
:operation => :"PartnersApi.get_partner_adapter_connections",
|
|
315
315
|
:header_params => header_params,
|
|
316
316
|
:query_params => query_params,
|
|
317
317
|
:form_params => form_params,
|
|
@@ -322,7 +322,7 @@ module ApiSdkRb
|
|
|
322
322
|
|
|
323
323
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
324
324
|
if @api_client.config.debugging
|
|
325
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
325
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_adapter_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
326
326
|
end
|
|
327
327
|
return data, status_code, headers
|
|
328
328
|
end
|
|
@@ -336,8 +336,8 @@ module ApiSdkRb
|
|
|
336
336
|
# @option opts [Integer] :limit How many managed users to list at most (default to 50)
|
|
337
337
|
# @option opts [Integer] :offset How many managed users to skip (default to 0)
|
|
338
338
|
# @return [PartnerAnalyticsByManagedUserResponse]
|
|
339
|
-
def
|
|
340
|
-
data, _status_code, _headers =
|
|
339
|
+
def get_partner_analytics_by_managed_user(partner_id, opts = {})
|
|
340
|
+
data, _status_code, _headers = get_partner_analytics_by_managed_user_with_http_info(partner_id, opts)
|
|
341
341
|
data
|
|
342
342
|
end
|
|
343
343
|
|
|
@@ -350,28 +350,28 @@ module ApiSdkRb
|
|
|
350
350
|
# @option opts [Integer] :limit How many managed users to list at most (default to 50)
|
|
351
351
|
# @option opts [Integer] :offset How many managed users to skip (default to 0)
|
|
352
352
|
# @return [Array<(PartnerAnalyticsByManagedUserResponse, Integer, Hash)>] PartnerAnalyticsByManagedUserResponse data, response status code and response headers
|
|
353
|
-
def
|
|
353
|
+
def get_partner_analytics_by_managed_user_with_http_info(partner_id, opts = {})
|
|
354
354
|
if @api_client.config.debugging
|
|
355
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
355
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_analytics_by_managed_user ...'
|
|
356
356
|
end
|
|
357
357
|
# verify the required parameter 'partner_id' is set
|
|
358
358
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
359
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
359
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_analytics_by_managed_user"
|
|
360
360
|
end
|
|
361
361
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
362
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.
|
|
362
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_analytics_by_managed_user, must be smaller than or equal to 100.'
|
|
363
363
|
end
|
|
364
364
|
|
|
365
365
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
366
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.
|
|
366
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_analytics_by_managed_user, must be greater than or equal to 1.'
|
|
367
367
|
end
|
|
368
368
|
|
|
369
369
|
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] > 100000
|
|
370
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.
|
|
370
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_analytics_by_managed_user, must be smaller than or equal to 100000.'
|
|
371
371
|
end
|
|
372
372
|
|
|
373
373
|
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
|
374
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.
|
|
374
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_analytics_by_managed_user, must be greater than or equal to 0.'
|
|
375
375
|
end
|
|
376
376
|
|
|
377
377
|
# resource path
|
|
@@ -402,7 +402,7 @@ module ApiSdkRb
|
|
|
402
402
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
403
403
|
|
|
404
404
|
new_options = opts.merge(
|
|
405
|
-
:operation => :"PartnersApi.
|
|
405
|
+
:operation => :"PartnersApi.get_partner_analytics_by_managed_user",
|
|
406
406
|
:header_params => header_params,
|
|
407
407
|
:query_params => query_params,
|
|
408
408
|
:form_params => form_params,
|
|
@@ -413,7 +413,7 @@ module ApiSdkRb
|
|
|
413
413
|
|
|
414
414
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
415
415
|
if @api_client.config.debugging
|
|
416
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
416
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_analytics_by_managed_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
417
417
|
end
|
|
418
418
|
return data, status_code, headers
|
|
419
419
|
end
|
|
@@ -427,8 +427,8 @@ module ApiSdkRb
|
|
|
427
427
|
# @option opts [String] :managed_user_id Report only on this managed user (Widgetic's id for the user). Send this or `managedUserExternalId`, not both.
|
|
428
428
|
# @option opts [String] :managed_user_external_id Report only on the managed user you registered with this `externalId` (your own identifier for the user). Send this or `managedUserId`, not both.
|
|
429
429
|
# @return [PartnerAnalyticsSummaryResponse]
|
|
430
|
-
def
|
|
431
|
-
data, _status_code, _headers =
|
|
430
|
+
def get_partner_analytics_summary(partner_id, opts = {})
|
|
431
|
+
data, _status_code, _headers = get_partner_analytics_summary_with_http_info(partner_id, opts)
|
|
432
432
|
data
|
|
433
433
|
end
|
|
434
434
|
|
|
@@ -441,16 +441,16 @@ module ApiSdkRb
|
|
|
441
441
|
# @option opts [String] :managed_user_id Report only on this managed user (Widgetic's id for the user). Send this or `managedUserExternalId`, not both.
|
|
442
442
|
# @option opts [String] :managed_user_external_id Report only on the managed user you registered with this `externalId` (your own identifier for the user). Send this or `managedUserId`, not both.
|
|
443
443
|
# @return [Array<(PartnerAnalyticsSummaryResponse, Integer, Hash)>] PartnerAnalyticsSummaryResponse data, response status code and response headers
|
|
444
|
-
def
|
|
444
|
+
def get_partner_analytics_summary_with_http_info(partner_id, opts = {})
|
|
445
445
|
if @api_client.config.debugging
|
|
446
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
446
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_analytics_summary ...'
|
|
447
447
|
end
|
|
448
448
|
# verify the required parameter 'partner_id' is set
|
|
449
449
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
450
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
450
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_analytics_summary"
|
|
451
451
|
end
|
|
452
452
|
if @api_client.config.client_side_validation && !opts[:'managed_user_external_id'].nil? && opts[:'managed_user_external_id'].to_s.length > 255
|
|
453
|
-
fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling PartnersApi.
|
|
453
|
+
fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling PartnersApi.get_partner_analytics_summary, the character length must be smaller than or equal to 255.'
|
|
454
454
|
end
|
|
455
455
|
|
|
456
456
|
# resource path
|
|
@@ -481,7 +481,7 @@ module ApiSdkRb
|
|
|
481
481
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
482
482
|
|
|
483
483
|
new_options = opts.merge(
|
|
484
|
-
:operation => :"PartnersApi.
|
|
484
|
+
:operation => :"PartnersApi.get_partner_analytics_summary",
|
|
485
485
|
:header_params => header_params,
|
|
486
486
|
:query_params => query_params,
|
|
487
487
|
:form_params => form_params,
|
|
@@ -492,7 +492,7 @@ module ApiSdkRb
|
|
|
492
492
|
|
|
493
493
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
494
494
|
if @api_client.config.debugging
|
|
495
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
495
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_analytics_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
496
496
|
end
|
|
497
497
|
return data, status_code, headers
|
|
498
498
|
end
|
|
@@ -506,8 +506,8 @@ module ApiSdkRb
|
|
|
506
506
|
# @option opts [String] :managed_user_id Report only on this managed user (Widgetic's id for the user). Send this or `managedUserExternalId`, not both.
|
|
507
507
|
# @option opts [String] :managed_user_external_id Report only on the managed user you registered with this `externalId`. Send this or `managedUserId`, not both.
|
|
508
508
|
# @return [PartnerAnalyticsTimelineResponse]
|
|
509
|
-
def
|
|
510
|
-
data, _status_code, _headers =
|
|
509
|
+
def get_partner_analytics_timeline(partner_id, opts = {})
|
|
510
|
+
data, _status_code, _headers = get_partner_analytics_timeline_with_http_info(partner_id, opts)
|
|
511
511
|
data
|
|
512
512
|
end
|
|
513
513
|
|
|
@@ -520,16 +520,16 @@ module ApiSdkRb
|
|
|
520
520
|
# @option opts [String] :managed_user_id Report only on this managed user (Widgetic's id for the user). Send this or `managedUserExternalId`, not both.
|
|
521
521
|
# @option opts [String] :managed_user_external_id Report only on the managed user you registered with this `externalId`. Send this or `managedUserId`, not both.
|
|
522
522
|
# @return [Array<(PartnerAnalyticsTimelineResponse, Integer, Hash)>] PartnerAnalyticsTimelineResponse data, response status code and response headers
|
|
523
|
-
def
|
|
523
|
+
def get_partner_analytics_timeline_with_http_info(partner_id, opts = {})
|
|
524
524
|
if @api_client.config.debugging
|
|
525
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
525
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_analytics_timeline ...'
|
|
526
526
|
end
|
|
527
527
|
# verify the required parameter 'partner_id' is set
|
|
528
528
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
529
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
529
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_analytics_timeline"
|
|
530
530
|
end
|
|
531
531
|
if @api_client.config.client_side_validation && !opts[:'managed_user_external_id'].nil? && opts[:'managed_user_external_id'].to_s.length > 255
|
|
532
|
-
fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling PartnersApi.
|
|
532
|
+
fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling PartnersApi.get_partner_analytics_timeline, the character length must be smaller than or equal to 255.'
|
|
533
533
|
end
|
|
534
534
|
|
|
535
535
|
# resource path
|
|
@@ -560,7 +560,7 @@ module ApiSdkRb
|
|
|
560
560
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
561
561
|
|
|
562
562
|
new_options = opts.merge(
|
|
563
|
-
:operation => :"PartnersApi.
|
|
563
|
+
:operation => :"PartnersApi.get_partner_analytics_timeline",
|
|
564
564
|
:header_params => header_params,
|
|
565
565
|
:query_params => query_params,
|
|
566
566
|
:form_params => form_params,
|
|
@@ -571,7 +571,7 @@ module ApiSdkRb
|
|
|
571
571
|
|
|
572
572
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
573
573
|
if @api_client.config.debugging
|
|
574
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
574
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_analytics_timeline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
575
575
|
end
|
|
576
576
|
return data, status_code, headers
|
|
577
577
|
end
|
|
@@ -586,8 +586,8 @@ module ApiSdkRb
|
|
|
586
586
|
# @option opts [String] :managed_user_external_id Report only on the managed user you registered with this `externalId`. Send this or `managedUserId`, not both.
|
|
587
587
|
# @option opts [Integer] :limit How many widgets to list at most (default to 10)
|
|
588
588
|
# @return [PartnerAnalyticsTopWidgetsResponse]
|
|
589
|
-
def
|
|
590
|
-
data, _status_code, _headers =
|
|
589
|
+
def get_partner_analytics_top_widgets(partner_id, opts = {})
|
|
590
|
+
data, _status_code, _headers = get_partner_analytics_top_widgets_with_http_info(partner_id, opts)
|
|
591
591
|
data
|
|
592
592
|
end
|
|
593
593
|
|
|
@@ -601,24 +601,24 @@ module ApiSdkRb
|
|
|
601
601
|
# @option opts [String] :managed_user_external_id Report only on the managed user you registered with this `externalId`. Send this or `managedUserId`, not both.
|
|
602
602
|
# @option opts [Integer] :limit How many widgets to list at most (default to 10)
|
|
603
603
|
# @return [Array<(PartnerAnalyticsTopWidgetsResponse, Integer, Hash)>] PartnerAnalyticsTopWidgetsResponse data, response status code and response headers
|
|
604
|
-
def
|
|
604
|
+
def get_partner_analytics_top_widgets_with_http_info(partner_id, opts = {})
|
|
605
605
|
if @api_client.config.debugging
|
|
606
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
606
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_analytics_top_widgets ...'
|
|
607
607
|
end
|
|
608
608
|
# verify the required parameter 'partner_id' is set
|
|
609
609
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
610
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
610
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_analytics_top_widgets"
|
|
611
611
|
end
|
|
612
612
|
if @api_client.config.client_side_validation && !opts[:'managed_user_external_id'].nil? && opts[:'managed_user_external_id'].to_s.length > 255
|
|
613
|
-
fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling PartnersApi.
|
|
613
|
+
fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling PartnersApi.get_partner_analytics_top_widgets, the character length must be smaller than or equal to 255.'
|
|
614
614
|
end
|
|
615
615
|
|
|
616
616
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 50
|
|
617
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.
|
|
617
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_analytics_top_widgets, must be smaller than or equal to 50.'
|
|
618
618
|
end
|
|
619
619
|
|
|
620
620
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
621
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.
|
|
621
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_analytics_top_widgets, must be greater than or equal to 1.'
|
|
622
622
|
end
|
|
623
623
|
|
|
624
624
|
# resource path
|
|
@@ -650,7 +650,7 @@ module ApiSdkRb
|
|
|
650
650
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
651
651
|
|
|
652
652
|
new_options = opts.merge(
|
|
653
|
-
:operation => :"PartnersApi.
|
|
653
|
+
:operation => :"PartnersApi.get_partner_analytics_top_widgets",
|
|
654
654
|
:header_params => header_params,
|
|
655
655
|
:query_params => query_params,
|
|
656
656
|
:form_params => form_params,
|
|
@@ -661,7 +661,7 @@ module ApiSdkRb
|
|
|
661
661
|
|
|
662
662
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
663
663
|
if @api_client.config.debugging
|
|
664
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
664
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_analytics_top_widgets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
665
665
|
end
|
|
666
666
|
return data, status_code, headers
|
|
667
667
|
end
|
|
@@ -671,8 +671,8 @@ module ApiSdkRb
|
|
|
671
671
|
# @param partner_id [String] Partner ID
|
|
672
672
|
# @param [Hash] opts the optional parameters
|
|
673
673
|
# @return [GetPartnerBillingOverview200Response]
|
|
674
|
-
def
|
|
675
|
-
data, _status_code, _headers =
|
|
674
|
+
def get_partner_billing_overview(partner_id, opts = {})
|
|
675
|
+
data, _status_code, _headers = get_partner_billing_overview_with_http_info(partner_id, opts)
|
|
676
676
|
data
|
|
677
677
|
end
|
|
678
678
|
|
|
@@ -681,13 +681,13 @@ module ApiSdkRb
|
|
|
681
681
|
# @param partner_id [String] Partner ID
|
|
682
682
|
# @param [Hash] opts the optional parameters
|
|
683
683
|
# @return [Array<(GetPartnerBillingOverview200Response, Integer, Hash)>] GetPartnerBillingOverview200Response data, response status code and response headers
|
|
684
|
-
def
|
|
684
|
+
def get_partner_billing_overview_with_http_info(partner_id, opts = {})
|
|
685
685
|
if @api_client.config.debugging
|
|
686
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
686
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_billing_overview ...'
|
|
687
687
|
end
|
|
688
688
|
# verify the required parameter 'partner_id' is set
|
|
689
689
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
690
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
690
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_billing_overview"
|
|
691
691
|
end
|
|
692
692
|
# resource path
|
|
693
693
|
local_var_path = '/partners/{partnerId}/billing-overview'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -713,7 +713,7 @@ module ApiSdkRb
|
|
|
713
713
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
714
714
|
|
|
715
715
|
new_options = opts.merge(
|
|
716
|
-
:operation => :"PartnersApi.
|
|
716
|
+
:operation => :"PartnersApi.get_partner_billing_overview",
|
|
717
717
|
:header_params => header_params,
|
|
718
718
|
:query_params => query_params,
|
|
719
719
|
:form_params => form_params,
|
|
@@ -724,7 +724,7 @@ module ApiSdkRb
|
|
|
724
724
|
|
|
725
725
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
726
726
|
if @api_client.config.debugging
|
|
727
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
727
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_billing_overview\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
728
728
|
end
|
|
729
729
|
return data, status_code, headers
|
|
730
730
|
end
|
|
@@ -734,8 +734,8 @@ module ApiSdkRb
|
|
|
734
734
|
# @param partner_id [String] The partner whose contract to read
|
|
735
735
|
# @param [Hash] opts the optional parameters
|
|
736
736
|
# @return [PartnerContractResponse]
|
|
737
|
-
def
|
|
738
|
-
data, _status_code, _headers =
|
|
737
|
+
def get_partner_contract(partner_id, opts = {})
|
|
738
|
+
data, _status_code, _headers = get_partner_contract_with_http_info(partner_id, opts)
|
|
739
739
|
data
|
|
740
740
|
end
|
|
741
741
|
|
|
@@ -744,13 +744,13 @@ module ApiSdkRb
|
|
|
744
744
|
# @param partner_id [String] The partner whose contract to read
|
|
745
745
|
# @param [Hash] opts the optional parameters
|
|
746
746
|
# @return [Array<(PartnerContractResponse, Integer, Hash)>] PartnerContractResponse data, response status code and response headers
|
|
747
|
-
def
|
|
747
|
+
def get_partner_contract_with_http_info(partner_id, opts = {})
|
|
748
748
|
if @api_client.config.debugging
|
|
749
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
749
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_contract ...'
|
|
750
750
|
end
|
|
751
751
|
# verify the required parameter 'partner_id' is set
|
|
752
752
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
753
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
753
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_contract"
|
|
754
754
|
end
|
|
755
755
|
# resource path
|
|
756
756
|
local_var_path = '/partners/{partnerId}/contract'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -776,7 +776,7 @@ module ApiSdkRb
|
|
|
776
776
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
777
777
|
|
|
778
778
|
new_options = opts.merge(
|
|
779
|
-
:operation => :"PartnersApi.
|
|
779
|
+
:operation => :"PartnersApi.get_partner_contract",
|
|
780
780
|
:header_params => header_params,
|
|
781
781
|
:query_params => query_params,
|
|
782
782
|
:form_params => form_params,
|
|
@@ -787,7 +787,7 @@ module ApiSdkRb
|
|
|
787
787
|
|
|
788
788
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
789
789
|
if @api_client.config.debugging
|
|
790
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
790
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_contract\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
791
791
|
end
|
|
792
792
|
return data, status_code, headers
|
|
793
793
|
end
|
|
@@ -797,8 +797,8 @@ module ApiSdkRb
|
|
|
797
797
|
# @param partner_id [String] Partner ID
|
|
798
798
|
# @param [Hash] opts the optional parameters
|
|
799
799
|
# @return [AccountCreditBalanceResponse]
|
|
800
|
-
def
|
|
801
|
-
data, _status_code, _headers =
|
|
800
|
+
def get_partner_credit_balance(partner_id, opts = {})
|
|
801
|
+
data, _status_code, _headers = get_partner_credit_balance_with_http_info(partner_id, opts)
|
|
802
802
|
data
|
|
803
803
|
end
|
|
804
804
|
|
|
@@ -807,13 +807,13 @@ module ApiSdkRb
|
|
|
807
807
|
# @param partner_id [String] Partner ID
|
|
808
808
|
# @param [Hash] opts the optional parameters
|
|
809
809
|
# @return [Array<(AccountCreditBalanceResponse, Integer, Hash)>] AccountCreditBalanceResponse data, response status code and response headers
|
|
810
|
-
def
|
|
810
|
+
def get_partner_credit_balance_with_http_info(partner_id, opts = {})
|
|
811
811
|
if @api_client.config.debugging
|
|
812
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
812
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_credit_balance ...'
|
|
813
813
|
end
|
|
814
814
|
# verify the required parameter 'partner_id' is set
|
|
815
815
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
816
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
816
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_credit_balance"
|
|
817
817
|
end
|
|
818
818
|
# resource path
|
|
819
819
|
local_var_path = '/partners/{partnerId}/credits/balance'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -839,7 +839,7 @@ module ApiSdkRb
|
|
|
839
839
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
840
840
|
|
|
841
841
|
new_options = opts.merge(
|
|
842
|
-
:operation => :"PartnersApi.
|
|
842
|
+
:operation => :"PartnersApi.get_partner_credit_balance",
|
|
843
843
|
:header_params => header_params,
|
|
844
844
|
:query_params => query_params,
|
|
845
845
|
:form_params => form_params,
|
|
@@ -850,7 +850,7 @@ module ApiSdkRb
|
|
|
850
850
|
|
|
851
851
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
852
852
|
if @api_client.config.debugging
|
|
853
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
853
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_credit_balance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
854
854
|
end
|
|
855
855
|
return data, status_code, headers
|
|
856
856
|
end
|
|
@@ -862,9 +862,9 @@ module ApiSdkRb
|
|
|
862
862
|
# @option opts [Integer] :limit Number of transactions to return (default to 20)
|
|
863
863
|
# @option opts [Integer] :offset Number of transactions to skip (default to 0)
|
|
864
864
|
# @option opts [String] :type Only entries of this type, for instance `debit` for the credits spent. The types are listed on `AccountCreditTransaction`.
|
|
865
|
-
# @return [
|
|
866
|
-
def
|
|
867
|
-
data, _status_code, _headers =
|
|
865
|
+
# @return [AccountCreditTransactionListResponse]
|
|
866
|
+
def get_partner_credit_transactions(partner_id, opts = {})
|
|
867
|
+
data, _status_code, _headers = get_partner_credit_transactions_with_http_info(partner_id, opts)
|
|
868
868
|
data
|
|
869
869
|
end
|
|
870
870
|
|
|
@@ -875,25 +875,25 @@ module ApiSdkRb
|
|
|
875
875
|
# @option opts [Integer] :limit Number of transactions to return (default to 20)
|
|
876
876
|
# @option opts [Integer] :offset Number of transactions to skip (default to 0)
|
|
877
877
|
# @option opts [String] :type Only entries of this type, for instance `debit` for the credits spent. The types are listed on `AccountCreditTransaction`.
|
|
878
|
-
# @return [Array<(
|
|
879
|
-
def
|
|
878
|
+
# @return [Array<(AccountCreditTransactionListResponse, Integer, Hash)>] AccountCreditTransactionListResponse data, response status code and response headers
|
|
879
|
+
def get_partner_credit_transactions_with_http_info(partner_id, opts = {})
|
|
880
880
|
if @api_client.config.debugging
|
|
881
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
881
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_credit_transactions ...'
|
|
882
882
|
end
|
|
883
883
|
# verify the required parameter 'partner_id' is set
|
|
884
884
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
885
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
885
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_credit_transactions"
|
|
886
886
|
end
|
|
887
887
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
888
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.
|
|
888
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_credit_transactions, must be smaller than or equal to 100.'
|
|
889
889
|
end
|
|
890
890
|
|
|
891
891
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
892
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.
|
|
892
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_credit_transactions, must be greater than or equal to 1.'
|
|
893
893
|
end
|
|
894
894
|
|
|
895
895
|
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
|
896
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.
|
|
896
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_credit_transactions, must be greater than or equal to 0.'
|
|
897
897
|
end
|
|
898
898
|
|
|
899
899
|
# resource path
|
|
@@ -917,13 +917,13 @@ module ApiSdkRb
|
|
|
917
917
|
post_body = opts[:debug_body]
|
|
918
918
|
|
|
919
919
|
# return_type
|
|
920
|
-
return_type = opts[:debug_return_type] || '
|
|
920
|
+
return_type = opts[:debug_return_type] || 'AccountCreditTransactionListResponse'
|
|
921
921
|
|
|
922
922
|
# auth_names
|
|
923
923
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
924
924
|
|
|
925
925
|
new_options = opts.merge(
|
|
926
|
-
:operation => :"PartnersApi.
|
|
926
|
+
:operation => :"PartnersApi.get_partner_credit_transactions",
|
|
927
927
|
:header_params => header_params,
|
|
928
928
|
:query_params => query_params,
|
|
929
929
|
:form_params => form_params,
|
|
@@ -934,7 +934,7 @@ module ApiSdkRb
|
|
|
934
934
|
|
|
935
935
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
936
936
|
if @api_client.config.debugging
|
|
937
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
937
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_credit_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
938
938
|
end
|
|
939
939
|
return data, status_code, headers
|
|
940
940
|
end
|
|
@@ -944,8 +944,8 @@ module ApiSdkRb
|
|
|
944
944
|
# @param partner_id [String] The partner whose database to read
|
|
945
945
|
# @param [Hash] opts the optional parameters
|
|
946
946
|
# @return [PartnerDataDatabaseResponse]
|
|
947
|
-
def
|
|
948
|
-
data, _status_code, _headers =
|
|
947
|
+
def get_partner_data_database(partner_id, opts = {})
|
|
948
|
+
data, _status_code, _headers = get_partner_data_database_with_http_info(partner_id, opts)
|
|
949
949
|
data
|
|
950
950
|
end
|
|
951
951
|
|
|
@@ -954,13 +954,13 @@ module ApiSdkRb
|
|
|
954
954
|
# @param partner_id [String] The partner whose database to read
|
|
955
955
|
# @param [Hash] opts the optional parameters
|
|
956
956
|
# @return [Array<(PartnerDataDatabaseResponse, Integer, Hash)>] PartnerDataDatabaseResponse data, response status code and response headers
|
|
957
|
-
def
|
|
957
|
+
def get_partner_data_database_with_http_info(partner_id, opts = {})
|
|
958
958
|
if @api_client.config.debugging
|
|
959
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
959
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_data_database ...'
|
|
960
960
|
end
|
|
961
961
|
# verify the required parameter 'partner_id' is set
|
|
962
962
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
963
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
963
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_data_database"
|
|
964
964
|
end
|
|
965
965
|
# resource path
|
|
966
966
|
local_var_path = '/partners/{partnerId}/data-database'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -986,7 +986,7 @@ module ApiSdkRb
|
|
|
986
986
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
987
987
|
|
|
988
988
|
new_options = opts.merge(
|
|
989
|
-
:operation => :"PartnersApi.
|
|
989
|
+
:operation => :"PartnersApi.get_partner_data_database",
|
|
990
990
|
:header_params => header_params,
|
|
991
991
|
:query_params => query_params,
|
|
992
992
|
:form_params => form_params,
|
|
@@ -997,7 +997,7 @@ module ApiSdkRb
|
|
|
997
997
|
|
|
998
998
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
999
999
|
if @api_client.config.debugging
|
|
1000
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1000
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_data_database\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1001
1001
|
end
|
|
1002
1002
|
return data, status_code, headers
|
|
1003
1003
|
end
|
|
@@ -1005,23 +1005,23 @@ module ApiSdkRb
|
|
|
1005
1005
|
# Read partner-wide design defaults
|
|
1006
1006
|
# @param partner_id [String]
|
|
1007
1007
|
# @param [Hash] opts the optional parameters
|
|
1008
|
-
# @return [
|
|
1009
|
-
def
|
|
1010
|
-
data, _status_code, _headers =
|
|
1008
|
+
# @return [DesignDefaultsResponse]
|
|
1009
|
+
def get_partner_design_defaults(partner_id, opts = {})
|
|
1010
|
+
data, _status_code, _headers = get_partner_design_defaults_with_http_info(partner_id, opts)
|
|
1011
1011
|
data
|
|
1012
1012
|
end
|
|
1013
1013
|
|
|
1014
1014
|
# Read partner-wide design defaults
|
|
1015
1015
|
# @param partner_id [String]
|
|
1016
1016
|
# @param [Hash] opts the optional parameters
|
|
1017
|
-
# @return [Array<(
|
|
1018
|
-
def
|
|
1017
|
+
# @return [Array<(DesignDefaultsResponse, Integer, Hash)>] DesignDefaultsResponse data, response status code and response headers
|
|
1018
|
+
def get_partner_design_defaults_with_http_info(partner_id, opts = {})
|
|
1019
1019
|
if @api_client.config.debugging
|
|
1020
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1020
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_design_defaults ...'
|
|
1021
1021
|
end
|
|
1022
1022
|
# verify the required parameter 'partner_id' is set
|
|
1023
1023
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1024
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1024
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_design_defaults"
|
|
1025
1025
|
end
|
|
1026
1026
|
# resource path
|
|
1027
1027
|
local_var_path = '/partners/{partnerId}/design-defaults'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -1041,13 +1041,13 @@ module ApiSdkRb
|
|
|
1041
1041
|
post_body = opts[:debug_body]
|
|
1042
1042
|
|
|
1043
1043
|
# return_type
|
|
1044
|
-
return_type = opts[:debug_return_type] || '
|
|
1044
|
+
return_type = opts[:debug_return_type] || 'DesignDefaultsResponse'
|
|
1045
1045
|
|
|
1046
1046
|
# auth_names
|
|
1047
1047
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1048
1048
|
|
|
1049
1049
|
new_options = opts.merge(
|
|
1050
|
-
:operation => :"PartnersApi.
|
|
1050
|
+
:operation => :"PartnersApi.get_partner_design_defaults",
|
|
1051
1051
|
:header_params => header_params,
|
|
1052
1052
|
:query_params => query_params,
|
|
1053
1053
|
:form_params => form_params,
|
|
@@ -1058,7 +1058,7 @@ module ApiSdkRb
|
|
|
1058
1058
|
|
|
1059
1059
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1060
1060
|
if @api_client.config.debugging
|
|
1061
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1061
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_design_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1062
1062
|
end
|
|
1063
1063
|
return data, status_code, headers
|
|
1064
1064
|
end
|
|
@@ -1068,8 +1068,8 @@ module ApiSdkRb
|
|
|
1068
1068
|
# @param partner_id [String] The partner whose context signing to read
|
|
1069
1069
|
# @param [Hash] opts the optional parameters
|
|
1070
1070
|
# @return [PartnerEntryContextSigningResponse]
|
|
1071
|
-
def
|
|
1072
|
-
data, _status_code, _headers =
|
|
1071
|
+
def get_partner_entry_context_signing(partner_id, opts = {})
|
|
1072
|
+
data, _status_code, _headers = get_partner_entry_context_signing_with_http_info(partner_id, opts)
|
|
1073
1073
|
data
|
|
1074
1074
|
end
|
|
1075
1075
|
|
|
@@ -1078,13 +1078,13 @@ module ApiSdkRb
|
|
|
1078
1078
|
# @param partner_id [String] The partner whose context signing to read
|
|
1079
1079
|
# @param [Hash] opts the optional parameters
|
|
1080
1080
|
# @return [Array<(PartnerEntryContextSigningResponse, Integer, Hash)>] PartnerEntryContextSigningResponse data, response status code and response headers
|
|
1081
|
-
def
|
|
1081
|
+
def get_partner_entry_context_signing_with_http_info(partner_id, opts = {})
|
|
1082
1082
|
if @api_client.config.debugging
|
|
1083
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1083
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_entry_context_signing ...'
|
|
1084
1084
|
end
|
|
1085
1085
|
# verify the required parameter 'partner_id' is set
|
|
1086
1086
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1087
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1087
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_entry_context_signing"
|
|
1088
1088
|
end
|
|
1089
1089
|
# resource path
|
|
1090
1090
|
local_var_path = '/partners/{partnerId}/entry-context-signing'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -1110,7 +1110,7 @@ module ApiSdkRb
|
|
|
1110
1110
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1111
1111
|
|
|
1112
1112
|
new_options = opts.merge(
|
|
1113
|
-
:operation => :"PartnersApi.
|
|
1113
|
+
:operation => :"PartnersApi.get_partner_entry_context_signing",
|
|
1114
1114
|
:header_params => header_params,
|
|
1115
1115
|
:query_params => query_params,
|
|
1116
1116
|
:form_params => form_params,
|
|
@@ -1121,7 +1121,7 @@ module ApiSdkRb
|
|
|
1121
1121
|
|
|
1122
1122
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1123
1123
|
if @api_client.config.debugging
|
|
1124
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1124
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_entry_context_signing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1125
1125
|
end
|
|
1126
1126
|
return data, status_code, headers
|
|
1127
1127
|
end
|
|
@@ -1131,8 +1131,8 @@ module ApiSdkRb
|
|
|
1131
1131
|
# @param partner_id [String] The partner whose notification settings to read
|
|
1132
1132
|
# @param [Hash] opts the optional parameters
|
|
1133
1133
|
# @return [PartnerNotificationSettingsResponse]
|
|
1134
|
-
def
|
|
1135
|
-
data, _status_code, _headers =
|
|
1134
|
+
def get_partner_notification_settings(partner_id, opts = {})
|
|
1135
|
+
data, _status_code, _headers = get_partner_notification_settings_with_http_info(partner_id, opts)
|
|
1136
1136
|
data
|
|
1137
1137
|
end
|
|
1138
1138
|
|
|
@@ -1141,13 +1141,13 @@ module ApiSdkRb
|
|
|
1141
1141
|
# @param partner_id [String] The partner whose notification settings to read
|
|
1142
1142
|
# @param [Hash] opts the optional parameters
|
|
1143
1143
|
# @return [Array<(PartnerNotificationSettingsResponse, Integer, Hash)>] PartnerNotificationSettingsResponse data, response status code and response headers
|
|
1144
|
-
def
|
|
1144
|
+
def get_partner_notification_settings_with_http_info(partner_id, opts = {})
|
|
1145
1145
|
if @api_client.config.debugging
|
|
1146
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1146
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_notification_settings ...'
|
|
1147
1147
|
end
|
|
1148
1148
|
# verify the required parameter 'partner_id' is set
|
|
1149
1149
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1150
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1150
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_notification_settings"
|
|
1151
1151
|
end
|
|
1152
1152
|
# resource path
|
|
1153
1153
|
local_var_path = '/partners/{partnerId}/notifications/settings'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -1173,7 +1173,7 @@ module ApiSdkRb
|
|
|
1173
1173
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1174
1174
|
|
|
1175
1175
|
new_options = opts.merge(
|
|
1176
|
-
:operation => :"PartnersApi.
|
|
1176
|
+
:operation => :"PartnersApi.get_partner_notification_settings",
|
|
1177
1177
|
:header_params => header_params,
|
|
1178
1178
|
:query_params => query_params,
|
|
1179
1179
|
:form_params => form_params,
|
|
@@ -1184,7 +1184,7 @@ module ApiSdkRb
|
|
|
1184
1184
|
|
|
1185
1185
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1186
1186
|
if @api_client.config.debugging
|
|
1187
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1187
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_notification_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1188
1188
|
end
|
|
1189
1189
|
return data, status_code, headers
|
|
1190
1190
|
end
|
|
@@ -1194,8 +1194,8 @@ module ApiSdkRb
|
|
|
1194
1194
|
# @param partner_id [String] The partner whose storage destination to read
|
|
1195
1195
|
# @param [Hash] opts the optional parameters
|
|
1196
1196
|
# @return [PartnerStorageDestinationResponse]
|
|
1197
|
-
def
|
|
1198
|
-
data, _status_code, _headers =
|
|
1197
|
+
def get_partner_storage_destination(partner_id, opts = {})
|
|
1198
|
+
data, _status_code, _headers = get_partner_storage_destination_with_http_info(partner_id, opts)
|
|
1199
1199
|
data
|
|
1200
1200
|
end
|
|
1201
1201
|
|
|
@@ -1204,13 +1204,13 @@ module ApiSdkRb
|
|
|
1204
1204
|
# @param partner_id [String] The partner whose storage destination to read
|
|
1205
1205
|
# @param [Hash] opts the optional parameters
|
|
1206
1206
|
# @return [Array<(PartnerStorageDestinationResponse, Integer, Hash)>] PartnerStorageDestinationResponse data, response status code and response headers
|
|
1207
|
-
def
|
|
1207
|
+
def get_partner_storage_destination_with_http_info(partner_id, opts = {})
|
|
1208
1208
|
if @api_client.config.debugging
|
|
1209
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1209
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_storage_destination ...'
|
|
1210
1210
|
end
|
|
1211
1211
|
# verify the required parameter 'partner_id' is set
|
|
1212
1212
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1213
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1213
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_storage_destination"
|
|
1214
1214
|
end
|
|
1215
1215
|
# resource path
|
|
1216
1216
|
local_var_path = '/partners/{partnerId}/storage'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -1236,7 +1236,7 @@ module ApiSdkRb
|
|
|
1236
1236
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1237
1237
|
|
|
1238
1238
|
new_options = opts.merge(
|
|
1239
|
-
:operation => :"PartnersApi.
|
|
1239
|
+
:operation => :"PartnersApi.get_partner_storage_destination",
|
|
1240
1240
|
:header_params => header_params,
|
|
1241
1241
|
:query_params => query_params,
|
|
1242
1242
|
:form_params => form_params,
|
|
@@ -1247,52 +1247,52 @@ module ApiSdkRb
|
|
|
1247
1247
|
|
|
1248
1248
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1249
1249
|
if @api_client.config.debugging
|
|
1250
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1250
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_storage_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1251
1251
|
end
|
|
1252
1252
|
return data, status_code, headers
|
|
1253
1253
|
end
|
|
1254
1254
|
|
|
1255
1255
|
# What a partner's customers store
|
|
1256
|
-
# Says how many files, and how many bytes, your account keeps, in total and for each of your managed users, and how much of it is in Widgetic's storage and how much in your own storage destination (`setPartnerStorageDestination`). Use it to see which customers store the most, or to charge them for it. A file is counted for a managed user when it was filed under that user: by naming `managed_user_id` or `managed_user_external_id` when you upload it (`
|
|
1256
|
+
# Says how many files, and how many bytes, your account keeps, in total and for each of your managed users, and how much of it is in Widgetic's storage and how much in your own storage destination (`setPartnerStorageDestination`). Use it to see which customers store the most, or to charge them for it. A file is counted for a managed user when it was filed under that user: by naming `managed_user_id` or `managed_user_external_id` when you upload it (`uploadFile`, or the metadata of a resumable upload), or because it was uploaded through that user's editor session, which files everything under its user. The files that are not filed under anyone (your own, and the ones uploaded without naming a managed user) are the row whose `managedUserId` is null. Deleted files are not counted. To list the files of one managed user, use the `managed_user_id` filter of `listUploads`. The answer is counted when you ask, so it is always current. The groups are ordered by size, the heaviest first, and `page.hasMore` says whether more follow. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
|
|
1257
1257
|
# @param partner_id [String] The partner whose storage to report on
|
|
1258
1258
|
# @param [Hash] opts the optional parameters
|
|
1259
1259
|
# @option opts [Integer] :limit How many managed users to list at most (default to 50)
|
|
1260
1260
|
# @option opts [Integer] :offset How many managed users to skip (default to 0)
|
|
1261
1261
|
# @return [PartnerStorageUsageResponse]
|
|
1262
|
-
def
|
|
1263
|
-
data, _status_code, _headers =
|
|
1262
|
+
def get_partner_storage_usage(partner_id, opts = {})
|
|
1263
|
+
data, _status_code, _headers = get_partner_storage_usage_with_http_info(partner_id, opts)
|
|
1264
1264
|
data
|
|
1265
1265
|
end
|
|
1266
1266
|
|
|
1267
1267
|
# What a partner's customers store
|
|
1268
|
-
# Says how many files, and how many bytes, your account keeps, in total and for each of your managed users, and how much of it is in Widgetic's storage and how much in your own storage destination (`setPartnerStorageDestination`). Use it to see which customers store the most, or to charge them for it. A file is counted for a managed user when it was filed under that user: by naming `managed_user_id` or `managed_user_external_id` when you upload it (`
|
|
1268
|
+
# Says how many files, and how many bytes, your account keeps, in total and for each of your managed users, and how much of it is in Widgetic's storage and how much in your own storage destination (`setPartnerStorageDestination`). Use it to see which customers store the most, or to charge them for it. A file is counted for a managed user when it was filed under that user: by naming `managed_user_id` or `managed_user_external_id` when you upload it (`uploadFile`, or the metadata of a resumable upload), or because it was uploaded through that user's editor session, which files everything under its user. The files that are not filed under anyone (your own, and the ones uploaded without naming a managed user) are the row whose `managedUserId` is null. Deleted files are not counted. To list the files of one managed user, use the `managed_user_id` filter of `listUploads`. The answer is counted when you ask, so it is always current. The groups are ordered by size, the heaviest first, and `page.hasMore` says whether more follow. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
|
|
1269
1269
|
# @param partner_id [String] The partner whose storage to report on
|
|
1270
1270
|
# @param [Hash] opts the optional parameters
|
|
1271
1271
|
# @option opts [Integer] :limit How many managed users to list at most (default to 50)
|
|
1272
1272
|
# @option opts [Integer] :offset How many managed users to skip (default to 0)
|
|
1273
1273
|
# @return [Array<(PartnerStorageUsageResponse, Integer, Hash)>] PartnerStorageUsageResponse data, response status code and response headers
|
|
1274
|
-
def
|
|
1274
|
+
def get_partner_storage_usage_with_http_info(partner_id, opts = {})
|
|
1275
1275
|
if @api_client.config.debugging
|
|
1276
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1276
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_storage_usage ...'
|
|
1277
1277
|
end
|
|
1278
1278
|
# verify the required parameter 'partner_id' is set
|
|
1279
1279
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1280
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1280
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_storage_usage"
|
|
1281
1281
|
end
|
|
1282
1282
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
1283
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.
|
|
1283
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_storage_usage, must be smaller than or equal to 100.'
|
|
1284
1284
|
end
|
|
1285
1285
|
|
|
1286
1286
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1287
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.
|
|
1287
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_storage_usage, must be greater than or equal to 1.'
|
|
1288
1288
|
end
|
|
1289
1289
|
|
|
1290
1290
|
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] > 100000
|
|
1291
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.
|
|
1291
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_storage_usage, must be smaller than or equal to 100000.'
|
|
1292
1292
|
end
|
|
1293
1293
|
|
|
1294
1294
|
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
|
1295
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.
|
|
1295
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_storage_usage, must be greater than or equal to 0.'
|
|
1296
1296
|
end
|
|
1297
1297
|
|
|
1298
1298
|
# resource path
|
|
@@ -1321,7 +1321,7 @@ module ApiSdkRb
|
|
|
1321
1321
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1322
1322
|
|
|
1323
1323
|
new_options = opts.merge(
|
|
1324
|
-
:operation => :"PartnersApi.
|
|
1324
|
+
:operation => :"PartnersApi.get_partner_storage_usage",
|
|
1325
1325
|
:header_params => header_params,
|
|
1326
1326
|
:query_params => query_params,
|
|
1327
1327
|
:form_params => form_params,
|
|
@@ -1332,7 +1332,7 @@ module ApiSdkRb
|
|
|
1332
1332
|
|
|
1333
1333
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1334
1334
|
if @api_client.config.debugging
|
|
1335
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1335
|
+
@api_client.config.logger.debug "API called: PartnersApi#get_partner_storage_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1336
1336
|
end
|
|
1337
1337
|
return data, status_code, headers
|
|
1338
1338
|
end
|
|
@@ -1343,8 +1343,8 @@ module ApiSdkRb
|
|
|
1343
1343
|
# @param [Hash] opts the optional parameters
|
|
1344
1344
|
# @option opts [Integer] :limit How many deliveries to list at most (default to 100)
|
|
1345
1345
|
# @return [PartnerNotificationDeliveryLogResponse]
|
|
1346
|
-
def
|
|
1347
|
-
data, _status_code, _headers =
|
|
1346
|
+
def list_partner_notification_deliveries(partner_id, opts = {})
|
|
1347
|
+
data, _status_code, _headers = list_partner_notification_deliveries_with_http_info(partner_id, opts)
|
|
1348
1348
|
data
|
|
1349
1349
|
end
|
|
1350
1350
|
|
|
@@ -1354,20 +1354,20 @@ module ApiSdkRb
|
|
|
1354
1354
|
# @param [Hash] opts the optional parameters
|
|
1355
1355
|
# @option opts [Integer] :limit How many deliveries to list at most (default to 100)
|
|
1356
1356
|
# @return [Array<(PartnerNotificationDeliveryLogResponse, Integer, Hash)>] PartnerNotificationDeliveryLogResponse data, response status code and response headers
|
|
1357
|
-
def
|
|
1357
|
+
def list_partner_notification_deliveries_with_http_info(partner_id, opts = {})
|
|
1358
1358
|
if @api_client.config.debugging
|
|
1359
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1359
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.list_partner_notification_deliveries ...'
|
|
1360
1360
|
end
|
|
1361
1361
|
# verify the required parameter 'partner_id' is set
|
|
1362
1362
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1363
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1363
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.list_partner_notification_deliveries"
|
|
1364
1364
|
end
|
|
1365
1365
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 200
|
|
1366
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.
|
|
1366
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.list_partner_notification_deliveries, must be smaller than or equal to 200.'
|
|
1367
1367
|
end
|
|
1368
1368
|
|
|
1369
1369
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1370
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.
|
|
1370
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.list_partner_notification_deliveries, must be greater than or equal to 1.'
|
|
1371
1371
|
end
|
|
1372
1372
|
|
|
1373
1373
|
# resource path
|
|
@@ -1395,7 +1395,7 @@ module ApiSdkRb
|
|
|
1395
1395
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1396
1396
|
|
|
1397
1397
|
new_options = opts.merge(
|
|
1398
|
-
:operation => :"PartnersApi.
|
|
1398
|
+
:operation => :"PartnersApi.list_partner_notification_deliveries",
|
|
1399
1399
|
:header_params => header_params,
|
|
1400
1400
|
:query_params => query_params,
|
|
1401
1401
|
:form_params => form_params,
|
|
@@ -1406,7 +1406,7 @@ module ApiSdkRb
|
|
|
1406
1406
|
|
|
1407
1407
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1408
1408
|
if @api_client.config.debugging
|
|
1409
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1409
|
+
@api_client.config.logger.debug "API called: PartnersApi#list_partner_notification_deliveries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1410
1410
|
end
|
|
1411
1411
|
return data, status_code, headers
|
|
1412
1412
|
end
|
|
@@ -1418,8 +1418,8 @@ module ApiSdkRb
|
|
|
1418
1418
|
# @option opts [Integer] :limit How many notifications to list at most (default to 20)
|
|
1419
1419
|
# @option opts [Time] :before Only the notifications made before this moment. Give the `nextBefore` of the previous page.
|
|
1420
1420
|
# @return [PartnerNotificationPageResponse]
|
|
1421
|
-
def
|
|
1422
|
-
data, _status_code, _headers =
|
|
1421
|
+
def list_partner_notifications(partner_id, opts = {})
|
|
1422
|
+
data, _status_code, _headers = list_partner_notifications_with_http_info(partner_id, opts)
|
|
1423
1423
|
data
|
|
1424
1424
|
end
|
|
1425
1425
|
|
|
@@ -1430,20 +1430,20 @@ module ApiSdkRb
|
|
|
1430
1430
|
# @option opts [Integer] :limit How many notifications to list at most (default to 20)
|
|
1431
1431
|
# @option opts [Time] :before Only the notifications made before this moment. Give the `nextBefore` of the previous page.
|
|
1432
1432
|
# @return [Array<(PartnerNotificationPageResponse, Integer, Hash)>] PartnerNotificationPageResponse data, response status code and response headers
|
|
1433
|
-
def
|
|
1433
|
+
def list_partner_notifications_with_http_info(partner_id, opts = {})
|
|
1434
1434
|
if @api_client.config.debugging
|
|
1435
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1435
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.list_partner_notifications ...'
|
|
1436
1436
|
end
|
|
1437
1437
|
# verify the required parameter 'partner_id' is set
|
|
1438
1438
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1439
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1439
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.list_partner_notifications"
|
|
1440
1440
|
end
|
|
1441
1441
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
1442
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.
|
|
1442
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.list_partner_notifications, must be smaller than or equal to 100.'
|
|
1443
1443
|
end
|
|
1444
1444
|
|
|
1445
1445
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1446
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.
|
|
1446
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.list_partner_notifications, must be greater than or equal to 1.'
|
|
1447
1447
|
end
|
|
1448
1448
|
|
|
1449
1449
|
# resource path
|
|
@@ -1472,7 +1472,7 @@ module ApiSdkRb
|
|
|
1472
1472
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1473
1473
|
|
|
1474
1474
|
new_options = opts.merge(
|
|
1475
|
-
:operation => :"PartnersApi.
|
|
1475
|
+
:operation => :"PartnersApi.list_partner_notifications",
|
|
1476
1476
|
:header_params => header_params,
|
|
1477
1477
|
:query_params => query_params,
|
|
1478
1478
|
:form_params => form_params,
|
|
@@ -1483,7 +1483,7 @@ module ApiSdkRb
|
|
|
1483
1483
|
|
|
1484
1484
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1485
1485
|
if @api_client.config.debugging
|
|
1486
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1486
|
+
@api_client.config.logger.debug "API called: PartnersApi#list_partner_notifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1487
1487
|
end
|
|
1488
1488
|
return data, status_code, headers
|
|
1489
1489
|
end
|
|
@@ -1493,8 +1493,8 @@ module ApiSdkRb
|
|
|
1493
1493
|
# @param partner_id [String] The partner whose presets to list
|
|
1494
1494
|
# @param [Hash] opts the optional parameters
|
|
1495
1495
|
# @return [ListPartnerPresets200Response]
|
|
1496
|
-
def
|
|
1497
|
-
data, _status_code, _headers =
|
|
1496
|
+
def list_partner_presets(partner_id, opts = {})
|
|
1497
|
+
data, _status_code, _headers = list_partner_presets_with_http_info(partner_id, opts)
|
|
1498
1498
|
data
|
|
1499
1499
|
end
|
|
1500
1500
|
|
|
@@ -1503,13 +1503,13 @@ module ApiSdkRb
|
|
|
1503
1503
|
# @param partner_id [String] The partner whose presets to list
|
|
1504
1504
|
# @param [Hash] opts the optional parameters
|
|
1505
1505
|
# @return [Array<(ListPartnerPresets200Response, Integer, Hash)>] ListPartnerPresets200Response data, response status code and response headers
|
|
1506
|
-
def
|
|
1506
|
+
def list_partner_presets_with_http_info(partner_id, opts = {})
|
|
1507
1507
|
if @api_client.config.debugging
|
|
1508
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1508
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.list_partner_presets ...'
|
|
1509
1509
|
end
|
|
1510
1510
|
# verify the required parameter 'partner_id' is set
|
|
1511
1511
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1512
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1512
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.list_partner_presets"
|
|
1513
1513
|
end
|
|
1514
1514
|
# resource path
|
|
1515
1515
|
local_var_path = '/partners/{partnerId}/presets'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -1535,7 +1535,7 @@ module ApiSdkRb
|
|
|
1535
1535
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1536
1536
|
|
|
1537
1537
|
new_options = opts.merge(
|
|
1538
|
-
:operation => :"PartnersApi.
|
|
1538
|
+
:operation => :"PartnersApi.list_partner_presets",
|
|
1539
1539
|
:header_params => header_params,
|
|
1540
1540
|
:query_params => query_params,
|
|
1541
1541
|
:form_params => form_params,
|
|
@@ -1546,7 +1546,7 @@ module ApiSdkRb
|
|
|
1546
1546
|
|
|
1547
1547
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1548
1548
|
if @api_client.config.debugging
|
|
1549
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1549
|
+
@api_client.config.logger.debug "API called: PartnersApi#list_partner_presets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1550
1550
|
end
|
|
1551
1551
|
return data, status_code, headers
|
|
1552
1552
|
end
|
|
@@ -1556,8 +1556,8 @@ module ApiSdkRb
|
|
|
1556
1556
|
# @param partner_id [String] The partner whose starting points to list
|
|
1557
1557
|
# @param [Hash] opts the optional parameters
|
|
1558
1558
|
# @return [ListPartnerWorkflowPresets200Response]
|
|
1559
|
-
def
|
|
1560
|
-
data, _status_code, _headers =
|
|
1559
|
+
def list_partner_workflow_presets(partner_id, opts = {})
|
|
1560
|
+
data, _status_code, _headers = list_partner_workflow_presets_with_http_info(partner_id, opts)
|
|
1561
1561
|
data
|
|
1562
1562
|
end
|
|
1563
1563
|
|
|
@@ -1566,13 +1566,13 @@ module ApiSdkRb
|
|
|
1566
1566
|
# @param partner_id [String] The partner whose starting points to list
|
|
1567
1567
|
# @param [Hash] opts the optional parameters
|
|
1568
1568
|
# @return [Array<(ListPartnerWorkflowPresets200Response, Integer, Hash)>] ListPartnerWorkflowPresets200Response data, response status code and response headers
|
|
1569
|
-
def
|
|
1569
|
+
def list_partner_workflow_presets_with_http_info(partner_id, opts = {})
|
|
1570
1570
|
if @api_client.config.debugging
|
|
1571
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1571
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.list_partner_workflow_presets ...'
|
|
1572
1572
|
end
|
|
1573
1573
|
# verify the required parameter 'partner_id' is set
|
|
1574
1574
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1575
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1575
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.list_partner_workflow_presets"
|
|
1576
1576
|
end
|
|
1577
1577
|
# resource path
|
|
1578
1578
|
local_var_path = '/partners/{partnerId}/workflow-presets'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -1598,7 +1598,7 @@ module ApiSdkRb
|
|
|
1598
1598
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1599
1599
|
|
|
1600
1600
|
new_options = opts.merge(
|
|
1601
|
-
:operation => :"PartnersApi.
|
|
1601
|
+
:operation => :"PartnersApi.list_partner_workflow_presets",
|
|
1602
1602
|
:header_params => header_params,
|
|
1603
1603
|
:query_params => query_params,
|
|
1604
1604
|
:form_params => form_params,
|
|
@@ -1609,7 +1609,7 @@ module ApiSdkRb
|
|
|
1609
1609
|
|
|
1610
1610
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1611
1611
|
if @api_client.config.debugging
|
|
1612
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1612
|
+
@api_client.config.logger.debug "API called: PartnersApi#list_partner_workflow_presets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1613
1613
|
end
|
|
1614
1614
|
return data, status_code, headers
|
|
1615
1615
|
end
|
|
@@ -1620,9 +1620,9 @@ module ApiSdkRb
|
|
|
1620
1620
|
# @param adapter_id [String] The adapter the key is for
|
|
1621
1621
|
# @param credential_key [String] The key's name within the adapter
|
|
1622
1622
|
# @param [Hash] opts the optional parameters
|
|
1623
|
-
# @return [
|
|
1624
|
-
def
|
|
1625
|
-
data, _status_code, _headers =
|
|
1623
|
+
# @return [AdapterConnectionRemovalResponse]
|
|
1624
|
+
def remove_partner_adapter_connection(partner_id, adapter_id, credential_key, opts = {})
|
|
1625
|
+
data, _status_code, _headers = remove_partner_adapter_connection_with_http_info(partner_id, adapter_id, credential_key, opts)
|
|
1626
1626
|
data
|
|
1627
1627
|
end
|
|
1628
1628
|
|
|
@@ -1632,29 +1632,29 @@ module ApiSdkRb
|
|
|
1632
1632
|
# @param adapter_id [String] The adapter the key is for
|
|
1633
1633
|
# @param credential_key [String] The key's name within the adapter
|
|
1634
1634
|
# @param [Hash] opts the optional parameters
|
|
1635
|
-
# @return [Array<(
|
|
1636
|
-
def
|
|
1635
|
+
# @return [Array<(AdapterConnectionRemovalResponse, Integer, Hash)>] AdapterConnectionRemovalResponse data, response status code and response headers
|
|
1636
|
+
def remove_partner_adapter_connection_with_http_info(partner_id, adapter_id, credential_key, opts = {})
|
|
1637
1637
|
if @api_client.config.debugging
|
|
1638
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1638
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_adapter_connection ...'
|
|
1639
1639
|
end
|
|
1640
1640
|
# verify the required parameter 'partner_id' is set
|
|
1641
1641
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1642
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1642
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_adapter_connection"
|
|
1643
1643
|
end
|
|
1644
1644
|
# verify the required parameter 'adapter_id' is set
|
|
1645
1645
|
if @api_client.config.client_side_validation && adapter_id.nil?
|
|
1646
|
-
fail ArgumentError, "Missing the required parameter 'adapter_id' when calling PartnersApi.
|
|
1646
|
+
fail ArgumentError, "Missing the required parameter 'adapter_id' when calling PartnersApi.remove_partner_adapter_connection"
|
|
1647
1647
|
end
|
|
1648
1648
|
if @api_client.config.client_side_validation && adapter_id.to_s.length > 40
|
|
1649
|
-
fail ArgumentError, 'invalid value for "adapter_id" when calling PartnersApi.
|
|
1649
|
+
fail ArgumentError, 'invalid value for "adapter_id" when calling PartnersApi.remove_partner_adapter_connection, the character length must be smaller than or equal to 40.'
|
|
1650
1650
|
end
|
|
1651
1651
|
|
|
1652
1652
|
# verify the required parameter 'credential_key' is set
|
|
1653
1653
|
if @api_client.config.client_side_validation && credential_key.nil?
|
|
1654
|
-
fail ArgumentError, "Missing the required parameter 'credential_key' when calling PartnersApi.
|
|
1654
|
+
fail ArgumentError, "Missing the required parameter 'credential_key' when calling PartnersApi.remove_partner_adapter_connection"
|
|
1655
1655
|
end
|
|
1656
1656
|
if @api_client.config.client_side_validation && credential_key.to_s.length > 40
|
|
1657
|
-
fail ArgumentError, 'invalid value for "credential_key" when calling PartnersApi.
|
|
1657
|
+
fail ArgumentError, 'invalid value for "credential_key" when calling PartnersApi.remove_partner_adapter_connection, the character length must be smaller than or equal to 40.'
|
|
1658
1658
|
end
|
|
1659
1659
|
|
|
1660
1660
|
# resource path
|
|
@@ -1675,13 +1675,13 @@ module ApiSdkRb
|
|
|
1675
1675
|
post_body = opts[:debug_body]
|
|
1676
1676
|
|
|
1677
1677
|
# return_type
|
|
1678
|
-
return_type = opts[:debug_return_type] || '
|
|
1678
|
+
return_type = opts[:debug_return_type] || 'AdapterConnectionRemovalResponse'
|
|
1679
1679
|
|
|
1680
1680
|
# auth_names
|
|
1681
1681
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1682
1682
|
|
|
1683
1683
|
new_options = opts.merge(
|
|
1684
|
-
:operation => :"PartnersApi.
|
|
1684
|
+
:operation => :"PartnersApi.remove_partner_adapter_connection",
|
|
1685
1685
|
:header_params => header_params,
|
|
1686
1686
|
:query_params => query_params,
|
|
1687
1687
|
:form_params => form_params,
|
|
@@ -1692,7 +1692,7 @@ module ApiSdkRb
|
|
|
1692
1692
|
|
|
1693
1693
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1694
1694
|
if @api_client.config.debugging
|
|
1695
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1695
|
+
@api_client.config.logger.debug "API called: PartnersApi#remove_partner_adapter_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1696
1696
|
end
|
|
1697
1697
|
return data, status_code, headers
|
|
1698
1698
|
end
|
|
@@ -1702,8 +1702,8 @@ module ApiSdkRb
|
|
|
1702
1702
|
# @param partner_id [String] The partner whose database to remove
|
|
1703
1703
|
# @param [Hash] opts the optional parameters
|
|
1704
1704
|
# @return [PartnerDataDatabaseRemovalResponse]
|
|
1705
|
-
def
|
|
1706
|
-
data, _status_code, _headers =
|
|
1705
|
+
def remove_partner_data_database(partner_id, opts = {})
|
|
1706
|
+
data, _status_code, _headers = remove_partner_data_database_with_http_info(partner_id, opts)
|
|
1707
1707
|
data
|
|
1708
1708
|
end
|
|
1709
1709
|
|
|
@@ -1712,13 +1712,13 @@ module ApiSdkRb
|
|
|
1712
1712
|
# @param partner_id [String] The partner whose database to remove
|
|
1713
1713
|
# @param [Hash] opts the optional parameters
|
|
1714
1714
|
# @return [Array<(PartnerDataDatabaseRemovalResponse, Integer, Hash)>] PartnerDataDatabaseRemovalResponse data, response status code and response headers
|
|
1715
|
-
def
|
|
1715
|
+
def remove_partner_data_database_with_http_info(partner_id, opts = {})
|
|
1716
1716
|
if @api_client.config.debugging
|
|
1717
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1717
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_data_database ...'
|
|
1718
1718
|
end
|
|
1719
1719
|
# verify the required parameter 'partner_id' is set
|
|
1720
1720
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1721
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1721
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_data_database"
|
|
1722
1722
|
end
|
|
1723
1723
|
# resource path
|
|
1724
1724
|
local_var_path = '/partners/{partnerId}/data-database'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -1744,7 +1744,7 @@ module ApiSdkRb
|
|
|
1744
1744
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1745
1745
|
|
|
1746
1746
|
new_options = opts.merge(
|
|
1747
|
-
:operation => :"PartnersApi.
|
|
1747
|
+
:operation => :"PartnersApi.remove_partner_data_database",
|
|
1748
1748
|
:header_params => header_params,
|
|
1749
1749
|
:query_params => query_params,
|
|
1750
1750
|
:form_params => form_params,
|
|
@@ -1755,7 +1755,7 @@ module ApiSdkRb
|
|
|
1755
1755
|
|
|
1756
1756
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1757
1757
|
if @api_client.config.debugging
|
|
1758
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1758
|
+
@api_client.config.logger.debug "API called: PartnersApi#remove_partner_data_database\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1759
1759
|
end
|
|
1760
1760
|
return data, status_code, headers
|
|
1761
1761
|
end
|
|
@@ -1766,8 +1766,8 @@ module ApiSdkRb
|
|
|
1766
1766
|
# @param key [String] The key of the preset to remove
|
|
1767
1767
|
# @param [Hash] opts the optional parameters
|
|
1768
1768
|
# @return [PartnerPresetRemovalResponse]
|
|
1769
|
-
def
|
|
1770
|
-
data, _status_code, _headers =
|
|
1769
|
+
def remove_partner_preset(partner_id, key, opts = {})
|
|
1770
|
+
data, _status_code, _headers = remove_partner_preset_with_http_info(partner_id, key, opts)
|
|
1771
1771
|
data
|
|
1772
1772
|
end
|
|
1773
1773
|
|
|
@@ -1777,21 +1777,21 @@ module ApiSdkRb
|
|
|
1777
1777
|
# @param key [String] The key of the preset to remove
|
|
1778
1778
|
# @param [Hash] opts the optional parameters
|
|
1779
1779
|
# @return [Array<(PartnerPresetRemovalResponse, Integer, Hash)>] PartnerPresetRemovalResponse data, response status code and response headers
|
|
1780
|
-
def
|
|
1780
|
+
def remove_partner_preset_with_http_info(partner_id, key, opts = {})
|
|
1781
1781
|
if @api_client.config.debugging
|
|
1782
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1782
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_preset ...'
|
|
1783
1783
|
end
|
|
1784
1784
|
# verify the required parameter 'partner_id' is set
|
|
1785
1785
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1786
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1786
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_preset"
|
|
1787
1787
|
end
|
|
1788
1788
|
# verify the required parameter 'key' is set
|
|
1789
1789
|
if @api_client.config.client_side_validation && key.nil?
|
|
1790
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.
|
|
1790
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.remove_partner_preset"
|
|
1791
1791
|
end
|
|
1792
1792
|
pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
|
|
1793
1793
|
if @api_client.config.client_side_validation && key !~ pattern
|
|
1794
|
-
fail ArgumentError, "invalid value for 'key' when calling PartnersApi.
|
|
1794
|
+
fail ArgumentError, "invalid value for 'key' when calling PartnersApi.remove_partner_preset, must conform to the pattern #{pattern}."
|
|
1795
1795
|
end
|
|
1796
1796
|
|
|
1797
1797
|
# resource path
|
|
@@ -1818,7 +1818,7 @@ module ApiSdkRb
|
|
|
1818
1818
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1819
1819
|
|
|
1820
1820
|
new_options = opts.merge(
|
|
1821
|
-
:operation => :"PartnersApi.
|
|
1821
|
+
:operation => :"PartnersApi.remove_partner_preset",
|
|
1822
1822
|
:header_params => header_params,
|
|
1823
1823
|
:query_params => query_params,
|
|
1824
1824
|
:form_params => form_params,
|
|
@@ -1829,7 +1829,7 @@ module ApiSdkRb
|
|
|
1829
1829
|
|
|
1830
1830
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1831
1831
|
if @api_client.config.debugging
|
|
1832
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1832
|
+
@api_client.config.logger.debug "API called: PartnersApi#remove_partner_preset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1833
1833
|
end
|
|
1834
1834
|
return data, status_code, headers
|
|
1835
1835
|
end
|
|
@@ -1839,8 +1839,8 @@ module ApiSdkRb
|
|
|
1839
1839
|
# @param partner_id [String] The partner whose storage destination to remove
|
|
1840
1840
|
# @param [Hash] opts the optional parameters
|
|
1841
1841
|
# @return [PartnerStorageRemovalResponse]
|
|
1842
|
-
def
|
|
1843
|
-
data, _status_code, _headers =
|
|
1842
|
+
def remove_partner_storage_destination(partner_id, opts = {})
|
|
1843
|
+
data, _status_code, _headers = remove_partner_storage_destination_with_http_info(partner_id, opts)
|
|
1844
1844
|
data
|
|
1845
1845
|
end
|
|
1846
1846
|
|
|
@@ -1849,13 +1849,13 @@ module ApiSdkRb
|
|
|
1849
1849
|
# @param partner_id [String] The partner whose storage destination to remove
|
|
1850
1850
|
# @param [Hash] opts the optional parameters
|
|
1851
1851
|
# @return [Array<(PartnerStorageRemovalResponse, Integer, Hash)>] PartnerStorageRemovalResponse data, response status code and response headers
|
|
1852
|
-
def
|
|
1852
|
+
def remove_partner_storage_destination_with_http_info(partner_id, opts = {})
|
|
1853
1853
|
if @api_client.config.debugging
|
|
1854
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1854
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_storage_destination ...'
|
|
1855
1855
|
end
|
|
1856
1856
|
# verify the required parameter 'partner_id' is set
|
|
1857
1857
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1858
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1858
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_storage_destination"
|
|
1859
1859
|
end
|
|
1860
1860
|
# resource path
|
|
1861
1861
|
local_var_path = '/partners/{partnerId}/storage'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -1881,7 +1881,7 @@ module ApiSdkRb
|
|
|
1881
1881
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1882
1882
|
|
|
1883
1883
|
new_options = opts.merge(
|
|
1884
|
-
:operation => :"PartnersApi.
|
|
1884
|
+
:operation => :"PartnersApi.remove_partner_storage_destination",
|
|
1885
1885
|
:header_params => header_params,
|
|
1886
1886
|
:query_params => query_params,
|
|
1887
1887
|
:form_params => form_params,
|
|
@@ -1892,7 +1892,7 @@ module ApiSdkRb
|
|
|
1892
1892
|
|
|
1893
1893
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1894
1894
|
if @api_client.config.debugging
|
|
1895
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1895
|
+
@api_client.config.logger.debug "API called: PartnersApi#remove_partner_storage_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1896
1896
|
end
|
|
1897
1897
|
return data, status_code, headers
|
|
1898
1898
|
end
|
|
@@ -1903,8 +1903,8 @@ module ApiSdkRb
|
|
|
1903
1903
|
# @param key [String] The key of the starting point to remove
|
|
1904
1904
|
# @param [Hash] opts the optional parameters
|
|
1905
1905
|
# @return [RemovePartnerWorkflowPreset200Response]
|
|
1906
|
-
def
|
|
1907
|
-
data, _status_code, _headers =
|
|
1906
|
+
def remove_partner_workflow_preset(partner_id, key, opts = {})
|
|
1907
|
+
data, _status_code, _headers = remove_partner_workflow_preset_with_http_info(partner_id, key, opts)
|
|
1908
1908
|
data
|
|
1909
1909
|
end
|
|
1910
1910
|
|
|
@@ -1914,21 +1914,21 @@ module ApiSdkRb
|
|
|
1914
1914
|
# @param key [String] The key of the starting point to remove
|
|
1915
1915
|
# @param [Hash] opts the optional parameters
|
|
1916
1916
|
# @return [Array<(RemovePartnerWorkflowPreset200Response, Integer, Hash)>] RemovePartnerWorkflowPreset200Response data, response status code and response headers
|
|
1917
|
-
def
|
|
1917
|
+
def remove_partner_workflow_preset_with_http_info(partner_id, key, opts = {})
|
|
1918
1918
|
if @api_client.config.debugging
|
|
1919
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1919
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_workflow_preset ...'
|
|
1920
1920
|
end
|
|
1921
1921
|
# verify the required parameter 'partner_id' is set
|
|
1922
1922
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1923
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1923
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_workflow_preset"
|
|
1924
1924
|
end
|
|
1925
1925
|
# verify the required parameter 'key' is set
|
|
1926
1926
|
if @api_client.config.client_side_validation && key.nil?
|
|
1927
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.
|
|
1927
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.remove_partner_workflow_preset"
|
|
1928
1928
|
end
|
|
1929
1929
|
pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
|
|
1930
1930
|
if @api_client.config.client_side_validation && key !~ pattern
|
|
1931
|
-
fail ArgumentError, "invalid value for 'key' when calling PartnersApi.
|
|
1931
|
+
fail ArgumentError, "invalid value for 'key' when calling PartnersApi.remove_partner_workflow_preset, must conform to the pattern #{pattern}."
|
|
1932
1932
|
end
|
|
1933
1933
|
|
|
1934
1934
|
# resource path
|
|
@@ -1955,7 +1955,7 @@ module ApiSdkRb
|
|
|
1955
1955
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1956
1956
|
|
|
1957
1957
|
new_options = opts.merge(
|
|
1958
|
-
:operation => :"PartnersApi.
|
|
1958
|
+
:operation => :"PartnersApi.remove_partner_workflow_preset",
|
|
1959
1959
|
:header_params => header_params,
|
|
1960
1960
|
:query_params => query_params,
|
|
1961
1961
|
:form_params => form_params,
|
|
@@ -1966,7 +1966,7 @@ module ApiSdkRb
|
|
|
1966
1966
|
|
|
1967
1967
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1968
1968
|
if @api_client.config.debugging
|
|
1969
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
1969
|
+
@api_client.config.logger.debug "API called: PartnersApi#remove_partner_workflow_preset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1970
1970
|
end
|
|
1971
1971
|
return data, status_code, headers
|
|
1972
1972
|
end
|
|
@@ -1978,8 +1978,8 @@ module ApiSdkRb
|
|
|
1978
1978
|
# @param idempotency_key [String] Required: a call without it is refused with `400`. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, `-` and `_`. Send the same key again when you retry (after a timeout, a dropped connection or a `5xx`) and the call is carried out once: the retry gets the first answer back, marked `X-Idempotency-Cached: true`. The same key with a different body is refused with `422`, and a retry that arrives while the first call is still running with `409` (see `Retry-After`).
|
|
1979
1979
|
# @param [Hash] opts the optional parameters
|
|
1980
1980
|
# @return [PartnerNotificationDeliveryResponse]
|
|
1981
|
-
def
|
|
1982
|
-
data, _status_code, _headers =
|
|
1981
|
+
def replay_partner_notification_delivery(partner_id, delivery_id, idempotency_key, opts = {})
|
|
1982
|
+
data, _status_code, _headers = replay_partner_notification_delivery_with_http_info(partner_id, delivery_id, idempotency_key, opts)
|
|
1983
1983
|
data
|
|
1984
1984
|
end
|
|
1985
1985
|
|
|
@@ -1990,33 +1990,33 @@ module ApiSdkRb
|
|
|
1990
1990
|
# @param idempotency_key [String] Required: a call without it is refused with `400`. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, `-` and `_`. Send the same key again when you retry (after a timeout, a dropped connection or a `5xx`) and the call is carried out once: the retry gets the first answer back, marked `X-Idempotency-Cached: true`. The same key with a different body is refused with `422`, and a retry that arrives while the first call is still running with `409` (see `Retry-After`).
|
|
1991
1991
|
# @param [Hash] opts the optional parameters
|
|
1992
1992
|
# @return [Array<(PartnerNotificationDeliveryResponse, Integer, Hash)>] PartnerNotificationDeliveryResponse data, response status code and response headers
|
|
1993
|
-
def
|
|
1993
|
+
def replay_partner_notification_delivery_with_http_info(partner_id, delivery_id, idempotency_key, opts = {})
|
|
1994
1994
|
if @api_client.config.debugging
|
|
1995
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
1995
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.replay_partner_notification_delivery ...'
|
|
1996
1996
|
end
|
|
1997
1997
|
# verify the required parameter 'partner_id' is set
|
|
1998
1998
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1999
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
1999
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.replay_partner_notification_delivery"
|
|
2000
2000
|
end
|
|
2001
2001
|
# verify the required parameter 'delivery_id' is set
|
|
2002
2002
|
if @api_client.config.client_side_validation && delivery_id.nil?
|
|
2003
|
-
fail ArgumentError, "Missing the required parameter 'delivery_id' when calling PartnersApi.
|
|
2003
|
+
fail ArgumentError, "Missing the required parameter 'delivery_id' when calling PartnersApi.replay_partner_notification_delivery"
|
|
2004
2004
|
end
|
|
2005
2005
|
# verify the required parameter 'idempotency_key' is set
|
|
2006
2006
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
2007
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.
|
|
2007
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.replay_partner_notification_delivery"
|
|
2008
2008
|
end
|
|
2009
2009
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
|
|
2010
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.
|
|
2010
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.replay_partner_notification_delivery, the character length must be smaller than or equal to 50.'
|
|
2011
2011
|
end
|
|
2012
2012
|
|
|
2013
2013
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
|
|
2014
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.
|
|
2014
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.replay_partner_notification_delivery, the character length must be great than or equal to 8.'
|
|
2015
2015
|
end
|
|
2016
2016
|
|
|
2017
2017
|
pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
|
|
2018
2018
|
if @api_client.config.client_side_validation && idempotency_key !~ pattern
|
|
2019
|
-
fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.
|
|
2019
|
+
fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.replay_partner_notification_delivery, must conform to the pattern #{pattern}."
|
|
2020
2020
|
end
|
|
2021
2021
|
|
|
2022
2022
|
# resource path
|
|
@@ -2044,7 +2044,7 @@ module ApiSdkRb
|
|
|
2044
2044
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
2045
2045
|
|
|
2046
2046
|
new_options = opts.merge(
|
|
2047
|
-
:operation => :"PartnersApi.
|
|
2047
|
+
:operation => :"PartnersApi.replay_partner_notification_delivery",
|
|
2048
2048
|
:header_params => header_params,
|
|
2049
2049
|
:query_params => query_params,
|
|
2050
2050
|
:form_params => form_params,
|
|
@@ -2055,7 +2055,7 @@ module ApiSdkRb
|
|
|
2055
2055
|
|
|
2056
2056
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2057
2057
|
if @api_client.config.debugging
|
|
2058
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
2058
|
+
@api_client.config.logger.debug "API called: PartnersApi#replay_partner_notification_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2059
2059
|
end
|
|
2060
2060
|
return data, status_code, headers
|
|
2061
2061
|
end
|
|
@@ -2066,8 +2066,8 @@ module ApiSdkRb
|
|
|
2066
2066
|
# @param idempotency_key [String] Required: a call without it is refused with `400`. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, `-` and `_`. Send the same key again when you retry (after a timeout, a dropped connection or a `5xx`) and the call is carried out once: the retry gets the first answer back, marked `X-Idempotency-Cached: true`. The same key with a different body is refused with `422`, and a retry that arrives while the first call is still running with `409` (see `Retry-After`).
|
|
2067
2067
|
# @param [Hash] opts the optional parameters
|
|
2068
2068
|
# @return [PartnerEntryContextSecretResponse]
|
|
2069
|
-
def
|
|
2070
|
-
data, _status_code, _headers =
|
|
2069
|
+
def rotate_partner_entry_context_secret(partner_id, idempotency_key, opts = {})
|
|
2070
|
+
data, _status_code, _headers = rotate_partner_entry_context_secret_with_http_info(partner_id, idempotency_key, opts)
|
|
2071
2071
|
data
|
|
2072
2072
|
end
|
|
2073
2073
|
|
|
@@ -2077,29 +2077,29 @@ module ApiSdkRb
|
|
|
2077
2077
|
# @param idempotency_key [String] Required: a call without it is refused with `400`. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, `-` and `_`. Send the same key again when you retry (after a timeout, a dropped connection or a `5xx`) and the call is carried out once: the retry gets the first answer back, marked `X-Idempotency-Cached: true`. The same key with a different body is refused with `422`, and a retry that arrives while the first call is still running with `409` (see `Retry-After`).
|
|
2078
2078
|
# @param [Hash] opts the optional parameters
|
|
2079
2079
|
# @return [Array<(PartnerEntryContextSecretResponse, Integer, Hash)>] PartnerEntryContextSecretResponse data, response status code and response headers
|
|
2080
|
-
def
|
|
2080
|
+
def rotate_partner_entry_context_secret_with_http_info(partner_id, idempotency_key, opts = {})
|
|
2081
2081
|
if @api_client.config.debugging
|
|
2082
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
2082
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.rotate_partner_entry_context_secret ...'
|
|
2083
2083
|
end
|
|
2084
2084
|
# verify the required parameter 'partner_id' is set
|
|
2085
2085
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
2086
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
2086
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.rotate_partner_entry_context_secret"
|
|
2087
2087
|
end
|
|
2088
2088
|
# verify the required parameter 'idempotency_key' is set
|
|
2089
2089
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
2090
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.
|
|
2090
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.rotate_partner_entry_context_secret"
|
|
2091
2091
|
end
|
|
2092
2092
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
|
|
2093
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.
|
|
2093
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.rotate_partner_entry_context_secret, the character length must be smaller than or equal to 50.'
|
|
2094
2094
|
end
|
|
2095
2095
|
|
|
2096
2096
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
|
|
2097
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.
|
|
2097
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.rotate_partner_entry_context_secret, the character length must be great than or equal to 8.'
|
|
2098
2098
|
end
|
|
2099
2099
|
|
|
2100
2100
|
pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
|
|
2101
2101
|
if @api_client.config.client_side_validation && idempotency_key !~ pattern
|
|
2102
|
-
fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.
|
|
2102
|
+
fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.rotate_partner_entry_context_secret, must conform to the pattern #{pattern}."
|
|
2103
2103
|
end
|
|
2104
2104
|
|
|
2105
2105
|
# resource path
|
|
@@ -2127,7 +2127,7 @@ module ApiSdkRb
|
|
|
2127
2127
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
2128
2128
|
|
|
2129
2129
|
new_options = opts.merge(
|
|
2130
|
-
:operation => :"PartnersApi.
|
|
2130
|
+
:operation => :"PartnersApi.rotate_partner_entry_context_secret",
|
|
2131
2131
|
:header_params => header_params,
|
|
2132
2132
|
:query_params => query_params,
|
|
2133
2133
|
:form_params => form_params,
|
|
@@ -2138,7 +2138,7 @@ module ApiSdkRb
|
|
|
2138
2138
|
|
|
2139
2139
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2140
2140
|
if @api_client.config.debugging
|
|
2141
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
2141
|
+
@api_client.config.logger.debug "API called: PartnersApi#rotate_partner_entry_context_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2142
2142
|
end
|
|
2143
2143
|
return data, status_code, headers
|
|
2144
2144
|
end
|
|
@@ -2149,8 +2149,8 @@ module ApiSdkRb
|
|
|
2149
2149
|
# @param idempotency_key [String] Required: a call without it is refused with `400`. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, `-` and `_`. Send the same key again when you retry (after a timeout, a dropped connection or a `5xx`) and the call is carried out once: the retry gets the first answer back, marked `X-Idempotency-Cached: true`. The same key with a different body is refused with `422`, and a retry that arrives while the first call is still running with `409` (see `Retry-After`).
|
|
2150
2150
|
# @param [Hash] opts the optional parameters
|
|
2151
2151
|
# @return [PartnerNotificationSettingsChangeResponse]
|
|
2152
|
-
def
|
|
2153
|
-
data, _status_code, _headers =
|
|
2152
|
+
def rotate_partner_webhook_secret(partner_id, idempotency_key, opts = {})
|
|
2153
|
+
data, _status_code, _headers = rotate_partner_webhook_secret_with_http_info(partner_id, idempotency_key, opts)
|
|
2154
2154
|
data
|
|
2155
2155
|
end
|
|
2156
2156
|
|
|
@@ -2160,29 +2160,29 @@ module ApiSdkRb
|
|
|
2160
2160
|
# @param idempotency_key [String] Required: a call without it is refused with `400`. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, `-` and `_`. Send the same key again when you retry (after a timeout, a dropped connection or a `5xx`) and the call is carried out once: the retry gets the first answer back, marked `X-Idempotency-Cached: true`. The same key with a different body is refused with `422`, and a retry that arrives while the first call is still running with `409` (see `Retry-After`).
|
|
2161
2161
|
# @param [Hash] opts the optional parameters
|
|
2162
2162
|
# @return [Array<(PartnerNotificationSettingsChangeResponse, Integer, Hash)>] PartnerNotificationSettingsChangeResponse data, response status code and response headers
|
|
2163
|
-
def
|
|
2163
|
+
def rotate_partner_webhook_secret_with_http_info(partner_id, idempotency_key, opts = {})
|
|
2164
2164
|
if @api_client.config.debugging
|
|
2165
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
2165
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.rotate_partner_webhook_secret ...'
|
|
2166
2166
|
end
|
|
2167
2167
|
# verify the required parameter 'partner_id' is set
|
|
2168
2168
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
2169
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
2169
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.rotate_partner_webhook_secret"
|
|
2170
2170
|
end
|
|
2171
2171
|
# verify the required parameter 'idempotency_key' is set
|
|
2172
2172
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
2173
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.
|
|
2173
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.rotate_partner_webhook_secret"
|
|
2174
2174
|
end
|
|
2175
2175
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
|
|
2176
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.
|
|
2176
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.rotate_partner_webhook_secret, the character length must be smaller than or equal to 50.'
|
|
2177
2177
|
end
|
|
2178
2178
|
|
|
2179
2179
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
|
|
2180
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.
|
|
2180
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.rotate_partner_webhook_secret, the character length must be great than or equal to 8.'
|
|
2181
2181
|
end
|
|
2182
2182
|
|
|
2183
2183
|
pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
|
|
2184
2184
|
if @api_client.config.client_side_validation && idempotency_key !~ pattern
|
|
2185
|
-
fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.
|
|
2185
|
+
fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.rotate_partner_webhook_secret, must conform to the pattern #{pattern}."
|
|
2186
2186
|
end
|
|
2187
2187
|
|
|
2188
2188
|
# resource path
|
|
@@ -2210,7 +2210,7 @@ module ApiSdkRb
|
|
|
2210
2210
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
2211
2211
|
|
|
2212
2212
|
new_options = opts.merge(
|
|
2213
|
-
:operation => :"PartnersApi.
|
|
2213
|
+
:operation => :"PartnersApi.rotate_partner_webhook_secret",
|
|
2214
2214
|
:header_params => header_params,
|
|
2215
2215
|
:query_params => query_params,
|
|
2216
2216
|
:form_params => form_params,
|
|
@@ -2221,7 +2221,7 @@ module ApiSdkRb
|
|
|
2221
2221
|
|
|
2222
2222
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2223
2223
|
if @api_client.config.debugging
|
|
2224
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
2224
|
+
@api_client.config.logger.debug "API called: PartnersApi#rotate_partner_webhook_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2225
2225
|
end
|
|
2226
2226
|
return data, status_code, headers
|
|
2227
2227
|
end
|
|
@@ -2233,8 +2233,8 @@ module ApiSdkRb
|
|
|
2233
2233
|
# @param partner_notification_test_event_request [PartnerNotificationTestEventRequest]
|
|
2234
2234
|
# @param [Hash] opts the optional parameters
|
|
2235
2235
|
# @return [PartnerNotificationTestEventResultResponse]
|
|
2236
|
-
def
|
|
2237
|
-
data, _status_code, _headers =
|
|
2236
|
+
def send_partner_notification_test_event(partner_id, idempotency_key, partner_notification_test_event_request, opts = {})
|
|
2237
|
+
data, _status_code, _headers = send_partner_notification_test_event_with_http_info(partner_id, idempotency_key, partner_notification_test_event_request, opts)
|
|
2238
2238
|
data
|
|
2239
2239
|
end
|
|
2240
2240
|
|
|
@@ -2245,34 +2245,34 @@ module ApiSdkRb
|
|
|
2245
2245
|
# @param partner_notification_test_event_request [PartnerNotificationTestEventRequest]
|
|
2246
2246
|
# @param [Hash] opts the optional parameters
|
|
2247
2247
|
# @return [Array<(PartnerNotificationTestEventResultResponse, Integer, Hash)>] PartnerNotificationTestEventResultResponse data, response status code and response headers
|
|
2248
|
-
def
|
|
2248
|
+
def send_partner_notification_test_event_with_http_info(partner_id, idempotency_key, partner_notification_test_event_request, opts = {})
|
|
2249
2249
|
if @api_client.config.debugging
|
|
2250
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
2250
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.send_partner_notification_test_event ...'
|
|
2251
2251
|
end
|
|
2252
2252
|
# verify the required parameter 'partner_id' is set
|
|
2253
2253
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
2254
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
2254
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.send_partner_notification_test_event"
|
|
2255
2255
|
end
|
|
2256
2256
|
# verify the required parameter 'idempotency_key' is set
|
|
2257
2257
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
2258
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.
|
|
2258
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.send_partner_notification_test_event"
|
|
2259
2259
|
end
|
|
2260
2260
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
|
|
2261
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.
|
|
2261
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.send_partner_notification_test_event, the character length must be smaller than or equal to 50.'
|
|
2262
2262
|
end
|
|
2263
2263
|
|
|
2264
2264
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
|
|
2265
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.
|
|
2265
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.send_partner_notification_test_event, the character length must be great than or equal to 8.'
|
|
2266
2266
|
end
|
|
2267
2267
|
|
|
2268
2268
|
pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
|
|
2269
2269
|
if @api_client.config.client_side_validation && idempotency_key !~ pattern
|
|
2270
|
-
fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.
|
|
2270
|
+
fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.send_partner_notification_test_event, must conform to the pattern #{pattern}."
|
|
2271
2271
|
end
|
|
2272
2272
|
|
|
2273
2273
|
# verify the required parameter 'partner_notification_test_event_request' is set
|
|
2274
2274
|
if @api_client.config.client_side_validation && partner_notification_test_event_request.nil?
|
|
2275
|
-
fail ArgumentError, "Missing the required parameter 'partner_notification_test_event_request' when calling PartnersApi.
|
|
2275
|
+
fail ArgumentError, "Missing the required parameter 'partner_notification_test_event_request' when calling PartnersApi.send_partner_notification_test_event"
|
|
2276
2276
|
end
|
|
2277
2277
|
# resource path
|
|
2278
2278
|
local_var_path = '/partners/{partnerId}/notifications/test-event'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -2304,7 +2304,7 @@ module ApiSdkRb
|
|
|
2304
2304
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
2305
2305
|
|
|
2306
2306
|
new_options = opts.merge(
|
|
2307
|
-
:operation => :"PartnersApi.
|
|
2307
|
+
:operation => :"PartnersApi.send_partner_notification_test_event",
|
|
2308
2308
|
:header_params => header_params,
|
|
2309
2309
|
:query_params => query_params,
|
|
2310
2310
|
:form_params => form_params,
|
|
@@ -2315,7 +2315,7 @@ module ApiSdkRb
|
|
|
2315
2315
|
|
|
2316
2316
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2317
2317
|
if @api_client.config.debugging
|
|
2318
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
2318
|
+
@api_client.config.logger.debug "API called: PartnersApi#send_partner_notification_test_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2319
2319
|
end
|
|
2320
2320
|
return data, status_code, headers
|
|
2321
2321
|
end
|
|
@@ -2327,9 +2327,9 @@ module ApiSdkRb
|
|
|
2327
2327
|
# @param credential_key [String] The key's name within the adapter
|
|
2328
2328
|
# @param set_adapter_connection_request [SetAdapterConnectionRequest]
|
|
2329
2329
|
# @param [Hash] opts the optional parameters
|
|
2330
|
-
# @return [
|
|
2331
|
-
def
|
|
2332
|
-
data, _status_code, _headers =
|
|
2330
|
+
# @return [AdapterConnectionResponse]
|
|
2331
|
+
def set_partner_adapter_connection(partner_id, adapter_id, credential_key, set_adapter_connection_request, opts = {})
|
|
2332
|
+
data, _status_code, _headers = set_partner_adapter_connection_with_http_info(partner_id, adapter_id, credential_key, set_adapter_connection_request, opts)
|
|
2333
2333
|
data
|
|
2334
2334
|
end
|
|
2335
2335
|
|
|
@@ -2340,34 +2340,34 @@ module ApiSdkRb
|
|
|
2340
2340
|
# @param credential_key [String] The key's name within the adapter
|
|
2341
2341
|
# @param set_adapter_connection_request [SetAdapterConnectionRequest]
|
|
2342
2342
|
# @param [Hash] opts the optional parameters
|
|
2343
|
-
# @return [Array<(
|
|
2344
|
-
def
|
|
2343
|
+
# @return [Array<(AdapterConnectionResponse, Integer, Hash)>] AdapterConnectionResponse data, response status code and response headers
|
|
2344
|
+
def set_partner_adapter_connection_with_http_info(partner_id, adapter_id, credential_key, set_adapter_connection_request, opts = {})
|
|
2345
2345
|
if @api_client.config.debugging
|
|
2346
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
2346
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_adapter_connection ...'
|
|
2347
2347
|
end
|
|
2348
2348
|
# verify the required parameter 'partner_id' is set
|
|
2349
2349
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
2350
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
2350
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_adapter_connection"
|
|
2351
2351
|
end
|
|
2352
2352
|
# verify the required parameter 'adapter_id' is set
|
|
2353
2353
|
if @api_client.config.client_side_validation && adapter_id.nil?
|
|
2354
|
-
fail ArgumentError, "Missing the required parameter 'adapter_id' when calling PartnersApi.
|
|
2354
|
+
fail ArgumentError, "Missing the required parameter 'adapter_id' when calling PartnersApi.set_partner_adapter_connection"
|
|
2355
2355
|
end
|
|
2356
2356
|
if @api_client.config.client_side_validation && adapter_id.to_s.length > 40
|
|
2357
|
-
fail ArgumentError, 'invalid value for "adapter_id" when calling PartnersApi.
|
|
2357
|
+
fail ArgumentError, 'invalid value for "adapter_id" when calling PartnersApi.set_partner_adapter_connection, the character length must be smaller than or equal to 40.'
|
|
2358
2358
|
end
|
|
2359
2359
|
|
|
2360
2360
|
# verify the required parameter 'credential_key' is set
|
|
2361
2361
|
if @api_client.config.client_side_validation && credential_key.nil?
|
|
2362
|
-
fail ArgumentError, "Missing the required parameter 'credential_key' when calling PartnersApi.
|
|
2362
|
+
fail ArgumentError, "Missing the required parameter 'credential_key' when calling PartnersApi.set_partner_adapter_connection"
|
|
2363
2363
|
end
|
|
2364
2364
|
if @api_client.config.client_side_validation && credential_key.to_s.length > 40
|
|
2365
|
-
fail ArgumentError, 'invalid value for "credential_key" when calling PartnersApi.
|
|
2365
|
+
fail ArgumentError, 'invalid value for "credential_key" when calling PartnersApi.set_partner_adapter_connection, the character length must be smaller than or equal to 40.'
|
|
2366
2366
|
end
|
|
2367
2367
|
|
|
2368
2368
|
# verify the required parameter 'set_adapter_connection_request' is set
|
|
2369
2369
|
if @api_client.config.client_side_validation && set_adapter_connection_request.nil?
|
|
2370
|
-
fail ArgumentError, "Missing the required parameter 'set_adapter_connection_request' when calling PartnersApi.
|
|
2370
|
+
fail ArgumentError, "Missing the required parameter 'set_adapter_connection_request' when calling PartnersApi.set_partner_adapter_connection"
|
|
2371
2371
|
end
|
|
2372
2372
|
# resource path
|
|
2373
2373
|
local_var_path = '/partners/{partnerId}/adapter-connections/{adapterId}/{credentialKey}'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s)).sub('{' + 'adapterId' + '}', CGI.escape(adapter_id.to_s)).sub('{' + 'credentialKey' + '}', CGI.escape(credential_key.to_s))
|
|
@@ -2392,13 +2392,13 @@ module ApiSdkRb
|
|
|
2392
2392
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_adapter_connection_request)
|
|
2393
2393
|
|
|
2394
2394
|
# return_type
|
|
2395
|
-
return_type = opts[:debug_return_type] || '
|
|
2395
|
+
return_type = opts[:debug_return_type] || 'AdapterConnectionResponse'
|
|
2396
2396
|
|
|
2397
2397
|
# auth_names
|
|
2398
2398
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
2399
2399
|
|
|
2400
2400
|
new_options = opts.merge(
|
|
2401
|
-
:operation => :"PartnersApi.
|
|
2401
|
+
:operation => :"PartnersApi.set_partner_adapter_connection",
|
|
2402
2402
|
:header_params => header_params,
|
|
2403
2403
|
:query_params => query_params,
|
|
2404
2404
|
:form_params => form_params,
|
|
@@ -2409,7 +2409,7 @@ module ApiSdkRb
|
|
|
2409
2409
|
|
|
2410
2410
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2411
2411
|
if @api_client.config.debugging
|
|
2412
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
2412
|
+
@api_client.config.logger.debug "API called: PartnersApi#set_partner_adapter_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2413
2413
|
end
|
|
2414
2414
|
return data, status_code, headers
|
|
2415
2415
|
end
|
|
@@ -2420,8 +2420,8 @@ module ApiSdkRb
|
|
|
2420
2420
|
# @param set_partner_data_database_request [SetPartnerDataDatabaseRequest]
|
|
2421
2421
|
# @param [Hash] opts the optional parameters
|
|
2422
2422
|
# @return [PartnerDataDatabaseResponse]
|
|
2423
|
-
def
|
|
2424
|
-
data, _status_code, _headers =
|
|
2423
|
+
def set_partner_data_database(partner_id, set_partner_data_database_request, opts = {})
|
|
2424
|
+
data, _status_code, _headers = set_partner_data_database_with_http_info(partner_id, set_partner_data_database_request, opts)
|
|
2425
2425
|
data
|
|
2426
2426
|
end
|
|
2427
2427
|
|
|
@@ -2431,17 +2431,17 @@ module ApiSdkRb
|
|
|
2431
2431
|
# @param set_partner_data_database_request [SetPartnerDataDatabaseRequest]
|
|
2432
2432
|
# @param [Hash] opts the optional parameters
|
|
2433
2433
|
# @return [Array<(PartnerDataDatabaseResponse, Integer, Hash)>] PartnerDataDatabaseResponse data, response status code and response headers
|
|
2434
|
-
def
|
|
2434
|
+
def set_partner_data_database_with_http_info(partner_id, set_partner_data_database_request, opts = {})
|
|
2435
2435
|
if @api_client.config.debugging
|
|
2436
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
2436
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_data_database ...'
|
|
2437
2437
|
end
|
|
2438
2438
|
# verify the required parameter 'partner_id' is set
|
|
2439
2439
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
2440
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
2440
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_data_database"
|
|
2441
2441
|
end
|
|
2442
2442
|
# verify the required parameter 'set_partner_data_database_request' is set
|
|
2443
2443
|
if @api_client.config.client_side_validation && set_partner_data_database_request.nil?
|
|
2444
|
-
fail ArgumentError, "Missing the required parameter 'set_partner_data_database_request' when calling PartnersApi.
|
|
2444
|
+
fail ArgumentError, "Missing the required parameter 'set_partner_data_database_request' when calling PartnersApi.set_partner_data_database"
|
|
2445
2445
|
end
|
|
2446
2446
|
# resource path
|
|
2447
2447
|
local_var_path = '/partners/{partnerId}/data-database'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -2472,7 +2472,7 @@ module ApiSdkRb
|
|
|
2472
2472
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
2473
2473
|
|
|
2474
2474
|
new_options = opts.merge(
|
|
2475
|
-
:operation => :"PartnersApi.
|
|
2475
|
+
:operation => :"PartnersApi.set_partner_data_database",
|
|
2476
2476
|
:header_params => header_params,
|
|
2477
2477
|
:query_params => query_params,
|
|
2478
2478
|
:form_params => form_params,
|
|
@@ -2483,7 +2483,7 @@ module ApiSdkRb
|
|
|
2483
2483
|
|
|
2484
2484
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2485
2485
|
if @api_client.config.debugging
|
|
2486
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
2486
|
+
@api_client.config.logger.debug "API called: PartnersApi#set_partner_data_database\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2487
2487
|
end
|
|
2488
2488
|
return data, status_code, headers
|
|
2489
2489
|
end
|
|
@@ -2493,9 +2493,9 @@ module ApiSdkRb
|
|
|
2493
2493
|
# @param partner_id [String]
|
|
2494
2494
|
# @param set_partner_design_defaults_request [SetPartnerDesignDefaultsRequest]
|
|
2495
2495
|
# @param [Hash] opts the optional parameters
|
|
2496
|
-
# @return [
|
|
2497
|
-
def
|
|
2498
|
-
data, _status_code, _headers =
|
|
2496
|
+
# @return [DesignDefaultsResponse]
|
|
2497
|
+
def set_partner_design_defaults(partner_id, set_partner_design_defaults_request, opts = {})
|
|
2498
|
+
data, _status_code, _headers = set_partner_design_defaults_with_http_info(partner_id, set_partner_design_defaults_request, opts)
|
|
2499
2499
|
data
|
|
2500
2500
|
end
|
|
2501
2501
|
|
|
@@ -2504,18 +2504,18 @@ module ApiSdkRb
|
|
|
2504
2504
|
# @param partner_id [String]
|
|
2505
2505
|
# @param set_partner_design_defaults_request [SetPartnerDesignDefaultsRequest]
|
|
2506
2506
|
# @param [Hash] opts the optional parameters
|
|
2507
|
-
# @return [Array<(
|
|
2508
|
-
def
|
|
2507
|
+
# @return [Array<(DesignDefaultsResponse, Integer, Hash)>] DesignDefaultsResponse data, response status code and response headers
|
|
2508
|
+
def set_partner_design_defaults_with_http_info(partner_id, set_partner_design_defaults_request, opts = {})
|
|
2509
2509
|
if @api_client.config.debugging
|
|
2510
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
2510
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_design_defaults ...'
|
|
2511
2511
|
end
|
|
2512
2512
|
# verify the required parameter 'partner_id' is set
|
|
2513
2513
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
2514
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
2514
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_design_defaults"
|
|
2515
2515
|
end
|
|
2516
2516
|
# verify the required parameter 'set_partner_design_defaults_request' is set
|
|
2517
2517
|
if @api_client.config.client_side_validation && set_partner_design_defaults_request.nil?
|
|
2518
|
-
fail ArgumentError, "Missing the required parameter 'set_partner_design_defaults_request' when calling PartnersApi.
|
|
2518
|
+
fail ArgumentError, "Missing the required parameter 'set_partner_design_defaults_request' when calling PartnersApi.set_partner_design_defaults"
|
|
2519
2519
|
end
|
|
2520
2520
|
# resource path
|
|
2521
2521
|
local_var_path = '/partners/{partnerId}/design-defaults'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -2540,13 +2540,13 @@ module ApiSdkRb
|
|
|
2540
2540
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_partner_design_defaults_request)
|
|
2541
2541
|
|
|
2542
2542
|
# return_type
|
|
2543
|
-
return_type = opts[:debug_return_type] || '
|
|
2543
|
+
return_type = opts[:debug_return_type] || 'DesignDefaultsResponse'
|
|
2544
2544
|
|
|
2545
2545
|
# auth_names
|
|
2546
2546
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
2547
2547
|
|
|
2548
2548
|
new_options = opts.merge(
|
|
2549
|
-
:operation => :"PartnersApi.
|
|
2549
|
+
:operation => :"PartnersApi.set_partner_design_defaults",
|
|
2550
2550
|
:header_params => header_params,
|
|
2551
2551
|
:query_params => query_params,
|
|
2552
2552
|
:form_params => form_params,
|
|
@@ -2557,7 +2557,7 @@ module ApiSdkRb
|
|
|
2557
2557
|
|
|
2558
2558
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2559
2559
|
if @api_client.config.debugging
|
|
2560
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
2560
|
+
@api_client.config.logger.debug "API called: PartnersApi#set_partner_design_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2561
2561
|
end
|
|
2562
2562
|
return data, status_code, headers
|
|
2563
2563
|
end
|
|
@@ -2569,8 +2569,8 @@ module ApiSdkRb
|
|
|
2569
2569
|
# @param set_partner_preset_request [SetPartnerPresetRequest]
|
|
2570
2570
|
# @param [Hash] opts the optional parameters
|
|
2571
2571
|
# @return [PartnerPresetResponse]
|
|
2572
|
-
def
|
|
2573
|
-
data, _status_code, _headers =
|
|
2572
|
+
def set_partner_preset(partner_id, key, set_partner_preset_request, opts = {})
|
|
2573
|
+
data, _status_code, _headers = set_partner_preset_with_http_info(partner_id, key, set_partner_preset_request, opts)
|
|
2574
2574
|
data
|
|
2575
2575
|
end
|
|
2576
2576
|
|
|
@@ -2581,26 +2581,26 @@ module ApiSdkRb
|
|
|
2581
2581
|
# @param set_partner_preset_request [SetPartnerPresetRequest]
|
|
2582
2582
|
# @param [Hash] opts the optional parameters
|
|
2583
2583
|
# @return [Array<(PartnerPresetResponse, Integer, Hash)>] PartnerPresetResponse data, response status code and response headers
|
|
2584
|
-
def
|
|
2584
|
+
def set_partner_preset_with_http_info(partner_id, key, set_partner_preset_request, opts = {})
|
|
2585
2585
|
if @api_client.config.debugging
|
|
2586
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
2586
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_preset ...'
|
|
2587
2587
|
end
|
|
2588
2588
|
# verify the required parameter 'partner_id' is set
|
|
2589
2589
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
2590
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
2590
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_preset"
|
|
2591
2591
|
end
|
|
2592
2592
|
# verify the required parameter 'key' is set
|
|
2593
2593
|
if @api_client.config.client_side_validation && key.nil?
|
|
2594
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.
|
|
2594
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.set_partner_preset"
|
|
2595
2595
|
end
|
|
2596
2596
|
pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
|
|
2597
2597
|
if @api_client.config.client_side_validation && key !~ pattern
|
|
2598
|
-
fail ArgumentError, "invalid value for 'key' when calling PartnersApi.
|
|
2598
|
+
fail ArgumentError, "invalid value for 'key' when calling PartnersApi.set_partner_preset, must conform to the pattern #{pattern}."
|
|
2599
2599
|
end
|
|
2600
2600
|
|
|
2601
2601
|
# verify the required parameter 'set_partner_preset_request' is set
|
|
2602
2602
|
if @api_client.config.client_side_validation && set_partner_preset_request.nil?
|
|
2603
|
-
fail ArgumentError, "Missing the required parameter 'set_partner_preset_request' when calling PartnersApi.
|
|
2603
|
+
fail ArgumentError, "Missing the required parameter 'set_partner_preset_request' when calling PartnersApi.set_partner_preset"
|
|
2604
2604
|
end
|
|
2605
2605
|
# resource path
|
|
2606
2606
|
local_var_path = '/partners/{partnerId}/presets/{key}'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s)).sub('{' + 'key' + '}', CGI.escape(key.to_s))
|
|
@@ -2631,7 +2631,7 @@ module ApiSdkRb
|
|
|
2631
2631
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
2632
2632
|
|
|
2633
2633
|
new_options = opts.merge(
|
|
2634
|
-
:operation => :"PartnersApi.
|
|
2634
|
+
:operation => :"PartnersApi.set_partner_preset",
|
|
2635
2635
|
:header_params => header_params,
|
|
2636
2636
|
:query_params => query_params,
|
|
2637
2637
|
:form_params => form_params,
|
|
@@ -2642,39 +2642,39 @@ module ApiSdkRb
|
|
|
2642
2642
|
|
|
2643
2643
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2644
2644
|
if @api_client.config.debugging
|
|
2645
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
2645
|
+
@api_client.config.logger.debug "API called: PartnersApi#set_partner_preset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2646
2646
|
end
|
|
2647
2647
|
return data, status_code, headers
|
|
2648
2648
|
end
|
|
2649
2649
|
|
|
2650
2650
|
# Set where a partner's uploaded files are stored
|
|
2651
|
-
# Points the partner at a bucket of its own on an S3-compatible service (Cloudflare R2, Amazon S3, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with `
|
|
2651
|
+
# Points the partner at a bucket of its own on an S3-compatible service (Cloudflare R2, Amazon S3, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with `uploadFile` (with an API key, an SDK token, an editor session or from the Widgetic website), a resumable upload, the media library, and the files the agent tools and the MCP server save. It takes none of the account's storage allowance, and its `url` is served from `publicBaseUrl`. The chunks of a resumable upload wait in Widgetic's temporary staging area until it is completed and are removed then: the finished file is stored in your bucket and nowhere else. A destination is required. Partner storage is not optional: your customers' files, and your own however they arrive, are kept in this destination and nowhere else. An editor session (`createManagedUserEditorSession`) of any surface cannot be made until a destination is set (409 `PARTNER_STORAGE_REQUIRED`), a destination removed later stops the uploads of the sessions already made (the same 409), and your own upload with no destination (on any route, including a resumable upload, which is refused when it is started) is refused in the same way instead of being stored with Widgetic. A partner cannot be activated until it has a destination that works. The destination is checked before it is saved. Widgetic writes a small test file under `<keyPrefix>widgetic-check/`, reads it back from `<publicBaseUrl>/<its key>`, and deletes it. If any step fails nothing is saved and the answer is 422 `STORAGE_DESTINATION_UNVERIFIED`: `details.step` says where (`endpoint`, `write` or `public_read`), `details.reason` says why, and `param` names the field most likely to be wrong. What the bucket needs: - an access key that may put objects into it (it may also delete objects, which lets the test file be cleaned up, but that is not required); - its files publicly readable at `publicBaseUrl`, either because the bucket is public or through a CDN. The secret access key is stored encrypted and is never returned or logged; a response shows only the last four characters of the access key id (`accessKeyHint`). Saving replaces the whole destination, so send every field again, including the secret. Files already stored stay where they are, and keep working for as long as that bucket stays publicly readable. Once a destination is set, an upload is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 `STORAGE_DESTINATION_UNAVAILABLE`, and when the bucket rejects the file with 502 `STORAGE_DESTINATION_WRITE_FAILED`. The caller must be the person who administers the partner (an API key of that account works); anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can set any partner's.
|
|
2652
2652
|
# @param partner_id [String] The partner whose storage destination to set
|
|
2653
2653
|
# @param set_partner_storage_destination_request [SetPartnerStorageDestinationRequest]
|
|
2654
2654
|
# @param [Hash] opts the optional parameters
|
|
2655
2655
|
# @return [PartnerStorageDestinationResponse]
|
|
2656
|
-
def
|
|
2657
|
-
data, _status_code, _headers =
|
|
2656
|
+
def set_partner_storage_destination(partner_id, set_partner_storage_destination_request, opts = {})
|
|
2657
|
+
data, _status_code, _headers = set_partner_storage_destination_with_http_info(partner_id, set_partner_storage_destination_request, opts)
|
|
2658
2658
|
data
|
|
2659
2659
|
end
|
|
2660
2660
|
|
|
2661
2661
|
# Set where a partner's uploaded files are stored
|
|
2662
|
-
# Points the partner at a bucket of its own on an S3-compatible service (Cloudflare R2, Amazon S3, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with `
|
|
2662
|
+
# Points the partner at a bucket of its own on an S3-compatible service (Cloudflare R2, Amazon S3, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with `uploadFile` (with an API key, an SDK token, an editor session or from the Widgetic website), a resumable upload, the media library, and the files the agent tools and the MCP server save. It takes none of the account's storage allowance, and its `url` is served from `publicBaseUrl`. The chunks of a resumable upload wait in Widgetic's temporary staging area until it is completed and are removed then: the finished file is stored in your bucket and nowhere else. A destination is required. Partner storage is not optional: your customers' files, and your own however they arrive, are kept in this destination and nowhere else. An editor session (`createManagedUserEditorSession`) of any surface cannot be made until a destination is set (409 `PARTNER_STORAGE_REQUIRED`), a destination removed later stops the uploads of the sessions already made (the same 409), and your own upload with no destination (on any route, including a resumable upload, which is refused when it is started) is refused in the same way instead of being stored with Widgetic. A partner cannot be activated until it has a destination that works. The destination is checked before it is saved. Widgetic writes a small test file under `<keyPrefix>widgetic-check/`, reads it back from `<publicBaseUrl>/<its key>`, and deletes it. If any step fails nothing is saved and the answer is 422 `STORAGE_DESTINATION_UNVERIFIED`: `details.step` says where (`endpoint`, `write` or `public_read`), `details.reason` says why, and `param` names the field most likely to be wrong. What the bucket needs: - an access key that may put objects into it (it may also delete objects, which lets the test file be cleaned up, but that is not required); - its files publicly readable at `publicBaseUrl`, either because the bucket is public or through a CDN. The secret access key is stored encrypted and is never returned or logged; a response shows only the last four characters of the access key id (`accessKeyHint`). Saving replaces the whole destination, so send every field again, including the secret. Files already stored stay where they are, and keep working for as long as that bucket stays publicly readable. Once a destination is set, an upload is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 `STORAGE_DESTINATION_UNAVAILABLE`, and when the bucket rejects the file with 502 `STORAGE_DESTINATION_WRITE_FAILED`. The caller must be the person who administers the partner (an API key of that account works); anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can set any partner's.
|
|
2663
2663
|
# @param partner_id [String] The partner whose storage destination to set
|
|
2664
2664
|
# @param set_partner_storage_destination_request [SetPartnerStorageDestinationRequest]
|
|
2665
2665
|
# @param [Hash] opts the optional parameters
|
|
2666
2666
|
# @return [Array<(PartnerStorageDestinationResponse, Integer, Hash)>] PartnerStorageDestinationResponse data, response status code and response headers
|
|
2667
|
-
def
|
|
2667
|
+
def set_partner_storage_destination_with_http_info(partner_id, set_partner_storage_destination_request, opts = {})
|
|
2668
2668
|
if @api_client.config.debugging
|
|
2669
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
2669
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_storage_destination ...'
|
|
2670
2670
|
end
|
|
2671
2671
|
# verify the required parameter 'partner_id' is set
|
|
2672
2672
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
2673
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
2673
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_storage_destination"
|
|
2674
2674
|
end
|
|
2675
2675
|
# verify the required parameter 'set_partner_storage_destination_request' is set
|
|
2676
2676
|
if @api_client.config.client_side_validation && set_partner_storage_destination_request.nil?
|
|
2677
|
-
fail ArgumentError, "Missing the required parameter 'set_partner_storage_destination_request' when calling PartnersApi.
|
|
2677
|
+
fail ArgumentError, "Missing the required parameter 'set_partner_storage_destination_request' when calling PartnersApi.set_partner_storage_destination"
|
|
2678
2678
|
end
|
|
2679
2679
|
# resource path
|
|
2680
2680
|
local_var_path = '/partners/{partnerId}/storage'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -2705,7 +2705,7 @@ module ApiSdkRb
|
|
|
2705
2705
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
2706
2706
|
|
|
2707
2707
|
new_options = opts.merge(
|
|
2708
|
-
:operation => :"PartnersApi.
|
|
2708
|
+
:operation => :"PartnersApi.set_partner_storage_destination",
|
|
2709
2709
|
:header_params => header_params,
|
|
2710
2710
|
:query_params => query_params,
|
|
2711
2711
|
:form_params => form_params,
|
|
@@ -2716,7 +2716,7 @@ module ApiSdkRb
|
|
|
2716
2716
|
|
|
2717
2717
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2718
2718
|
if @api_client.config.debugging
|
|
2719
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
2719
|
+
@api_client.config.logger.debug "API called: PartnersApi#set_partner_storage_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2720
2720
|
end
|
|
2721
2721
|
return data, status_code, headers
|
|
2722
2722
|
end
|
|
@@ -2728,8 +2728,8 @@ module ApiSdkRb
|
|
|
2728
2728
|
# @param offer_workflow_preset_request [OfferWorkflowPresetRequest]
|
|
2729
2729
|
# @param [Hash] opts the optional parameters
|
|
2730
2730
|
# @return [SetPartnerWorkflowPreset200Response]
|
|
2731
|
-
def
|
|
2732
|
-
data, _status_code, _headers =
|
|
2731
|
+
def set_partner_workflow_preset(partner_id, key, offer_workflow_preset_request, opts = {})
|
|
2732
|
+
data, _status_code, _headers = set_partner_workflow_preset_with_http_info(partner_id, key, offer_workflow_preset_request, opts)
|
|
2733
2733
|
data
|
|
2734
2734
|
end
|
|
2735
2735
|
|
|
@@ -2740,26 +2740,26 @@ module ApiSdkRb
|
|
|
2740
2740
|
# @param offer_workflow_preset_request [OfferWorkflowPresetRequest]
|
|
2741
2741
|
# @param [Hash] opts the optional parameters
|
|
2742
2742
|
# @return [Array<(SetPartnerWorkflowPreset200Response, Integer, Hash)>] SetPartnerWorkflowPreset200Response data, response status code and response headers
|
|
2743
|
-
def
|
|
2743
|
+
def set_partner_workflow_preset_with_http_info(partner_id, key, offer_workflow_preset_request, opts = {})
|
|
2744
2744
|
if @api_client.config.debugging
|
|
2745
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
2745
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_workflow_preset ...'
|
|
2746
2746
|
end
|
|
2747
2747
|
# verify the required parameter 'partner_id' is set
|
|
2748
2748
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
2749
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
2749
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_workflow_preset"
|
|
2750
2750
|
end
|
|
2751
2751
|
# verify the required parameter 'key' is set
|
|
2752
2752
|
if @api_client.config.client_side_validation && key.nil?
|
|
2753
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.
|
|
2753
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.set_partner_workflow_preset"
|
|
2754
2754
|
end
|
|
2755
2755
|
pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
|
|
2756
2756
|
if @api_client.config.client_side_validation && key !~ pattern
|
|
2757
|
-
fail ArgumentError, "invalid value for 'key' when calling PartnersApi.
|
|
2757
|
+
fail ArgumentError, "invalid value for 'key' when calling PartnersApi.set_partner_workflow_preset, must conform to the pattern #{pattern}."
|
|
2758
2758
|
end
|
|
2759
2759
|
|
|
2760
2760
|
# verify the required parameter 'offer_workflow_preset_request' is set
|
|
2761
2761
|
if @api_client.config.client_side_validation && offer_workflow_preset_request.nil?
|
|
2762
|
-
fail ArgumentError, "Missing the required parameter 'offer_workflow_preset_request' when calling PartnersApi.
|
|
2762
|
+
fail ArgumentError, "Missing the required parameter 'offer_workflow_preset_request' when calling PartnersApi.set_partner_workflow_preset"
|
|
2763
2763
|
end
|
|
2764
2764
|
# resource path
|
|
2765
2765
|
local_var_path = '/partners/{partnerId}/workflow-presets/{key}'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s)).sub('{' + 'key' + '}', CGI.escape(key.to_s))
|
|
@@ -2790,7 +2790,7 @@ module ApiSdkRb
|
|
|
2790
2790
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
2791
2791
|
|
|
2792
2792
|
new_options = opts.merge(
|
|
2793
|
-
:operation => :"PartnersApi.
|
|
2793
|
+
:operation => :"PartnersApi.set_partner_workflow_preset",
|
|
2794
2794
|
:header_params => header_params,
|
|
2795
2795
|
:query_params => query_params,
|
|
2796
2796
|
:form_params => form_params,
|
|
@@ -2801,7 +2801,7 @@ module ApiSdkRb
|
|
|
2801
2801
|
|
|
2802
2802
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2803
2803
|
if @api_client.config.debugging
|
|
2804
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
2804
|
+
@api_client.config.logger.debug "API called: PartnersApi#set_partner_workflow_preset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2805
2805
|
end
|
|
2806
2806
|
return data, status_code, headers
|
|
2807
2807
|
end
|
|
@@ -2813,8 +2813,8 @@ module ApiSdkRb
|
|
|
2813
2813
|
# @param [Hash] opts the optional parameters
|
|
2814
2814
|
# @option opts [String] :idempotency_key Optional: without it the call is carried out every time it is sent. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, `-` and `_`. Send the same key again when you retry (after a timeout, a dropped connection or a `5xx`) and the call is carried out once: the retry gets the first answer back, marked `X-Idempotency-Cached: true`. The same key with a different body is refused with `422`, and a retry that arrives while the first call is still running with `409` (see `Retry-After`).
|
|
2815
2815
|
# @return [PartnerEntryContextSigningResponse]
|
|
2816
|
-
def
|
|
2817
|
-
data, _status_code, _headers =
|
|
2816
|
+
def update_partner_entry_context_signing(partner_id, update_partner_entry_context_signing_request, opts = {})
|
|
2817
|
+
data, _status_code, _headers = update_partner_entry_context_signing_with_http_info(partner_id, update_partner_entry_context_signing_request, opts)
|
|
2818
2818
|
data
|
|
2819
2819
|
end
|
|
2820
2820
|
|
|
@@ -2825,29 +2825,29 @@ module ApiSdkRb
|
|
|
2825
2825
|
# @param [Hash] opts the optional parameters
|
|
2826
2826
|
# @option opts [String] :idempotency_key Optional: without it the call is carried out every time it is sent. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, `-` and `_`. Send the same key again when you retry (after a timeout, a dropped connection or a `5xx`) and the call is carried out once: the retry gets the first answer back, marked `X-Idempotency-Cached: true`. The same key with a different body is refused with `422`, and a retry that arrives while the first call is still running with `409` (see `Retry-After`).
|
|
2827
2827
|
# @return [Array<(PartnerEntryContextSigningResponse, Integer, Hash)>] PartnerEntryContextSigningResponse data, response status code and response headers
|
|
2828
|
-
def
|
|
2828
|
+
def update_partner_entry_context_signing_with_http_info(partner_id, update_partner_entry_context_signing_request, opts = {})
|
|
2829
2829
|
if @api_client.config.debugging
|
|
2830
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
2830
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.update_partner_entry_context_signing ...'
|
|
2831
2831
|
end
|
|
2832
2832
|
# verify the required parameter 'partner_id' is set
|
|
2833
2833
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
2834
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
2834
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.update_partner_entry_context_signing"
|
|
2835
2835
|
end
|
|
2836
2836
|
# verify the required parameter 'update_partner_entry_context_signing_request' is set
|
|
2837
2837
|
if @api_client.config.client_side_validation && update_partner_entry_context_signing_request.nil?
|
|
2838
|
-
fail ArgumentError, "Missing the required parameter 'update_partner_entry_context_signing_request' when calling PartnersApi.
|
|
2838
|
+
fail ArgumentError, "Missing the required parameter 'update_partner_entry_context_signing_request' when calling PartnersApi.update_partner_entry_context_signing"
|
|
2839
2839
|
end
|
|
2840
2840
|
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 50
|
|
2841
|
-
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.
|
|
2841
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.update_partner_entry_context_signing, the character length must be smaller than or equal to 50.'
|
|
2842
2842
|
end
|
|
2843
2843
|
|
|
2844
2844
|
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 8
|
|
2845
|
-
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.
|
|
2845
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.update_partner_entry_context_signing, the character length must be great than or equal to 8.'
|
|
2846
2846
|
end
|
|
2847
2847
|
|
|
2848
2848
|
pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
|
|
2849
2849
|
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'] !~ pattern
|
|
2850
|
-
fail ArgumentError, "invalid value for 'opts[:\"idempotency_key\"]' when calling PartnersApi.
|
|
2850
|
+
fail ArgumentError, "invalid value for 'opts[:\"idempotency_key\"]' when calling PartnersApi.update_partner_entry_context_signing, must conform to the pattern #{pattern}."
|
|
2851
2851
|
end
|
|
2852
2852
|
|
|
2853
2853
|
# resource path
|
|
@@ -2880,7 +2880,7 @@ module ApiSdkRb
|
|
|
2880
2880
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
2881
2881
|
|
|
2882
2882
|
new_options = opts.merge(
|
|
2883
|
-
:operation => :"PartnersApi.
|
|
2883
|
+
:operation => :"PartnersApi.update_partner_entry_context_signing",
|
|
2884
2884
|
:header_params => header_params,
|
|
2885
2885
|
:query_params => query_params,
|
|
2886
2886
|
:form_params => form_params,
|
|
@@ -2891,7 +2891,7 @@ module ApiSdkRb
|
|
|
2891
2891
|
|
|
2892
2892
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2893
2893
|
if @api_client.config.debugging
|
|
2894
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
2894
|
+
@api_client.config.logger.debug "API called: PartnersApi#update_partner_entry_context_signing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2895
2895
|
end
|
|
2896
2896
|
return data, status_code, headers
|
|
2897
2897
|
end
|
|
@@ -2903,8 +2903,8 @@ module ApiSdkRb
|
|
|
2903
2903
|
# @param [Hash] opts the optional parameters
|
|
2904
2904
|
# @option opts [String] :idempotency_key Optional: without it the call is carried out every time it is sent. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, `-` and `_`. Send the same key again when you retry (after a timeout, a dropped connection or a `5xx`) and the call is carried out once: the retry gets the first answer back, marked `X-Idempotency-Cached: true`. The same key with a different body is refused with `422`, and a retry that arrives while the first call is still running with `409` (see `Retry-After`).
|
|
2905
2905
|
# @return [PartnerNotificationSettingsChangeResponse]
|
|
2906
|
-
def
|
|
2907
|
-
data, _status_code, _headers =
|
|
2906
|
+
def update_partner_notification_settings(partner_id, update_partner_notification_settings_request, opts = {})
|
|
2907
|
+
data, _status_code, _headers = update_partner_notification_settings_with_http_info(partner_id, update_partner_notification_settings_request, opts)
|
|
2908
2908
|
data
|
|
2909
2909
|
end
|
|
2910
2910
|
|
|
@@ -2915,29 +2915,29 @@ module ApiSdkRb
|
|
|
2915
2915
|
# @param [Hash] opts the optional parameters
|
|
2916
2916
|
# @option opts [String] :idempotency_key Optional: without it the call is carried out every time it is sent. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, `-` and `_`. Send the same key again when you retry (after a timeout, a dropped connection or a `5xx`) and the call is carried out once: the retry gets the first answer back, marked `X-Idempotency-Cached: true`. The same key with a different body is refused with `422`, and a retry that arrives while the first call is still running with `409` (see `Retry-After`).
|
|
2917
2917
|
# @return [Array<(PartnerNotificationSettingsChangeResponse, Integer, Hash)>] PartnerNotificationSettingsChangeResponse data, response status code and response headers
|
|
2918
|
-
def
|
|
2918
|
+
def update_partner_notification_settings_with_http_info(partner_id, update_partner_notification_settings_request, opts = {})
|
|
2919
2919
|
if @api_client.config.debugging
|
|
2920
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
2920
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.update_partner_notification_settings ...'
|
|
2921
2921
|
end
|
|
2922
2922
|
# verify the required parameter 'partner_id' is set
|
|
2923
2923
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
2924
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
2924
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.update_partner_notification_settings"
|
|
2925
2925
|
end
|
|
2926
2926
|
# verify the required parameter 'update_partner_notification_settings_request' is set
|
|
2927
2927
|
if @api_client.config.client_side_validation && update_partner_notification_settings_request.nil?
|
|
2928
|
-
fail ArgumentError, "Missing the required parameter 'update_partner_notification_settings_request' when calling PartnersApi.
|
|
2928
|
+
fail ArgumentError, "Missing the required parameter 'update_partner_notification_settings_request' when calling PartnersApi.update_partner_notification_settings"
|
|
2929
2929
|
end
|
|
2930
2930
|
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 50
|
|
2931
|
-
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.
|
|
2931
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.update_partner_notification_settings, the character length must be smaller than or equal to 50.'
|
|
2932
2932
|
end
|
|
2933
2933
|
|
|
2934
2934
|
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 8
|
|
2935
|
-
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.
|
|
2935
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.update_partner_notification_settings, the character length must be great than or equal to 8.'
|
|
2936
2936
|
end
|
|
2937
2937
|
|
|
2938
2938
|
pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
|
|
2939
2939
|
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'] !~ pattern
|
|
2940
|
-
fail ArgumentError, "invalid value for 'opts[:\"idempotency_key\"]' when calling PartnersApi.
|
|
2940
|
+
fail ArgumentError, "invalid value for 'opts[:\"idempotency_key\"]' when calling PartnersApi.update_partner_notification_settings, must conform to the pattern #{pattern}."
|
|
2941
2941
|
end
|
|
2942
2942
|
|
|
2943
2943
|
# resource path
|
|
@@ -2970,7 +2970,7 @@ module ApiSdkRb
|
|
|
2970
2970
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
2971
2971
|
|
|
2972
2972
|
new_options = opts.merge(
|
|
2973
|
-
:operation => :"PartnersApi.
|
|
2973
|
+
:operation => :"PartnersApi.update_partner_notification_settings",
|
|
2974
2974
|
:header_params => header_params,
|
|
2975
2975
|
:query_params => query_params,
|
|
2976
2976
|
:form_params => form_params,
|
|
@@ -2981,7 +2981,7 @@ module ApiSdkRb
|
|
|
2981
2981
|
|
|
2982
2982
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2983
2983
|
if @api_client.config.debugging
|
|
2984
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
2984
|
+
@api_client.config.logger.debug "API called: PartnersApi#update_partner_notification_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2985
2985
|
end
|
|
2986
2986
|
return data, status_code, headers
|
|
2987
2987
|
end
|
|
@@ -2991,8 +2991,8 @@ module ApiSdkRb
|
|
|
2991
2991
|
# @param partner_id [String] The partner whose database to check
|
|
2992
2992
|
# @param [Hash] opts the optional parameters
|
|
2993
2993
|
# @return [PartnerDataDatabaseResponse]
|
|
2994
|
-
def
|
|
2995
|
-
data, _status_code, _headers =
|
|
2994
|
+
def verify_partner_data_database(partner_id, opts = {})
|
|
2995
|
+
data, _status_code, _headers = verify_partner_data_database_with_http_info(partner_id, opts)
|
|
2996
2996
|
data
|
|
2997
2997
|
end
|
|
2998
2998
|
|
|
@@ -3001,13 +3001,13 @@ module ApiSdkRb
|
|
|
3001
3001
|
# @param partner_id [String] The partner whose database to check
|
|
3002
3002
|
# @param [Hash] opts the optional parameters
|
|
3003
3003
|
# @return [Array<(PartnerDataDatabaseResponse, Integer, Hash)>] PartnerDataDatabaseResponse data, response status code and response headers
|
|
3004
|
-
def
|
|
3004
|
+
def verify_partner_data_database_with_http_info(partner_id, opts = {})
|
|
3005
3005
|
if @api_client.config.debugging
|
|
3006
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
3006
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.verify_partner_data_database ...'
|
|
3007
3007
|
end
|
|
3008
3008
|
# verify the required parameter 'partner_id' is set
|
|
3009
3009
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
3010
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
3010
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.verify_partner_data_database"
|
|
3011
3011
|
end
|
|
3012
3012
|
# resource path
|
|
3013
3013
|
local_var_path = '/partners/{partnerId}/data-database/verify'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -3033,7 +3033,7 @@ module ApiSdkRb
|
|
|
3033
3033
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
3034
3034
|
|
|
3035
3035
|
new_options = opts.merge(
|
|
3036
|
-
:operation => :"PartnersApi.
|
|
3036
|
+
:operation => :"PartnersApi.verify_partner_data_database",
|
|
3037
3037
|
:header_params => header_params,
|
|
3038
3038
|
:query_params => query_params,
|
|
3039
3039
|
:form_params => form_params,
|
|
@@ -3044,7 +3044,7 @@ module ApiSdkRb
|
|
|
3044
3044
|
|
|
3045
3045
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3046
3046
|
if @api_client.config.debugging
|
|
3047
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
3047
|
+
@api_client.config.logger.debug "API called: PartnersApi#verify_partner_data_database\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3048
3048
|
end
|
|
3049
3049
|
return data, status_code, headers
|
|
3050
3050
|
end
|
|
@@ -3054,8 +3054,8 @@ module ApiSdkRb
|
|
|
3054
3054
|
# @param partner_id [String] The partner whose storage destination to check
|
|
3055
3055
|
# @param [Hash] opts the optional parameters
|
|
3056
3056
|
# @return [PartnerStorageDestinationResponse]
|
|
3057
|
-
def
|
|
3058
|
-
data, _status_code, _headers =
|
|
3057
|
+
def verify_partner_storage_destination(partner_id, opts = {})
|
|
3058
|
+
data, _status_code, _headers = verify_partner_storage_destination_with_http_info(partner_id, opts)
|
|
3059
3059
|
data
|
|
3060
3060
|
end
|
|
3061
3061
|
|
|
@@ -3064,13 +3064,13 @@ module ApiSdkRb
|
|
|
3064
3064
|
# @param partner_id [String] The partner whose storage destination to check
|
|
3065
3065
|
# @param [Hash] opts the optional parameters
|
|
3066
3066
|
# @return [Array<(PartnerStorageDestinationResponse, Integer, Hash)>] PartnerStorageDestinationResponse data, response status code and response headers
|
|
3067
|
-
def
|
|
3067
|
+
def verify_partner_storage_destination_with_http_info(partner_id, opts = {})
|
|
3068
3068
|
if @api_client.config.debugging
|
|
3069
|
-
@api_client.config.logger.debug 'Calling API: PartnersApi.
|
|
3069
|
+
@api_client.config.logger.debug 'Calling API: PartnersApi.verify_partner_storage_destination ...'
|
|
3070
3070
|
end
|
|
3071
3071
|
# verify the required parameter 'partner_id' is set
|
|
3072
3072
|
if @api_client.config.client_side_validation && partner_id.nil?
|
|
3073
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.
|
|
3073
|
+
fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.verify_partner_storage_destination"
|
|
3074
3074
|
end
|
|
3075
3075
|
# resource path
|
|
3076
3076
|
local_var_path = '/partners/{partnerId}/storage/verify'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
@@ -3096,7 +3096,7 @@ module ApiSdkRb
|
|
|
3096
3096
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
3097
3097
|
|
|
3098
3098
|
new_options = opts.merge(
|
|
3099
|
-
:operation => :"PartnersApi.
|
|
3099
|
+
:operation => :"PartnersApi.verify_partner_storage_destination",
|
|
3100
3100
|
:header_params => header_params,
|
|
3101
3101
|
:query_params => query_params,
|
|
3102
3102
|
:form_params => form_params,
|
|
@@ -3107,7 +3107,7 @@ module ApiSdkRb
|
|
|
3107
3107
|
|
|
3108
3108
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3109
3109
|
if @api_client.config.debugging
|
|
3110
|
-
@api_client.config.logger.debug "API called: PartnersApi#
|
|
3110
|
+
@api_client.config.logger.debug "API called: PartnersApi#verify_partner_storage_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3111
3111
|
end
|
|
3112
3112
|
return data, status_code, headers
|
|
3113
3113
|
end
|