mx-platform-ruby 0.39.0 → 0.40.0
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/Gemfile.lock +1 -1
- data/docs/BudgetCreateRequest.md +26 -0
- data/docs/BudgetCreateRequestBody.md +18 -0
- data/docs/BudgetResponse.md +48 -0
- data/docs/BudgetResponseBody.md +18 -0
- data/docs/BudgetUpdateRequest.md +22 -0
- data/docs/BudgetUpdateRequestBody.md +18 -0
- data/docs/BudgetsApi.md +444 -0
- data/docs/CreditCardProduct.md +8 -8
- data/docs/CreditCardProductResponse.md +2 -2
- data/docs/GoalRequest.md +38 -0
- data/docs/GoalRequestBody.md +18 -0
- data/docs/GoalResponse.md +48 -0
- data/docs/GoalResponseBody.md +18 -0
- data/docs/GoalsApi.md +450 -0
- data/docs/GoalsResponse.md +48 -0
- data/docs/GoalsResponseBody.md +20 -0
- data/docs/MonthlyCashFlowProfileRequest.md +20 -0
- data/docs/MonthlyCashFlowProfileRequestBody.md +18 -0
- data/docs/MonthlyCashFlowResponse.md +30 -0
- data/docs/MonthlyCashFlowResponseBody.md +18 -0
- data/docs/MxPlatformApi.md +291 -0
- data/docs/RepositionRequest.md +20 -0
- data/docs/RepositionRequestBody.md +18 -0
- data/docs/RepositionResponseBody.md +18 -0
- data/docs/RewardResponse.md +2 -0
- data/docs/RewardsResponse.md +2 -0
- data/docs/SplitTransactionRequest.md +24 -0
- data/docs/SplitTransactionRequestBody.md +18 -0
- data/docs/SplitTransactionsResponseBody.md +18 -0
- data/docs/UpdateGoalRequest.md +38 -0
- data/docs/UpdateGoalRequestBody.md +18 -0
- data/lib/mx-platform-ruby/api/budgets_api.rb +434 -0
- data/lib/mx-platform-ruby/api/goals_api.rb +455 -0
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +278 -0
- data/lib/mx-platform-ruby/models/budget_create_request.rb +269 -0
- data/lib/mx-platform-ruby/models/budget_create_request_body.rb +214 -0
- data/lib/mx-platform-ruby/models/budget_response.rb +373 -0
- data/lib/mx-platform-ruby/models/budget_response_body.rb +214 -0
- data/lib/mx-platform-ruby/models/budget_update_request.rb +235 -0
- data/lib/mx-platform-ruby/models/budget_update_request_body.rb +214 -0
- data/lib/mx-platform-ruby/models/credit_card_product.rb +17 -21
- data/lib/mx-platform-ruby/models/credit_card_product_response.rb +7 -7
- data/lib/mx-platform-ruby/models/goal_request.rb +350 -0
- data/lib/mx-platform-ruby/models/goal_request_body.rb +214 -0
- data/lib/mx-platform-ruby/models/goal_response.rb +364 -0
- data/lib/mx-platform-ruby/models/goal_response_body.rb +214 -0
- data/lib/mx-platform-ruby/models/goals_response.rb +363 -0
- data/lib/mx-platform-ruby/models/goals_response_body.rb +225 -0
- data/lib/mx-platform-ruby/models/monthly_cash_flow_profile_request.rb +225 -0
- data/lib/mx-platform-ruby/models/monthly_cash_flow_profile_request_body.rb +214 -0
- data/lib/mx-platform-ruby/models/monthly_cash_flow_response.rb +274 -0
- data/lib/mx-platform-ruby/models/monthly_cash_flow_response_body.rb +214 -0
- data/lib/mx-platform-ruby/models/reposition_request.rb +239 -0
- data/lib/mx-platform-ruby/models/reposition_request_body.rb +216 -0
- data/lib/mx-platform-ruby/models/reposition_response_body.rb +216 -0
- data/lib/mx-platform-ruby/models/reward_response.rb +10 -1
- data/lib/mx-platform-ruby/models/rewards_response.rb +10 -1
- data/lib/mx-platform-ruby/models/split_transaction_request.rb +252 -0
- data/lib/mx-platform-ruby/models/split_transaction_request_body.rb +221 -0
- data/lib/mx-platform-ruby/models/split_transactions_response_body.rb +216 -0
- data/lib/mx-platform-ruby/models/update_goal_request.rb +315 -0
- data/lib/mx-platform-ruby/models/update_goal_request_body.rb +214 -0
- data/lib/mx-platform-ruby/version.rb +1 -1
- data/lib/mx-platform-ruby.rb +26 -0
- data/openapi/config.yml +1 -1
- data/spec/api/budgets_api_spec.rb +112 -0
- data/spec/api/goals_api_spec.rb +115 -0
- data/spec/api/mx_platform_api_spec.rb +51 -0
- data/spec/models/budget_create_request_body_spec.rb +34 -0
- data/spec/models/budget_create_request_spec.rb +58 -0
- data/spec/models/budget_response_body_spec.rb +34 -0
- data/spec/models/budget_response_spec.rb +124 -0
- data/spec/models/budget_update_request_body_spec.rb +34 -0
- data/spec/models/budget_update_request_spec.rb +46 -0
- data/spec/models/credit_card_product_response_spec.rb +1 -1
- data/spec/models/credit_card_product_spec.rb +2 -2
- data/spec/models/goal_request_body_spec.rb +34 -0
- data/spec/models/goal_request_spec.rb +94 -0
- data/spec/models/goal_response_body_spec.rb +34 -0
- data/spec/models/goal_response_spec.rb +124 -0
- data/spec/models/goals_response_body_spec.rb +40 -0
- data/spec/models/goals_response_spec.rb +124 -0
- data/spec/models/monthly_cash_flow_profile_request_body_spec.rb +34 -0
- data/spec/models/monthly_cash_flow_profile_request_spec.rb +40 -0
- data/spec/models/monthly_cash_flow_response_body_spec.rb +34 -0
- data/spec/models/monthly_cash_flow_response_spec.rb +70 -0
- data/spec/models/reposition_request_body_spec.rb +34 -0
- data/spec/models/reposition_request_spec.rb +40 -0
- data/spec/models/reposition_response_body_spec.rb +34 -0
- data/spec/models/reward_response_spec.rb +6 -0
- data/spec/models/rewards_response_spec.rb +6 -0
- data/spec/models/split_transaction_request_body_spec.rb +34 -0
- data/spec/models/split_transaction_request_spec.rb +52 -0
- data/spec/models/split_transactions_response_body_spec.rb +34 -0
- data/spec/models/update_goal_request_body_spec.rb +34 -0
- data/spec/models/update_goal_request_spec.rb +94 -0
- metadata +106 -2
data/docs/GoalRequest.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# MxPlatformRuby::GoalRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **account_guid** | **String** | Unique identifier of the account for the goal. | |
|
|
8
|
+
| **amount** | **Float** | Amount of the goal. | |
|
|
9
|
+
| **goal_type_name** | **String** | The goal type. | |
|
|
10
|
+
| **meta_type_name** | **String** | The category of the goal. | |
|
|
11
|
+
| **name** | **String** | The name of the goal. | |
|
|
12
|
+
| **completed_at** | **String** | Date and time the goal was completed. | [optional] |
|
|
13
|
+
| **has_been_spent** | **Boolean** | Determines if the goal has been spent. | [optional] |
|
|
14
|
+
| **is_complete** | **Boolean** | Determines if the goal is complete. | [optional] |
|
|
15
|
+
| **metadata** | **String** | Additional information a partner can store on the goal. | [optional] |
|
|
16
|
+
| **position** | **Integer** | The priority of the goal in relation to multiple goals. | [optional] |
|
|
17
|
+
| **targeted_to_complete_at** | **String** | Date and time the goal is to complete. Intended for users to set their own goal completion dates. | [optional] |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'mx-platform-ruby'
|
|
23
|
+
|
|
24
|
+
instance = MxPlatformRuby::GoalRequest.new(
|
|
25
|
+
account_guid: ACT-4e431124-4a29-abf9-f059-ab232ac14dbf,
|
|
26
|
+
amount: 4500.5,
|
|
27
|
+
goal_type_name: PAYOFF,
|
|
28
|
+
meta_type_name: VACATION,
|
|
29
|
+
name: Save for Europe,
|
|
30
|
+
completed_at: 2015-06-19T10:37:04-06:00,
|
|
31
|
+
has_been_spent: false,
|
|
32
|
+
is_complete: false,
|
|
33
|
+
metadata: Additional information,
|
|
34
|
+
position: 3,
|
|
35
|
+
targeted_to_complete_at: 2026-12-08 00:00:00.000000
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# MxPlatformRuby::GoalRequestBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **goal** | [**GoalRequest**](GoalRequest.md) | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'mx-platform-ruby'
|
|
13
|
+
|
|
14
|
+
instance = MxPlatformRuby::GoalRequestBody.new(
|
|
15
|
+
goal: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# MxPlatformRuby::GoalResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **account_guid** | **String** | Unique identifier of the account for the goal. | [optional] |
|
|
8
|
+
| **amount** | **Float** | Amount of the goal. | [optional] |
|
|
9
|
+
| **completed_at** | **String** | Date and time the goal was completed. | [optional] |
|
|
10
|
+
| **current_amount** | **Float** | The current amount of the goal. | [optional] |
|
|
11
|
+
| **goal_type_name** | **String** | The goal type. | [optional] |
|
|
12
|
+
| **guid** | **String** | Unique identifier for the goal. Defined by MX. | [optional] |
|
|
13
|
+
| **has_been_spent** | **Boolean** | Determines if the goal has been spent. | [optional] |
|
|
14
|
+
| **is_complete** | **Boolean** | Determines if the goal is complete. | [optional] |
|
|
15
|
+
| **metadata** | **String** | Additional information a partner can store on the goal. | [optional] |
|
|
16
|
+
| **meta_type_name** | **String** | The category of the goal. | [optional] |
|
|
17
|
+
| **name** | **String** | The name of the goal. | [optional] |
|
|
18
|
+
| **position** | **Integer** | The priority of the goal in relation to multiple goals. | [optional] |
|
|
19
|
+
| **projected_to_complete_at** | **String** | Date and time the goal is projected to be completed. | [optional] |
|
|
20
|
+
| **targeted_to_complete_at** | **String** | Date and time the goal is to complete. Intended for users to set their own goal completion dates. | [optional] |
|
|
21
|
+
| **track_type_name** | **String** | | [optional] |
|
|
22
|
+
| **user_guid** | **String** | The unique identifier for the the user. Defined by MX. | [optional] |
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```ruby
|
|
27
|
+
require 'mx-platform-ruby'
|
|
28
|
+
|
|
29
|
+
instance = MxPlatformRuby::GoalResponse.new(
|
|
30
|
+
account_guid: ACT-4e431124-4a29-abf9-f059-ab232ac14dbf,
|
|
31
|
+
amount: 4500.0,
|
|
32
|
+
completed_at: 2015-06-19T10:37:04-06:00,
|
|
33
|
+
current_amount: 1651.27,
|
|
34
|
+
goal_type_name: PAYOFF,
|
|
35
|
+
guid: GOL-f223463-4355-48d0-rce7-fe2rb345617c,
|
|
36
|
+
has_been_spent: false,
|
|
37
|
+
is_complete: false,
|
|
38
|
+
metadata: Additional information,
|
|
39
|
+
meta_type_name: VACATION,
|
|
40
|
+
name: Save for Europe,
|
|
41
|
+
position: 3,
|
|
42
|
+
projected_to_complete_at: 2022-06-14T16:03:53-00:00,
|
|
43
|
+
targeted_to_complete_at: 2026-12-08 00:00:00.000000,
|
|
44
|
+
track_type_name: Track Type Name,
|
|
45
|
+
user_guid: USR-11141024-90b3-1bce-cac9-c06ced52ab4c
|
|
46
|
+
)
|
|
47
|
+
```
|
|
48
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# MxPlatformRuby::GoalResponseBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **goal** | [**GoalResponse**](GoalResponse.md) | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'mx-platform-ruby'
|
|
13
|
+
|
|
14
|
+
instance = MxPlatformRuby::GoalResponseBody.new(
|
|
15
|
+
goal: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
data/docs/GoalsApi.md
ADDED
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
# MxPlatformRuby::GoalsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mx.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**users_user_guid_goals_get**](GoalsApi.md#users_user_guid_goals_get) | **GET** /users/{user_guid}/goals | List goals |
|
|
8
|
+
| [**users_user_guid_goals_goal_guid_delete**](GoalsApi.md#users_user_guid_goals_goal_guid_delete) | **DELETE** /users/{user_guid}/goals/{goal_guid} | Delete a goal |
|
|
9
|
+
| [**users_user_guid_goals_goal_guid_get**](GoalsApi.md#users_user_guid_goals_goal_guid_get) | **GET** /users/{user_guid}/goals/{goal_guid} | Read a goal |
|
|
10
|
+
| [**users_user_guid_goals_goal_guid_put**](GoalsApi.md#users_user_guid_goals_goal_guid_put) | **PUT** /users/{user_guid}/goals/{goal_guid} | Update a goal |
|
|
11
|
+
| [**users_user_guid_goals_post**](GoalsApi.md#users_user_guid_goals_post) | **POST** /users/{user_guid}/goals | Create a goal |
|
|
12
|
+
| [**users_user_guid_goals_reposition_put**](GoalsApi.md#users_user_guid_goals_reposition_put) | **PUT** /users/{user_guid}/goals/reposition | Reposition goals |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## users_user_guid_goals_get
|
|
16
|
+
|
|
17
|
+
> <GoalsResponseBody> users_user_guid_goals_get(user_guid, opts)
|
|
18
|
+
|
|
19
|
+
List goals
|
|
20
|
+
|
|
21
|
+
List all goals a user can set.
|
|
22
|
+
|
|
23
|
+
### Examples
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'time'
|
|
27
|
+
require 'mx-platform-ruby'
|
|
28
|
+
# setup authorization
|
|
29
|
+
MxPlatformRuby.configure do |config|
|
|
30
|
+
# Configure HTTP basic authorization: basicAuth
|
|
31
|
+
config.username = 'YOUR USERNAME'
|
|
32
|
+
config.password = 'YOUR PASSWORD'
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
api_instance = MxPlatformRuby::GoalsApi.new
|
|
36
|
+
user_guid = 'user_guid_example' # String | The unique identifier for the user.
|
|
37
|
+
opts = {
|
|
38
|
+
page: 'page_example', # String | Results are returned in paginated sets, this is the page of the results you would like to view. Defaults to page 1 if no page is specified.
|
|
39
|
+
records_per_age: 'records_per_age_example' # String | The supported range is from 10 to 1000. If the records_per_page parameter is not specified or is outside this range, a default of 25 records per page will be used.
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
begin
|
|
43
|
+
# List goals
|
|
44
|
+
result = api_instance.users_user_guid_goals_get(user_guid, opts)
|
|
45
|
+
p result
|
|
46
|
+
rescue MxPlatformRuby::ApiError => e
|
|
47
|
+
puts "Error when calling GoalsApi->users_user_guid_goals_get: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Using the users_user_guid_goals_get_with_http_info variant
|
|
52
|
+
|
|
53
|
+
This returns an Array which contains the response data, status code and headers.
|
|
54
|
+
|
|
55
|
+
> <Array(<GoalsResponseBody>, Integer, Hash)> users_user_guid_goals_get_with_http_info(user_guid, opts)
|
|
56
|
+
|
|
57
|
+
```ruby
|
|
58
|
+
begin
|
|
59
|
+
# List goals
|
|
60
|
+
data, status_code, headers = api_instance.users_user_guid_goals_get_with_http_info(user_guid, opts)
|
|
61
|
+
p status_code # => 2xx
|
|
62
|
+
p headers # => { ... }
|
|
63
|
+
p data # => <GoalsResponseBody>
|
|
64
|
+
rescue MxPlatformRuby::ApiError => e
|
|
65
|
+
puts "Error when calling GoalsApi->users_user_guid_goals_get_with_http_info: #{e}"
|
|
66
|
+
end
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Parameters
|
|
70
|
+
|
|
71
|
+
| Name | Type | Description | Notes |
|
|
72
|
+
| ---- | ---- | ----------- | ----- |
|
|
73
|
+
| **user_guid** | **String** | The unique identifier for the user. | |
|
|
74
|
+
| **page** | **String** | Results are returned in paginated sets, this is the page of the results you would like to view. Defaults to page 1 if no page is specified. | [optional] |
|
|
75
|
+
| **records_per_age** | **String** | The supported range is from 10 to 1000. If the records_per_page parameter is not specified or is outside this range, a default of 25 records per page will be used. | [optional] |
|
|
76
|
+
|
|
77
|
+
### Return type
|
|
78
|
+
|
|
79
|
+
[**GoalsResponseBody**](GoalsResponseBody.md)
|
|
80
|
+
|
|
81
|
+
### Authorization
|
|
82
|
+
|
|
83
|
+
[basicAuth](../README.md#basicAuth)
|
|
84
|
+
|
|
85
|
+
### HTTP request headers
|
|
86
|
+
|
|
87
|
+
- **Content-Type**: Not defined
|
|
88
|
+
- **Accept**: application/json
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## users_user_guid_goals_goal_guid_delete
|
|
92
|
+
|
|
93
|
+
> users_user_guid_goals_goal_guid_delete(goal_guid, user_guid)
|
|
94
|
+
|
|
95
|
+
Delete a goal
|
|
96
|
+
|
|
97
|
+
Delete a goal.
|
|
98
|
+
|
|
99
|
+
### Examples
|
|
100
|
+
|
|
101
|
+
```ruby
|
|
102
|
+
require 'time'
|
|
103
|
+
require 'mx-platform-ruby'
|
|
104
|
+
# setup authorization
|
|
105
|
+
MxPlatformRuby.configure do |config|
|
|
106
|
+
# Configure HTTP basic authorization: basicAuth
|
|
107
|
+
config.username = 'YOUR USERNAME'
|
|
108
|
+
config.password = 'YOUR PASSWORD'
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
api_instance = MxPlatformRuby::GoalsApi.new
|
|
112
|
+
goal_guid = 'goal_guid_example' # String | The unique identifier for a goal. Defined by MX.
|
|
113
|
+
user_guid = 'user_guid_example' # String | The unique identifier for a user.
|
|
114
|
+
|
|
115
|
+
begin
|
|
116
|
+
# Delete a goal
|
|
117
|
+
api_instance.users_user_guid_goals_goal_guid_delete(goal_guid, user_guid)
|
|
118
|
+
rescue MxPlatformRuby::ApiError => e
|
|
119
|
+
puts "Error when calling GoalsApi->users_user_guid_goals_goal_guid_delete: #{e}"
|
|
120
|
+
end
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
#### Using the users_user_guid_goals_goal_guid_delete_with_http_info variant
|
|
124
|
+
|
|
125
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
126
|
+
|
|
127
|
+
> <Array(nil, Integer, Hash)> users_user_guid_goals_goal_guid_delete_with_http_info(goal_guid, user_guid)
|
|
128
|
+
|
|
129
|
+
```ruby
|
|
130
|
+
begin
|
|
131
|
+
# Delete a goal
|
|
132
|
+
data, status_code, headers = api_instance.users_user_guid_goals_goal_guid_delete_with_http_info(goal_guid, user_guid)
|
|
133
|
+
p status_code # => 2xx
|
|
134
|
+
p headers # => { ... }
|
|
135
|
+
p data # => nil
|
|
136
|
+
rescue MxPlatformRuby::ApiError => e
|
|
137
|
+
puts "Error when calling GoalsApi->users_user_guid_goals_goal_guid_delete_with_http_info: #{e}"
|
|
138
|
+
end
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Parameters
|
|
142
|
+
|
|
143
|
+
| Name | Type | Description | Notes |
|
|
144
|
+
| ---- | ---- | ----------- | ----- |
|
|
145
|
+
| **goal_guid** | **String** | The unique identifier for a goal. Defined by MX. | |
|
|
146
|
+
| **user_guid** | **String** | The unique identifier for a user. | |
|
|
147
|
+
|
|
148
|
+
### Return type
|
|
149
|
+
|
|
150
|
+
nil (empty response body)
|
|
151
|
+
|
|
152
|
+
### Authorization
|
|
153
|
+
|
|
154
|
+
[basicAuth](../README.md#basicAuth)
|
|
155
|
+
|
|
156
|
+
### HTTP request headers
|
|
157
|
+
|
|
158
|
+
- **Content-Type**: Not defined
|
|
159
|
+
- **Accept**: Not defined
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## users_user_guid_goals_goal_guid_get
|
|
163
|
+
|
|
164
|
+
> <GoalResponseBody> users_user_guid_goals_goal_guid_get(goal_guid, user_guid)
|
|
165
|
+
|
|
166
|
+
Read a goal
|
|
167
|
+
|
|
168
|
+
Read a specific goal.
|
|
169
|
+
|
|
170
|
+
### Examples
|
|
171
|
+
|
|
172
|
+
```ruby
|
|
173
|
+
require 'time'
|
|
174
|
+
require 'mx-platform-ruby'
|
|
175
|
+
# setup authorization
|
|
176
|
+
MxPlatformRuby.configure do |config|
|
|
177
|
+
# Configure HTTP basic authorization: basicAuth
|
|
178
|
+
config.username = 'YOUR USERNAME'
|
|
179
|
+
config.password = 'YOUR PASSWORD'
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
api_instance = MxPlatformRuby::GoalsApi.new
|
|
183
|
+
goal_guid = 'goal_guid_example' # String | The unique identifier for a goal. Defined by MX.
|
|
184
|
+
user_guid = 'user_guid_example' # String | The unique identifier for a user.
|
|
185
|
+
|
|
186
|
+
begin
|
|
187
|
+
# Read a goal
|
|
188
|
+
result = api_instance.users_user_guid_goals_goal_guid_get(goal_guid, user_guid)
|
|
189
|
+
p result
|
|
190
|
+
rescue MxPlatformRuby::ApiError => e
|
|
191
|
+
puts "Error when calling GoalsApi->users_user_guid_goals_goal_guid_get: #{e}"
|
|
192
|
+
end
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
#### Using the users_user_guid_goals_goal_guid_get_with_http_info variant
|
|
196
|
+
|
|
197
|
+
This returns an Array which contains the response data, status code and headers.
|
|
198
|
+
|
|
199
|
+
> <Array(<GoalResponseBody>, Integer, Hash)> users_user_guid_goals_goal_guid_get_with_http_info(goal_guid, user_guid)
|
|
200
|
+
|
|
201
|
+
```ruby
|
|
202
|
+
begin
|
|
203
|
+
# Read a goal
|
|
204
|
+
data, status_code, headers = api_instance.users_user_guid_goals_goal_guid_get_with_http_info(goal_guid, user_guid)
|
|
205
|
+
p status_code # => 2xx
|
|
206
|
+
p headers # => { ... }
|
|
207
|
+
p data # => <GoalResponseBody>
|
|
208
|
+
rescue MxPlatformRuby::ApiError => e
|
|
209
|
+
puts "Error when calling GoalsApi->users_user_guid_goals_goal_guid_get_with_http_info: #{e}"
|
|
210
|
+
end
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Parameters
|
|
214
|
+
|
|
215
|
+
| Name | Type | Description | Notes |
|
|
216
|
+
| ---- | ---- | ----------- | ----- |
|
|
217
|
+
| **goal_guid** | **String** | The unique identifier for a goal. Defined by MX. | |
|
|
218
|
+
| **user_guid** | **String** | The unique identifier for a user. | |
|
|
219
|
+
|
|
220
|
+
### Return type
|
|
221
|
+
|
|
222
|
+
[**GoalResponseBody**](GoalResponseBody.md)
|
|
223
|
+
|
|
224
|
+
### Authorization
|
|
225
|
+
|
|
226
|
+
[basicAuth](../README.md#basicAuth)
|
|
227
|
+
|
|
228
|
+
### HTTP request headers
|
|
229
|
+
|
|
230
|
+
- **Content-Type**: Not defined
|
|
231
|
+
- **Accept**: application/json
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
## users_user_guid_goals_goal_guid_put
|
|
235
|
+
|
|
236
|
+
> <GoalResponseBody> users_user_guid_goals_goal_guid_put(goal_guid, user_guid, update_goal_request_body)
|
|
237
|
+
|
|
238
|
+
Update a goal
|
|
239
|
+
|
|
240
|
+
This endpoint updates a specific goal.
|
|
241
|
+
|
|
242
|
+
### Examples
|
|
243
|
+
|
|
244
|
+
```ruby
|
|
245
|
+
require 'time'
|
|
246
|
+
require 'mx-platform-ruby'
|
|
247
|
+
# setup authorization
|
|
248
|
+
MxPlatformRuby.configure do |config|
|
|
249
|
+
# Configure HTTP basic authorization: basicAuth
|
|
250
|
+
config.username = 'YOUR USERNAME'
|
|
251
|
+
config.password = 'YOUR PASSWORD'
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
api_instance = MxPlatformRuby::GoalsApi.new
|
|
255
|
+
goal_guid = 'goal_guid_example' # String | The unique identifier for a goal. Defined by MX.
|
|
256
|
+
user_guid = 'user_guid_example' # String | The unique identifier for a user.
|
|
257
|
+
update_goal_request_body = MxPlatformRuby::UpdateGoalRequestBody.new # UpdateGoalRequestBody |
|
|
258
|
+
|
|
259
|
+
begin
|
|
260
|
+
# Update a goal
|
|
261
|
+
result = api_instance.users_user_guid_goals_goal_guid_put(goal_guid, user_guid, update_goal_request_body)
|
|
262
|
+
p result
|
|
263
|
+
rescue MxPlatformRuby::ApiError => e
|
|
264
|
+
puts "Error when calling GoalsApi->users_user_guid_goals_goal_guid_put: #{e}"
|
|
265
|
+
end
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
#### Using the users_user_guid_goals_goal_guid_put_with_http_info variant
|
|
269
|
+
|
|
270
|
+
This returns an Array which contains the response data, status code and headers.
|
|
271
|
+
|
|
272
|
+
> <Array(<GoalResponseBody>, Integer, Hash)> users_user_guid_goals_goal_guid_put_with_http_info(goal_guid, user_guid, update_goal_request_body)
|
|
273
|
+
|
|
274
|
+
```ruby
|
|
275
|
+
begin
|
|
276
|
+
# Update a goal
|
|
277
|
+
data, status_code, headers = api_instance.users_user_guid_goals_goal_guid_put_with_http_info(goal_guid, user_guid, update_goal_request_body)
|
|
278
|
+
p status_code # => 2xx
|
|
279
|
+
p headers # => { ... }
|
|
280
|
+
p data # => <GoalResponseBody>
|
|
281
|
+
rescue MxPlatformRuby::ApiError => e
|
|
282
|
+
puts "Error when calling GoalsApi->users_user_guid_goals_goal_guid_put_with_http_info: #{e}"
|
|
283
|
+
end
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### Parameters
|
|
287
|
+
|
|
288
|
+
| Name | Type | Description | Notes |
|
|
289
|
+
| ---- | ---- | ----------- | ----- |
|
|
290
|
+
| **goal_guid** | **String** | The unique identifier for a goal. Defined by MX. | |
|
|
291
|
+
| **user_guid** | **String** | The unique identifier for a user. | |
|
|
292
|
+
| **update_goal_request_body** | [**UpdateGoalRequestBody**](UpdateGoalRequestBody.md) | | |
|
|
293
|
+
|
|
294
|
+
### Return type
|
|
295
|
+
|
|
296
|
+
[**GoalResponseBody**](GoalResponseBody.md)
|
|
297
|
+
|
|
298
|
+
### Authorization
|
|
299
|
+
|
|
300
|
+
[basicAuth](../README.md#basicAuth)
|
|
301
|
+
|
|
302
|
+
### HTTP request headers
|
|
303
|
+
|
|
304
|
+
- **Content-Type**: application/json
|
|
305
|
+
- **Accept**: application/json
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
## users_user_guid_goals_post
|
|
309
|
+
|
|
310
|
+
> <GoalResponseBody> users_user_guid_goals_post(user_guid, goal_request_body)
|
|
311
|
+
|
|
312
|
+
Create a goal
|
|
313
|
+
|
|
314
|
+
Create a goal. This endpoint accepts the optional `MX-Skip-Webhook` header and `skip_webhook` parameter.
|
|
315
|
+
|
|
316
|
+
### Examples
|
|
317
|
+
|
|
318
|
+
```ruby
|
|
319
|
+
require 'time'
|
|
320
|
+
require 'mx-platform-ruby'
|
|
321
|
+
# setup authorization
|
|
322
|
+
MxPlatformRuby.configure do |config|
|
|
323
|
+
# Configure HTTP basic authorization: basicAuth
|
|
324
|
+
config.username = 'YOUR USERNAME'
|
|
325
|
+
config.password = 'YOUR PASSWORD'
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
api_instance = MxPlatformRuby::GoalsApi.new
|
|
329
|
+
user_guid = 'user_guid_example' # String | The unique identifier for the user.
|
|
330
|
+
goal_request_body = MxPlatformRuby::GoalRequestBody.new # GoalRequestBody |
|
|
331
|
+
|
|
332
|
+
begin
|
|
333
|
+
# Create a goal
|
|
334
|
+
result = api_instance.users_user_guid_goals_post(user_guid, goal_request_body)
|
|
335
|
+
p result
|
|
336
|
+
rescue MxPlatformRuby::ApiError => e
|
|
337
|
+
puts "Error when calling GoalsApi->users_user_guid_goals_post: #{e}"
|
|
338
|
+
end
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
#### Using the users_user_guid_goals_post_with_http_info variant
|
|
342
|
+
|
|
343
|
+
This returns an Array which contains the response data, status code and headers.
|
|
344
|
+
|
|
345
|
+
> <Array(<GoalResponseBody>, Integer, Hash)> users_user_guid_goals_post_with_http_info(user_guid, goal_request_body)
|
|
346
|
+
|
|
347
|
+
```ruby
|
|
348
|
+
begin
|
|
349
|
+
# Create a goal
|
|
350
|
+
data, status_code, headers = api_instance.users_user_guid_goals_post_with_http_info(user_guid, goal_request_body)
|
|
351
|
+
p status_code # => 2xx
|
|
352
|
+
p headers # => { ... }
|
|
353
|
+
p data # => <GoalResponseBody>
|
|
354
|
+
rescue MxPlatformRuby::ApiError => e
|
|
355
|
+
puts "Error when calling GoalsApi->users_user_guid_goals_post_with_http_info: #{e}"
|
|
356
|
+
end
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
### Parameters
|
|
360
|
+
|
|
361
|
+
| Name | Type | Description | Notes |
|
|
362
|
+
| ---- | ---- | ----------- | ----- |
|
|
363
|
+
| **user_guid** | **String** | The unique identifier for the user. | |
|
|
364
|
+
| **goal_request_body** | [**GoalRequestBody**](GoalRequestBody.md) | | |
|
|
365
|
+
|
|
366
|
+
### Return type
|
|
367
|
+
|
|
368
|
+
[**GoalResponseBody**](GoalResponseBody.md)
|
|
369
|
+
|
|
370
|
+
### Authorization
|
|
371
|
+
|
|
372
|
+
[basicAuth](../README.md#basicAuth)
|
|
373
|
+
|
|
374
|
+
### HTTP request headers
|
|
375
|
+
|
|
376
|
+
- **Content-Type**: application/json
|
|
377
|
+
- **Accept**: application/json
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
## users_user_guid_goals_reposition_put
|
|
381
|
+
|
|
382
|
+
> <RepositionResponseBody> users_user_guid_goals_reposition_put(user_guid, reposition_request_body)
|
|
383
|
+
|
|
384
|
+
Reposition goals
|
|
385
|
+
|
|
386
|
+
This endpoint repositions goal priority levels. If one goal is set to a lower priority, then any other goals need to be adjusted accordingly.
|
|
387
|
+
|
|
388
|
+
### Examples
|
|
389
|
+
|
|
390
|
+
```ruby
|
|
391
|
+
require 'time'
|
|
392
|
+
require 'mx-platform-ruby'
|
|
393
|
+
# setup authorization
|
|
394
|
+
MxPlatformRuby.configure do |config|
|
|
395
|
+
# Configure HTTP basic authorization: basicAuth
|
|
396
|
+
config.username = 'YOUR USERNAME'
|
|
397
|
+
config.password = 'YOUR PASSWORD'
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
api_instance = MxPlatformRuby::GoalsApi.new
|
|
401
|
+
user_guid = 'user_guid_example' # String | The unique identifier for the user.
|
|
402
|
+
reposition_request_body = MxPlatformRuby::RepositionRequestBody.new # RepositionRequestBody |
|
|
403
|
+
|
|
404
|
+
begin
|
|
405
|
+
# Reposition goals
|
|
406
|
+
result = api_instance.users_user_guid_goals_reposition_put(user_guid, reposition_request_body)
|
|
407
|
+
p result
|
|
408
|
+
rescue MxPlatformRuby::ApiError => e
|
|
409
|
+
puts "Error when calling GoalsApi->users_user_guid_goals_reposition_put: #{e}"
|
|
410
|
+
end
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
#### Using the users_user_guid_goals_reposition_put_with_http_info variant
|
|
414
|
+
|
|
415
|
+
This returns an Array which contains the response data, status code and headers.
|
|
416
|
+
|
|
417
|
+
> <Array(<RepositionResponseBody>, Integer, Hash)> users_user_guid_goals_reposition_put_with_http_info(user_guid, reposition_request_body)
|
|
418
|
+
|
|
419
|
+
```ruby
|
|
420
|
+
begin
|
|
421
|
+
# Reposition goals
|
|
422
|
+
data, status_code, headers = api_instance.users_user_guid_goals_reposition_put_with_http_info(user_guid, reposition_request_body)
|
|
423
|
+
p status_code # => 2xx
|
|
424
|
+
p headers # => { ... }
|
|
425
|
+
p data # => <RepositionResponseBody>
|
|
426
|
+
rescue MxPlatformRuby::ApiError => e
|
|
427
|
+
puts "Error when calling GoalsApi->users_user_guid_goals_reposition_put_with_http_info: #{e}"
|
|
428
|
+
end
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
### Parameters
|
|
432
|
+
|
|
433
|
+
| Name | Type | Description | Notes |
|
|
434
|
+
| ---- | ---- | ----------- | ----- |
|
|
435
|
+
| **user_guid** | **String** | The unique identifier for the user. | |
|
|
436
|
+
| **reposition_request_body** | [**RepositionRequestBody**](RepositionRequestBody.md) | | |
|
|
437
|
+
|
|
438
|
+
### Return type
|
|
439
|
+
|
|
440
|
+
[**RepositionResponseBody**](RepositionResponseBody.md)
|
|
441
|
+
|
|
442
|
+
### Authorization
|
|
443
|
+
|
|
444
|
+
[basicAuth](../README.md#basicAuth)
|
|
445
|
+
|
|
446
|
+
### HTTP request headers
|
|
447
|
+
|
|
448
|
+
- **Content-Type**: application/json
|
|
449
|
+
- **Accept**: application/json
|
|
450
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# MxPlatformRuby::GoalsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **account_guid** | **String** | Unique identifier of the account for the goal. | [optional] |
|
|
8
|
+
| **amount** | **Float** | Amount of the goal. | [optional] |
|
|
9
|
+
| **current_amount** | **Float** | The current amount of the goal. | [optional] |
|
|
10
|
+
| **guid** | **String** | The unique identifier for the goal. Defined by MX. | [optional] |
|
|
11
|
+
| **goal_type_name** | **String** | The goal type. | [optional] |
|
|
12
|
+
| **meta_type_name** | **String** | The category of the goal. | [optional] |
|
|
13
|
+
| **name** | **String** | The name of the goal. | [optional] |
|
|
14
|
+
| **completed_at** | **String** | Date and time the goal was completed. | [optional] |
|
|
15
|
+
| **has_been_spent** | **Boolean** | Determines if the goal has been spent. | [optional] |
|
|
16
|
+
| **is_complete** | **Boolean** | Determines if the goal is complete. | [optional] |
|
|
17
|
+
| **metadata** | **String** | Additional information a partner can store on the goal. | [optional] |
|
|
18
|
+
| **position** | **Integer** | The priority of the goal in relation to multiple goals. | [optional] |
|
|
19
|
+
| **projected_to_complete_at** | **String** | The date on which the project was completed. | [optional] |
|
|
20
|
+
| **targeted_to_complete_at** | **String** | | [optional] |
|
|
21
|
+
| **track_type_name** | **String** | | [optional] |
|
|
22
|
+
| **user_guid** | **String** | The unique identifier for the the user. Defined by MX. | [optional] |
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```ruby
|
|
27
|
+
require 'mx-platform-ruby'
|
|
28
|
+
|
|
29
|
+
instance = MxPlatformRuby::GoalsResponse.new(
|
|
30
|
+
account_guid: ACT-4e431124-4a29-abf9-f059-ab232ac14dbf,
|
|
31
|
+
amount: 4500.0,
|
|
32
|
+
current_amount: 1651.27,
|
|
33
|
+
guid: GOL-524ca5db-a2d5-44f3-b048-16de16059024,
|
|
34
|
+
goal_type_name: PAYOFF,
|
|
35
|
+
meta_type_name: VACATION,
|
|
36
|
+
name: Save for Europe,
|
|
37
|
+
completed_at: 2015-06-19T10:37:04-06:00,
|
|
38
|
+
has_been_spent: false,
|
|
39
|
+
is_complete: false,
|
|
40
|
+
metadata: Additional information,
|
|
41
|
+
position: 3,
|
|
42
|
+
projected_to_complete_at: 2022-06-14T16:03:53-00:00,
|
|
43
|
+
targeted_to_complete_at: 2026-12-08 00:00:00.000000,
|
|
44
|
+
track_type_name: Track Type Name,
|
|
45
|
+
user_guid: USR-11141024-90b3-1bce-cac9-c06ced52ab4c
|
|
46
|
+
)
|
|
47
|
+
```
|
|
48
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# MxPlatformRuby::GoalsResponseBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **goals** | [**Array<GoalsResponse>**](GoalsResponse.md) | | [optional] |
|
|
8
|
+
| **pagination** | [**PaginationResponse**](PaginationResponse.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'mx-platform-ruby'
|
|
14
|
+
|
|
15
|
+
instance = MxPlatformRuby::GoalsResponseBody.new(
|
|
16
|
+
goals: null,
|
|
17
|
+
pagination: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# MxPlatformRuby::MonthlyCashFlowProfileRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **goals_contribution** | **Float** | The monthly dollar amount allocated for goals. | [optional] |
|
|
8
|
+
| **uses_estimated_goals_contribution** | **Boolean** | Determines if the user uses estimated goals contribution. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'mx-platform-ruby'
|
|
14
|
+
|
|
15
|
+
instance = MxPlatformRuby::MonthlyCashFlowProfileRequest.new(
|
|
16
|
+
goals_contribution: 150.01,
|
|
17
|
+
uses_estimated_goals_contribution: false
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# MxPlatformRuby::MonthlyCashFlowProfileRequestBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **institution** | [**MonthlyCashFlowProfileRequest**](MonthlyCashFlowProfileRequest.md) | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'mx-platform-ruby'
|
|
13
|
+
|
|
14
|
+
instance = MxPlatformRuby::MonthlyCashFlowProfileRequestBody.new(
|
|
15
|
+
institution: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|