mx-platform-ruby 0.4.2 → 0.6.2

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.
Files changed (251) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -6
  3. data/README.md +4 -6
  4. data/docs/AccountResponse.md +15 -1
  5. data/docs/ManagedAccountCreateRequest.md +78 -0
  6. data/docs/ManagedAccountCreateRequestBody.md +18 -0
  7. data/docs/ManagedAccountUpdateRequest.md +78 -0
  8. data/docs/ManagedAccountUpdateRequestBody.md +18 -0
  9. data/docs/ManagedMemberCreateRequest.md +24 -0
  10. data/docs/ManagedMemberCreateRequestBody.md +18 -0
  11. data/docs/ManagedMemberUpdateRequest.md +22 -0
  12. data/docs/ManagedMemberUpdateRequestBody.md +18 -0
  13. data/docs/ManagedTransactionCreateRequest.md +56 -0
  14. data/docs/ManagedTransactionCreateRequestBody.md +18 -0
  15. data/docs/ManagedTransactionUpdateRequest.md +56 -0
  16. data/docs/ManagedTransactionUpdateRequestBody.md +18 -0
  17. data/docs/MemberResponse.md +5 -1
  18. data/docs/MerchantLocationResponse.md +40 -0
  19. data/docs/MerchantLocationResponseBody.md +18 -0
  20. data/docs/MxPlatformApi.md +1415 -117
  21. data/docs/TransactionResponse.md +11 -1
  22. data/lib/mx-platform-ruby/api/mx_platform_api.rb +1474 -124
  23. data/lib/mx-platform-ruby/api_client.rb +7 -9
  24. data/lib/mx-platform-ruby/api_error.rb +1 -1
  25. data/lib/mx-platform-ruby/configuration.rb +35 -2
  26. data/lib/mx-platform-ruby/models/account_number_response.rb +5 -1
  27. data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +1 -1
  28. data/lib/mx-platform-ruby/models/account_owner_response.rb +9 -1
  29. data/lib/mx-platform-ruby/models/account_owners_response_body.rb +1 -1
  30. data/lib/mx-platform-ruby/models/account_response.rb +112 -5
  31. data/lib/mx-platform-ruby/models/account_response_body.rb +1 -1
  32. data/lib/mx-platform-ruby/models/account_update_request.rb +1 -1
  33. data/lib/mx-platform-ruby/models/account_update_request_body.rb +1 -1
  34. data/lib/mx-platform-ruby/models/accounts_response_body.rb +1 -1
  35. data/lib/mx-platform-ruby/models/categories_response_body.rb +1 -1
  36. data/lib/mx-platform-ruby/models/category_create_request.rb +1 -1
  37. data/lib/mx-platform-ruby/models/category_create_request_body.rb +1 -1
  38. data/lib/mx-platform-ruby/models/category_response.rb +7 -1
  39. data/lib/mx-platform-ruby/models/category_response_body.rb +1 -1
  40. data/lib/mx-platform-ruby/models/category_update_request.rb +1 -1
  41. data/lib/mx-platform-ruby/models/category_update_request_body.rb +1 -1
  42. data/lib/mx-platform-ruby/models/challenge_response.rb +5 -1
  43. data/lib/mx-platform-ruby/models/challenges_response_body.rb +1 -1
  44. data/lib/mx-platform-ruby/models/connect_widget_request.rb +1 -1
  45. data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +1 -1
  46. data/lib/mx-platform-ruby/models/connect_widget_response.rb +2 -1
  47. data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +1 -1
  48. data/lib/mx-platform-ruby/models/credential_request.rb +2 -1
  49. data/lib/mx-platform-ruby/models/credential_response.rb +4 -1
  50. data/lib/mx-platform-ruby/models/credentials_response_body.rb +1 -1
  51. data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +16 -1
  52. data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +1 -1
  53. data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +1 -1
  54. data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +1 -1
  55. data/lib/mx-platform-ruby/models/holding_response.rb +15 -1
  56. data/lib/mx-platform-ruby/models/holding_response_body.rb +1 -1
  57. data/lib/mx-platform-ruby/models/holdings_response_body.rb +1 -1
  58. data/lib/mx-platform-ruby/models/image_option_response.rb +4 -1
  59. data/lib/mx-platform-ruby/models/institution_response.rb +11 -1
  60. data/lib/mx-platform-ruby/models/institution_response_body.rb +1 -1
  61. data/lib/mx-platform-ruby/models/institutions_response_body.rb +1 -1
  62. data/lib/mx-platform-ruby/models/managed_account_create_request.rb +503 -0
  63. data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +218 -0
  64. data/lib/mx-platform-ruby/models/managed_account_update_request.rb +488 -0
  65. data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +218 -0
  66. data/lib/mx-platform-ruby/models/managed_member_create_request.rb +250 -0
  67. data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +218 -0
  68. data/lib/mx-platform-ruby/models/managed_member_update_request.rb +236 -0
  69. data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +218 -0
  70. data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +414 -0
  71. data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +218 -0
  72. data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +389 -0
  73. data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +218 -0
  74. data/lib/mx-platform-ruby/models/member_create_request.rb +1 -1
  75. data/lib/mx-platform-ruby/models/member_create_request_body.rb +1 -1
  76. data/lib/mx-platform-ruby/models/member_response.rb +35 -5
  77. data/lib/mx-platform-ruby/models/member_response_body.rb +1 -1
  78. data/lib/mx-platform-ruby/models/member_resume_request.rb +1 -1
  79. data/lib/mx-platform-ruby/models/member_resume_request_body.rb +1 -1
  80. data/lib/mx-platform-ruby/models/member_status_response.rb +8 -1
  81. data/lib/mx-platform-ruby/models/member_status_response_body.rb +1 -1
  82. data/lib/mx-platform-ruby/models/member_update_request.rb +1 -1
  83. data/lib/mx-platform-ruby/models/member_update_request_body.rb +1 -1
  84. data/lib/mx-platform-ruby/models/members_response_body.rb +1 -1
  85. data/lib/mx-platform-ruby/models/merchant_location_response.rb +327 -0
  86. data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +218 -0
  87. data/lib/mx-platform-ruby/models/merchant_response.rb +6 -1
  88. data/lib/mx-platform-ruby/models/merchant_response_body.rb +1 -1
  89. data/lib/mx-platform-ruby/models/merchants_response_body.rb +1 -1
  90. data/lib/mx-platform-ruby/models/o_auth_window_response.rb +2 -1
  91. data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +1 -1
  92. data/lib/mx-platform-ruby/models/option_response.rb +3 -1
  93. data/lib/mx-platform-ruby/models/pagination_response.rb +1 -1
  94. data/lib/mx-platform-ruby/models/statement_response.rb +5 -1
  95. data/lib/mx-platform-ruby/models/statement_response_body.rb +1 -1
  96. data/lib/mx-platform-ruby/models/statements_response_body.rb +1 -1
  97. data/lib/mx-platform-ruby/models/tag_create_request.rb +1 -1
  98. data/lib/mx-platform-ruby/models/tag_create_request_body.rb +1 -1
  99. data/lib/mx-platform-ruby/models/tag_response.rb +2 -1
  100. data/lib/mx-platform-ruby/models/tag_response_body.rb +1 -1
  101. data/lib/mx-platform-ruby/models/tag_update_request.rb +1 -1
  102. data/lib/mx-platform-ruby/models/tag_update_request_body.rb +1 -1
  103. data/lib/mx-platform-ruby/models/tagging_create_request.rb +1 -1
  104. data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +1 -1
  105. data/lib/mx-platform-ruby/models/tagging_response.rb +2 -1
  106. data/lib/mx-platform-ruby/models/tagging_response_body.rb +1 -1
  107. data/lib/mx-platform-ruby/models/tagging_update_request.rb +1 -1
  108. data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +1 -1
  109. data/lib/mx-platform-ruby/models/taggings_response_body.rb +1 -1
  110. data/lib/mx-platform-ruby/models/tags_response_body.rb +1 -1
  111. data/lib/mx-platform-ruby/models/transaction_response.rb +85 -5
  112. data/lib/mx-platform-ruby/models/transaction_response_body.rb +1 -1
  113. data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +1 -1
  114. data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +1 -1
  115. data/lib/mx-platform-ruby/models/transaction_rule_response.rb +5 -1
  116. data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +1 -1
  117. data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +3 -1
  118. data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +1 -1
  119. data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +1 -1
  120. data/lib/mx-platform-ruby/models/transaction_update_request.rb +1 -1
  121. data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +1 -1
  122. data/lib/mx-platform-ruby/models/transactions_response_body.rb +1 -1
  123. data/lib/mx-platform-ruby/models/user_create_request.rb +1 -1
  124. data/lib/mx-platform-ruby/models/user_create_request_body.rb +1 -1
  125. data/lib/mx-platform-ruby/models/user_response.rb +5 -1
  126. data/lib/mx-platform-ruby/models/user_response_body.rb +1 -1
  127. data/lib/mx-platform-ruby/models/user_update_request.rb +1 -1
  128. data/lib/mx-platform-ruby/models/user_update_request_body.rb +1 -1
  129. data/lib/mx-platform-ruby/models/users_response_body.rb +1 -1
  130. data/lib/mx-platform-ruby/models/widget_request.rb +1 -1
  131. data/lib/mx-platform-ruby/models/widget_request_body.rb +1 -1
  132. data/lib/mx-platform-ruby/models/widget_response.rb +4 -1
  133. data/lib/mx-platform-ruby/models/widget_response_body.rb +1 -1
  134. data/lib/mx-platform-ruby/version.rb +2 -2
  135. data/lib/mx-platform-ruby.rb +15 -1
  136. data/mx-platform-ruby.gemspec +1 -1
  137. data/openapi/config.yml +1 -1
  138. data/openapi/templates/README.mustache +4 -6
  139. data/spec/api/mx_platform_api_spec.rb +246 -1
  140. data/spec/api_client_spec.rb +3 -3
  141. data/spec/configuration_spec.rb +1 -1
  142. data/spec/models/account_number_response_spec.rb +1 -1
  143. data/spec/models/account_numbers_response_body_spec.rb +1 -1
  144. data/spec/models/account_owner_response_spec.rb +1 -1
  145. data/spec/models/account_owners_response_body_spec.rb +1 -1
  146. data/spec/models/account_response_body_spec.rb +1 -1
  147. data/spec/models/account_response_spec.rb +43 -1
  148. data/spec/models/account_update_request_body_spec.rb +1 -1
  149. data/spec/models/account_update_request_spec.rb +1 -1
  150. data/spec/models/accounts_response_body_spec.rb +1 -1
  151. data/spec/models/categories_response_body_spec.rb +1 -1
  152. data/spec/models/category_create_request_body_spec.rb +1 -1
  153. data/spec/models/category_create_request_spec.rb +1 -1
  154. data/spec/models/category_response_body_spec.rb +1 -1
  155. data/spec/models/category_response_spec.rb +1 -1
  156. data/spec/models/category_update_request_body_spec.rb +1 -1
  157. data/spec/models/category_update_request_spec.rb +1 -1
  158. data/spec/models/challenge_response_spec.rb +1 -1
  159. data/spec/models/challenges_response_body_spec.rb +1 -1
  160. data/spec/models/connect_widget_request_body_spec.rb +1 -1
  161. data/spec/models/connect_widget_request_spec.rb +1 -1
  162. data/spec/models/connect_widget_response_body_spec.rb +1 -1
  163. data/spec/models/connect_widget_response_spec.rb +1 -1
  164. data/spec/models/credential_request_spec.rb +1 -1
  165. data/spec/models/credential_response_spec.rb +1 -1
  166. data/spec/models/credentials_response_body_spec.rb +1 -1
  167. data/spec/models/enhance_transaction_response_spec.rb +1 -1
  168. data/spec/models/enhance_transactions_request_body_spec.rb +1 -1
  169. data/spec/models/enhance_transactions_request_spec.rb +1 -1
  170. data/spec/models/enhance_transactions_response_body_spec.rb +1 -1
  171. data/spec/models/holding_response_body_spec.rb +1 -1
  172. data/spec/models/holding_response_spec.rb +1 -1
  173. data/spec/models/holdings_response_body_spec.rb +1 -1
  174. data/spec/models/image_option_response_spec.rb +1 -1
  175. data/spec/models/institution_response_body_spec.rb +1 -1
  176. data/spec/models/institution_response_spec.rb +1 -1
  177. data/spec/models/institutions_response_body_spec.rb +1 -1
  178. data/spec/models/managed_account_create_request_body_spec.rb +34 -0
  179. data/spec/models/managed_account_create_request_spec.rb +214 -0
  180. data/spec/models/managed_account_update_request_body_spec.rb +34 -0
  181. data/spec/models/managed_account_update_request_spec.rb +214 -0
  182. data/spec/models/managed_member_create_request_body_spec.rb +34 -0
  183. data/spec/models/managed_member_create_request_spec.rb +52 -0
  184. data/spec/models/managed_member_update_request_body_spec.rb +34 -0
  185. data/spec/models/managed_member_update_request_spec.rb +46 -0
  186. data/spec/models/managed_transaction_create_request_body_spec.rb +34 -0
  187. data/spec/models/managed_transaction_create_request_spec.rb +148 -0
  188. data/spec/models/managed_transaction_update_request_body_spec.rb +34 -0
  189. data/spec/models/managed_transaction_update_request_spec.rb +148 -0
  190. data/spec/models/member_create_request_body_spec.rb +1 -1
  191. data/spec/models/member_create_request_spec.rb +1 -1
  192. data/spec/models/member_response_body_spec.rb +1 -1
  193. data/spec/models/member_response_spec.rb +13 -1
  194. data/spec/models/member_resume_request_body_spec.rb +1 -1
  195. data/spec/models/member_resume_request_spec.rb +1 -1
  196. data/spec/models/member_status_response_body_spec.rb +1 -1
  197. data/spec/models/member_status_response_spec.rb +1 -1
  198. data/spec/models/member_update_request_body_spec.rb +1 -1
  199. data/spec/models/member_update_request_spec.rb +1 -1
  200. data/spec/models/members_response_body_spec.rb +1 -1
  201. data/spec/models/merchant_location_response_body_spec.rb +34 -0
  202. data/spec/models/merchant_location_response_spec.rb +100 -0
  203. data/spec/models/merchant_response_body_spec.rb +1 -1
  204. data/spec/models/merchant_response_spec.rb +1 -1
  205. data/spec/models/merchants_response_body_spec.rb +1 -1
  206. data/spec/models/o_auth_window_response_body_spec.rb +1 -1
  207. data/spec/models/o_auth_window_response_spec.rb +1 -1
  208. data/spec/models/option_response_spec.rb +1 -1
  209. data/spec/models/pagination_response_spec.rb +1 -1
  210. data/spec/models/statement_response_body_spec.rb +1 -1
  211. data/spec/models/statement_response_spec.rb +1 -1
  212. data/spec/models/statements_response_body_spec.rb +1 -1
  213. data/spec/models/tag_create_request_body_spec.rb +1 -1
  214. data/spec/models/tag_create_request_spec.rb +1 -1
  215. data/spec/models/tag_response_body_spec.rb +1 -1
  216. data/spec/models/tag_response_spec.rb +1 -1
  217. data/spec/models/tag_update_request_body_spec.rb +1 -1
  218. data/spec/models/tag_update_request_spec.rb +1 -1
  219. data/spec/models/tagging_create_request_body_spec.rb +1 -1
  220. data/spec/models/tagging_create_request_spec.rb +1 -1
  221. data/spec/models/tagging_response_body_spec.rb +1 -1
  222. data/spec/models/tagging_response_spec.rb +1 -1
  223. data/spec/models/tagging_update_request_body_spec.rb +1 -1
  224. data/spec/models/tagging_update_request_spec.rb +1 -1
  225. data/spec/models/taggings_response_body_spec.rb +1 -1
  226. data/spec/models/tags_response_body_spec.rb +1 -1
  227. data/spec/models/transaction_response_body_spec.rb +1 -1
  228. data/spec/models/transaction_response_spec.rb +31 -1
  229. data/spec/models/transaction_rule_create_request_body_spec.rb +1 -1
  230. data/spec/models/transaction_rule_create_request_spec.rb +1 -1
  231. data/spec/models/transaction_rule_response_body_spec.rb +1 -1
  232. data/spec/models/transaction_rule_response_spec.rb +1 -1
  233. data/spec/models/transaction_rule_update_request_body_spec.rb +1 -1
  234. data/spec/models/transaction_rule_update_request_spec.rb +1 -1
  235. data/spec/models/transaction_rules_response_body_spec.rb +1 -1
  236. data/spec/models/transaction_update_request_body_spec.rb +1 -1
  237. data/spec/models/transaction_update_request_spec.rb +1 -1
  238. data/spec/models/transactions_response_body_spec.rb +1 -1
  239. data/spec/models/user_create_request_body_spec.rb +1 -1
  240. data/spec/models/user_create_request_spec.rb +1 -1
  241. data/spec/models/user_response_body_spec.rb +1 -1
  242. data/spec/models/user_response_spec.rb +1 -1
  243. data/spec/models/user_update_request_body_spec.rb +1 -1
  244. data/spec/models/user_update_request_spec.rb +1 -1
  245. data/spec/models/users_response_body_spec.rb +1 -1
  246. data/spec/models/widget_request_body_spec.rb +1 -1
  247. data/spec/models/widget_request_spec.rb +1 -1
  248. data/spec/models/widget_response_body_spec.rb +1 -1
  249. data/spec/models/widget_response_spec.rb +1 -1
  250. data/spec/spec_helper.rb +1 -1
  251. metadata +134 -78
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -27,6 +27,8 @@ module MxPlatformRuby
27
27
 
