apimatic-mx-apis-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +207 -0
- data/bin/console +15 -0
- data/lib/mx_platform_api/api_helper.rb +10 -0
- data/lib/mx_platform_api/apis/accounts_api.rb +619 -0
- data/lib/mx_platform_api/apis/ach_return_api.rb +115 -0
- data/lib/mx_platform_api/apis/base_api.rb +67 -0
- data/lib/mx_platform_api/apis/budgets_api.rb +212 -0
- data/lib/mx_platform_api/apis/categories_api.rb +377 -0
- data/lib/mx_platform_api/apis/goals_api.rb +223 -0
- data/lib/mx_platform_api/apis/insights_api.rb +415 -0
- data/lib/mx_platform_api/apis/institutions_api.rb +159 -0
- data/lib/mx_platform_api/apis/investment_holdings_api.rb +191 -0
- data/lib/mx_platform_api/apis/jobs_api.rb +48 -0
- data/lib/mx_platform_api/apis/managed_data_deprecated_api.rb +773 -0
- data/lib/mx_platform_api/apis/members_api.rb +639 -0
- data/lib/mx_platform_api/apis/merchants_api.rb +98 -0
- data/lib/mx_platform_api/apis/microdeposits_api.rb +219 -0
- data/lib/mx_platform_api/apis/monthly_cash_flow_profile_api.rb +75 -0
- data/lib/mx_platform_api/apis/notifications_api.rb +115 -0
- data/lib/mx_platform_api/apis/processor_token_api.rb +141 -0
- data/lib/mx_platform_api/apis/rewards_api.rb +149 -0
- data/lib/mx_platform_api/apis/spending_plan_api.rb +621 -0
- data/lib/mx_platform_api/apis/statements_api.rb +165 -0
- data/lib/mx_platform_api/apis/taggings_api.rb +184 -0
- data/lib/mx_platform_api/apis/tags_api.rb +185 -0
- data/lib/mx_platform_api/apis/transaction_rules_api.rb +163 -0
- data/lib/mx_platform_api/apis/transactions_api.rb +1223 -0
- data/lib/mx_platform_api/apis/users_api.rb +188 -0
- data/lib/mx_platform_api/apis/verifiable_credentials_api.rb +114 -0
- data/lib/mx_platform_api/apis/widgets_api.rb +135 -0
- data/lib/mx_platform_api/client.rb +225 -0
- data/lib/mx_platform_api/configuration.rb +182 -0
- data/lib/mx_platform_api/exceptions/api_exception.rb +21 -0
- data/lib/mx_platform_api/http/api_response.rb +19 -0
- data/lib/mx_platform_api/http/auth/basic_auth.rb +62 -0
- data/lib/mx_platform_api/http/auth/bearer_auth.rb +53 -0
- data/lib/mx_platform_api/http/http_call_back.rb +10 -0
- data/lib/mx_platform_api/http/http_method_enum.rb +10 -0
- data/lib/mx_platform_api/http/http_request.rb +10 -0
- data/lib/mx_platform_api/http/http_response.rb +10 -0
- data/lib/mx_platform_api/http/proxy_settings.rb +22 -0
- data/lib/mx_platform_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/mx_platform_api/logging/sdk_logger.rb +17 -0
- data/lib/mx_platform_api/models/account_create_request.rb +309 -0
- data/lib/mx_platform_api/models/account_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/account_number.rb +199 -0
- data/lib/mx_platform_api/models/account_number_response.rb +215 -0
- data/lib/mx_platform_api/models/account_numbers_response_body.rb +95 -0
- data/lib/mx_platform_api/models/account_owner.rb +186 -0
- data/lib/mx_platform_api/models/account_owner_response.rb +219 -0
- data/lib/mx_platform_api/models/account_owners_response_body.rb +95 -0
- data/lib/mx_platform_api/models/account_ownership.rb +45 -0
- data/lib/mx_platform_api/models/account_response.rb +814 -0
- data/lib/mx_platform_api/models/account_response_body.rb +75 -0
- data/lib/mx_platform_api/models/account_type.rb +80 -0
- data/lib/mx_platform_api/models/account_type1.rb +80 -0
- data/lib/mx_platform_api/models/account_update_request.rb +301 -0
- data/lib/mx_platform_api/models/account_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/accounts_merge_request.rb +75 -0
- data/lib/mx_platform_api/models/accounts_merge_request_body.rb +75 -0
- data/lib/mx_platform_api/models/accounts_response_body.rb +94 -0
- data/lib/mx_platform_api/models/ach_response.rb +424 -0
- data/lib/mx_platform_api/models/ach_return_create_request.rb +256 -0
- data/lib/mx_platform_api/models/ach_return_create_request_body.rb +76 -0
- data/lib/mx_platform_api/models/ach_return_response_body.rb +76 -0
- data/lib/mx_platform_api/models/ach_returns_response_body.rb +95 -0
- data/lib/mx_platform_api/models/authorization_code_request.rb +77 -0
- data/lib/mx_platform_api/models/authorization_code_request_body.rb +77 -0
- data/lib/mx_platform_api/models/authorization_code_response.rb +76 -0
- data/lib/mx_platform_api/models/authorization_code_response_body.rb +77 -0
- data/lib/mx_platform_api/models/base_model.rb +110 -0
- data/lib/mx_platform_api/models/budget_create_request.rb +115 -0
- data/lib/mx_platform_api/models/budget_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/budget_response.rb +246 -0
- data/lib/mx_platform_api/models/budget_response_body.rb +75 -0
- data/lib/mx_platform_api/models/budget_update_request.rb +96 -0
- data/lib/mx_platform_api/models/budget_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/categories_response_body.rb +95 -0
- data/lib/mx_platform_api/models/category_create_request.rb +93 -0
- data/lib/mx_platform_api/models/category_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/category_response.rb +160 -0
- data/lib/mx_platform_api/models/category_response_body.rb +75 -0
- data/lib/mx_platform_api/models/category_update_request.rb +85 -0
- data/lib/mx_platform_api/models/category_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/challenge_response.rb +159 -0
- data/lib/mx_platform_api/models/challenges_response_body.rb +95 -0
- data/lib/mx_platform_api/models/channel.rb +47 -0
- data/lib/mx_platform_api/models/classification.rb +85 -0
- data/lib/mx_platform_api/models/color_scheme.rb +43 -0
- data/lib/mx_platform_api/models/connection_status.rb +118 -0
- data/lib/mx_platform_api/models/credential_request.rb +85 -0
- data/lib/mx_platform_api/models/credential_response.rb +133 -0
- data/lib/mx_platform_api/models/credentials_response_body.rb +95 -0
- data/lib/mx_platform_api/models/credit_card_product.rb +276 -0
- data/lib/mx_platform_api/models/credit_card_product_response.rb +77 -0
- data/lib/mx_platform_api/models/data_request.rb +76 -0
- data/lib/mx_platform_api/models/date_range.rb +87 -0
- data/lib/mx_platform_api/models/date_range_category_totals_response.rb +115 -0
- data/lib/mx_platform_api/models/date_range_category_totals_response_body.rb +88 -0
- data/lib/mx_platform_api/models/deep_link_params.rb +131 -0
- data/lib/mx_platform_api/models/enhance_transaction_response.rb +371 -0
- data/lib/mx_platform_api/models/enhance_transactions_request.rb +143 -0
- data/lib/mx_platform_api/models/enhance_transactions_request_body.rb +85 -0
- data/lib/mx_platform_api/models/enhance_transactions_response_body.rb +85 -0
- data/lib/mx_platform_api/models/error.rb +106 -0
- data/lib/mx_platform_api/models/federal_insurance_status.rb +42 -0
- data/lib/mx_platform_api/models/geolocation.rb +108 -0
- data/lib/mx_platform_api/models/goal_request.rb +179 -0
- data/lib/mx_platform_api/models/goal_request_body.rb +74 -0
- data/lib/mx_platform_api/models/goal_response.rb +241 -0
- data/lib/mx_platform_api/models/goal_response_body.rb +74 -0
- data/lib/mx_platform_api/models/goal_type_name.rb +36 -0
- data/lib/mx_platform_api/models/goals_response.rb +241 -0
- data/lib/mx_platform_api/models/goals_response_body.rb +94 -0
- data/lib/mx_platform_api/models/image_option_response.rb +110 -0
- data/lib/mx_platform_api/models/insight_response.rb +338 -0
- data/lib/mx_platform_api/models/insight_response_body.rb +75 -0
- data/lib/mx_platform_api/models/insight_update_request.rb +87 -0
- data/lib/mx_platform_api/models/insight_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/insights_response_body.rb +94 -0
- data/lib/mx_platform_api/models/institution_response.rb +290 -0
- data/lib/mx_platform_api/models/institution_response_body.rb +76 -0
- data/lib/mx_platform_api/models/institutions_response_body.rb +95 -0
- data/lib/mx_platform_api/models/investment_holding_response.rb +513 -0
- data/lib/mx_platform_api/models/investment_holding_response_body.rb +77 -0
- data/lib/mx_platform_api/models/investment_holdings_deactivation.rb +85 -0
- data/lib/mx_platform_api/models/investment_holdings_response_body.rb +95 -0
- data/lib/mx_platform_api/models/iso_country_code.rb +36 -0
- data/lib/mx_platform_api/models/item_type.rb +52 -0
- data/lib/mx_platform_api/models/job_response.rb +203 -0
- data/lib/mx_platform_api/models/job_response_body.rb +74 -0
- data/lib/mx_platform_api/models/managed_account_create_request.rb +422 -0
- data/lib/mx_platform_api/models/managed_account_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_account_update_request.rb +428 -0
- data/lib/mx_platform_api/models/managed_account_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_member_create_request.rb +105 -0
- data/lib/mx_platform_api/models/managed_member_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_member_update_request.rb +95 -0
- data/lib/mx_platform_api/models/managed_member_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_transaction_create_request.rb +282 -0
- data/lib/mx_platform_api/models/managed_transaction_create_request_body.rb +77 -0
- data/lib/mx_platform_api/models/managed_transaction_update_request.rb +289 -0
- data/lib/mx_platform_api/models/managed_transaction_update_request_body.rb +77 -0
- data/lib/mx_platform_api/models/member_create_request.rb +154 -0
- data/lib/mx_platform_api/models/member_create_request_body.rb +152 -0
- data/lib/mx_platform_api/models/member_elements.rb +96 -0
- data/lib/mx_platform_api/models/member_response.rb +406 -0
- data/lib/mx_platform_api/models/member_response_body.rb +75 -0
- data/lib/mx_platform_api/models/member_response_with_job_error.rb +406 -0
- data/lib/mx_platform_api/models/member_response_with_job_error_body.rb +75 -0
- data/lib/mx_platform_api/models/member_resume_request.rb +85 -0
- data/lib/mx_platform_api/models/member_resume_request_body.rb +75 -0
- data/lib/mx_platform_api/models/member_status_response.rb +236 -0
- data/lib/mx_platform_api/models/member_status_response_body.rb +75 -0
- data/lib/mx_platform_api/models/member_update_request.rb +133 -0
- data/lib/mx_platform_api/models/member_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/members_response_body.rb +94 -0
- data/lib/mx_platform_api/models/merchant.rb +105 -0
- data/lib/mx_platform_api/models/merchant_location_response.rb +208 -0
- data/lib/mx_platform_api/models/merchant_location_response_body.rb +77 -0
- data/lib/mx_platform_api/models/merchant_response.rb +136 -0
- data/lib/mx_platform_api/models/merchant_response_body.rb +75 -0
- data/lib/mx_platform_api/models/merchants_response_body.rb +95 -0
- data/lib/mx_platform_api/models/micro_deposit.rb +223 -0
- data/lib/mx_platform_api/models/microdeposit_elements.rb +141 -0
- data/lib/mx_platform_api/models/microdeposit_request_body.rb +77 -0
- data/lib/mx_platform_api/models/microdeposit_response.rb +149 -0
- data/lib/mx_platform_api/models/microdeposit_response_body.rb +85 -0
- data/lib/mx_platform_api/models/microdeposit_verify_request.rb +88 -0
- data/lib/mx_platform_api/models/microdeposit_verify_request_body.rb +77 -0
- data/lib/mx_platform_api/models/microdeposits_response_body.rb +95 -0
- data/lib/mx_platform_api/models/monthly_account_balance.rb +123 -0
- data/lib/mx_platform_api/models/monthly_account_balances_response_body.rb +85 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_profile_request.rb +95 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_profile_request_body.rb +81 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_response.rb +157 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_response_body.rb +81 -0
- data/lib/mx_platform_api/models/notification_request.rb +83 -0
- data/lib/mx_platform_api/models/notification_request_body.rb +76 -0
- data/lib/mx_platform_api/models/notification_response.rb +204 -0
- data/lib/mx_platform_api/models/notification_response_body.rb +76 -0
- data/lib/mx_platform_api/models/notifications_response_body.rb +85 -0
- data/lib/mx_platform_api/models/oauth_window_response.rb +91 -0
- data/lib/mx_platform_api/models/oauth_window_response_body.rb +75 -0
- data/lib/mx_platform_api/models/option_response.rb +99 -0
- data/lib/mx_platform_api/models/pagination_response.rb +106 -0
- data/lib/mx_platform_api/models/parent_class.rb +84 -0
- data/lib/mx_platform_api/models/payment_account.rb +183 -0
- data/lib/mx_platform_api/models/payment_account1.rb +213 -0
- data/lib/mx_platform_api/models/payment_account_body.rb +77 -0
- data/lib/mx_platform_api/models/processor_account_number.rb +168 -0
- data/lib/mx_platform_api/models/processor_account_number_body.rb +85 -0
- data/lib/mx_platform_api/models/processor_owner.rb +155 -0
- data/lib/mx_platform_api/models/processor_owner_body.rb +95 -0
- data/lib/mx_platform_api/models/property_type.rb +69 -0
- data/lib/mx_platform_api/models/recurrence_type.rb +26 -0
- data/lib/mx_platform_api/models/repeating_transaction.rb +102 -0
- data/lib/mx_platform_api/models/repeating_transaction_response.rb +203 -0
- data/lib/mx_platform_api/models/repeating_transaction_type.rb +44 -0
- data/lib/mx_platform_api/models/repeating_transactions_response_body.rb +85 -0
- data/lib/mx_platform_api/models/reposition_request.rb +82 -0
- data/lib/mx_platform_api/models/reposition_request_body.rb +84 -0
- data/lib/mx_platform_api/models/reposition_response_body.rb +84 -0
- data/lib/mx_platform_api/models/reward.rb +187 -0
- data/lib/mx_platform_api/models/reward_elements.rb +156 -0
- data/lib/mx_platform_api/models/reward_response_body.rb +75 -0
- data/lib/mx_platform_api/models/rewards_response_body.rb +94 -0
- data/lib/mx_platform_api/models/scheduled_payment_response.rb +208 -0
- data/lib/mx_platform_api/models/scheduled_payments_response_body.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_account_response.rb +142 -0
- data/lib/mx_platform_api/models/spending_plan_accounts_response.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_item_create_request_body.rb +124 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_item_response.rb +224 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_items_response_body.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_response.rb +162 -0
- data/lib/mx_platform_api/models/spending_plan_iterations_response.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_response.rb +129 -0
- data/lib/mx_platform_api/models/spending_plans_response_body.rb +95 -0
- data/lib/mx_platform_api/models/split_transaction_request.rb +106 -0
- data/lib/mx_platform_api/models/split_transaction_request_body.rb +75 -0
- data/lib/mx_platform_api/models/split_transactions_response_body.rb +85 -0
- data/lib/mx_platform_api/models/statement_response.rb +157 -0
- data/lib/mx_platform_api/models/statement_response_body.rb +76 -0
- data/lib/mx_platform_api/models/statements_response_body.rb +95 -0
- data/lib/mx_platform_api/models/status.rb +36 -0
- data/lib/mx_platform_api/models/style.rb +74 -0
- data/lib/mx_platform_api/models/supported_product.rb +56 -0
- data/lib/mx_platform_api/models/supported_product1.rb +52 -0
- data/lib/mx_platform_api/models/tag_create_request.rb +72 -0
- data/lib/mx_platform_api/models/tag_create_request_body.rb +74 -0
- data/lib/mx_platform_api/models/tag_response.rb +99 -0
- data/lib/mx_platform_api/models/tag_response_body.rb +74 -0
- data/lib/mx_platform_api/models/tag_update_request.rb +72 -0
- data/lib/mx_platform_api/models/tag_update_request_body.rb +74 -0
- data/lib/mx_platform_api/models/tagging_create_request.rb +83 -0
- data/lib/mx_platform_api/models/tagging_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/tagging_response.rb +130 -0
- data/lib/mx_platform_api/models/tagging_response_body.rb +75 -0
- data/lib/mx_platform_api/models/tagging_update_request.rb +73 -0
- data/lib/mx_platform_api/models/tagging_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/taggings_response_body.rb +94 -0
- data/lib/mx_platform_api/models/tags_response_body.rb +94 -0
- data/lib/mx_platform_api/models/token_request_body.rb +75 -0
- data/lib/mx_platform_api/models/token_response.rb +114 -0
- data/lib/mx_platform_api/models/token_response_body.rb +84 -0
- data/lib/mx_platform_api/models/track_type_name.rb +44 -0
- data/lib/mx_platform_api/models/transaction_create_request.rb +192 -0
- data/lib/mx_platform_api/models/transaction_create_request_body.rb +76 -0
- data/lib/mx_platform_api/models/transaction_create_response_body.rb +595 -0
- data/lib/mx_platform_api/models/transaction_includes_response.rb +643 -0
- data/lib/mx_platform_api/models/transaction_response.rb +597 -0
- data/lib/mx_platform_api/models/transaction_response_body.rb +76 -0
- data/lib/mx_platform_api/models/transaction_rule_create_request.rb +98 -0
- data/lib/mx_platform_api/models/transaction_rule_create_request_body.rb +77 -0
- data/lib/mx_platform_api/models/transaction_rule_response.rb +152 -0
- data/lib/mx_platform_api/models/transaction_rule_response_body.rb +77 -0
- data/lib/mx_platform_api/models/transaction_rule_update_request.rb +103 -0
- data/lib/mx_platform_api/models/transaction_rule_update_request_body.rb +77 -0
- data/lib/mx_platform_api/models/transaction_rules_response_body.rb +95 -0
- data/lib/mx_platform_api/models/transaction_type.rb +36 -0
- data/lib/mx_platform_api/models/transaction_update_request.rb +74 -0
- data/lib/mx_platform_api/models/transaction_update_request_body.rb +76 -0
- data/lib/mx_platform_api/models/transactions_response_body.rb +95 -0
- data/lib/mx_platform_api/models/transactions_response_body_includes.rb +95 -0
- data/lib/mx_platform_api/models/type.rb +36 -0
- data/lib/mx_platform_api/models/update_goal_request.rb +185 -0
- data/lib/mx_platform_api/models/update_goal_request_body.rb +74 -0
- data/lib/mx_platform_api/models/use_case.rb +36 -0
- data/lib/mx_platform_api/models/user_create_request.rb +105 -0
- data/lib/mx_platform_api/models/user_create_request_body.rb +74 -0
- data/lib/mx_platform_api/models/user_response.rb +119 -0
- data/lib/mx_platform_api/models/user_response_body.rb +74 -0
- data/lib/mx_platform_api/models/user_update_request.rb +105 -0
- data/lib/mx_platform_api/models/user_update_request_body.rb +74 -0
- data/lib/mx_platform_api/models/users_response_body.rb +94 -0
- data/lib/mx_platform_api/models/users_widget_urls_request.rb +76 -0
- data/lib/mx_platform_api/models/vc_response.rb +77 -0
- data/lib/mx_platform_api/models/widget_request.rb +466 -0
- data/lib/mx_platform_api/models/widget_response.rb +100 -0
- data/lib/mx_platform_api/models/widget_response_body.rb +76 -0
- data/lib/mx_platform_api/models/widget_type.rb +149 -0
- data/lib/mx_platform_api/utilities/date_time_helper.rb +11 -0
- data/lib/mx_platform_api/utilities/file_wrapper.rb +28 -0
- data/lib/mx_platform_api.rb +313 -0
- metadata +370 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# StatementsApi
|
|
8
|
+
class StatementsApi < BaseApi
|
|
9
|
+
# Use this endpoint to fetch the statements associated with a particular
|
|
10
|
+
# member.
|
|
11
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
12
|
+
# version.
|
|
13
|
+
# @param [String] member_identifier Required parameter: Use either the
|
|
14
|
+
# member `id` you defined or the MX-defined member `guid`. See [MX-Defined
|
|
15
|
+
# GUIDs vs IDs Defined by
|
|
16
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-de
|
|
17
|
+
# fined-by-you).
|
|
18
|
+
# @param [String] user_identifier Required parameter: Use either the user
|
|
19
|
+
# `id` you defined or the MX-defined user `guid`. See [MX-Defined GUIDs vs
|
|
20
|
+
# IDs Defined by
|
|
21
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-d
|
|
22
|
+
# efined-by-you).
|
|
23
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
24
|
+
def fetch_statements(accept_version,
|
|
25
|
+
member_identifier,
|
|
26
|
+
user_identifier)
|
|
27
|
+
@api_call
|
|
28
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
29
|
+
'/users/{user_identifier}/members/{member_identifier}/fetch_statements',
|
|
30
|
+
Server::DEFAULT)
|
|
31
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
32
|
+
.is_required(true))
|
|
33
|
+
.template_param(new_parameter(member_identifier, key: 'member_identifier')
|
|
34
|
+
.is_required(true)
|
|
35
|
+
.should_encode(true))
|
|
36
|
+
.template_param(new_parameter(user_identifier, key: 'user_identifier')
|
|
37
|
+
.is_required(true)
|
|
38
|
+
.should_encode(true))
|
|
39
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
40
|
+
.auth(Single.new('basicAuth')))
|
|
41
|
+
.response(new_response_handler
|
|
42
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
43
|
+
.deserialize_into(MemberResponseBody.method(:from_hash))
|
|
44
|
+
.is_api_response(true))
|
|
45
|
+
.execute
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Use this endpoint to get an array of available statements.
|
|
49
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
50
|
+
# version.
|
|
51
|
+
# @param [String] member_guid Required parameter: The unique id for a
|
|
52
|
+
# `member`.
|
|
53
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
54
|
+
# `user`, beginning with the prefix `USR-`.
|
|
55
|
+
# @param [Integer] page Optional parameter: Results are paginated. Specify
|
|
56
|
+
# current page.
|
|
57
|
+
# @param [Integer] records_per_page Optional parameter: This specifies the
|
|
58
|
+
# number of records to be returned on each page. Defaults to `25`. The valid
|
|
59
|
+
# range is from `10` to `1000`. If the value exceeds `1000`, the default
|
|
60
|
+
# value of `25` will be used instead.
|
|
61
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
62
|
+
def list_statements_by_member(accept_version,
|
|
63
|
+
member_guid,
|
|
64
|
+
user_guid,
|
|
65
|
+
page: nil,
|
|
66
|
+
records_per_page: nil)
|
|
67
|
+
@api_call
|
|
68
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
69
|
+
'/users/{user_guid}/members/{member_guid}/statements',
|
|
70
|
+
Server::DEFAULT)
|
|
71
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
72
|
+
.is_required(true))
|
|
73
|
+
.template_param(new_parameter(member_guid, key: 'member_guid')
|
|
74
|
+
.is_required(true)
|
|
75
|
+
.should_encode(true))
|
|
76
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
77
|
+
.is_required(true)
|
|
78
|
+
.should_encode(true))
|
|
79
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
80
|
+
.query_param(new_parameter(records_per_page, key: 'records_per_page'))
|
|
81
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
82
|
+
.auth(Single.new('basicAuth')))
|
|
83
|
+
.response(new_response_handler
|
|
84
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
85
|
+
.deserialize_into(StatementsResponseBody.method(:from_hash))
|
|
86
|
+
.is_api_response(true))
|
|
87
|
+
.execute
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Use this endpoint to read a JSON representation of the statement.
|
|
91
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
92
|
+
# version.
|
|
93
|
+
# @param [String] member_guid Required parameter: The unique id for a
|
|
94
|
+
# `member`.
|
|
95
|
+
# @param [String] statement_guid Required parameter: The unique id for a
|
|
96
|
+
# `statement`.
|
|
97
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
98
|
+
# `user`, beginning with the prefix `USR-`.
|
|
99
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
100
|
+
def read_statement_by_member(accept_version,
|
|
101
|
+
member_guid,
|
|
102
|
+
statement_guid,
|
|
103
|
+
user_guid)
|
|
104
|
+
@api_call
|
|
105
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
106
|
+
'/users/{user_guid}/members/{member_guid}/statements/{statement_guid}',
|
|
107
|
+
Server::DEFAULT)
|
|
108
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
109
|
+
.is_required(true))
|
|
110
|
+
.template_param(new_parameter(member_guid, key: 'member_guid')
|
|
111
|
+
.is_required(true)
|
|
112
|
+
.should_encode(true))
|
|
113
|
+
.template_param(new_parameter(statement_guid, key: 'statement_guid')
|
|
114
|
+
.is_required(true)
|
|
115
|
+
.should_encode(true))
|
|
116
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
117
|
+
.is_required(true)
|
|
118
|
+
.should_encode(true))
|
|
119
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
120
|
+
.auth(Single.new('basicAuth')))
|
|
121
|
+
.response(new_response_handler
|
|
122
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
123
|
+
.deserialize_into(StatementResponseBody.method(:from_hash))
|
|
124
|
+
.is_api_response(true))
|
|
125
|
+
.execute
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Use this endpoint to download a specified statement PDF.
|
|
129
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
130
|
+
# version.
|
|
131
|
+
# @param [String] member_guid Required parameter: The unique id for a
|
|
132
|
+
# `member`.
|
|
133
|
+
# @param [String] statement_guid Required parameter: The unique id for a
|
|
134
|
+
# `statement`.
|
|
135
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
136
|
+
# `user`, beginning with the prefix `USR-`.
|
|
137
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
138
|
+
def download_statement_pdf(accept_version,
|
|
139
|
+
member_guid,
|
|
140
|
+
statement_guid,
|
|
141
|
+
user_guid)
|
|
142
|
+
@api_call
|
|
143
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
144
|
+
'/users/{user_guid}/members/{member_guid}/statements/{statement_guid}.pdf',
|
|
145
|
+
Server::DEFAULT)
|
|
146
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
147
|
+
.is_required(true))
|
|
148
|
+
.template_param(new_parameter(member_guid, key: 'member_guid')
|
|
149
|
+
.is_required(true)
|
|
150
|
+
.should_encode(true))
|
|
151
|
+
.template_param(new_parameter(statement_guid, key: 'statement_guid')
|
|
152
|
+
.is_required(true)
|
|
153
|
+
.should_encode(true))
|
|
154
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
155
|
+
.is_required(true)
|
|
156
|
+
.should_encode(true))
|
|
157
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
158
|
+
.auth(Single.new('basicAuth')))
|
|
159
|
+
.response(new_response_handler
|
|
160
|
+
.deserializer(APIHelper.method(:dynamic_deserializer))
|
|
161
|
+
.is_api_response(true))
|
|
162
|
+
.execute
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# TaggingsApi
|
|
8
|
+
class TaggingsApi < BaseApi
|
|
9
|
+
# Use this endpoint to retrieve a list of all the taggings associated with a
|
|
10
|
+
# specific user.
|
|
11
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
12
|
+
# version.
|
|
13
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
14
|
+
# `user`, beginning with the prefix `USR-`.
|
|
15
|
+
# @param [Integer] page Optional parameter: Results are paginated. Specify
|
|
16
|
+
# current page.
|
|
17
|
+
# @param [Integer] records_per_page Optional parameter: This specifies the
|
|
18
|
+
# number of records to be returned on each page. Defaults to `25`. The valid
|
|
19
|
+
# range is from `10` to `1000`. If the value exceeds `1000`, the default
|
|
20
|
+
# value of `25` will be used instead.
|
|
21
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
22
|
+
def list_taggings(accept_version,
|
|
23
|
+
user_guid,
|
|
24
|
+
page: nil,
|
|
25
|
+
records_per_page: nil)
|
|
26
|
+
@api_call
|
|
27
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
28
|
+
'/users/{user_guid}/taggings',
|
|
29
|
+
Server::DEFAULT)
|
|
30
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
31
|
+
.is_required(true))
|
|
32
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
33
|
+
.is_required(true)
|
|
34
|
+
.should_encode(true))
|
|
35
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
36
|
+
.query_param(new_parameter(records_per_page, key: 'records_per_page'))
|
|
37
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
38
|
+
.auth(Single.new('basicAuth')))
|
|
39
|
+
.response(new_response_handler
|
|
40
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
41
|
+
.deserialize_into(TaggingsResponseBody.method(:from_hash))
|
|
42
|
+
.is_api_response(true))
|
|
43
|
+
.execute
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Use this endpoint to create a new association between a tag and a
|
|
47
|
+
# particular transaction, according to their unique GUIDs.
|
|
48
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
49
|
+
# version.
|
|
50
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
51
|
+
# `user`, beginning with the prefix `USR-`.
|
|
52
|
+
# @param [TaggingCreateRequestBody] body Required parameter: Tagging object
|
|
53
|
+
# to be created with required parameters (tag_guid and transaction_guid)
|
|
54
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
55
|
+
def create_tagging(accept_version,
|
|
56
|
+
user_guid,
|
|
57
|
+
body)
|
|
58
|
+
@api_call
|
|
59
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
60
|
+
'/users/{user_guid}/taggings',
|
|
61
|
+
Server::DEFAULT)
|
|
62
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
63
|
+
.is_required(true))
|
|
64
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
65
|
+
.is_required(true)
|
|
66
|
+
.should_encode(true))
|
|
67
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
68
|
+
.body_param(new_parameter(body)
|
|
69
|
+
.is_required(true))
|
|
70
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
71
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
72
|
+
.auth(Single.new('basicAuth')))
|
|
73
|
+
.response(new_response_handler
|
|
74
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
75
|
+
.deserialize_into(TaggingResponseBody.method(:from_hash))
|
|
76
|
+
.is_api_response(true))
|
|
77
|
+
.execute
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Use this endpoint to delete a tagging according to its unique GUID. If
|
|
81
|
+
# successful, the API will respond with an empty body and a status of 204 NO
|
|
82
|
+
# Content.
|
|
83
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
84
|
+
# version.
|
|
85
|
+
# @param [String] tagging_guid Required parameter: The unique id for a
|
|
86
|
+
# `tagging`.
|
|
87
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
88
|
+
# `user`, beginning with the prefix `USR-`.
|
|
89
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
90
|
+
def delete_tagging(accept_version,
|
|
91
|
+
tagging_guid,
|
|
92
|
+
user_guid)
|
|
93
|
+
@api_call
|
|
94
|
+
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
95
|
+
'/users/{user_guid}/taggings/{tagging_guid}',
|
|
96
|
+
Server::DEFAULT)
|
|
97
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
98
|
+
.is_required(true))
|
|
99
|
+
.template_param(new_parameter(tagging_guid, key: 'tagging_guid')
|
|
100
|
+
.is_required(true)
|
|
101
|
+
.should_encode(true))
|
|
102
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
103
|
+
.is_required(true)
|
|
104
|
+
.should_encode(true))
|
|
105
|
+
.auth(Single.new('basicAuth')))
|
|
106
|
+
.response(new_response_handler
|
|
107
|
+
.is_response_void(true)
|
|
108
|
+
.is_api_response(true))
|
|
109
|
+
.execute
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Use this endpoint to read the attributes of a `tagging` according to its
|
|
113
|
+
# unique GUID.
|
|
114
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
115
|
+
# version.
|
|
116
|
+
# @param [String] tagging_guid Required parameter: The unique id for a
|
|
117
|
+
# `tagging`.
|
|
118
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
119
|
+
# `user`, beginning with the prefix `USR-`.
|
|
120
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
121
|
+
def read_tagging(accept_version,
|
|
122
|
+
tagging_guid,
|
|
123
|
+
user_guid)
|
|
124
|
+
@api_call
|
|
125
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
126
|
+
'/users/{user_guid}/taggings/{tagging_guid}',
|
|
127
|
+
Server::DEFAULT)
|
|
128
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
129
|
+
.is_required(true))
|
|
130
|
+
.template_param(new_parameter(tagging_guid, key: 'tagging_guid')
|
|
131
|
+
.is_required(true)
|
|
132
|
+
.should_encode(true))
|
|
133
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
134
|
+
.is_required(true)
|
|
135
|
+
.should_encode(true))
|
|
136
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
137
|
+
.auth(Single.new('basicAuth')))
|
|
138
|
+
.response(new_response_handler
|
|
139
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
140
|
+
.deserialize_into(TaggingResponseBody.method(:from_hash))
|
|
141
|
+
.is_api_response(true))
|
|
142
|
+
.execute
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Use this endpoint to update a tagging.
|
|
146
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
147
|
+
# version.
|
|
148
|
+
# @param [String] tagging_guid Required parameter: The unique id for a
|
|
149
|
+
# `tagging`.
|
|
150
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
151
|
+
# `user`, beginning with the prefix `USR-`.
|
|
152
|
+
# @param [TaggingUpdateRequestBody] body Required parameter: Tagging object
|
|
153
|
+
# to be updated with required parameter (tag_guid)
|
|
154
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
155
|
+
def update_tagging(accept_version,
|
|
156
|
+
tagging_guid,
|
|
157
|
+
user_guid,
|
|
158
|
+
body)
|
|
159
|
+
@api_call
|
|
160
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
161
|
+
'/users/{user_guid}/taggings/{tagging_guid}',
|
|
162
|
+
Server::DEFAULT)
|
|
163
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
164
|
+
.is_required(true))
|
|
165
|
+
.template_param(new_parameter(tagging_guid, key: 'tagging_guid')
|
|
166
|
+
.is_required(true)
|
|
167
|
+
.should_encode(true))
|
|
168
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
169
|
+
.is_required(true)
|
|
170
|
+
.should_encode(true))
|
|
171
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
172
|
+
.body_param(new_parameter(body)
|
|
173
|
+
.is_required(true))
|
|
174
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
175
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
176
|
+
.auth(Single.new('basicAuth')))
|
|
177
|
+
.response(new_response_handler
|
|
178
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
179
|
+
.deserialize_into(TaggingResponseBody.method(:from_hash))
|
|
180
|
+
.is_api_response(true))
|
|
181
|
+
.execute
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
end
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# TagsApi
|
|
8
|
+
class TagsApi < BaseApi
|
|
9
|
+
# Use this endpoint to list all tags associated with the specified `user`.
|
|
10
|
+
# Each user includes the `Business` tag by default.
|
|
11
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
12
|
+
# version.
|
|
13
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
14
|
+
# `user`, beginning with the prefix `USR-`.
|
|
15
|
+
# @param [Integer] page Optional parameter: Results are paginated. Specify
|
|
16
|
+
# current page.
|
|
17
|
+
# @param [Integer] records_per_page Optional parameter: This specifies the
|
|
18
|
+
# number of records to be returned on each page. Defaults to `25`. The valid
|
|
19
|
+
# range is from `10` to `1000`. If the value exceeds `1000`, the default
|
|
20
|
+
# value of `25` will be used instead.
|
|
21
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
22
|
+
def list_tags(accept_version,
|
|
23
|
+
user_guid,
|
|
24
|
+
page: nil,
|
|
25
|
+
records_per_page: nil)
|
|
26
|
+
@api_call
|
|
27
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
28
|
+
'/users/{user_guid}/tags',
|
|
29
|
+
Server::DEFAULT)
|
|
30
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
31
|
+
.is_required(true))
|
|
32
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
33
|
+
.is_required(true)
|
|
34
|
+
.should_encode(true))
|
|
35
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
36
|
+
.query_param(new_parameter(records_per_page, key: 'records_per_page'))
|
|
37
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
38
|
+
.auth(Single.new('basicAuth')))
|
|
39
|
+
.response(new_response_handler
|
|
40
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
41
|
+
.deserialize_into(TagsResponseBody.method(:from_hash))
|
|
42
|
+
.is_api_response(true))
|
|
43
|
+
.execute
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Use this endpoint to create a new custom tag.
|
|
47
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
48
|
+
# version.
|
|
49
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
50
|
+
# `user`, beginning with the prefix `USR-`.
|
|
51
|
+
# @param [TagCreateRequestBody] body Required parameter: Tag object to be
|
|
52
|
+
# created with required parameters (tag_guid)
|
|
53
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
54
|
+
def create_tag(accept_version,
|
|
55
|
+
user_guid,
|
|
56
|
+
body)
|
|
57
|
+
@api_call
|
|
58
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
59
|
+
'/users/{user_guid}/tags',
|
|
60
|
+
Server::DEFAULT)
|
|
61
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
62
|
+
.is_required(true))
|
|
63
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
64
|
+
.is_required(true)
|
|
65
|
+
.should_encode(true))
|
|
66
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
67
|
+
.body_param(new_parameter(body)
|
|
68
|
+
.is_required(true))
|
|
69
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
70
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
71
|
+
.auth(Single.new('basicAuth')))
|
|
72
|
+
.response(new_response_handler
|
|
73
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
74
|
+
.deserialize_into(TagResponseBody.method(:from_hash))
|
|
75
|
+
.is_api_response(true))
|
|
76
|
+
.execute
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Use this endpoint to permanently delete a specific tag based on its unique
|
|
80
|
+
# GUID. If successful, the API will respond with status of `204 No Content`.
|
|
81
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
82
|
+
# version.
|
|
83
|
+
# @param [String] tag_guid Required parameter: The unique id for a `tag`.
|
|
84
|
+
# @param [String] accept Required parameter: Specifies the media type
|
|
85
|
+
# expected in the response.
|
|
86
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
87
|
+
# `user`, beginning with the prefix `USR-`.
|
|
88
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
89
|
+
def delete_tag(accept_version,
|
|
90
|
+
tag_guid,
|
|
91
|
+
accept,
|
|
92
|
+
user_guid)
|
|
93
|
+
@api_call
|
|
94
|
+
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
95
|
+
'/users/{user_guid}/tags/{tag_guid}',
|
|
96
|
+
Server::DEFAULT)
|
|
97
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
98
|
+
.is_required(true))
|
|
99
|
+
.template_param(new_parameter(tag_guid, key: 'tag_guid')
|
|
100
|
+
.is_required(true)
|
|
101
|
+
.should_encode(true))
|
|
102
|
+
.header_param(new_parameter(accept, key: 'Accept')
|
|
103
|
+
.is_required(true))
|
|
104
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
105
|
+
.is_required(true)
|
|
106
|
+
.should_encode(true))
|
|
107
|
+
.auth(Single.new('basicAuth')))
|
|
108
|
+
.response(new_response_handler
|
|
109
|
+
.is_response_void(true)
|
|
110
|
+
.is_api_response(true))
|
|
111
|
+
.execute
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Use this endpoint to read the attributes of a particular tag according to
|
|
115
|
+
# its unique GUID.
|
|
116
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
117
|
+
# version.
|
|
118
|
+
# @param [String] tag_guid Required parameter: The unique id for a `tag`.
|
|
119
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
120
|
+
# `user`, beginning with the prefix `USR-`.
|
|
121
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
122
|
+
def read_tag(accept_version,
|
|
123
|
+
tag_guid,
|
|
124
|
+
user_guid)
|
|
125
|
+
@api_call
|
|
126
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
127
|
+
'/users/{user_guid}/tags/{tag_guid}',
|
|
128
|
+
Server::DEFAULT)
|
|
129
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
130
|
+
.is_required(true))
|
|
131
|
+
.template_param(new_parameter(tag_guid, key: 'tag_guid')
|
|
132
|
+
.is_required(true)
|
|
133
|
+
.should_encode(true))
|
|
134
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
135
|
+
.is_required(true)
|
|
136
|
+
.should_encode(true))
|
|
137
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
138
|
+
.auth(Single.new('basicAuth')))
|
|
139
|
+
.response(new_response_handler
|
|
140
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
141
|
+
.deserialize_into(TagResponseBody.method(:from_hash))
|
|
142
|
+
.is_api_response(true))
|
|
143
|
+
.execute
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Use this endpoint to update the name of a specific tag according to its
|
|
147
|
+
# unique GUID.
|
|
148
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
149
|
+
# version.
|
|
150
|
+
# @param [String] tag_guid Required parameter: The unique id for a `tag`.
|
|
151
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
152
|
+
# `user`, beginning with the prefix `USR-`.
|
|
153
|
+
# @param [TagUpdateRequestBody] body Required parameter: Tag object to be
|
|
154
|
+
# updated with required parameter (tag_guid)
|
|
155
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
156
|
+
def update_tag(accept_version,
|
|
157
|
+
tag_guid,
|
|
158
|
+
user_guid,
|
|
159
|
+
body)
|
|
160
|
+
@api_call
|
|
161
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
162
|
+
'/users/{user_guid}/tags/{tag_guid}',
|
|
163
|
+
Server::DEFAULT)
|
|
164
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
165
|
+
.is_required(true))
|
|
166
|
+
.template_param(new_parameter(tag_guid, key: 'tag_guid')
|
|
167
|
+
.is_required(true)
|
|
168
|
+
.should_encode(true))
|
|
169
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
170
|
+
.is_required(true)
|
|
171
|
+
.should_encode(true))
|
|
172
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
173
|
+
.body_param(new_parameter(body)
|
|
174
|
+
.is_required(true))
|
|
175
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
176
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
177
|
+
.auth(Single.new('basicAuth')))
|
|
178
|
+
.response(new_response_handler
|
|
179
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
180
|
+
.deserialize_into(TagResponseBody.method(:from_hash))
|
|
181
|
+
.is_api_response(true))
|
|
182
|
+
.execute
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
end
|