Skip to content

Commit

Permalink
Generated version 0.20.0
Browse files Browse the repository at this point in the history
This commit was automatically created by a GitHub Action to generate version 0.20.0 of this library.
  • Loading branch information
devexperience committed Aug 15, 2023
1 parent 410b2c7 commit f6e829e
Show file tree
Hide file tree
Showing 14 changed files with 374 additions and 63 deletions.
16 changes: 7 additions & 9 deletions docs/AccountCreateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **account_subtype_name** | **String** | | [optional] |
| **account_type** | **Integer** | | |
| **account_subtype** | **String** | | [optional] |
| **account_type** | **String** | | |
| **apr** | **Float** | | [optional] |
| **apy** | **Float** | | [optional] |
| **available_balance** | **Float** | | [optional] |
Expand All @@ -23,8 +23,7 @@
| **name** | **String** | | |
| **nickname** | **String** | | [optional] |
| **original_balance** | **Float** | | [optional] |
| **property_type** | **Integer** | | [optional] |
| **property_type_name** | **String** | | [optional] |
| **property_type** | **String** | | [optional] |
| **skip_webhook** | **Boolean** | | [optional] |

## Example
Expand All @@ -33,8 +32,8 @@
require 'mx-platform-ruby'

instance = MxPlatformRuby::AccountCreateRequest.new(
account_subtype_name: PERSONAL,
account_type: 2,
account_subtype: PERSONAL,
account_type: SAVINGS,
apr: 1.0,
apy: 1.0,
available_balance: 1000.0,
Expand All @@ -52,9 +51,8 @@ instance = MxPlatformRuby::AccountCreateRequest.new(
name: Test account 2,
nickname: Swiss Account,
original_balance: 10.0,
property_type: 1,
property_type_name: VEHICLE,
skip_webhook: false
property_type: VEHICLE,
skip_webhook: true
)
```

6 changes: 2 additions & 4 deletions docs/AccountResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@
| **payment_due_at** | **String** | | [optional] |
| **payoff_balance** | **Float** | | [optional] |
| **premium_amount** | **Float** | | [optional] |
| **property_type** | **Integer** | | [optional] |
| **property_type_name** | **String** | | [optional] |
| **property_type** | **String** | | [optional] |
| **routing_number** | **String** | | [optional] |
| **started_on** | **String** | | [optional] |
| **subtype** | **String** | | [optional] |
Expand Down Expand Up @@ -113,8 +112,7 @@ instance = MxPlatformRuby::AccountResponse.new(
payment_due_at: 2015-10-13T17:57:37.000Z,
payoff_balance: 10.0,
premium_amount: 1.0,
property_type: 1,
property_type_name: VEHICLE,
property_type: VEHICLE,
routing_number: 68899990000000,
started_on: 2015-10-13T17:57:37.000Z,
subtype: NONE,
Expand Down
42 changes: 41 additions & 1 deletion docs/AccountUpdateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,55 @@

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **account_subtype** | **String** | | [optional] |
| **account_type** | **String** | | [optional] |
| **apr** | **Float** | | [optional] |
| **apy** | **Float** | | [optional] |
| **available_balance** | **Float** | | [optional] |
| **balance** | **Float** | | [optional] |
| **cash_surrender_value** | **Float** | | [optional] |
| **credit_limit** | **Float** | | [optional] |
| **currency_code** | **String** | | [optional] |
| **death_benefit** | **Integer** | | [optional] |
| **interest_rate** | **Float** | | [optional] |
| **is_business** | **Boolean** | | [optional] |
| **is_closed** | **Boolean** | | [optional] |
| **is_hidden** | **Boolean** | | [optional] |
| **loan_amount** | **Float** | | [optional] |
| **metadata** | **String** | | [optional] |
| **name** | **String** | | [optional] |
| **nickname** | **String** | | [optional] |
| **original_balance** | **Float** | | [optional] |
| **property_type** | **String** | | [optional] |
| **skip_webhook** | **Boolean** | | [optional] |

## Example

```ruby
require 'mx-platform-ruby'

instance = MxPlatformRuby::AccountUpdateRequest.new(
is_hidden: false
account_subtype: PERSONAL,
account_type: SAVINGS,
apr: 1.0,
apy: 1.0,
available_balance: 1000.0,
balance: 1000.0,
cash_surrender_value: 1000.0,
credit_limit: 100.0,
currency_code: USD,
death_benefit: 1000,
interest_rate: 1.0,
is_business: false,
is_closed: false,
is_hidden: false,
loan_amount: 1000.0,
metadata: some metadata,
name: Test account 2,
nickname: Swiss Account,
original_balance: 10.0,
property_type: VEHICLE,
skip_webhook: true
)
```

2 changes: 2 additions & 0 deletions docs/MxPlatformApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4630,6 +4630,7 @@ user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54' # String | The unique id
opts = {
member_is_managed_by_user: true, # Boolean | List only accounts whose member is managed by the user.
page: 1, # Integer | Specify current page.
is_manual: true, # Boolean | List only accounts that were manually created.
records_per_page: 10 # Integer | Specify records per page.
}

Expand Down Expand Up @@ -4667,6 +4668,7 @@ end
| **user_guid** | **String** | The unique id for a `user`. | |
| **member_is_managed_by_user** | **Boolean** | List only accounts whose member is managed by the user. | [optional] |
| **page** | **Integer** | Specify current page. | [optional] |
| **is_manual** | **Boolean** | List only accounts that were manually created. | [optional] |
| **records_per_page** | **Integer** | Specify records per page. | [optional] |

### Return type
Expand Down
3 changes: 3 additions & 0 deletions lib/mx-platform-ruby/api/mx_platform_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4355,6 +4355,7 @@ def list_transactions_by_tag_with_http_info(tag_guid, user_guid, opts = {})
# @param [Hash] opts the optional parameters
# @option opts [Boolean] :member_is_managed_by_user List only accounts whose member is managed by the user.
# @option opts [Integer] :page Specify current page.
# @option opts [Boolean] :is_manual List only accounts that were manually created.
# @option opts [Integer] :records_per_page Specify records per page.
# @return [AccountsResponseBody]
def list_user_accounts(user_guid, opts = {})
Expand All @@ -4368,6 +4369,7 @@ def list_user_accounts(user_guid, opts = {})
# @param [Hash] opts the optional parameters
# @option opts [Boolean] :member_is_managed_by_user List only accounts whose member is managed by the user.
# @option opts [Integer] :page Specify current page.
# @option opts [Boolean] :is_manual List only accounts that were manually created.
# @option opts [Integer] :records_per_page Specify records per page.
# @return [Array<(AccountsResponseBody, Integer, Hash)>] AccountsResponseBody data, response status code and response headers
def list_user_accounts_with_http_info(user_guid, opts = {})
Expand All @@ -4385,6 +4387,7 @@ def list_user_accounts_with_http_info(user_guid, opts = {})
query_params = opts[:query_params] || {}
query_params[:'member_is_managed_by_user'] = opts[:'member_is_managed_by_user'] if !opts[:'member_is_managed_by_user'].nil?
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'is_manual'] = opts[:'is_manual'] if !opts[:'is_manual'].nil?
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?

# header parameters
Expand Down
27 changes: 9 additions & 18 deletions lib/mx-platform-ruby/models/account_create_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

module MxPlatformRuby
class AccountCreateRequest
attr_accessor :account_subtype_name
attr_accessor :account_subtype

attr_accessor :account_type

Expand Down Expand Up @@ -55,14 +55,12 @@ class AccountCreateRequest

attr_accessor :property_type

attr_accessor :property_type_name

attr_accessor :skip_webhook

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'account_subtype_name' => :'account_subtype_name',
:'account_subtype' => :'account_subtype',
:'account_type' => :'account_type',
:'apr' => :'apr',
:'apy' => :'apy',
Expand All @@ -82,7 +80,6 @@ def self.attribute_map
:'nickname' => :'nickname',
:'original_balance' => :'original_balance',
:'property_type' => :'property_type',
:'property_type_name' => :'property_type_name',
:'skip_webhook' => :'skip_webhook'
}
end
Expand All @@ -95,8 +92,8 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
:'account_subtype_name' => :'String',
:'account_type' => :'Integer',
:'account_subtype' => :'String',
:'account_type' => :'String',
:'apr' => :'Float',
:'apy' => :'Float',
:'available_balance' => :'Float',
Expand All @@ -114,8 +111,7 @@ def self.openapi_types
:'name' => :'String',
:'nickname' => :'String',
:'original_balance' => :'Float',
:'property_type' => :'Integer',
:'property_type_name' => :'String',
:'property_type' => :'String',
:'skip_webhook' => :'Boolean'
}
end
Expand All @@ -141,8 +137,8 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'account_subtype_name')
self.account_subtype_name = attributes[:'account_subtype_name']
if attributes.key?(:'account_subtype')
self.account_subtype = attributes[:'account_subtype']
end

if attributes.key?(:'account_type')
Expand Down Expand Up @@ -221,10 +217,6 @@ def initialize(attributes = {})
self.property_type = attributes[:'property_type']
end

if attributes.key?(:'property_type_name')
self.property_type_name = attributes[:'property_type_name']
end

if attributes.key?(:'skip_webhook')
self.skip_webhook = attributes[:'skip_webhook']
end
Expand Down Expand Up @@ -258,7 +250,7 @@ def valid?
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
account_subtype_name == o.account_subtype_name &&
account_subtype == o.account_subtype &&
account_type == o.account_type &&
apr == o.apr &&
apy == o.apy &&
Expand All @@ -278,7 +270,6 @@ def ==(o)
nickname == o.nickname &&
original_balance == o.original_balance &&
property_type == o.property_type &&
property_type_name == o.property_type_name &&
skip_webhook == o.skip_webhook
end

Expand All @@ -291,7 +282,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[account_subtype_name, account_type, apr, apy, available_balance, balance, cash_surrender_value, credit_limit, currency_code, death_benefit, interest_rate, is_business, is_closed, is_hidden, loan_amount, metadata, name, nickname, original_balance, property_type, property_type_name, skip_webhook].hash
[account_subtype, account_type, apr, apy, available_balance, balance, cash_surrender_value, credit_limit, currency_code, death_benefit, interest_rate, is_business, is_closed, is_hidden, loan_amount, metadata, name, nickname, original_balance, property_type, skip_webhook].hash
end

# Builds the object from hash
Expand Down
14 changes: 2 additions & 12 deletions lib/mx-platform-ruby/models/account_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ class AccountResponse

attr_accessor :property_type

attr_accessor :property_type_name

attr_accessor :routing_number

attr_accessor :started_on
Expand Down Expand Up @@ -178,7 +176,6 @@ def self.attribute_map
:'payoff_balance' => :'payoff_balance',
:'premium_amount' => :'premium_amount',
:'property_type' => :'property_type',
:'property_type_name' => :'property_type_name',
:'routing_number' => :'routing_number',
:'started_on' => :'started_on',
:'subtype' => :'subtype',
Expand Down Expand Up @@ -245,8 +242,7 @@ def self.openapi_types
:'payment_due_at' => :'String',
:'payoff_balance' => :'Float',
:'premium_amount' => :'Float',
:'property_type' => :'Integer',
:'property_type_name' => :'String',
:'property_type' => :'String',
:'routing_number' => :'String',
:'started_on' => :'String',
:'subtype' => :'String',
Expand Down Expand Up @@ -308,7 +304,6 @@ def self.openapi_nullable
:'payoff_balance',
:'premium_amount',
:'property_type',
:'property_type_name',
:'routing_number',
:'started_on',
:'subtype',
Expand Down Expand Up @@ -521,10 +516,6 @@ def initialize(attributes = {})
self.property_type = attributes[:'property_type']
end

if attributes.key?(:'property_type_name')
self.property_type_name = attributes[:'property_type_name']
end

if attributes.key?(:'routing_number')
self.routing_number = attributes[:'routing_number']
end
Expand Down Expand Up @@ -630,7 +621,6 @@ def ==(o)
payoff_balance == o.payoff_balance &&
premium_amount == o.premium_amount &&
property_type == o.property_type &&
property_type_name == o.property_type_name &&
routing_number == o.routing_number &&
started_on == o.started_on &&
subtype == o.subtype &&
Expand All @@ -652,7 +642,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[account_number, account_ownership, annuity_policy_to_date, annuity_provider, annuity_term_year, 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, imported_at, interest_rate, institution_code, insured_name, is_closed, is_hidden, is_manual, last_payment, last_payment_at, loan_amount, margin_balance, matures_on, member_guid, member_id, member_is_managed_by_user, metadata, minimum_balance, minimum_payment, name, nickname, original_balance, pay_out_amount, payment_due_at, payoff_balance, premium_amount, property_type, property_type_name, routing_number, started_on, subtype, today_ugl_amount, today_ugl_percentage, total_account_value, type, updated_at, user_guid, user_id].hash
[account_number, account_ownership, annuity_policy_to_date, annuity_provider, annuity_term_year, 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, imported_at, interest_rate, institution_code, insured_name, is_closed, is_hidden, is_manual, last_payment, last_payment_at, loan_amount, margin_balance, matures_on, member_guid, member_id, member_is_managed_by_user, metadata, minimum_balance, minimum_payment, name, nickname, original_balance, pay_out_amount, payment_due_at, payoff_balance, premium_amount, property_type, routing_number, started_on, subtype, today_ugl_amount, today_ugl_percentage, total_account_value, type, updated_at, user_guid, user_id].hash
end

# Builds the object from hash
Expand Down
Loading

0 comments on commit f6e829e

Please sign in to comment.