28
28
  attr_accessor :is_being_aggregated
29
29
 
30
+ attr_accessor :is_managed_by_user
31
+
30
32
  attr_accessor :is_oauth
31
33
 
32
34
  attr_accessor :metadata
@@ -39,6 +41,8 @@ module MxPlatformRuby
39
41
 
40
42
  attr_accessor :user_guid
41
43
 
44
+ attr_accessor :user_id
45
+
42
46
  # Attribute mapping from ruby-style variable name to JSON key.
43
47
  def self.attribute_map
44
48
  {
@@ -48,12 +52,14 @@ module MxPlatformRuby
48
52
  :'id' => :'id',
49
53
  :'institution_code' => :'institution_code',
50
54
  :'is_being_aggregated' => :'is_being_aggregated',
55
+ :'is_managed_by_user' => :'is_managed_by_user',
51
56
  :'is_oauth' => :'is_oauth',
52
57
  :'metadata' => :'metadata',
53
58
  :'name' => :'name',
54
59
  :'oauth_window_uri' => :'oauth_window_uri',
55
60
  :'successfully_aggregated_at' => :'successfully_aggregated_at',
56
- :'user_guid' => :'user_guid'
61
+ :'user_guid' => :'user_guid',
62
+ :'user_id' => :'user_id'
57
63
  }
