diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d4422eb --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +name: Test + +on: [push] + +jobs: + Test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + ruby-version: 2.6 + - name: Install dependencies + run: bundle install + - name: Check openapi.yml + run: bundle exec rake diff --git a/docs/Account.md b/docs/Account.md deleted file mode 100644 index 730b8a7..0000000 --- a/docs/Account.md +++ /dev/null @@ -1,96 +0,0 @@ -# MxPlatformRuby::Account - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **account_number** | **String** | | [optional] | -| **apr** | **Float** | | [optional] | -| **apy** | **Float** | | [optional] | -| **available_balance** | **Float** | | [optional] | -| **available_credit** | **Float** | | [optional] | -| **balance** | **Float** | | [optional] | -| **cash_balance** | **Float** | | [optional] | -| **cash_surrender_value** | **Float** | | [optional] | -| **created_at** | **String** | | [optional] | -| **credit_limit** | **Float** | | [optional] | -| **currency_code** | **String** | | [optional] | -| **day_payment_is_due** | **Integer** | | [optional] | -| **death_benefit** | **Integer** | | [optional] | -| **guid** | **String** | | [optional] | -| **holdings_value** | **Float** | | [optional] | -| **id** | **String** | | [optional] | -| **institution_code** | **String** | | [optional] | -| **insured_name** | **String** | | [optional] | -| **interest_rate** | **Float** | | [optional] | -| **is_closed** | **Boolean** | | [optional] | -| **is_hidden** | **Boolean** | | [optional] | -| **last_payment** | **Float** | | [optional] | -| **last_payment_at** | **String** | | [optional] | -| **loan_amount** | **Float** | | [optional] | -| **matures_on** | **String** | | [optional] | -| **member_guid** | **String** | | [optional] | -| **minimum_balance** | **Float** | | [optional] | -| **minimum_payment** | **Float** | | [optional] | -| **name** | **String** | | [optional] | -| **original_balance** | **Float** | | [optional] | -| **pay_out_amount** | **Float** | | [optional] | -| **payment_due_at** | **String** | | [optional] | -| **payoff_balance** | **Float** | | [optional] | -| **premium_amount** | **Float** | | [optional] | -| **started_on** | **String** | | [optional] | -| **subtype** | **String** | | [optional] | -| **total_account_value** | **Float** | | [optional] | -| **type** | **String** | | [optional] | -| **updated_at** | **String** | | [optional] | -| **user_guid** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Account.new( - account_number: 5366, - apr: 1.0, - apy: 1.0, - available_balance: 1000.0, - available_credit: 1000.0, - balance: 1000.0, - cash_balance: 1000.0, - cash_surrender_value: 1000.0, - created_at: 2016-10-13T17:57:37.000Z, - credit_limit: 100.0, - currency_code: USD, - day_payment_is_due: 20, - death_benefit: 1000, - guid: ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1, - holdings_value: 1000.0, - id: 1040434698, - institution_code: chase, - insured_name: Frodo Baggins, - interest_rate: 1.0, - is_closed: false, - is_hidden: false, - last_payment: 100.0, - last_payment_at: 2015-10-13T17:57:37.000Z, - loan_amount: 1000.0, - matures_on: 2015-10-13T17:57:37.000Z, - member_guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b, - minimum_balance: 100.0, - minimum_payment: 10.0, - name: Test account 2, - original_balance: 10.0, - pay_out_amount: 10.0, - payment_due_at: 2015-10-13T17:57:37.000Z, - payoff_balance: 10.0, - premium_amount: 1.0, - started_on: 2015-10-13T17:57:37.000Z, - subtype: NONE, - total_account_value: 1.0, - type: SAVINGS, - updated_at: 2016-10-13T18:08:00.000Z, - user_guid: USR-fa7537f3-48aa-a683-a02a-b18940482f54 -) -``` - diff --git a/docs/AccountNumber.md b/docs/AccountNumber.md deleted file mode 100644 index 6daa518..0000000 --- a/docs/AccountNumber.md +++ /dev/null @@ -1,32 +0,0 @@ -# MxPlatformRuby::AccountNumber - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **account_guid** | **String** | | [optional] | -| **account_number** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **institution_number** | **String** | | [optional] | -| **member_guid** | **String** | | [optional] | -| **routing_number** | **String** | | [optional] | -| **transit_number** | **String** | | [optional] | -| **user_guid** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::AccountNumber.new( - account_guid: ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1, - account_number: 10001, - guid: ACN-8899832e-e5b4-42cd-aa25-bbf1dc889a8f, - institution_number: 123, - member_guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b, - routing_number: 68899990000000, - transit_number: 12345, - user_guid: USR-fa7537f3-48aa-a683-a02a-b18940482f54 -) -``` - diff --git a/docs/AccountOwner.md b/docs/AccountOwner.md deleted file mode 100644 index 186de8a..0000000 --- a/docs/AccountOwner.md +++ /dev/null @@ -1,40 +0,0 @@ -# MxPlatformRuby::AccountOwner - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **account_guid** | **String** | | [optional] | -| **address** | **String** | | [optional] | -| **city** | **String** | | [optional] | -| **country** | **String** | | [optional] | -| **email** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **member_guid** | **String** | | [optional] | -| **owner_name** | **String** | | [optional] | -| **phone** | **String** | | [optional] | -| **postal_code** | **String** | | [optional] | -| **state** | **String** | | [optional] | -| **user_guid** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::AccountOwner.new( - account_guid: ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1, - address: 123 This Way, - city: Middlesex, - country: US, - email: donnie@darko.co, - guid: ACO-63dc7714-6fc0-4aa2-a069-c06cdccd1af9, - member_guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b, - owner_name: Donnie Darko, - phone: 555-555-5555, - postal_code: 00000-0000, - state: VA, - user_guid: USR-fa7537f3-48aa-a683-a02a-b18940482f54 -) -``` - diff --git a/docs/Category.md b/docs/Category.md deleted file mode 100644 index f63dbe7..0000000 --- a/docs/Category.md +++ /dev/null @@ -1,32 +0,0 @@ -# MxPlatformRuby::Category - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **created_at** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **is_default** | **Boolean** | | [optional] | -| **is_income** | **Boolean** | | [optional] | -| **metadata** | **String** | | [optional] | -| **name** | **String** | | [optional] | -| **parent_guid** | **String** | | [optional] | -| **updated_at** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Category.new( - created_at: 2015-04-13T18:01:23.000Z, - guid: CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874, - is_default: true, - is_income: false, - metadata: some metadata, - name: Auto Insurance, - parent_guid: CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874, - updated_at: 2015-05-13T18:01:23.000Z -) -``` - diff --git a/docs/Challenge.md b/docs/Challenge.md deleted file mode 100644 index 4a57f4f..0000000 --- a/docs/Challenge.md +++ /dev/null @@ -1,30 +0,0 @@ -# MxPlatformRuby::Challenge - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **field_name** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **image_data** | **String** | | [optional] | -| **image_options** | [**Array<ChallengeImageOptions>**](ChallengeImageOptions.md) | | [optional] | -| **label** | **String** | | [optional] | -| **options** | [**Array<ChallengeOptions>**](ChallengeOptions.md) | | [optional] | -| **type** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Challenge.new( - field_name: Who is this guy?, - guid: CRD-ce76d2e3-86bd-ec4a-ec52-eb53b5194bf5, - image_data: Who is this guy?, - image_options: null, - label: Who is this guy?, - options: null, - type: IMAGE_DATA -) -``` - diff --git a/docs/ChallengeImageOptions.md b/docs/ChallengeImageOptions.md deleted file mode 100644 index 38902be..0000000 --- a/docs/ChallengeImageOptions.md +++ /dev/null @@ -1,22 +0,0 @@ -# MxPlatformRuby::ChallengeImageOptions - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **data_uri** | **String** | | [optional] | -| **label** | **String** | | [optional] | -| **value** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::ChallengeImageOptions.new( - data_uri: data:image/png;base64,iVBORw0KGgoAAAANSUh ... more image data ..., - label: IMAGE_1, - value: image_data -) -``` - diff --git a/docs/ChallengeOptions.md b/docs/ChallengeOptions.md deleted file mode 100644 index ec3a8a5..0000000 --- a/docs/ChallengeOptions.md +++ /dev/null @@ -1,20 +0,0 @@ -# MxPlatformRuby::ChallengeOptions - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **label** | **String** | | [optional] | -| **value** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::ChallengeOptions.new( - label: IMAGE_1, - value: image_data -) -``` - diff --git a/docs/ConnectWidget.md b/docs/ConnectWidget.md deleted file mode 100644 index c63ae92..0000000 --- a/docs/ConnectWidget.md +++ /dev/null @@ -1,20 +0,0 @@ -# MxPlatformRuby::ConnectWidget - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **connect_widget_url** | **String** | | [optional] | -| **guid** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::ConnectWidget.new( - connect_widget_url: https://int-widgets.moneydesktop.com/md/connect/jb1rA14m85tw2lyvpgfx4gc6d3Z8z8Ayb8, - guid: USR-fa7537f3-48aa-a683-a02a-b18940482f54 -) -``` - diff --git a/docs/Credential.md b/docs/Credential.md deleted file mode 100644 index 74b8108..0000000 --- a/docs/Credential.md +++ /dev/null @@ -1,26 +0,0 @@ -# MxPlatformRuby::Credential - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **display_order** | **Integer** | | [optional] | -| **field_name** | **String** | | [optional] | -| **field_type** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **label** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Credential.new( - display_order: 1, - field_name: LOGIN, - field_type: TEXT, - guid: CRD-1ec152cd-e628-e81a-e852-d1e7104624da, - label: Username -) -``` - diff --git a/docs/EnhanceTransaction.md b/docs/EnhanceTransaction.md deleted file mode 100644 index 174c072..0000000 --- a/docs/EnhanceTransaction.md +++ /dev/null @@ -1,48 +0,0 @@ -# MxPlatformRuby::EnhanceTransaction - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **amount** | **Float** | | [optional] | -| **category** | **String** | | [optional] | -| **description** | **String** | | [optional] | -| **id** | **String** | | [optional] | -| **is_bill_pay** | **Boolean** | | [optional] | -| **is_direct_deposit** | **Boolean** | | [optional] | -| **is_expense** | **Boolean** | | [optional] | -| **is_fee** | **Boolean** | | [optional] | -| **is_income** | **Boolean** | | [optional] | -| **is_international** | **Boolean** | | [optional] | -| **is_overdraft_fee** | **Boolean** | | [optional] | -| **is_payroll_advance** | **Boolean** | | [optional] | -| **merchant_category_code** | **Integer** | | [optional] | -| **merchant_guid** | **String** | | [optional] | -| **original_description** | **String** | | [optional] | -| **type** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::EnhanceTransaction.new( - amount: 21.33, - category: Fast Food, - description: IN-N-OUT BURGER, - id: ID-123, - is_bill_pay: false, - is_direct_deposit: false, - is_expense: false, - is_fee: false, - is_income: false, - is_international: false, - is_overdraft_fee: false, - is_payroll_advance: false, - merchant_category_code: 5411, - merchant_guid: MCH-7ed79542-884d-2b1b-dd74-501c5cc9d25b, - original_description: IN-N-OUT BURGER, - type: DEBIT -) -``` - diff --git a/docs/Holding.md b/docs/Holding.md deleted file mode 100644 index a0fc2b2..0000000 --- a/docs/Holding.md +++ /dev/null @@ -1,52 +0,0 @@ -# MxPlatformRuby::Holding - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **account_guid** | **String** | | [optional] | -| **cost_basis** | **Float** | | [optional] | -| **created_at** | **String** | | [optional] | -| **currency_code** | **String** | | [optional] | -| **cusip** | **String** | | [optional] | -| **daily_change** | **Float** | | [optional] | -| **description** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **holding_type** | **String** | | [optional] | -| **id** | **String** | | [optional] | -| **market_value** | **Float** | | [optional] | -| **member_guid** | **String** | | [optional] | -| **metadata** | **String** | | [optional] | -| **purchase_price** | **Float** | | [optional] | -| **shares** | **Float** | | [optional] | -| **symbol** | **String** | | [optional] | -| **updated_at** | **String** | | [optional] | -| **user_guid** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Holding.new( - account_guid: HOL-d65683e8-9eab-26bb-bcfd-ced159c9abe2, - cost_basis: 827.0, - created_at: 2015-04-13T18:01:23.000Z, - currency_code: USD, - cusip: 18383M878, - daily_change: 2.5, - description: Guggenheim Defensive Equity ETF, - guid: HOL-d65683e8-9eab-26bb-bcfd-ced159c9abe2, - holding_type: MONEY_MARKET, - id: ID-123, - market_value: 989.5, - member_guid: MBR-d65683e8-9eab-26bb-bcfd-ced159c9abe, - metadata: metadata, - purchase_price: 26.3, - shares: 6.0, - symbol: DEF, - updated_at: 2015-04-13T18:01:23.000Z, - user_guid: USR-743e5d7f-1116-28fa-5de1-d3ba02e41d8d -) -``` - diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md deleted file mode 100644 index 5e50dbc..0000000 --- a/docs/InlineResponse200.md +++ /dev/null @@ -1,18 +0,0 @@ -# MxPlatformRuby::InlineResponse200 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **tag** | [**Tag**](Tag.md) | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::InlineResponse200.new( - tag: null -) -``` - diff --git a/docs/Institution.md b/docs/Institution.md deleted file mode 100644 index 23c9536..0000000 --- a/docs/Institution.md +++ /dev/null @@ -1,36 +0,0 @@ -# MxPlatformRuby::Institution - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **code** | **String** | | [optional] | -| **medium_logo_url** | **String** | | [optional] | -| **name** | **String** | | [optional] | -| **small_logo_url** | **String** | | [optional] | -| **supports_account_identification** | **Boolean** | | [optional] | -| **supports_account_statement** | **Boolean** | | [optional] | -| **supports_account_verification** | **Boolean** | | [optional] | -| **supports_oauth** | **Boolean** | | [optional] | -| **supports_transaction_history** | **Boolean** | | [optional] | -| **url** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Institution.new( - code: chase, - medium_logo_url: https://content.moneydesktop.com/storage/MD_Assets/Ipad%20Logos/100x100/default_100x100.png, - name: Chase Bank, - small_logo_url: https://content.moneydesktop.com/storage/MD_Assets/Ipad%20Logos/50x50/default_50x50.png, - supports_account_identification: true, - supports_account_statement: true, - supports_account_verification: true, - supports_oauth: true, - supports_transaction_history: true, - url: https://www.chase.com -) -``` - diff --git a/docs/Member.md b/docs/Member.md deleted file mode 100644 index e728405..0000000 --- a/docs/Member.md +++ /dev/null @@ -1,40 +0,0 @@ -# MxPlatformRuby::Member - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **aggregated_at** | **String** | | [optional] | -| **connection_status** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **id** | **String** | | [optional] | -| **institution_code** | **String** | | [optional] | -| **is_being_aggregated** | **Boolean** | | [optional] | -| **is_oauth** | **Boolean** | | [optional] | -| **metadata** | **String** | | [optional] | -| **name** | **String** | | [optional] | -| **oauth_window_uri** | **String** | | [optional] | -| **successfully_aggregated_at** | **String** | | [optional] | -| **user_guid** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Member.new( - aggregated_at: 2016-10-13T18:07:57.000Z, - connection_status: CONNECTED, - guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b, - id: unique_id, - institution_code: chase, - is_being_aggregated: false, - is_oauth: false, - metadata: \"credentials_last_refreshed_at\": \"2015-10-15\", - name: Chase Bank, - oauth_window_uri: int-widgets.moneydesktop.com/oauth/predirect_to/MBR-df96fd60-7122-4464-b3c2-ff11d8c74f6f/p8v7rxpxg3pdAsfgwxcrwxwhz3Zbygxfr6wAb931qv91hpb57k6bkr6t6m9djrfrfd467p8xkgqp6w7k1r9g8k8bfxqbfw2lq5tdwjq2sngAx76fm0jrw0dpmbtlkxchgjsw3r7r0hhq6A8sshqptfxql2rt123shfpkyhhpfvy67yvprbkb7lmlyrpwsd9yj0s22pmsyjhcw7d2q44d9fsxn5kfsmr2zqc79c2AxAx5gkjgbczf22A1sjx70t2pvnggzyh55s7bh62dd5wq7f1r4x90mcxn1tfhhrq5b09mjkt5hg66cjn700pcf6fgA42lbsp7v1pdch85mswycrp21c6j2sxffm14Asg3?skip_aggregation=false&referral_source=APP&ui_message_webview_url_scheme=myapp, - successfully_aggregated_at: 2016-10-13T17:57:38.000Z, - user_guid: USR-fa7537f3-48aa-a683-a02a-b18940482f54 -) -``` - diff --git a/docs/MemberStatus.md b/docs/MemberStatus.md deleted file mode 100644 index 0ec1509..0000000 --- a/docs/MemberStatus.md +++ /dev/null @@ -1,34 +0,0 @@ -# MxPlatformRuby::MemberStatus - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **aggregated_at** | **String** | | [optional] | -| **challenges** | [**Array<Challenge>**](Challenge.md) | | [optional] | -| **connection_status** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **has_processed_accounts** | **Boolean** | | [optional] | -| **has_processed_transactions** | **Boolean** | | [optional] | -| **is_authenticated** | **Boolean** | | [optional] | -| **is_being_aggregated** | **Boolean** | | [optional] | -| **successfully_aggregated_at** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::MemberStatus.new( - aggregated_at: 2016-10-13T18:07:57.000Z, - challenges: null, - connection_status: CONNECTED, - guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b, - has_processed_accounts: true, - has_processed_transactions: false, - is_authenticated: false, - is_being_aggregated: false, - successfully_aggregated_at: 2016-10-13T17:57:38.000Z -) -``` - diff --git a/docs/Merchant.md b/docs/Merchant.md deleted file mode 100644 index 5bc95c1..0000000 --- a/docs/Merchant.md +++ /dev/null @@ -1,28 +0,0 @@ -# MxPlatformRuby::Merchant - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **created_at** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **logo_url** | **String** | | [optional] | -| **name** | **String** | | [optional] | -| **updated_at** | **String** | | [optional] | -| **website_url** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Merchant.new( - created_at: 2017-04-20T19:30:12.000Z, - guid: MCH-7ed79542-884d-2b1b-dd74-501c5cc9d25b, - logo_url: https://s3.amazonaws.com/MD_Assets/merchant_logos/comcast.png, - name: Comcast, - updated_at: 2018-09-28T21:13:53.000Z, - website_url: https://www.xfinity.com -) -``` - diff --git a/docs/OAuthWindow.md b/docs/OAuthWindow.md deleted file mode 100644 index ca0a285..0000000 --- a/docs/OAuthWindow.md +++ /dev/null @@ -1,20 +0,0 @@ -# MxPlatformRuby::OAuthWindow - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **guid** | **String** | | [optional] | -| **oauth_window_uri** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::OAuthWindow.new( - guid: MBR-df96fd60-7122-4464-b3c2-ff11d8c74f6f, - oauth_window_uri: int-widgets.moneydesktop.com/oauth/predirect_to/MBR-df96fd60-7122-4464-b3c2-ff11d8c74f6f/zgknnw5k7dmztn2njmwlgz574mZlnft6vdrv7kzn9ptj325th6c5p0w6c7j83Ap1bqg01mhsr1bqjgf2fry3ly9wff497c6fcczbyrfgj7s39cygw95Akl7vlpmcAy2kmvh1mlkytg7jA1z3vnw1w3zx2r1wt65s6f6r3ryqqrysl9qA1kr6cAj6vhr1zl325Azz6hx52j1ll3vwbvvbv5xzy7d6csplyw25brA7147vAfq29ArjjAj4qmc6r6h457hkcj2946m0kjp2xzpkz6hz55lsp3Avmdb8dsq4xzqmzzqk68s6bp5tj9jsskw4wvcb95vm4fwh9w8phgp67hfj2flrtwcy5bxbtk74?skip_aggregation=false -) -``` - diff --git a/docs/Pagination.md b/docs/Pagination.md deleted file mode 100644 index 08e1891..0000000 --- a/docs/Pagination.md +++ /dev/null @@ -1,24 +0,0 @@ -# MxPlatformRuby::Pagination - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **current_page** | **Integer** | | [optional] | -| **per_page** | **Integer** | | [optional] | -| **total_entries** | **Integer** | | [optional] | -| **total_pages** | **Integer** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Pagination.new( - current_page: 1, - per_page: 25, - total_entries: 1, - total_pages: 1 -) -``` - diff --git a/docs/Statement.md b/docs/Statement.md deleted file mode 100644 index 7cbb0f1..0000000 --- a/docs/Statement.md +++ /dev/null @@ -1,32 +0,0 @@ -# MxPlatformRuby::Statement - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **account_guid** | **String** | | [optional] | -| **content_hash** | **String** | | [optional] | -| **created_at** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **member_guid** | **String** | | [optional] | -| **updated_at** | **String** | | [optional] | -| **uri** | **String** | | [optional] | -| **user_guid** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Statement.new( - account_guid: ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1, - content_hash: ca53785b812d00ef821c3d94bfd6e5bbc0020504410589b7ea8552169f021981, - created_at: 2016-10-13T18:08:00+00:00, - guid: STA-737a344b-caae-0f6e-1384-01f52e75dcb1, - member_guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b, - updated_at: 2016-10-13T18:09:00+00:00, - uri: uri/to/statement, - user_guid: USR-fa7537f3-48aa-a683-a02a-b18940482f54 -) -``` - diff --git a/docs/Tag.md b/docs/Tag.md deleted file mode 100644 index b142770..0000000 --- a/docs/Tag.md +++ /dev/null @@ -1,22 +0,0 @@ -# MxPlatformRuby::Tag - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **guid** | **String** | | [optional] | -| **name** | **String** | | [optional] | -| **user_guid** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Tag.new( - guid: TAG-aef36e72-6294-4c38-844d-e573e80aed52, - name: MY TAG, - user_guid: USR-11141024-90b3-1bce-cac9-c06ced52ab4c -) -``` - diff --git a/docs/Tagging.md b/docs/Tagging.md deleted file mode 100644 index 339b177..0000000 --- a/docs/Tagging.md +++ /dev/null @@ -1,26 +0,0 @@ -# MxPlatformRuby::Tagging - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **guid** | **String** | | [optional] | -| **member_is_managed_by_user** | **Boolean** | | [optional] | -| **tag_guid** | **String** | | [optional] | -| **transaction_guid** | **String** | | [optional] | -| **user_guid** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Tagging.new( - guid: TGN-007f5486-17e1-45fc-8b87-8f03984430fe, - member_is_managed_by_user: false, - tag_guid: TAG-40faf068-abb4-405c-8f6a-e883ed541fff, - transaction_guid: TRN-810828b0-5210-4878-9bd3-f4ce514f90c4, - user_guid: USR-11141024-90b3-1bce-cac9-c06ced52ab4c -) -``` - diff --git a/docs/Transaction.md b/docs/Transaction.md deleted file mode 100644 index cf765aa..0000000 --- a/docs/Transaction.md +++ /dev/null @@ -1,88 +0,0 @@ -# MxPlatformRuby::Transaction - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **account_guid** | **String** | | [optional] | -| **amount** | **Float** | | [optional] | -| **category** | **String** | | [optional] | -| **check_number_string** | **String** | | [optional] | -| **created_at** | **String** | | [optional] | -| **currency_code** | **String** | | [optional] | -| **date** | **String** | | [optional] | -| **description** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **id** | **String** | | [optional] | -| **is_bill_pay** | **Boolean** | | [optional] | -| **is_direct_deposit** | **Boolean** | | [optional] | -| **is_expense** | **Boolean** | | [optional] | -| **is_fee** | **Boolean** | | [optional] | -| **is_income** | **Boolean** | | [optional] | -| **is_international** | **Boolean** | | [optional] | -| **is_overdraft_fee** | **Boolean** | | [optional] | -| **is_payroll_advance** | **Boolean** | | [optional] | -| **is_recurring** | **Boolean** | | [optional] | -| **is_subscription** | **Boolean** | | [optional] | -| **latitude** | **Float** | | [optional] | -| **localized_description** | **String** | | [optional] | -| **localized_memo** | **String** | | [optional] | -| **longitude** | **Float** | | [optional] | -| **member_guid** | **String** | | [optional] | -| **memo** | **String** | | [optional] | -| **merchant_category_code** | **Integer** | | [optional] | -| **merchant_guid** | **String** | | [optional] | -| **original_description** | **String** | | [optional] | -| **posted_at** | **String** | | [optional] | -| **status** | **String** | | [optional] | -| **top_level_category** | **String** | | [optional] | -| **transacted_at** | **String** | | [optional] | -| **type** | **String** | | [optional] | -| **updated_at** | **String** | | [optional] | -| **user_guid** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Transaction.new( - account_guid: ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1, - amount: 61.11, - category: Groceries, - check_number_string: 6812, - created_at: 2016-10-06T09:43:42.000Z, - currency_code: USD, - date: 2013-09-23T00:00:00.000Z, - description: Whole foods, - guid: TRN-265abee9-889b-af6a-c69b-25157db2bdd9, - id: transaction-265abee9-889b-af6a-c69b-25157db2bdd9, - is_bill_pay: false, - is_direct_deposit: false, - is_expense: true, - is_fee: false, - is_income: false, - is_international: false, - is_overdraft_fee: false, - is_payroll_advance: false, - is_recurring: false, - is_subscription: false, - latitude: -43.2075, - localized_description: This is a localized_description, - localized_memo: This is a localized_memo, - longitude: 139.691706, - member_guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b, - memo: This is a memo, - merchant_category_code: 5411, - merchant_guid: MCH-7ed79542-884d-2b1b-dd74-501c5cc9d25b, - original_description: WHOLEFDS TSQ 102, - posted_at: 2016-10-07T06:00:00.000Z, - status: POSTED, - top_level_category: Food & Dining, - transacted_at: 2016-10-06T13:00:00.000Z, - type: DEBIT, - updated_at: 2016-10-07T05:49:12.000Z, - user_guid: USR-fa7537f3-48aa-a683-a02a-b18940482f54 -) -``` - diff --git a/docs/TransactionRule.md b/docs/TransactionRule.md deleted file mode 100644 index c0fdf6e..0000000 --- a/docs/TransactionRule.md +++ /dev/null @@ -1,30 +0,0 @@ -# MxPlatformRuby::TransactionRule - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **category_guid** | **String** | | [optional] | -| **created_at** | **String** | | [optional] | -| **description** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **match_description** | **String** | | [optional] | -| **updated_at** | **String** | | [optional] | -| **user_guid** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::TransactionRule.new( - category_guid: CAT-b1de2a04-db08-b6ed-f6fe-ca2f5b11c2d0, - created_at: 2018-10-02T22:00:50+00:00, - description: Wal-mart food storage, - guid: TXR-a080e0f9-a2d4-4d6f-9e03-672cc357a4d3, - match_description: Wal-mart, - updated_at: 2018-10-02T23:54:40+00:00, - user_guid: USR-22fc3203-b3e6-8340-43db-8e50b2f56995 -) -``` - diff --git a/docs/User.md b/docs/User.md deleted file mode 100644 index c5871af..0000000 --- a/docs/User.md +++ /dev/null @@ -1,26 +0,0 @@ -# MxPlatformRuby::User - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **email** | **String** | | [optional] | -| **guid** | **String** | | [optional] | -| **id** | **String** | | [optional] | -| **is_disabled** | **Boolean** | | [optional] | -| **metadata** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::User.new( - email: email@provider.com, - guid: USR-d74cb14f-fd0a-449f-991b-e0362a63d9c6, - id: My-Unique-ID, - is_disabled: false, - metadata: {\"first_name\": \"Steven\", \"last_name\": \"Universe\"} -) -``` - diff --git a/docs/Widget.md b/docs/Widget.md deleted file mode 100644 index 6ed9ae6..0000000 --- a/docs/Widget.md +++ /dev/null @@ -1,22 +0,0 @@ -# MxPlatformRuby::Widget - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **type** | **String** | | [optional] | -| **url** | **String** | | [optional] | -| **user_id** | **String** | | [optional] | - -## Example - -```ruby -require 'mx-platform-ruby' - -instance = MxPlatformRuby::Widget.new( - type: connect_widget, - url: https://int-widgets.moneydesktop.com/md/connect/yxcdk7f1nb99jwApp34lA24m0AZ8rzprgmw17gm8z8h2AzjyAnd1rj42qfv42r3xnn07Amfwlg3j09hwp8bkq8tc5z21j33xjggmp2qtlpkz2v4gywfhfn31l44tx2w91bfc2thc58j4syqp0hgxcyvA4g7754hk7gjc56kt7tc36s45mmkdz2jqqqydspytmtr3dAb9jh6fkb24f3zkfpdjj0v77f0vmrtzvzxkmxz7dklsq8gd0gstkbhlw5bgpgc3m9mAtpAcr2w15gwy5xc4blgxppl42Avnm63291z3cyp0wm3lqgmvgzdAddct423gAdqxdlfx5d4mvc0ck2gt7ktqgks4vxq1pAy5, - user_id: U-jeff-201709221210 -) -``` - diff --git a/lib/mx-platform-ruby/models/account.rb b/lib/mx-platform-ruby/models/account.rb deleted file mode 100644 index 194e483..0000000 --- a/lib/mx-platform-ruby/models/account.rb +++ /dev/null @@ -1,569 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Account - attr_accessor :account_number - - attr_accessor :apr - - attr_accessor :apy - - attr_accessor :available_balance - - attr_accessor :available_credit - - attr_accessor :balance - - attr_accessor :cash_balance - - attr_accessor :cash_surrender_value - - attr_accessor :created_at - - attr_accessor :credit_limit - - attr_accessor :currency_code - - attr_accessor :day_payment_is_due - - attr_accessor :death_benefit - - attr_accessor :guid - - attr_accessor :holdings_value - - attr_accessor :id - - attr_accessor :institution_code - - attr_accessor :insured_name - - attr_accessor :interest_rate - - attr_accessor :is_closed - - attr_accessor :is_hidden - - attr_accessor :last_payment - - attr_accessor :last_payment_at - - attr_accessor :loan_amount - - attr_accessor :matures_on - - attr_accessor :member_guid - - attr_accessor :minimum_balance - - attr_accessor :minimum_payment - - attr_accessor :name - - attr_accessor :original_balance - - attr_accessor :pay_out_amount - - attr_accessor :payment_due_at - - attr_accessor :payoff_balance - - attr_accessor :premium_amount - - attr_accessor :started_on - - attr_accessor :subtype - - attr_accessor :total_account_value - - attr_accessor :type - - attr_accessor :updated_at - - attr_accessor :user_guid - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'account_number' => :'account_number', - :'apr' => :'apr', - :'apy' => :'apy', - :'available_balance' => :'available_balance', - :'available_credit' => :'available_credit', - :'balance' => :'balance', - :'cash_balance' => :'cash_balance', - :'cash_surrender_value' => :'cash_surrender_value', - :'created_at' => :'created_at', - :'credit_limit' => :'credit_limit', - :'currency_code' => :'currency_code', - :'day_payment_is_due' => :'day_payment_is_due', - :'death_benefit' => :'death_benefit', - :'guid' => :'guid', - :'holdings_value' => :'holdings_value', - :'id' => :'id', - :'institution_code' => :'institution_code', - :'insured_name' => :'insured_name', - :'interest_rate' => :'interest_rate', - :'is_closed' => :'is_closed', - :'is_hidden' => :'is_hidden', - :'last_payment' => :'last_payment', - :'last_payment_at' => :'last_payment_at', - :'loan_amount' => :'loan_amount', - :'matures_on' => :'matures_on', - :'member_guid' => :'member_guid', - :'minimum_balance' => :'minimum_balance', - :'minimum_payment' => :'minimum_payment', - :'name' => :'name', - :'original_balance' => :'original_balance', - :'pay_out_amount' => :'pay_out_amount', - :'payment_due_at' => :'payment_due_at', - :'payoff_balance' => :'payoff_balance', - :'premium_amount' => :'premium_amount', - :'started_on' => :'started_on', - :'subtype' => :'subtype', - :'total_account_value' => :'total_account_value', - :'type' => :'type', - :'updated_at' => :'updated_at', - :'user_guid' => :'user_guid' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'account_number' => :'String', - :'apr' => :'Float', - :'apy' => :'Float', - :'available_balance' => :'Float', - :'available_credit' => :'Float', - :'balance' => :'Float', - :'cash_balance' => :'Float', - :'cash_surrender_value' => :'Float', - :'created_at' => :'String', - :'credit_limit' => :'Float', - :'currency_code' => :'String', - :'day_payment_is_due' => :'Integer', - :'death_benefit' => :'Integer', - :'guid' => :'String', - :'holdings_value' => :'Float', - :'id' => :'String', - :'institution_code' => :'String', - :'insured_name' => :'String', - :'interest_rate' => :'Float', - :'is_closed' => :'Boolean', - :'is_hidden' => :'Boolean', - :'last_payment' => :'Float', - :'last_payment_at' => :'String', - :'loan_amount' => :'Float', - :'matures_on' => :'String', - :'member_guid' => :'String', - :'minimum_balance' => :'Float', - :'minimum_payment' => :'Float', - :'name' => :'String', - :'original_balance' => :'Float', - :'pay_out_amount' => :'Float', - :'payment_due_at' => :'String', - :'payoff_balance' => :'Float', - :'premium_amount' => :'Float', - :'started_on' => :'String', - :'subtype' => :'String', - :'total_account_value' => :'Float', - :'type' => :'String', - :'updated_at' => :'String', - :'user_guid' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Account` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Account`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'account_number') - self.account_number = attributes[:'account_number'] - end - - if attributes.key?(:'apr') - self.apr = attributes[:'apr'] - end - - if attributes.key?(:'apy') - self.apy = attributes[:'apy'] - end - - if attributes.key?(:'available_balance') - self.available_balance = attributes[:'available_balance'] - end - - if attributes.key?(:'available_credit') - self.available_credit = attributes[:'available_credit'] - end - - if attributes.key?(:'balance') - self.balance = attributes[:'balance'] - end - - if attributes.key?(:'cash_balance') - self.cash_balance = attributes[:'cash_balance'] - end - - if attributes.key?(:'cash_surrender_value') - self.cash_surrender_value = attributes[:'cash_surrender_value'] - end - - if attributes.key?(:'created_at') - self.created_at = attributes[:'created_at'] - end - - if attributes.key?(:'credit_limit') - self.credit_limit = attributes[:'credit_limit'] - end - - if attributes.key?(:'currency_code') - self.currency_code = attributes[:'currency_code'] - end - - if attributes.key?(:'day_payment_is_due') - self.day_payment_is_due = attributes[:'day_payment_is_due'] - end - - if attributes.key?(:'death_benefit') - self.death_benefit = attributes[:'death_benefit'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'holdings_value') - self.holdings_value = attributes[:'holdings_value'] - end - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.key?(:'institution_code') - self.institution_code = attributes[:'institution_code'] - end - - if attributes.key?(:'insured_name') - self.insured_name = attributes[:'insured_name'] - end - - if attributes.key?(:'interest_rate') - self.interest_rate = attributes[:'interest_rate'] - end - - if attributes.key?(:'is_closed') - self.is_closed = attributes[:'is_closed'] - end - - if attributes.key?(:'is_hidden') - self.is_hidden = attributes[:'is_hidden'] - end - - if attributes.key?(:'last_payment') - self.last_payment = attributes[:'last_payment'] - end - - if attributes.key?(:'last_payment_at') - self.last_payment_at = attributes[:'last_payment_at'] - end - - if attributes.key?(:'loan_amount') - self.loan_amount = attributes[:'loan_amount'] - end - - if attributes.key?(:'matures_on') - self.matures_on = attributes[:'matures_on'] - end - - if attributes.key?(:'member_guid') - self.member_guid = attributes[:'member_guid'] - end - - if attributes.key?(:'minimum_balance') - self.minimum_balance = attributes[:'minimum_balance'] - end - - if attributes.key?(:'minimum_payment') - self.minimum_payment = attributes[:'minimum_payment'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'original_balance') - self.original_balance = attributes[:'original_balance'] - end - - if attributes.key?(:'pay_out_amount') - self.pay_out_amount = attributes[:'pay_out_amount'] - end - - if attributes.key?(:'payment_due_at') - self.payment_due_at = attributes[:'payment_due_at'] - end - - if attributes.key?(:'payoff_balance') - self.payoff_balance = attributes[:'payoff_balance'] - end - - if attributes.key?(:'premium_amount') - self.premium_amount = attributes[:'premium_amount'] - end - - if attributes.key?(:'started_on') - self.started_on = attributes[:'started_on'] - end - - if attributes.key?(:'subtype') - self.subtype = attributes[:'subtype'] - end - - if attributes.key?(:'total_account_value') - self.total_account_value = attributes[:'total_account_value'] - end - - if attributes.key?(:'type') - self.type = attributes[:'type'] - end - - if attributes.key?(:'updated_at') - self.updated_at = attributes[:'updated_at'] - end - - if attributes.key?(:'user_guid') - self.user_guid = attributes[:'user_guid'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - account_number == o.account_number && - apr == o.apr && - apy == o.apy && - available_balance == o.available_balance && - available_credit == o.available_credit && - balance == o.balance && - cash_balance == o.cash_balance && - cash_surrender_value == o.cash_surrender_value && - created_at == o.created_at && - credit_limit == o.credit_limit && - currency_code == o.currency_code && - day_payment_is_due == o.day_payment_is_due && - death_benefit == o.death_benefit && - guid == o.guid && - holdings_value == o.holdings_value && - id == o.id && - institution_code == o.institution_code && - insured_name == o.insured_name && - interest_rate == o.interest_rate && - is_closed == o.is_closed && - is_hidden == o.is_hidden && - last_payment == o.last_payment && - last_payment_at == o.last_payment_at && - loan_amount == o.loan_amount && - matures_on == o.matures_on && - member_guid == o.member_guid && - minimum_balance == o.minimum_balance && - minimum_payment == o.minimum_payment && - name == o.name && - original_balance == o.original_balance && - pay_out_amount == o.pay_out_amount && - payment_due_at == o.payment_due_at && - payoff_balance == o.payoff_balance && - premium_amount == o.premium_amount && - started_on == o.started_on && - subtype == o.subtype && - total_account_value == o.total_account_value && - type == o.type && - updated_at == o.updated_at && - user_guid == o.user_guid - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [account_number, apr, apy, available_balance, available_credit, balance, cash_balance, cash_surrender_value, created_at, credit_limit, currency_code, day_payment_is_due, death_benefit, guid, holdings_value, id, institution_code, insured_name, interest_rate, is_closed, is_hidden, last_payment, last_payment_at, loan_amount, matures_on, member_guid, minimum_balance, minimum_payment, name, original_balance, pay_out_amount, payment_due_at, payoff_balance, premium_amount, started_on, subtype, total_account_value, type, updated_at, user_guid].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/account_number.rb b/lib/mx-platform-ruby/models/account_number.rb deleted file mode 100644 index 9b849d0..0000000 --- a/lib/mx-platform-ruby/models/account_number.rb +++ /dev/null @@ -1,281 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class AccountNumber - attr_accessor :account_guid - - attr_accessor :account_number - - attr_accessor :guid - - attr_accessor :institution_number - - attr_accessor :member_guid - - attr_accessor :routing_number - - attr_accessor :transit_number - - attr_accessor :user_guid - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'account_guid' => :'account_guid', - :'account_number' => :'account_number', - :'guid' => :'guid', - :'institution_number' => :'institution_number', - :'member_guid' => :'member_guid', - :'routing_number' => :'routing_number', - :'transit_number' => :'transit_number', - :'user_guid' => :'user_guid' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'account_guid' => :'String', - :'account_number' => :'String', - :'guid' => :'String', - :'institution_number' => :'String', - :'member_guid' => :'String', - :'routing_number' => :'String', - :'transit_number' => :'String', - :'user_guid' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::AccountNumber` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::AccountNumber`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'account_guid') - self.account_guid = attributes[:'account_guid'] - end - - if attributes.key?(:'account_number') - self.account_number = attributes[:'account_number'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'institution_number') - self.institution_number = attributes[:'institution_number'] - end - - if attributes.key?(:'member_guid') - self.member_guid = attributes[:'member_guid'] - end - - if attributes.key?(:'routing_number') - self.routing_number = attributes[:'routing_number'] - end - - if attributes.key?(:'transit_number') - self.transit_number = attributes[:'transit_number'] - end - - if attributes.key?(:'user_guid') - self.user_guid = attributes[:'user_guid'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - account_guid == o.account_guid && - account_number == o.account_number && - guid == o.guid && - institution_number == o.institution_number && - member_guid == o.member_guid && - routing_number == o.routing_number && - transit_number == o.transit_number && - user_guid == o.user_guid - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [account_guid, account_number, guid, institution_number, member_guid, routing_number, transit_number, user_guid].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/account_owner.rb b/lib/mx-platform-ruby/models/account_owner.rb deleted file mode 100644 index 510e8d6..0000000 --- a/lib/mx-platform-ruby/models/account_owner.rb +++ /dev/null @@ -1,317 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class AccountOwner - attr_accessor :account_guid - - attr_accessor :address - - attr_accessor :city - - attr_accessor :country - - attr_accessor :email - - attr_accessor :guid - - attr_accessor :member_guid - - attr_accessor :owner_name - - attr_accessor :phone - - attr_accessor :postal_code - - attr_accessor :state - - attr_accessor :user_guid - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'account_guid' => :'account_guid', - :'address' => :'address', - :'city' => :'city', - :'country' => :'country', - :'email' => :'email', - :'guid' => :'guid', - :'member_guid' => :'member_guid', - :'owner_name' => :'owner_name', - :'phone' => :'phone', - :'postal_code' => :'postal_code', - :'state' => :'state', - :'user_guid' => :'user_guid' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'account_guid' => :'String', - :'address' => :'String', - :'city' => :'String', - :'country' => :'String', - :'email' => :'String', - :'guid' => :'String', - :'member_guid' => :'String', - :'owner_name' => :'String', - :'phone' => :'String', - :'postal_code' => :'String', - :'state' => :'String', - :'user_guid' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::AccountOwner` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::AccountOwner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'account_guid') - self.account_guid = attributes[:'account_guid'] - end - - if attributes.key?(:'address') - self.address = attributes[:'address'] - end - - if attributes.key?(:'city') - self.city = attributes[:'city'] - end - - if attributes.key?(:'country') - self.country = attributes[:'country'] - end - - if attributes.key?(:'email') - self.email = attributes[:'email'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'member_guid') - self.member_guid = attributes[:'member_guid'] - end - - if attributes.key?(:'owner_name') - self.owner_name = attributes[:'owner_name'] - end - - if attributes.key?(:'phone') - self.phone = attributes[:'phone'] - end - - if attributes.key?(:'postal_code') - self.postal_code = attributes[:'postal_code'] - end - - if attributes.key?(:'state') - self.state = attributes[:'state'] - end - - if attributes.key?(:'user_guid') - self.user_guid = attributes[:'user_guid'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - account_guid == o.account_guid && - address == o.address && - city == o.city && - country == o.country && - email == o.email && - guid == o.guid && - member_guid == o.member_guid && - owner_name == o.owner_name && - phone == o.phone && - postal_code == o.postal_code && - state == o.state && - user_guid == o.user_guid - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [account_guid, address, city, country, email, guid, member_guid, owner_name, phone, postal_code, state, user_guid].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/category.rb b/lib/mx-platform-ruby/models/category.rb deleted file mode 100644 index 321b336..0000000 --- a/lib/mx-platform-ruby/models/category.rb +++ /dev/null @@ -1,281 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Category - attr_accessor :created_at - - attr_accessor :guid - - attr_accessor :is_default - - attr_accessor :is_income - - attr_accessor :metadata - - attr_accessor :name - - attr_accessor :parent_guid - - attr_accessor :updated_at - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'created_at' => :'created_at', - :'guid' => :'guid', - :'is_default' => :'is_default', - :'is_income' => :'is_income', - :'metadata' => :'metadata', - :'name' => :'name', - :'parent_guid' => :'parent_guid', - :'updated_at' => :'updated_at' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'created_at' => :'String', - :'guid' => :'String', - :'is_default' => :'Boolean', - :'is_income' => :'Boolean', - :'metadata' => :'String', - :'name' => :'String', - :'parent_guid' => :'String', - :'updated_at' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Category` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Category`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'created_at') - self.created_at = attributes[:'created_at'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'is_default') - self.is_default = attributes[:'is_default'] - end - - if attributes.key?(:'is_income') - self.is_income = attributes[:'is_income'] - end - - if attributes.key?(:'metadata') - self.metadata = attributes[:'metadata'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'parent_guid') - self.parent_guid = attributes[:'parent_guid'] - end - - if attributes.key?(:'updated_at') - self.updated_at = attributes[:'updated_at'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - created_at == o.created_at && - guid == o.guid && - is_default == o.is_default && - is_income == o.is_income && - metadata == o.metadata && - name == o.name && - parent_guid == o.parent_guid && - updated_at == o.updated_at - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [created_at, guid, is_default, is_income, metadata, name, parent_guid, updated_at].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/challenge.rb b/lib/mx-platform-ruby/models/challenge.rb deleted file mode 100644 index 1c54901..0000000 --- a/lib/mx-platform-ruby/models/challenge.rb +++ /dev/null @@ -1,276 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Challenge - attr_accessor :field_name - - attr_accessor :guid - - attr_accessor :image_data - - attr_accessor :image_options - - attr_accessor :label - - attr_accessor :options - - attr_accessor :type - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'field_name' => :'field_name', - :'guid' => :'guid', - :'image_data' => :'image_data', - :'image_options' => :'image_options', - :'label' => :'label', - :'options' => :'options', - :'type' => :'type' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'field_name' => :'String', - :'guid' => :'String', - :'image_data' => :'String', - :'image_options' => :'Array', - :'label' => :'String', - :'options' => :'Array', - :'type' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Challenge` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Challenge`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'field_name') - self.field_name = attributes[:'field_name'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'image_data') - self.image_data = attributes[:'image_data'] - end - - if attributes.key?(:'image_options') - if (value = attributes[:'image_options']).is_a?(Array) - self.image_options = value - end - end - - if attributes.key?(:'label') - self.label = attributes[:'label'] - end - - if attributes.key?(:'options') - if (value = attributes[:'options']).is_a?(Array) - self.options = value - end - end - - if attributes.key?(:'type') - self.type = attributes[:'type'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - field_name == o.field_name && - guid == o.guid && - image_data == o.image_data && - image_options == o.image_options && - label == o.label && - options == o.options && - type == o.type - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [field_name, guid, image_data, image_options, label, options, type].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/challenge_image_options.rb b/lib/mx-platform-ruby/models/challenge_image_options.rb deleted file mode 100644 index 89c81ad..0000000 --- a/lib/mx-platform-ruby/models/challenge_image_options.rb +++ /dev/null @@ -1,236 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class ChallengeImageOptions - attr_accessor :data_uri - - attr_accessor :label - - attr_accessor :value - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'data_uri' => :'data_uri', - :'label' => :'label', - :'value' => :'value' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'data_uri' => :'String', - :'label' => :'String', - :'value' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::ChallengeImageOptions` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::ChallengeImageOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'data_uri') - self.data_uri = attributes[:'data_uri'] - end - - if attributes.key?(:'label') - self.label = attributes[:'label'] - end - - if attributes.key?(:'value') - self.value = attributes[:'value'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - data_uri == o.data_uri && - label == o.label && - value == o.value - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [data_uri, label, value].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/challenge_options.rb b/lib/mx-platform-ruby/models/challenge_options.rb deleted file mode 100644 index 41761df..0000000 --- a/lib/mx-platform-ruby/models/challenge_options.rb +++ /dev/null @@ -1,227 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class ChallengeOptions - attr_accessor :label - - attr_accessor :value - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'label' => :'label', - :'value' => :'value' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'label' => :'String', - :'value' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::ChallengeOptions` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::ChallengeOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'label') - self.label = attributes[:'label'] - end - - if attributes.key?(:'value') - self.value = attributes[:'value'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - label == o.label && - value == o.value - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [label, value].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/connect_widget.rb b/lib/mx-platform-ruby/models/connect_widget.rb deleted file mode 100644 index ca14de6..0000000 --- a/lib/mx-platform-ruby/models/connect_widget.rb +++ /dev/null @@ -1,227 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class ConnectWidget - attr_accessor :connect_widget_url - - attr_accessor :guid - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'connect_widget_url' => :'connect_widget_url', - :'guid' => :'guid' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'connect_widget_url' => :'String', - :'guid' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::ConnectWidget` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::ConnectWidget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'connect_widget_url') - self.connect_widget_url = attributes[:'connect_widget_url'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - connect_widget_url == o.connect_widget_url && - guid == o.guid - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [connect_widget_url, guid].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/credential.rb b/lib/mx-platform-ruby/models/credential.rb deleted file mode 100644 index e1cf000..0000000 --- a/lib/mx-platform-ruby/models/credential.rb +++ /dev/null @@ -1,254 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Credential - attr_accessor :display_order - - attr_accessor :field_name - - attr_accessor :field_type - - attr_accessor :guid - - attr_accessor :label - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'display_order' => :'display_order', - :'field_name' => :'field_name', - :'field_type' => :'field_type', - :'guid' => :'guid', - :'label' => :'label' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'display_order' => :'Integer', - :'field_name' => :'String', - :'field_type' => :'String', - :'guid' => :'String', - :'label' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Credential` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Credential`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'display_order') - self.display_order = attributes[:'display_order'] - end - - if attributes.key?(:'field_name') - self.field_name = attributes[:'field_name'] - end - - if attributes.key?(:'field_type') - self.field_type = attributes[:'field_type'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'label') - self.label = attributes[:'label'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - display_order == o.display_order && - field_name == o.field_name && - field_type == o.field_type && - guid == o.guid && - label == o.label - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [display_order, field_name, field_type, guid, label].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/enhance_transaction.rb b/lib/mx-platform-ruby/models/enhance_transaction.rb deleted file mode 100644 index 0e8be04..0000000 --- a/lib/mx-platform-ruby/models/enhance_transaction.rb +++ /dev/null @@ -1,353 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class EnhanceTransaction - attr_accessor :amount - - attr_accessor :category - - attr_accessor :description - - attr_accessor :id - - attr_accessor :is_bill_pay - - attr_accessor :is_direct_deposit - - attr_accessor :is_expense - - attr_accessor :is_fee - - attr_accessor :is_income - - attr_accessor :is_international - - attr_accessor :is_overdraft_fee - - attr_accessor :is_payroll_advance - - attr_accessor :merchant_category_code - - attr_accessor :merchant_guid - - attr_accessor :original_description - - attr_accessor :type - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'amount' => :'amount', - :'category' => :'category', - :'description' => :'description', - :'id' => :'id', - :'is_bill_pay' => :'is_bill_pay', - :'is_direct_deposit' => :'is_direct_deposit', - :'is_expense' => :'is_expense', - :'is_fee' => :'is_fee', - :'is_income' => :'is_income', - :'is_international' => :'is_international', - :'is_overdraft_fee' => :'is_overdraft_fee', - :'is_payroll_advance' => :'is_payroll_advance', - :'merchant_category_code' => :'merchant_category_code', - :'merchant_guid' => :'merchant_guid', - :'original_description' => :'original_description', - :'type' => :'type' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'amount' => :'Float', - :'category' => :'String', - :'description' => :'String', - :'id' => :'String', - :'is_bill_pay' => :'Boolean', - :'is_direct_deposit' => :'Boolean', - :'is_expense' => :'Boolean', - :'is_fee' => :'Boolean', - :'is_income' => :'Boolean', - :'is_international' => :'Boolean', - :'is_overdraft_fee' => :'Boolean', - :'is_payroll_advance' => :'Boolean', - :'merchant_category_code' => :'Integer', - :'merchant_guid' => :'String', - :'original_description' => :'String', - :'type' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::EnhanceTransaction` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::EnhanceTransaction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'amount') - self.amount = attributes[:'amount'] - end - - if attributes.key?(:'category') - self.category = attributes[:'category'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.key?(:'is_bill_pay') - self.is_bill_pay = attributes[:'is_bill_pay'] - end - - if attributes.key?(:'is_direct_deposit') - self.is_direct_deposit = attributes[:'is_direct_deposit'] - end - - if attributes.key?(:'is_expense') - self.is_expense = attributes[:'is_expense'] - end - - if attributes.key?(:'is_fee') - self.is_fee = attributes[:'is_fee'] - end - - if attributes.key?(:'is_income') - self.is_income = attributes[:'is_income'] - end - - if attributes.key?(:'is_international') - self.is_international = attributes[:'is_international'] - end - - if attributes.key?(:'is_overdraft_fee') - self.is_overdraft_fee = attributes[:'is_overdraft_fee'] - end - - if attributes.key?(:'is_payroll_advance') - self.is_payroll_advance = attributes[:'is_payroll_advance'] - end - - if attributes.key?(:'merchant_category_code') - self.merchant_category_code = attributes[:'merchant_category_code'] - end - - if attributes.key?(:'merchant_guid') - self.merchant_guid = attributes[:'merchant_guid'] - end - - if attributes.key?(:'original_description') - self.original_description = attributes[:'original_description'] - end - - if attributes.key?(:'type') - self.type = attributes[:'type'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - amount == o.amount && - category == o.category && - description == o.description && - id == o.id && - is_bill_pay == o.is_bill_pay && - is_direct_deposit == o.is_direct_deposit && - is_expense == o.is_expense && - is_fee == o.is_fee && - is_income == o.is_income && - is_international == o.is_international && - is_overdraft_fee == o.is_overdraft_fee && - is_payroll_advance == o.is_payroll_advance && - merchant_category_code == o.merchant_category_code && - merchant_guid == o.merchant_guid && - original_description == o.original_description && - type == o.type - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [amount, category, description, id, is_bill_pay, is_direct_deposit, is_expense, is_fee, is_income, is_international, is_overdraft_fee, is_payroll_advance, merchant_category_code, merchant_guid, original_description, type].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/holding.rb b/lib/mx-platform-ruby/models/holding.rb deleted file mode 100644 index f2c2004..0000000 --- a/lib/mx-platform-ruby/models/holding.rb +++ /dev/null @@ -1,371 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Holding - attr_accessor :account_guid - - attr_accessor :cost_basis - - attr_accessor :created_at - - attr_accessor :currency_code - - attr_accessor :cusip - - attr_accessor :daily_change - - attr_accessor :description - - attr_accessor :guid - - attr_accessor :holding_type - - attr_accessor :id - - attr_accessor :market_value - - attr_accessor :member_guid - - attr_accessor :metadata - - attr_accessor :purchase_price - - attr_accessor :shares - - attr_accessor :symbol - - attr_accessor :updated_at - - attr_accessor :user_guid - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'account_guid' => :'account_guid', - :'cost_basis' => :'cost_basis', - :'created_at' => :'created_at', - :'currency_code' => :'currency_code', - :'cusip' => :'cusip', - :'daily_change' => :'daily_change', - :'description' => :'description', - :'guid' => :'guid', - :'holding_type' => :'holding_type', - :'id' => :'id', - :'market_value' => :'market_value', - :'member_guid' => :'member_guid', - :'metadata' => :'metadata', - :'purchase_price' => :'purchase_price', - :'shares' => :'shares', - :'symbol' => :'symbol', - :'updated_at' => :'updated_at', - :'user_guid' => :'user_guid' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'account_guid' => :'String', - :'cost_basis' => :'Float', - :'created_at' => :'String', - :'currency_code' => :'String', - :'cusip' => :'String', - :'daily_change' => :'Float', - :'description' => :'String', - :'guid' => :'String', - :'holding_type' => :'String', - :'id' => :'String', - :'market_value' => :'Float', - :'member_guid' => :'String', - :'metadata' => :'String', - :'purchase_price' => :'Float', - :'shares' => :'Float', - :'symbol' => :'String', - :'updated_at' => :'String', - :'user_guid' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Holding` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Holding`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'account_guid') - self.account_guid = attributes[:'account_guid'] - end - - if attributes.key?(:'cost_basis') - self.cost_basis = attributes[:'cost_basis'] - end - - if attributes.key?(:'created_at') - self.created_at = attributes[:'created_at'] - end - - if attributes.key?(:'currency_code') - self.currency_code = attributes[:'currency_code'] - end - - if attributes.key?(:'cusip') - self.cusip = attributes[:'cusip'] - end - - if attributes.key?(:'daily_change') - self.daily_change = attributes[:'daily_change'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'holding_type') - self.holding_type = attributes[:'holding_type'] - end - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.key?(:'market_value') - self.market_value = attributes[:'market_value'] - end - - if attributes.key?(:'member_guid') - self.member_guid = attributes[:'member_guid'] - end - - if attributes.key?(:'metadata') - self.metadata = attributes[:'metadata'] - end - - if attributes.key?(:'purchase_price') - self.purchase_price = attributes[:'purchase_price'] - end - - if attributes.key?(:'shares') - self.shares = attributes[:'shares'] - end - - if attributes.key?(:'symbol') - self.symbol = attributes[:'symbol'] - end - - if attributes.key?(:'updated_at') - self.updated_at = attributes[:'updated_at'] - end - - if attributes.key?(:'user_guid') - self.user_guid = attributes[:'user_guid'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - account_guid == o.account_guid && - cost_basis == o.cost_basis && - created_at == o.created_at && - currency_code == o.currency_code && - cusip == o.cusip && - daily_change == o.daily_change && - description == o.description && - guid == o.guid && - holding_type == o.holding_type && - id == o.id && - market_value == o.market_value && - member_guid == o.member_guid && - metadata == o.metadata && - purchase_price == o.purchase_price && - shares == o.shares && - symbol == o.symbol && - updated_at == o.updated_at && - user_guid == o.user_guid - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [account_guid, cost_basis, created_at, currency_code, cusip, daily_change, description, guid, holding_type, id, market_value, member_guid, metadata, purchase_price, shares, symbol, updated_at, user_guid].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/inline_response200.rb b/lib/mx-platform-ruby/models/inline_response200.rb deleted file mode 100644 index a3860ff..0000000 --- a/lib/mx-platform-ruby/models/inline_response200.rb +++ /dev/null @@ -1,218 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class InlineResponse200 - attr_accessor :tag - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'tag' => :'tag' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'tag' => :'Tag' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::InlineResponse200` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::InlineResponse200`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'tag') - self.tag = attributes[:'tag'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - tag == o.tag - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [tag].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/institution.rb b/lib/mx-platform-ruby/models/institution.rb deleted file mode 100644 index 7c664c5..0000000 --- a/lib/mx-platform-ruby/models/institution.rb +++ /dev/null @@ -1,299 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Institution - attr_accessor :code - - attr_accessor :medium_logo_url - - attr_accessor :name - - attr_accessor :small_logo_url - - attr_accessor :supports_account_identification - - attr_accessor :supports_account_statement - - attr_accessor :supports_account_verification - - attr_accessor :supports_oauth - - attr_accessor :supports_transaction_history - - attr_accessor :url - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'code' => :'code', - :'medium_logo_url' => :'medium_logo_url', - :'name' => :'name', - :'small_logo_url' => :'small_logo_url', - :'supports_account_identification' => :'supports_account_identification', - :'supports_account_statement' => :'supports_account_statement', - :'supports_account_verification' => :'supports_account_verification', - :'supports_oauth' => :'supports_oauth', - :'supports_transaction_history' => :'supports_transaction_history', - :'url' => :'url' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'code' => :'String', - :'medium_logo_url' => :'String', - :'name' => :'String', - :'small_logo_url' => :'String', - :'supports_account_identification' => :'Boolean', - :'supports_account_statement' => :'Boolean', - :'supports_account_verification' => :'Boolean', - :'supports_oauth' => :'Boolean', - :'supports_transaction_history' => :'Boolean', - :'url' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Institution` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Institution`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'code') - self.code = attributes[:'code'] - end - - if attributes.key?(:'medium_logo_url') - self.medium_logo_url = attributes[:'medium_logo_url'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'small_logo_url') - self.small_logo_url = attributes[:'small_logo_url'] - end - - if attributes.key?(:'supports_account_identification') - self.supports_account_identification = attributes[:'supports_account_identification'] - end - - if attributes.key?(:'supports_account_statement') - self.supports_account_statement = attributes[:'supports_account_statement'] - end - - if attributes.key?(:'supports_account_verification') - self.supports_account_verification = attributes[:'supports_account_verification'] - end - - if attributes.key?(:'supports_oauth') - self.supports_oauth = attributes[:'supports_oauth'] - end - - if attributes.key?(:'supports_transaction_history') - self.supports_transaction_history = attributes[:'supports_transaction_history'] - end - - if attributes.key?(:'url') - self.url = attributes[:'url'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - code == o.code && - medium_logo_url == o.medium_logo_url && - name == o.name && - small_logo_url == o.small_logo_url && - supports_account_identification == o.supports_account_identification && - supports_account_statement == o.supports_account_statement && - supports_account_verification == o.supports_account_verification && - supports_oauth == o.supports_oauth && - supports_transaction_history == o.supports_transaction_history && - url == o.url - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [code, medium_logo_url, name, small_logo_url, supports_account_identification, supports_account_statement, supports_account_verification, supports_oauth, supports_transaction_history, url].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/member.rb b/lib/mx-platform-ruby/models/member.rb deleted file mode 100644 index 11823a6..0000000 --- a/lib/mx-platform-ruby/models/member.rb +++ /dev/null @@ -1,317 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Member - attr_accessor :aggregated_at - - attr_accessor :connection_status - - attr_accessor :guid - - attr_accessor :id - - attr_accessor :institution_code - - attr_accessor :is_being_aggregated - - attr_accessor :is_oauth - - attr_accessor :metadata - - attr_accessor :name - - attr_accessor :oauth_window_uri - - attr_accessor :successfully_aggregated_at - - attr_accessor :user_guid - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'aggregated_at' => :'aggregated_at', - :'connection_status' => :'connection_status', - :'guid' => :'guid', - :'id' => :'id', - :'institution_code' => :'institution_code', - :'is_being_aggregated' => :'is_being_aggregated', - :'is_oauth' => :'is_oauth', - :'metadata' => :'metadata', - :'name' => :'name', - :'oauth_window_uri' => :'oauth_window_uri', - :'successfully_aggregated_at' => :'successfully_aggregated_at', - :'user_guid' => :'user_guid' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'aggregated_at' => :'String', - :'connection_status' => :'String', - :'guid' => :'String', - :'id' => :'String', - :'institution_code' => :'String', - :'is_being_aggregated' => :'Boolean', - :'is_oauth' => :'Boolean', - :'metadata' => :'String', - :'name' => :'String', - :'oauth_window_uri' => :'String', - :'successfully_aggregated_at' => :'String', - :'user_guid' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Member` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Member`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'aggregated_at') - self.aggregated_at = attributes[:'aggregated_at'] - end - - if attributes.key?(:'connection_status') - self.connection_status = attributes[:'connection_status'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.key?(:'institution_code') - self.institution_code = attributes[:'institution_code'] - end - - if attributes.key?(:'is_being_aggregated') - self.is_being_aggregated = attributes[:'is_being_aggregated'] - end - - if attributes.key?(:'is_oauth') - self.is_oauth = attributes[:'is_oauth'] - end - - if attributes.key?(:'metadata') - self.metadata = attributes[:'metadata'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'oauth_window_uri') - self.oauth_window_uri = attributes[:'oauth_window_uri'] - end - - if attributes.key?(:'successfully_aggregated_at') - self.successfully_aggregated_at = attributes[:'successfully_aggregated_at'] - end - - if attributes.key?(:'user_guid') - self.user_guid = attributes[:'user_guid'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - aggregated_at == o.aggregated_at && - connection_status == o.connection_status && - guid == o.guid && - id == o.id && - institution_code == o.institution_code && - is_being_aggregated == o.is_being_aggregated && - is_oauth == o.is_oauth && - metadata == o.metadata && - name == o.name && - oauth_window_uri == o.oauth_window_uri && - successfully_aggregated_at == o.successfully_aggregated_at && - user_guid == o.user_guid - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [aggregated_at, connection_status, guid, id, institution_code, is_being_aggregated, is_oauth, metadata, name, oauth_window_uri, successfully_aggregated_at, user_guid].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/member_status.rb b/lib/mx-platform-ruby/models/member_status.rb deleted file mode 100644 index 26152eb..0000000 --- a/lib/mx-platform-ruby/models/member_status.rb +++ /dev/null @@ -1,292 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class MemberStatus - attr_accessor :aggregated_at - - attr_accessor :challenges - - attr_accessor :connection_status - - attr_accessor :guid - - attr_accessor :has_processed_accounts - - attr_accessor :has_processed_transactions - - attr_accessor :is_authenticated - - attr_accessor :is_being_aggregated - - attr_accessor :successfully_aggregated_at - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'aggregated_at' => :'aggregated_at', - :'challenges' => :'challenges', - :'connection_status' => :'connection_status', - :'guid' => :'guid', - :'has_processed_accounts' => :'has_processed_accounts', - :'has_processed_transactions' => :'has_processed_transactions', - :'is_authenticated' => :'is_authenticated', - :'is_being_aggregated' => :'is_being_aggregated', - :'successfully_aggregated_at' => :'successfully_aggregated_at' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'aggregated_at' => :'String', - :'challenges' => :'Array', - :'connection_status' => :'String', - :'guid' => :'String', - :'has_processed_accounts' => :'Boolean', - :'has_processed_transactions' => :'Boolean', - :'is_authenticated' => :'Boolean', - :'is_being_aggregated' => :'Boolean', - :'successfully_aggregated_at' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::MemberStatus` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::MemberStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'aggregated_at') - self.aggregated_at = attributes[:'aggregated_at'] - end - - if attributes.key?(:'challenges') - if (value = attributes[:'challenges']).is_a?(Array) - self.challenges = value - end - end - - if attributes.key?(:'connection_status') - self.connection_status = attributes[:'connection_status'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'has_processed_accounts') - self.has_processed_accounts = attributes[:'has_processed_accounts'] - end - - if attributes.key?(:'has_processed_transactions') - self.has_processed_transactions = attributes[:'has_processed_transactions'] - end - - if attributes.key?(:'is_authenticated') - self.is_authenticated = attributes[:'is_authenticated'] - end - - if attributes.key?(:'is_being_aggregated') - self.is_being_aggregated = attributes[:'is_being_aggregated'] - end - - if attributes.key?(:'successfully_aggregated_at') - self.successfully_aggregated_at = attributes[:'successfully_aggregated_at'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - aggregated_at == o.aggregated_at && - challenges == o.challenges && - connection_status == o.connection_status && - guid == o.guid && - has_processed_accounts == o.has_processed_accounts && - has_processed_transactions == o.has_processed_transactions && - is_authenticated == o.is_authenticated && - is_being_aggregated == o.is_being_aggregated && - successfully_aggregated_at == o.successfully_aggregated_at - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [aggregated_at, challenges, connection_status, guid, has_processed_accounts, has_processed_transactions, is_authenticated, is_being_aggregated, successfully_aggregated_at].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/merchant.rb b/lib/mx-platform-ruby/models/merchant.rb deleted file mode 100644 index c00ac38..0000000 --- a/lib/mx-platform-ruby/models/merchant.rb +++ /dev/null @@ -1,263 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Merchant - attr_accessor :created_at - - attr_accessor :guid - - attr_accessor :logo_url - - attr_accessor :name - - attr_accessor :updated_at - - attr_accessor :website_url - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'created_at' => :'created_at', - :'guid' => :'guid', - :'logo_url' => :'logo_url', - :'name' => :'name', - :'updated_at' => :'updated_at', - :'website_url' => :'website_url' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'created_at' => :'String', - :'guid' => :'String', - :'logo_url' => :'String', - :'name' => :'String', - :'updated_at' => :'String', - :'website_url' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Merchant` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Merchant`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'created_at') - self.created_at = attributes[:'created_at'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'logo_url') - self.logo_url = attributes[:'logo_url'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'updated_at') - self.updated_at = attributes[:'updated_at'] - end - - if attributes.key?(:'website_url') - self.website_url = attributes[:'website_url'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - created_at == o.created_at && - guid == o.guid && - logo_url == o.logo_url && - name == o.name && - updated_at == o.updated_at && - website_url == o.website_url - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [created_at, guid, logo_url, name, updated_at, website_url].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/o_auth_window.rb b/lib/mx-platform-ruby/models/o_auth_window.rb deleted file mode 100644 index d5e77e9..0000000 --- a/lib/mx-platform-ruby/models/o_auth_window.rb +++ /dev/null @@ -1,227 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class OAuthWindow - attr_accessor :guid - - attr_accessor :oauth_window_uri - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'guid' => :'guid', - :'oauth_window_uri' => :'oauth_window_uri' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'guid' => :'String', - :'oauth_window_uri' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::OAuthWindow` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::OAuthWindow`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'oauth_window_uri') - self.oauth_window_uri = attributes[:'oauth_window_uri'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - guid == o.guid && - oauth_window_uri == o.oauth_window_uri - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [guid, oauth_window_uri].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/pagination.rb b/lib/mx-platform-ruby/models/pagination.rb deleted file mode 100644 index 0af9646..0000000 --- a/lib/mx-platform-ruby/models/pagination.rb +++ /dev/null @@ -1,245 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Pagination - attr_accessor :current_page - - attr_accessor :per_page - - attr_accessor :total_entries - - attr_accessor :total_pages - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'current_page' => :'current_page', - :'per_page' => :'per_page', - :'total_entries' => :'total_entries', - :'total_pages' => :'total_pages' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'current_page' => :'Integer', - :'per_page' => :'Integer', - :'total_entries' => :'Integer', - :'total_pages' => :'Integer' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Pagination` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Pagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'current_page') - self.current_page = attributes[:'current_page'] - end - - if attributes.key?(:'per_page') - self.per_page = attributes[:'per_page'] - end - - if attributes.key?(:'total_entries') - self.total_entries = attributes[:'total_entries'] - end - - if attributes.key?(:'total_pages') - self.total_pages = attributes[:'total_pages'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - current_page == o.current_page && - per_page == o.per_page && - total_entries == o.total_entries && - total_pages == o.total_pages - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [current_page, per_page, total_entries, total_pages].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/statement.rb b/lib/mx-platform-ruby/models/statement.rb deleted file mode 100644 index a99cae4..0000000 --- a/lib/mx-platform-ruby/models/statement.rb +++ /dev/null @@ -1,281 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Statement - attr_accessor :account_guid - - attr_accessor :content_hash - - attr_accessor :created_at - - attr_accessor :guid - - attr_accessor :member_guid - - attr_accessor :updated_at - - attr_accessor :uri - - attr_accessor :user_guid - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'account_guid' => :'account_guid', - :'content_hash' => :'content_hash', - :'created_at' => :'created_at', - :'guid' => :'guid', - :'member_guid' => :'member_guid', - :'updated_at' => :'updated_at', - :'uri' => :'uri', - :'user_guid' => :'user_guid' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'account_guid' => :'String', - :'content_hash' => :'String', - :'created_at' => :'String', - :'guid' => :'String', - :'member_guid' => :'String', - :'updated_at' => :'String', - :'uri' => :'String', - :'user_guid' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Statement` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Statement`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'account_guid') - self.account_guid = attributes[:'account_guid'] - end - - if attributes.key?(:'content_hash') - self.content_hash = attributes[:'content_hash'] - end - - if attributes.key?(:'created_at') - self.created_at = attributes[:'created_at'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'member_guid') - self.member_guid = attributes[:'member_guid'] - end - - if attributes.key?(:'updated_at') - self.updated_at = attributes[:'updated_at'] - end - - if attributes.key?(:'uri') - self.uri = attributes[:'uri'] - end - - if attributes.key?(:'user_guid') - self.user_guid = attributes[:'user_guid'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - account_guid == o.account_guid && - content_hash == o.content_hash && - created_at == o.created_at && - guid == o.guid && - member_guid == o.member_guid && - updated_at == o.updated_at && - uri == o.uri && - user_guid == o.user_guid - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [account_guid, content_hash, created_at, guid, member_guid, updated_at, uri, user_guid].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/tag.rb b/lib/mx-platform-ruby/models/tag.rb deleted file mode 100644 index b027e0e..0000000 --- a/lib/mx-platform-ruby/models/tag.rb +++ /dev/null @@ -1,236 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Tag - attr_accessor :guid - - attr_accessor :name - - attr_accessor :user_guid - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'guid' => :'guid', - :'name' => :'name', - :'user_guid' => :'user_guid' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'guid' => :'String', - :'name' => :'String', - :'user_guid' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Tag` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Tag`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'user_guid') - self.user_guid = attributes[:'user_guid'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - guid == o.guid && - name == o.name && - user_guid == o.user_guid - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [guid, name, user_guid].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/tagging.rb b/lib/mx-platform-ruby/models/tagging.rb deleted file mode 100644 index dd9f18e..0000000 --- a/lib/mx-platform-ruby/models/tagging.rb +++ /dev/null @@ -1,254 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Tagging - attr_accessor :guid - - attr_accessor :member_is_managed_by_user - - attr_accessor :tag_guid - - attr_accessor :transaction_guid - - attr_accessor :user_guid - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'guid' => :'guid', - :'member_is_managed_by_user' => :'member_is_managed_by_user', - :'tag_guid' => :'tag_guid', - :'transaction_guid' => :'transaction_guid', - :'user_guid' => :'user_guid' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'guid' => :'String', - :'member_is_managed_by_user' => :'Boolean', - :'tag_guid' => :'String', - :'transaction_guid' => :'String', - :'user_guid' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Tagging` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Tagging`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'member_is_managed_by_user') - self.member_is_managed_by_user = attributes[:'member_is_managed_by_user'] - end - - if attributes.key?(:'tag_guid') - self.tag_guid = attributes[:'tag_guid'] - end - - if attributes.key?(:'transaction_guid') - self.transaction_guid = attributes[:'transaction_guid'] - end - - if attributes.key?(:'user_guid') - self.user_guid = attributes[:'user_guid'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - guid == o.guid && - member_is_managed_by_user == o.member_is_managed_by_user && - tag_guid == o.tag_guid && - transaction_guid == o.transaction_guid && - user_guid == o.user_guid - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [guid, member_is_managed_by_user, tag_guid, transaction_guid, user_guid].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/transaction.rb b/lib/mx-platform-ruby/models/transaction.rb deleted file mode 100644 index b3145a2..0000000 --- a/lib/mx-platform-ruby/models/transaction.rb +++ /dev/null @@ -1,533 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Transaction - attr_accessor :account_guid - - attr_accessor :amount - - attr_accessor :category - - attr_accessor :check_number_string - - attr_accessor :created_at - - attr_accessor :currency_code - - attr_accessor :date - - attr_accessor :description - - attr_accessor :guid - - attr_accessor :id - - attr_accessor :is_bill_pay - - attr_accessor :is_direct_deposit - - attr_accessor :is_expense - - attr_accessor :is_fee - - attr_accessor :is_income - - attr_accessor :is_international - - attr_accessor :is_overdraft_fee - - attr_accessor :is_payroll_advance - - attr_accessor :is_recurring - - attr_accessor :is_subscription - - attr_accessor :latitude - - attr_accessor :localized_description - - attr_accessor :localized_memo - - attr_accessor :longitude - - attr_accessor :member_guid - - attr_accessor :memo - - attr_accessor :merchant_category_code - - attr_accessor :merchant_guid - - attr_accessor :original_description - - attr_accessor :posted_at - - attr_accessor :status - - attr_accessor :top_level_category - - attr_accessor :transacted_at - - attr_accessor :type - - attr_accessor :updated_at - - attr_accessor :user_guid - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'account_guid' => :'account_guid', - :'amount' => :'amount', - :'category' => :'category', - :'check_number_string' => :'check_number_string', - :'created_at' => :'created_at', - :'currency_code' => :'currency_code', - :'date' => :'date', - :'description' => :'description', - :'guid' => :'guid', - :'id' => :'id', - :'is_bill_pay' => :'is_bill_pay', - :'is_direct_deposit' => :'is_direct_deposit', - :'is_expense' => :'is_expense', - :'is_fee' => :'is_fee', - :'is_income' => :'is_income', - :'is_international' => :'is_international', - :'is_overdraft_fee' => :'is_overdraft_fee', - :'is_payroll_advance' => :'is_payroll_advance', - :'is_recurring' => :'is_recurring', - :'is_subscription' => :'is_subscription', - :'latitude' => :'latitude', - :'localized_description' => :'localized_description', - :'localized_memo' => :'localized_memo', - :'longitude' => :'longitude', - :'member_guid' => :'member_guid', - :'memo' => :'memo', - :'merchant_category_code' => :'merchant_category_code', - :'merchant_guid' => :'merchant_guid', - :'original_description' => :'original_description', - :'posted_at' => :'posted_at', - :'status' => :'status', - :'top_level_category' => :'top_level_category', - :'transacted_at' => :'transacted_at', - :'type' => :'type', - :'updated_at' => :'updated_at', - :'user_guid' => :'user_guid' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'account_guid' => :'String', - :'amount' => :'Float', - :'category' => :'String', - :'check_number_string' => :'String', - :'created_at' => :'String', - :'currency_code' => :'String', - :'date' => :'String', - :'description' => :'String', - :'guid' => :'String', - :'id' => :'String', - :'is_bill_pay' => :'Boolean', - :'is_direct_deposit' => :'Boolean', - :'is_expense' => :'Boolean', - :'is_fee' => :'Boolean', - :'is_income' => :'Boolean', - :'is_international' => :'Boolean', - :'is_overdraft_fee' => :'Boolean', - :'is_payroll_advance' => :'Boolean', - :'is_recurring' => :'Boolean', - :'is_subscription' => :'Boolean', - :'latitude' => :'Float', - :'localized_description' => :'String', - :'localized_memo' => :'String', - :'longitude' => :'Float', - :'member_guid' => :'String', - :'memo' => :'String', - :'merchant_category_code' => :'Integer', - :'merchant_guid' => :'String', - :'original_description' => :'String', - :'posted_at' => :'String', - :'status' => :'String', - :'top_level_category' => :'String', - :'transacted_at' => :'String', - :'type' => :'String', - :'updated_at' => :'String', - :'user_guid' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Transaction` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Transaction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'account_guid') - self.account_guid = attributes[:'account_guid'] - end - - if attributes.key?(:'amount') - self.amount = attributes[:'amount'] - end - - if attributes.key?(:'category') - self.category = attributes[:'category'] - end - - if attributes.key?(:'check_number_string') - self.check_number_string = attributes[:'check_number_string'] - end - - if attributes.key?(:'created_at') - self.created_at = attributes[:'created_at'] - end - - if attributes.key?(:'currency_code') - self.currency_code = attributes[:'currency_code'] - end - - if attributes.key?(:'date') - self.date = attributes[:'date'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.key?(:'is_bill_pay') - self.is_bill_pay = attributes[:'is_bill_pay'] - end - - if attributes.key?(:'is_direct_deposit') - self.is_direct_deposit = attributes[:'is_direct_deposit'] - end - - if attributes.key?(:'is_expense') - self.is_expense = attributes[:'is_expense'] - end - - if attributes.key?(:'is_fee') - self.is_fee = attributes[:'is_fee'] - end - - if attributes.key?(:'is_income') - self.is_income = attributes[:'is_income'] - end - - if attributes.key?(:'is_international') - self.is_international = attributes[:'is_international'] - end - - if attributes.key?(:'is_overdraft_fee') - self.is_overdraft_fee = attributes[:'is_overdraft_fee'] - end - - if attributes.key?(:'is_payroll_advance') - self.is_payroll_advance = attributes[:'is_payroll_advance'] - end - - if attributes.key?(:'is_recurring') - self.is_recurring = attributes[:'is_recurring'] - end - - if attributes.key?(:'is_subscription') - self.is_subscription = attributes[:'is_subscription'] - end - - if attributes.key?(:'latitude') - self.latitude = attributes[:'latitude'] - end - - if attributes.key?(:'localized_description') - self.localized_description = attributes[:'localized_description'] - end - - if attributes.key?(:'localized_memo') - self.localized_memo = attributes[:'localized_memo'] - end - - if attributes.key?(:'longitude') - self.longitude = attributes[:'longitude'] - end - - if attributes.key?(:'member_guid') - self.member_guid = attributes[:'member_guid'] - end - - if attributes.key?(:'memo') - self.memo = attributes[:'memo'] - end - - if attributes.key?(:'merchant_category_code') - self.merchant_category_code = attributes[:'merchant_category_code'] - end - - if attributes.key?(:'merchant_guid') - self.merchant_guid = attributes[:'merchant_guid'] - end - - if attributes.key?(:'original_description') - self.original_description = attributes[:'original_description'] - end - - if attributes.key?(:'posted_at') - self.posted_at = attributes[:'posted_at'] - end - - if attributes.key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.key?(:'top_level_category') - self.top_level_category = attributes[:'top_level_category'] - end - - if attributes.key?(:'transacted_at') - self.transacted_at = attributes[:'transacted_at'] - end - - if attributes.key?(:'type') - self.type = attributes[:'type'] - end - - if attributes.key?(:'updated_at') - self.updated_at = attributes[:'updated_at'] - end - - if attributes.key?(:'user_guid') - self.user_guid = attributes[:'user_guid'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - account_guid == o.account_guid && - amount == o.amount && - category == o.category && - check_number_string == o.check_number_string && - created_at == o.created_at && - currency_code == o.currency_code && - date == o.date && - description == o.description && - guid == o.guid && - id == o.id && - is_bill_pay == o.is_bill_pay && - is_direct_deposit == o.is_direct_deposit && - is_expense == o.is_expense && - is_fee == o.is_fee && - is_income == o.is_income && - is_international == o.is_international && - is_overdraft_fee == o.is_overdraft_fee && - is_payroll_advance == o.is_payroll_advance && - is_recurring == o.is_recurring && - is_subscription == o.is_subscription && - latitude == o.latitude && - localized_description == o.localized_description && - localized_memo == o.localized_memo && - longitude == o.longitude && - member_guid == o.member_guid && - memo == o.memo && - merchant_category_code == o.merchant_category_code && - merchant_guid == o.merchant_guid && - original_description == o.original_description && - posted_at == o.posted_at && - status == o.status && - top_level_category == o.top_level_category && - transacted_at == o.transacted_at && - type == o.type && - updated_at == o.updated_at && - user_guid == o.user_guid - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [account_guid, amount, category, check_number_string, created_at, currency_code, date, description, guid, id, is_bill_pay, is_direct_deposit, is_expense, is_fee, is_income, is_international, is_overdraft_fee, is_payroll_advance, is_recurring, is_subscription, latitude, localized_description, localized_memo, longitude, member_guid, memo, merchant_category_code, merchant_guid, original_description, posted_at, status, top_level_category, transacted_at, type, updated_at, user_guid].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/transaction_rule.rb b/lib/mx-platform-ruby/models/transaction_rule.rb deleted file mode 100644 index 8f703f8..0000000 --- a/lib/mx-platform-ruby/models/transaction_rule.rb +++ /dev/null @@ -1,272 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class TransactionRule - attr_accessor :category_guid - - attr_accessor :created_at - - attr_accessor :description - - attr_accessor :guid - - attr_accessor :match_description - - attr_accessor :updated_at - - attr_accessor :user_guid - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'category_guid' => :'category_guid', - :'created_at' => :'created_at', - :'description' => :'description', - :'guid' => :'guid', - :'match_description' => :'match_description', - :'updated_at' => :'updated_at', - :'user_guid' => :'user_guid' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'category_guid' => :'String', - :'created_at' => :'String', - :'description' => :'String', - :'guid' => :'String', - :'match_description' => :'String', - :'updated_at' => :'String', - :'user_guid' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::TransactionRule` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::TransactionRule`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'category_guid') - self.category_guid = attributes[:'category_guid'] - end - - if attributes.key?(:'created_at') - self.created_at = attributes[:'created_at'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'match_description') - self.match_description = attributes[:'match_description'] - end - - if attributes.key?(:'updated_at') - self.updated_at = attributes[:'updated_at'] - end - - if attributes.key?(:'user_guid') - self.user_guid = attributes[:'user_guid'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - category_guid == o.category_guid && - created_at == o.created_at && - description == o.description && - guid == o.guid && - match_description == o.match_description && - updated_at == o.updated_at && - user_guid == o.user_guid - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [category_guid, created_at, description, guid, match_description, updated_at, user_guid].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/user.rb b/lib/mx-platform-ruby/models/user.rb deleted file mode 100644 index ed6ef15..0000000 --- a/lib/mx-platform-ruby/models/user.rb +++ /dev/null @@ -1,254 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class User - attr_accessor :email - - attr_accessor :guid - - attr_accessor :id - - attr_accessor :is_disabled - - attr_accessor :metadata - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'email' => :'email', - :'guid' => :'guid', - :'id' => :'id', - :'is_disabled' => :'is_disabled', - :'metadata' => :'metadata' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'email' => :'String', - :'guid' => :'String', - :'id' => :'String', - :'is_disabled' => :'Boolean', - :'metadata' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::User` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::User`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'email') - self.email = attributes[:'email'] - end - - if attributes.key?(:'guid') - self.guid = attributes[:'guid'] - end - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.key?(:'is_disabled') - self.is_disabled = attributes[:'is_disabled'] - end - - if attributes.key?(:'metadata') - self.metadata = attributes[:'metadata'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - email == o.email && - guid == o.guid && - id == o.id && - is_disabled == o.is_disabled && - metadata == o.metadata - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [email, guid, id, is_disabled, metadata].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/mx-platform-ruby/models/widget.rb b/lib/mx-platform-ruby/models/widget.rb deleted file mode 100644 index ecb3124..0000000 --- a/lib/mx-platform-ruby/models/widget.rb +++ /dev/null @@ -1,236 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'date' -require 'time' - -module MxPlatformRuby - class Widget - attr_accessor :type - - attr_accessor :url - - attr_accessor :user_id - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'type' => :'type', - :'url' => :'url', - :'user_id' => :'user_id' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'type' => :'String', - :'url' => :'String', - :'user_id' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Widget` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Widget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'type') - self.type = attributes[:'type'] - end - - if attributes.key?(:'url') - self.url = attributes[:'url'] - end - - if attributes.key?(:'user_id') - self.user_id = attributes[:'user_id'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - type == o.type && - url == o.url && - user_id == o.user_id - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [type, url, user_id].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = MxPlatformRuby.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/openapi/mx_platform_ruby.yml b/openapi/mx_platform_ruby.yml deleted file mode 100644 index f903827..0000000 --- a/openapi/mx_platform_ruby.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -gemAuthor: "MX" -gemAuthorEmail: "devexperience@mx.com" -gemDescription: "A Ruby library for the MX Platform API." -gemHomepage: "https://github.com/mxenabled/mx-platform-ruby" -gemLicense: "MIT" -gemName: "mx-platform-ruby" -gemRequiredRubyVersion: ">= 2.6" -gemVersion: "0.2.1" -library: "faraday" -moduleName: "MxPlatformRuby" diff --git a/spec/models/account_number_spec.rb b/spec/models/account_number_spec.rb deleted file mode 100644 index c0c6606..0000000 --- a/spec/models/account_number_spec.rb +++ /dev/null @@ -1,76 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::AccountNumber -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::AccountNumber do - let(:instance) { MxPlatformRuby::AccountNumber.new } - - describe 'test an instance of AccountNumber' do - it 'should create an instance of AccountNumber' do - expect(instance).to be_instance_of(MxPlatformRuby::AccountNumber) - end - end - describe 'test attribute "account_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "account_number"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "institution_number"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "member_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "routing_number"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "transit_number"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/account_owner_spec.rb b/spec/models/account_owner_spec.rb deleted file mode 100644 index bbcaa61..0000000 --- a/spec/models/account_owner_spec.rb +++ /dev/null @@ -1,100 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::AccountOwner -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::AccountOwner do - let(:instance) { MxPlatformRuby::AccountOwner.new } - - describe 'test an instance of AccountOwner' do - it 'should create an instance of AccountOwner' do - expect(instance).to be_instance_of(MxPlatformRuby::AccountOwner) - end - end - describe 'test attribute "account_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "city"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "country"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "email"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "member_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "owner_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "phone"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "postal_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "state"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb deleted file mode 100644 index a0f0a59..0000000 --- a/spec/models/account_spec.rb +++ /dev/null @@ -1,268 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Account -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Account do - let(:instance) { MxPlatformRuby::Account.new } - - describe 'test an instance of Account' do - it 'should create an instance of Account' do - expect(instance).to be_instance_of(MxPlatformRuby::Account) - end - end - describe 'test attribute "account_number"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "apr"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "apy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "available_balance"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "available_credit"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "balance"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cash_balance"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cash_surrender_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "credit_limit"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "currency_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "day_payment_is_due"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "death_benefit"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "holdings_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "institution_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "insured_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "interest_rate"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_closed"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_hidden"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "last_payment"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "last_payment_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "loan_amount"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "matures_on"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "member_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "minimum_balance"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "minimum_payment"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "original_balance"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pay_out_amount"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "payment_due_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "payoff_balance"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "premium_amount"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "started_on"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "subtype"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_account_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "updated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/category_spec.rb b/spec/models/category_spec.rb deleted file mode 100644 index 6718752..0000000 --- a/spec/models/category_spec.rb +++ /dev/null @@ -1,76 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Category -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Category do - let(:instance) { MxPlatformRuby::Category.new } - - describe 'test an instance of Category' do - it 'should create an instance of Category' do - expect(instance).to be_instance_of(MxPlatformRuby::Category) - end - end - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_default"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_income"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metadata"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "parent_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "updated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/challenge_image_options_spec.rb b/spec/models/challenge_image_options_spec.rb deleted file mode 100644 index 8001b92..0000000 --- a/spec/models/challenge_image_options_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::ChallengeImageOptions -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::ChallengeImageOptions do - let(:instance) { MxPlatformRuby::ChallengeImageOptions.new } - - describe 'test an instance of ChallengeImageOptions' do - it 'should create an instance of ChallengeImageOptions' do - expect(instance).to be_instance_of(MxPlatformRuby::ChallengeImageOptions) - end - end - describe 'test attribute "data_uri"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "label"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/challenge_options_spec.rb b/spec/models/challenge_options_spec.rb deleted file mode 100644 index b8b4a48..0000000 --- a/spec/models/challenge_options_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::ChallengeOptions -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::ChallengeOptions do - let(:instance) { MxPlatformRuby::ChallengeOptions.new } - - describe 'test an instance of ChallengeOptions' do - it 'should create an instance of ChallengeOptions' do - expect(instance).to be_instance_of(MxPlatformRuby::ChallengeOptions) - end - end - describe 'test attribute "label"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/challenge_spec.rb b/spec/models/challenge_spec.rb deleted file mode 100644 index fa51197..0000000 --- a/spec/models/challenge_spec.rb +++ /dev/null @@ -1,70 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Challenge -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Challenge do - let(:instance) { MxPlatformRuby::Challenge.new } - - describe 'test an instance of Challenge' do - it 'should create an instance of Challenge' do - expect(instance).to be_instance_of(MxPlatformRuby::Challenge) - end - end - describe 'test attribute "field_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "image_data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "image_options"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "label"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "options"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/connect_widget_spec.rb b/spec/models/connect_widget_spec.rb deleted file mode 100644 index dad41e1..0000000 --- a/spec/models/connect_widget_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::ConnectWidget -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::ConnectWidget do - let(:instance) { MxPlatformRuby::ConnectWidget.new } - - describe 'test an instance of ConnectWidget' do - it 'should create an instance of ConnectWidget' do - expect(instance).to be_instance_of(MxPlatformRuby::ConnectWidget) - end - end - describe 'test attribute "connect_widget_url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/credential_spec.rb b/spec/models/credential_spec.rb deleted file mode 100644 index 6aa37d2..0000000 --- a/spec/models/credential_spec.rb +++ /dev/null @@ -1,58 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Credential -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Credential do - let(:instance) { MxPlatformRuby::Credential.new } - - describe 'test an instance of Credential' do - it 'should create an instance of Credential' do - expect(instance).to be_instance_of(MxPlatformRuby::Credential) - end - end - describe 'test attribute "display_order"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "field_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "field_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "label"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/enhance_transaction_spec.rb b/spec/models/enhance_transaction_spec.rb deleted file mode 100644 index 611dc7e..0000000 --- a/spec/models/enhance_transaction_spec.rb +++ /dev/null @@ -1,124 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::EnhanceTransaction -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::EnhanceTransaction do - let(:instance) { MxPlatformRuby::EnhanceTransaction.new } - - describe 'test an instance of EnhanceTransaction' do - it 'should create an instance of EnhanceTransaction' do - expect(instance).to be_instance_of(MxPlatformRuby::EnhanceTransaction) - end - end - describe 'test attribute "amount"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "category"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_bill_pay"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_direct_deposit"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_expense"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_fee"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_income"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_international"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_overdraft_fee"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_payroll_advance"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "merchant_category_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "merchant_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "original_description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/holding_spec.rb b/spec/models/holding_spec.rb deleted file mode 100644 index 2da6803..0000000 --- a/spec/models/holding_spec.rb +++ /dev/null @@ -1,136 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Holding -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Holding do - let(:instance) { MxPlatformRuby::Holding.new } - - describe 'test an instance of Holding' do - it 'should create an instance of Holding' do - expect(instance).to be_instance_of(MxPlatformRuby::Holding) - end - end - describe 'test attribute "account_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cost_basis"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "currency_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cusip"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "daily_change"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "holding_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "market_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "member_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metadata"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "purchase_price"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "shares"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "symbol"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "updated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/inline_response200_spec.rb b/spec/models/inline_response200_spec.rb deleted file mode 100644 index 3a76e8c..0000000 --- a/spec/models/inline_response200_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::InlineResponse200 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::InlineResponse200 do - let(:instance) { MxPlatformRuby::InlineResponse200.new } - - describe 'test an instance of InlineResponse200' do - it 'should create an instance of InlineResponse200' do - expect(instance).to be_instance_of(MxPlatformRuby::InlineResponse200) - end - end - describe 'test attribute "tag"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/institution_spec.rb b/spec/models/institution_spec.rb deleted file mode 100644 index fdeac30..0000000 --- a/spec/models/institution_spec.rb +++ /dev/null @@ -1,88 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Institution -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Institution do - let(:instance) { MxPlatformRuby::Institution.new } - - describe 'test an instance of Institution' do - it 'should create an instance of Institution' do - expect(instance).to be_instance_of(MxPlatformRuby::Institution) - end - end - describe 'test attribute "code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "medium_logo_url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "small_logo_url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "supports_account_identification"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "supports_account_statement"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "supports_account_verification"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "supports_oauth"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "supports_transaction_history"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/member_spec.rb b/spec/models/member_spec.rb deleted file mode 100644 index efad6a9..0000000 --- a/spec/models/member_spec.rb +++ /dev/null @@ -1,100 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Member -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Member do - let(:instance) { MxPlatformRuby::Member.new } - - describe 'test an instance of Member' do - it 'should create an instance of Member' do - expect(instance).to be_instance_of(MxPlatformRuby::Member) - end - end - describe 'test attribute "aggregated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "connection_status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "institution_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_being_aggregated"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_oauth"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metadata"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "oauth_window_uri"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "successfully_aggregated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/member_status_spec.rb b/spec/models/member_status_spec.rb deleted file mode 100644 index 89f548e..0000000 --- a/spec/models/member_status_spec.rb +++ /dev/null @@ -1,82 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::MemberStatus -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::MemberStatus do - let(:instance) { MxPlatformRuby::MemberStatus.new } - - describe 'test an instance of MemberStatus' do - it 'should create an instance of MemberStatus' do - expect(instance).to be_instance_of(MxPlatformRuby::MemberStatus) - end - end - describe 'test attribute "aggregated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "challenges"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "connection_status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "has_processed_accounts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "has_processed_transactions"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_authenticated"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_being_aggregated"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "successfully_aggregated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/merchant_spec.rb b/spec/models/merchant_spec.rb deleted file mode 100644 index 04c6b0b..0000000 --- a/spec/models/merchant_spec.rb +++ /dev/null @@ -1,64 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Merchant -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Merchant do - let(:instance) { MxPlatformRuby::Merchant.new } - - describe 'test an instance of Merchant' do - it 'should create an instance of Merchant' do - expect(instance).to be_instance_of(MxPlatformRuby::Merchant) - end - end - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "logo_url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "updated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "website_url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/o_auth_window_spec.rb b/spec/models/o_auth_window_spec.rb deleted file mode 100644 index 3096a17..0000000 --- a/spec/models/o_auth_window_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::OAuthWindow -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::OAuthWindow do - let(:instance) { MxPlatformRuby::OAuthWindow.new } - - describe 'test an instance of OAuthWindow' do - it 'should create an instance of OAuthWindow' do - expect(instance).to be_instance_of(MxPlatformRuby::OAuthWindow) - end - end - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "oauth_window_uri"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/pagination_spec.rb b/spec/models/pagination_spec.rb deleted file mode 100644 index 6f5d51f..0000000 --- a/spec/models/pagination_spec.rb +++ /dev/null @@ -1,52 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Pagination -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Pagination do - let(:instance) { MxPlatformRuby::Pagination.new } - - describe 'test an instance of Pagination' do - it 'should create an instance of Pagination' do - expect(instance).to be_instance_of(MxPlatformRuby::Pagination) - end - end - describe 'test attribute "current_page"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "per_page"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_entries"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_pages"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/statement_spec.rb b/spec/models/statement_spec.rb deleted file mode 100644 index e19a7f6..0000000 --- a/spec/models/statement_spec.rb +++ /dev/null @@ -1,76 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Statement -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Statement do - let(:instance) { MxPlatformRuby::Statement.new } - - describe 'test an instance of Statement' do - it 'should create an instance of Statement' do - expect(instance).to be_instance_of(MxPlatformRuby::Statement) - end - end - describe 'test attribute "account_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "content_hash"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "member_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "updated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "uri"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/tag_spec.rb b/spec/models/tag_spec.rb deleted file mode 100644 index 2771a61..0000000 --- a/spec/models/tag_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Tag -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Tag do - let(:instance) { MxPlatformRuby::Tag.new } - - describe 'test an instance of Tag' do - it 'should create an instance of Tag' do - expect(instance).to be_instance_of(MxPlatformRuby::Tag) - end - end - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/tagging_spec.rb b/spec/models/tagging_spec.rb deleted file mode 100644 index e452e4d..0000000 --- a/spec/models/tagging_spec.rb +++ /dev/null @@ -1,58 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Tagging -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Tagging do - let(:instance) { MxPlatformRuby::Tagging.new } - - describe 'test an instance of Tagging' do - it 'should create an instance of Tagging' do - expect(instance).to be_instance_of(MxPlatformRuby::Tagging) - end - end - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "member_is_managed_by_user"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "tag_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "transaction_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/transaction_rule_spec.rb b/spec/models/transaction_rule_spec.rb deleted file mode 100644 index fca9e10..0000000 --- a/spec/models/transaction_rule_spec.rb +++ /dev/null @@ -1,70 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::TransactionRule -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::TransactionRule do - let(:instance) { MxPlatformRuby::TransactionRule.new } - - describe 'test an instance of TransactionRule' do - it 'should create an instance of TransactionRule' do - expect(instance).to be_instance_of(MxPlatformRuby::TransactionRule) - end - end - describe 'test attribute "category_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "match_description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "updated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/transaction_spec.rb b/spec/models/transaction_spec.rb deleted file mode 100644 index 10427ed..0000000 --- a/spec/models/transaction_spec.rb +++ /dev/null @@ -1,244 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Transaction -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Transaction do - let(:instance) { MxPlatformRuby::Transaction.new } - - describe 'test an instance of Transaction' do - it 'should create an instance of Transaction' do - expect(instance).to be_instance_of(MxPlatformRuby::Transaction) - end - end - describe 'test attribute "account_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "amount"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "category"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "check_number_string"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "currency_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_bill_pay"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_direct_deposit"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_expense"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_fee"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_income"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_international"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_overdraft_fee"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_payroll_advance"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_recurring"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_subscription"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "latitude"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "localized_description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "localized_memo"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "longitude"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "member_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "memo"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "merchant_category_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "merchant_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "original_description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "posted_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "top_level_category"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "transacted_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "updated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb deleted file mode 100644 index 1449148..0000000 --- a/spec/models/user_spec.rb +++ /dev/null @@ -1,58 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::User -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::User do - let(:instance) { MxPlatformRuby::User.new } - - describe 'test an instance of User' do - it 'should create an instance of User' do - expect(instance).to be_instance_of(MxPlatformRuby::User) - end - end - describe 'test attribute "email"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "guid"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_disabled"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metadata"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/widget_spec.rb b/spec/models/widget_spec.rb deleted file mode 100644 index e629c5b..0000000 --- a/spec/models/widget_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#MX Platform API - -#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. - -The version of the OpenAPI document: 0.1.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MxPlatformRuby::Widget -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MxPlatformRuby::Widget do - let(:instance) { MxPlatformRuby::Widget.new } - - describe 'test an instance of Widget' do - it 'should create an instance of Widget' do - expect(instance).to be_instance_of(MxPlatformRuby::Widget) - end - end - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end