58
64
  end
59
65
 
@@ -71,18 +77,32 @@ module MxPlatformRuby
71
77
  :'id' => :'String',
72
78
  :'institution_code' => :'String',
73
79
  :'is_being_aggregated' => :'Boolean',
80
+ :'is_managed_by_user' => :'Boolean',
74
81
  :'is_oauth' => :'Boolean',
75
82
  :'metadata' => :'String',
76
83
  :'name' => :'String',
77
84
  :'oauth_window_uri' => :'String',
78
85
  :'successfully_aggregated_at' => :'String',
79
- :'user_guid' => :'String'
86
+ :'user_guid' => :'String',
87
+ :'user_id' => :'String'
80
88
  }
81
89
  end
82
90
 
83
91
  # List of attributes with nullable: true
84
92
  def self.openapi_nullable
85
93
  Set.new([
94
+ :'aggregated_at',
95
+ :'connection_status',
96
+ :'id',
97
+ :'institution_code',
98
+ :'is_being_aggregated',
99
+ :'is_managed_by_user',
100
+ :'is_oauth',
101
+ :'metadata',
102
+ :'name',
103
+ :'oauth_window_uri',
104
+ :'successfully_aggregated_at',
105
+ :'user_id'
86
106
  ])
87
107
  end
88
108
 
@@ -125,6 +145,10 @@ module MxPlatformRuby
125
145
  self.is_being_aggregated = attributes[:'is_being_aggregated']
126
146
  end
127
147
 
148
+ if attributes.key?(:'is_managed_by_user')
149
+ self.is_managed_by_user = attributes[:'is_managed_by_user']
150
+ end
151
+
128
152
  if attributes.key?(:'is_oauth')
129
153
  self.is_oauth = attributes[:'is_oauth']
130
154
  end
@@ -148,6 +172,10 @@ module MxPlatformRuby
148
172
  if attributes.key?(:'user_guid')
149
173
  self.user_guid = attributes[:'user_guid']
150
174
  end
175
+
176
+ if attributes.key?(:'user_id')
177
+ self.user_id = attributes[:'user_id']
178
+ end
151
179
  end
152
180
 
153
181
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -174,12 +202,14 @@ module MxPlatformRuby
174
202
  id == o.id &&
175
203
  institution_code == o.institution_code &&
176
204
  is_being_aggregated == o.is_being_aggregated &&
205
+ is_managed_by_user == o.is_managed_by_user &&
177
206
  is_oauth == o.is_oauth &&
178
207
  metadata == o.metadata &&
179
208
  name == o.name &&
180
209
  oauth_window_uri == o.oauth_window_uri &&
181
210
  successfully_aggregated_at == o.successfully_aggregated_at &&
182
- user_guid == o.user_guid
211
+ user_guid == o.user_guid &&
212
+ user_id == o.user_id
183
213
  end
184
214
 
185
215
  # @see the `==` method
@@ -191,7 +221,7 @@ module MxPlatformRuby
191
221
  # Calculates hash code according to all attributes.
192
222
  # @return [Integer] Hash code
193
223
  def hash
194
- [aggregated_at, connection_status, guid, id, institution_code, is_being_aggregated, is_oauth, metadata, name, oauth_window_uri, successfully_aggregated_at, user_guid].hash
224
+ [aggregated_at, connection_status, guid, id, institution_code, is_being_aggregated, is_managed_by_user, is_oauth, metadata, name, oauth_window_uri, successfully_aggregated_at, user_guid, user_id].hash
195
225
  end
196
226
 
197
227
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -71,6 +71,13 @@ module MxPlatformRuby
71
71
  # List of attributes with nullable: true
72
72
  def self.openapi_nullable
73
73
  Set.new([
74
+ :'aggregated_at',
75
+ :'connection_status',
76
+ :'has_processed_accounts',
77
+ :'has_processed_transactions',
78
+ :'is_authenticated',
79
+ :'is_being_aggregated',
80
+ :'successfully_aggregated_at'
74
81
  ])
75
82
  end
76
83
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,327 @@
1
+ =begin
2
+ #MX Platform API
3
+
4
+ #The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MxPlatformRuby
17
+ class MerchantLocationResponse
18
+ attr_accessor :city
19
+
20
+ attr_accessor :country
21
+
22
+ attr_accessor :created_at
23
+
24
+ attr_accessor :guid
25
+
26
+ attr_accessor :latitude
27
+
28
+ attr_accessor :longitude
29
+
30
+ attr_accessor :merchant_guid
31
+
32
+ attr_accessor :phone_number
33
+
34
+ attr_accessor :postal_code
35
+
36
+ attr_accessor :state
37
+
38
+ attr_accessor :street_address
39
+
40
+ attr_accessor :updated_at
41
+
42
+ # Attribute mapping from ruby-style variable name to JSON key.
43
+ def self.attribute_map
44
+ {
45
+ :'city' => :'city',
46
+ :'country' => :'country',
47
+ :'created_at' => :'created_at',
48
+ :'guid' => :'guid',
49
+ :'latitude' => :'latitude',
50
+ :'longitude' => :'longitude',
51
+ :'merchant_guid' => :'merchant_guid',
52
+ :'phone_number' => :'phone_number',
53
+ :'postal_code' => :'postal_code',
54
+ :'state' => :'state',
55
+ :'street_address' => :'street_address',
56
+ :'updated_at' => :'updated_at'
57
+ }
58
+ end
59
+
60
+ # Returns all the JSON keys this model knows about
61
+ def self.acceptable_attributes
62
+ attribute_map.values
63
+ end
64
+
65
+ # Attribute type mapping.
66
+ def self.openapi_types
67
+ {
68
+ :'city' => :'String',
69
+ :'country' => :'String',
70
+ :'created_at' => :'String',
71
+ :'guid' => :'String',
72
+ :'latitude' => :'Float',
73
+ :'longitude' => :'Float',
74
+ :'merchant_guid' => :'String',
75
+ :'phone_number' => :'String',
76
+ :'postal_code' => :'String',
77
+ :'state' => :'String',
78
+ :'street_address' => :'String',
79
+ :'updated_at' => :'String'
80
+ }
81
+ end
82
+
83
+ # List of attributes with nullable: true
84
+ def self.openapi_nullable
85
+ Set.new([
86
+ :'city',
87
+ :'country',
88
+ :'created_at',
89
+ :'latitude',
90
+ :'longitude',
91
+ :'phone_number',
92
+ :'postal_code',
93
+ :'state',
94
+ :'street_address',
95
+ :'updated_at'
96
+ ])
97
+ end
98
+
99
+ # Initializes the object
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ def initialize(attributes = {})
102
+ if (!attributes.is_a?(Hash))
103
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::MerchantLocationResponse` initialize method"
104
+ end
105
+
106
+ # check to see if the attribute exists and convert string to symbol for hash key
107
+ attributes = attributes.each_with_object({}) { |(k, v), h|
108
+ if (!self.class.attribute_map.key?(k.to_sym))
109
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::MerchantLocationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
110
+ end
111
+ h[k.to_sym] = v
112
+ }
113
+
114
+ if attributes.key?(:'city')
115
+ self.city = attributes[:'city']
116
+ end
117
+
118
+ if attributes.key?(:'country')
119
+ self.country = attributes[:'country']
120
+ end
121
+
122
+ if attributes.key?(:'created_at')
123
+ self.created_at = attributes[:'created_at']
124
+ end
125
+
126
+ if attributes.key?(:'guid')
127
+ self.guid = attributes[:'guid']
128
+ end
129
+
130
+ if attributes.key?(:'latitude')
131
+ self.latitude = attributes[:'latitude']
132
+ end
133
+
134
+ if attributes.key?(:'longitude')
135
+ self.longitude = attributes[:'longitude']
136
+ end
137
+
138
+ if attributes.key?(:'merchant_guid')
139
+ self.merchant_guid = attributes[:'merchant_guid']
140
+ end
141
+
142
+ if attributes.key?(:'phone_number')
143
+ self.phone_number = attributes[:'phone_number']
144
+ end
145
+
146
+ if attributes.key?(:'postal_code')
147
+ self.postal_code = attributes[:'postal_code']
148
+ end
149
+
150
+ if attributes.key?(:'state')
151
+ self.state = attributes[:'state']
152
+ end
153
+
154
+ if attributes.key?(:'street_address')
155
+ self.street_address = attributes[:'street_address']
156
+ end
157
+
158
+ if attributes.key?(:'updated_at')
159
+ self.updated_at = attributes[:'updated_at']
160
+ end
161
+ end
162
+
163
+ # Show invalid properties with the reasons. Usually used together with valid?
164
+ # @return Array for valid properties with the reasons
165
+ def list_invalid_properties
166
+ invalid_properties = Array.new
167
+ invalid_properties
168
+ end
169
+
170
+ # Check to see if the all the properties in the model are valid
171
+ # @return true if the model is valid
172
+ def valid?
173
+ true
174
+ end
175
+
176
+ # Checks equality by comparing each attribute.
177
+ # @param [Object] Object to be compared
178
+ def ==(o)
179
+ return true if self.equal?(o)
180
+ self.class == o.class &&
181
+ city == o.city &&
182
+ country == o.country &&
183
+ created_at == o.created_at &&
184
+ guid == o.guid &&
185
+ latitude == o.latitude &&
186
+ longitude == o.longitude &&
187
+ merchant_guid == o.merchant_guid &&
188
+ phone_number == o.phone_number &&
189
+ postal_code == o.postal_code &&
190
+ state == o.state &&
191
+ street_address == o.street_address &&
192
+ updated_at == o.updated_at
193
+ end
194
+
195
+ # @see the `==` method
196
+ # @param [Object] Object to be compared
197
+ def eql?(o)
198
+ self == o
199
+ end
200
+
201
+ # Calculates hash code according to all attributes.
202
+ # @return [Integer] Hash code
203
+ def hash
204
+ [city, country, created_at, guid, latitude, longitude, merchant_guid, phone_number, postal_code, state, street_address, updated_at].hash
205
+ end
206
+
207
+ # Builds the object from hash
208
+ # @param [Hash] attributes Model attributes in the form of hash
209
+ # @return [Object] Returns the model itself
210
+ def self.build_from_hash(attributes)
211
+ new.build_from_hash(attributes)
212
+ end
213
+
214
+ # Builds the object from hash
215
+ # @param [Hash] attributes Model attributes in the form of hash
216
+ # @return [Object] Returns the model itself
217
+ def build_from_hash(attributes)
218
+ return nil unless attributes.is_a?(Hash)
219
+ self.class.openapi_types.each_pair do |key, type|
220
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
221
+ self.send("#{key}=", nil)
222
+ elsif type =~ /\AArray<(.*)>/i
223
+ # check to ensure the input is an array given that the attribute
224
+ # is documented as an array but the input is not
225
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
226
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
227
+ end
228
+ elsif !attributes[self.class.attribute_map[key]].nil?
229
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
230
+ end
231
+ end
232
+
233
+ self
234
+ end
235
+
236
+ # Deserializes the data based on type
237
+ # @param string type Data type
238
+ # @param string value Value to be deserialized
239
+ # @return [Object] Deserialized data
240
+ def _deserialize(type, value)
241
+ case type.to_sym
242
+ when :Time
243
+ Time.parse(value)
244
+ when :Date
245
+ Date.parse(value)
246
+ when :String
247
+ value.to_s
248
+ when :Integer
249
+ value.to_i
250
+ when :Float
251
+ value.to_f
252
+ when :Boolean
253
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
254
+ true
255
+ else
256
+ false
257
+ end
258
+ when :Object
259
+ # generic object (usually a Hash), return directly
260
+ value
261
+ when /\AArray<(?<inner_type>.+)>\z/
262
+ inner_type = Regexp.last_match[:inner_type]
263
+ value.map { |v| _deserialize(inner_type, v) }
264
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
265
+ k_type = Regexp.last_match[:k_type]
266
+ v_type = Regexp.last_match[:v_type]
267
+ {}.tap do |hash|
268
+ value.each do |k, v|
269
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
270
+ end
271
+ end
272
+ else # model
273
+ # models (e.g. Pet) or oneOf
274
+ klass = MxPlatformRuby.const_get(type)
275
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
276
+ end
277
+ end
278
+
279
+ # Returns the string representation of the object
280
+ # @return [String] String presentation of the object
281
+ def to_s
282
+ to_hash.to_s
283
+ end
284
+
285
+ # to_body is an alias to to_hash (backward compatibility)
286
+ # @return [Hash] Returns the object in the form of hash
287
+ def to_body
288
+ to_hash
289
+ end
290
+
291
+ # Returns the object in the form of hash
292
+ # @return [Hash] Returns the object in the form of hash
293
+ def to_hash
294
+ hash = {}
295
+ self.class.attribute_map.each_pair do |attr, param|
296
+ value = self.send(attr)
297
+ if value.nil?
298
+ is_nullable = self.class.openapi_nullable.include?(attr)
299
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
300
+ end
301
+
302
+ hash[param] = _to_hash(value)
303
+ end
304
+ hash
305
+ end
306
+
307
+ # Outputs non-array value in the form of hash
308
+ # For object, use to_hash. Otherwise, just return the value
309
+ # @param [Object] value Any valid value
310
+ # @return [Hash] Returns the value in the form of hash
311
+ def _to_hash(value)
312
+ if value.is_a?(Array)
313
+ value.compact.map { |v| _to_hash(v) }
314
+ elsif value.is_a?(Hash)
315
+ {}.tap do |hash|
316
+ value.each { |k, v| hash[k] = _to_hash(v) }
317
+ end
318
+ elsif value.respond_to? :to_hash
319
+ value.to_hash
320
+ else
321
+ value
322
+ end
323
+ end
324
+
325
+ end
326
+
327
+ end