transferzero-sdk 1.23.5 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 371671ea6f73262096beb1b8357f2923179a76c8c2a71ce68529ec57aa3fc2bd
4
- data.tar.gz: 2c51ec76ac620606182ec4df940e750be3df07b29f8bca373b7dcfa65820ef59
3
+ metadata.gz: fb1aeafc95f3c00d9885dbdd3b7fb3248113c0d70c5b6cd016cdb6ba6fcf6b21
4
+ data.tar.gz: b56b2139f1760b4541af58237160e2a19497e124a986851bd0959883c7ee908c
5
5
  SHA512:
6
- metadata.gz: ff558d11ac7d0ca020a38e5e96a6bc7b3286c369871b70f7103b5c457890c8da051c42cf1c1bbdc57d2b658f1326597333797c90582c7f0f45021f9eba6e7b3c
7
- data.tar.gz: d948b5633191d8bb7a7478f21a5a2659e6c1a254a62a32e7b2dbd64a07d781d6e32592384dec5be26f81a7d07760f6cc7501c2b404ae11beb7212bdcff94c41d
6
+ metadata.gz: 07453507337424f002673ddd980a3443ccf7da20b49aed865cc1aa63d42dfe8dc4a9d3ad371dc93625f9e13e52aaec8fcecadbfd8e7b0b48cc385d31b1698f3e
7
+ data.tar.gz: e5495a95b2e78af0edb2ec36632b51ad3bb529fdfe9a3248e6c4ecccf26d57f4ef8335e3d764a97280643361834285f626805762d0c688ab4a42ee0d682a5c46
data/README.md CHANGED
@@ -7,7 +7,7 @@ Reference documentation for the TransferZero API V1
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0
10
- - Package version: 1.23.5
10
+ - Package version: 1.24.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  For more information, please visit:
@@ -31,15 +31,15 @@ gem build transferzero-sdk.gemspec
31
31
  Then either install the gem locally:
32
32
 
33
33
  ```shell
34
- gem install ./transferzero-sdk-1.23.5.gem
34
+ gem install ./transferzero-sdk-1.24.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.23.5.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.24.0.gem` to install the development dependencies)
37
37
 
38
38
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
39
39
 
40
40
  Finally add this to the Gemfile:
41
41
 
42
- gem 'transferzero-sdk', '~> 1.23.5'
42
+ gem 'transferzero-sdk', '~> 1.24.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -215,11 +215,13 @@ Class | Method | HTTP request | Description
215
215
  - [TransferZero::PayoutMethodDetailsGHSCash](docs/PayoutMethodDetailsGHSCash.md)
216
216
  - [TransferZero::PayoutMethodDetailsGNFMobile](docs/PayoutMethodDetailsGNFMobile.md)
217
217
  - [TransferZero::PayoutMethodDetailsIBAN](docs/PayoutMethodDetailsIBAN.md)
218
+ - [TransferZero::PayoutMethodDetailsINRBank](docs/PayoutMethodDetailsINRBank.md)
218
219
  - [TransferZero::PayoutMethodDetailsKESBank](docs/PayoutMethodDetailsKESBank.md)
219
220
  - [TransferZero::PayoutMethodDetailsKESMobile](docs/PayoutMethodDetailsKESMobile.md)
220
221
  - [TransferZero::PayoutMethodDetailsMADCash](docs/PayoutMethodDetailsMADCash.md)
221
222
  - [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
222
223
  - [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
224
+ - [TransferZero::PayoutMethodDetailsNZDBank](docs/PayoutMethodDetailsNZDBank.md)
223
225
  - [TransferZero::PayoutMethodDetailsUSDBank](docs/PayoutMethodDetailsUSDBank.md)
224
226
  - [TransferZero::PayoutMethodDetailsUSDCash](docs/PayoutMethodDetailsUSDCash.md)
225
227
  - [TransferZero::PayoutMethodDetailsXAFBank](docs/PayoutMethodDetailsXAFBank.md)
data/docs/PayoutMethod.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **type** | **String** | Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - `NGN::Bank` - for Nigerian bank account payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `GHS::Cash` - for Ghanaian cash remittance payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `XOF::Mobile` - for mobile money payments to West-Africa. - `XOF::Bank` - for Senegalese bank account payments. - `XOF::Cash` - for Senegalese cash remittance payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank and FP accounts transfers in GBP. - `ZAR::Bank` - for South Africa bank account payments. - `USD::Bank` - for USD account payments. *** Currently Nigeria only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. - `XAF::Mobile` - for mobile money payments to Cameroon. - `XAF::Bank` - for Cameroon bank account payments.. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance | [optional]
7
+ **type** | **String** | Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - `NGN::Bank` - for Nigerian bank account payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `GHS::Cash` - for Ghanaian cash remittance payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `XOF::Mobile` - for mobile money payments to West-Africa. - `XOF::Bank` - for Senegalese bank account payments. - `XOF::Cash` - for Senegalese cash remittance payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank and FP accounts transfers in GBP. - `ZAR::Bank` - for South Africa bank account payments. - `USD::Bank` - for USD account payments. *** Currently Nigeria only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. - `XAF::Mobile` - for mobile money payments to Cameroon. - `XAF::Bank` - for Cameroon bank account payments.. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. - `NZD::Bank` - for New Zealand bank account payments. - `INR::Bank` - for Indian bank account payments. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance | [optional]
8
8
  **details** | [**PayoutMethodDetails**](PayoutMethodDetails.md) | | [optional]
9
9
  **metadata** | [**Object**](.md) | Metadata of payout method. You can store any kind of information in this field. | [optional]
10
10
  **id** | **String** | | [optional]
@@ -44,6 +44,7 @@ Name | Type | Description | Notes
44
44
  **swift_code** | **String** | |
45
45
  **pix_key_type** | [**PayoutMethodPixKeyTypeEnum**](PayoutMethodPixKeyTypeEnum.md) | | [optional]
46
46
  **pix_key_value** | **String** | | [optional]
47
+ **ifsc_code** | **String** | |
47
48
 
48
49
  ## Code Sample
49
50
 
@@ -89,7 +90,8 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
89
90
  branch_code: null,
90
91
  swift_code: null,
91
92
  pix_key_type: null,
92
- pix_key_value: null)
93
+ pix_key_value: null,
94
+ ifsc_code: null)
93
95
  ```
94
96
 
95
97
 
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **first_name** | **String** | |
8
8
  **last_name** | **String** | |
9
+ **city** | **String** | |
10
+ **postal_code** | **String** | |
9
11
  **phone_number** | **String** | | [optional]
10
12
  **bank_code** | **String** | | [optional]
11
13
  **branch_code** | **String** | | [optional]
@@ -24,6 +26,8 @@ require 'TransferZero'
24
26
 
25
27
  instance = TransferZero::PayoutMethodDetailsBRLBank.new(first_name: null,
26
28
  last_name: null,
29
+ city: null,
30
+ postal_code: null,
27
31
  phone_number: null,
28
32
  bank_code: null,
29
33
  branch_code: null,
@@ -0,0 +1,33 @@
1
+ # TransferZero::PayoutMethodDetailsINRBank
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **city** | **String** | |
10
+ **street** | **String** | |
11
+ **postal_code** | **String** | |
12
+ **phone_number** | **String** | |
13
+ **bank_name** | **String** | |
14
+ **bank_account** | **String** | |
15
+ **ifsc_code** | **String** | |
16
+
17
+ ## Code Sample
18
+
19
+ ```ruby
20
+ require 'TransferZero'
21
+
22
+ instance = TransferZero::PayoutMethodDetailsINRBank.new(first_name: null,
23
+ last_name: null,
24
+ city: null,
25
+ street: null,
26
+ postal_code: null,
27
+ phone_number: null,
28
+ bank_name: null,
29
+ bank_account: null,
30
+ ifsc_code: null)
31
+ ```
32
+
33
+
@@ -0,0 +1,23 @@
1
+ # TransferZero::PayoutMethodDetailsNZDBank
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **bank_account** | **String** | |
10
+ **bank_name** | **String** | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'TransferZero'
16
+
17
+ instance = TransferZero::PayoutMethodDetailsNZDBank.new(first_name: null,
18
+ last_name: null,
19
+ bank_account: null,
20
+ bank_name: null)
21
+ ```
22
+
23
+
data/docs/Sender.md CHANGED
@@ -26,7 +26,7 @@ Name | Type | Description | Notes
26
26
  **birth_date** | **Date** | Date of birth of sender (used only with a Personal sender) | [optional]
27
27
  **occupation** | **String** | Occupation of sender (used only with a Personal sender) | [optional]
28
28
  **nationality** | **String** | The nationality of the sender (used only with a Personal sender) | [optional]
29
- **legal_entity_type** | **String** | Legal entity type (used only with a Business sender) Available values: - sole_proprietorship: Sole Proprietorship - partnership: Partnership - privately_owned_company: Privately Owned Company (Limited Company) - publicly_owned_company: Publicly Listed Company (PLC) - government_owned_entity: Government Owned Entity Trusts - trust: Foundations & Similar Entities - ngo: Non-Government Organisations / Charities inc Religious bodies and place of worship - club_and_society: Clubs and Societies - go: GO (Majority Owned Subsidiary of State-Owned Company) - financial_institution: Financial Institution - mto: Money Transfer Operator (MTO) / Other Licensed Financial Institution Please note not all values are acceptable for some our corridors. Please reach out to our sales teams for more information. Note that if you select `financial_institution` then the fields `vat_registration_number`, `financial_regulator` and `regulatory_licence_number` will be mandatory as well. Note that if you select `mto` then following fields will be mandatory as well: `regulatory_licence_number`, `company_office_number`, `company_office_number_country`, `aml_officer_email`, `aml_officer_phone`, `aml_officer_phone_country`, `company_website_url`, `tax_identification_no`, `number_of_employees_in_company`, `list_of_countries_of_operation`, `estimated_annual_revenue_turnover`, `declaration`. | [optional]
29
+ **legal_entity_type** | **String** | Legal entity type (used only with a Business sender) Available values: - sole_proprietorship: Sole Proprietorship - partnership: Partnership - privately_owned_company: Privately Owned Company (Limited Company) - publicly_owned_company: Publicly Listed Company (PLC) - government_owned_entity: Government Owned Entity Trusts - trust: Foundations & Similar Entities - ngo: Non-Government Organisations / Charities inc Religious bodies and place of worship - club_and_society: Clubs and Societies - go: GO (Majority Owned Subsidiary of State-Owned Company) - financial_institution: Financial Institution - mto: Money Transfer Operator (MTO) / Other Licensed Financial Institution Please note not all values are acceptable for some our corridors. Please reach out to our sales teams for more information. Note that if you select `financial_institution` then the fields `vat_registration_number`, `financial_regulator` and `regulatory_licence_number` will be mandatory as well. Note that if you select `mto` then following fields will be mandatory as well: `vat_registration_number`, `financial_regulator`, `regulatory_licence_number`, `company_office_number`, `company_office_number_country`, `aml_officer_email`, `aml_officer_phone`, `aml_officer_phone_country`, `company_website_url`, `number_of_employees_in_company`, `list_of_countries_of_operation`, `estimated_annual_revenue_turnover`, `declaration`. | [optional]
30
30
  **registration_date** | **Date** | The registration date (used only with a Business sender) | [optional]
31
31
  **registration_number** | **String** | The registration number (used only with a Business sender) | [optional]
32
32
  **nature_of_business** | **String** | Nature of business options (used only with a Business sender) Available values: - personal: Personal - agriculture_and_hunting: Agriculture and Hunting - forestry: Forestry - fishing: Fishing - agricultural_by_products: Agricultural By-Products - coal_mining: Coal Mining - oil_mining: Oil Mining - iron_ore_mining: Iron Ore Mining - other_metal_and_diamond_mining: Other Metal and Diamond Mining - other_mineral_mining: Other Mineral Mining - manufacturing_of_food_drink_tobacco: Manufacture of Food/Drink/Tobacco - manufacturing_of_textiles_leather_fur_furniture: Manufacture of Textiles/Leather/Fur/Furniture - manufacture_of_wooden_products_furniture: Manufacture of Wooden Products/Furniture - manufacture_of_paper_pulp_allied_products: Manufacture of Paper/Pulp/Allied Products - manufacture_of_chemicals_medical_petroleum_rubber_plastic_products: Manufacture Of Chemicals Medical Petroleum Rubber Plastic Products - manufacture_of_pottery_china_glass_stone: Manufacture Of Pottery China Glass Stone - manufacture_of_iron_steel_non_ferrous_metals_basic_industries: Manufacture Of Iron Steel Non-Ferrous Metals Basic Industries - manufacture_of_metal_products_electrical_and_scientific_engineering: Manufacture Of Metal Products Electrical And Scientific Engineering - manufacture_of_jewelry_musical_instruments_toys: Manufacture Of Jewelry Musical Instruments Toys - electricity_gas_and_water: Electricity, Gas And Water - construction: Construction - wholesale_trade: Wholesale Trade - retail_trade: Retail Trade - catering_incl_hotels: Catering Incl. Hotels - transport_storage: Transport Storage - communications: Communications - finance_and_holding_companies: Finance And Holding Companies - insurance: Insurance - business_services: Business Services - real_estate_development_investment: Real Estate Development Investment - central_state_governments: Central State Governments - community_services_defence_police_prisons_etc: Community Services Defence Police Prisons Etc - social_services_education_health_care: Social Services Education Health Care - personal_services_leisure_services: Personal Services - Leisure Services - personal_services_domestic_laundry_repairs: Personal Services - Domestic Laundry Repairs - personal_services_embassies_international_organisations: Personal Services - Embassies | [optional]
@@ -61,7 +61,6 @@ Name | Type | Description | Notes
61
61
  **aml_officer_phone** | **String** | Phone number of AML Officer (without country callcode, used only with a Business sender) | [optional]
62
62
  **aml_officer_phone_country** | **String** | Phone number country of AML Officer in 2-character alpha ISO 3166-2 country format (used only with a Business sender) | [optional]
63
63
  **company_website_url** | **String** | Company website URL (used only with a Business sender) | [optional]
64
- **tax_identification_no** | **String** | Tax Identification Number (used only with a Business sender) | [optional]
65
64
  **number_of_employees_in_company** | **String** | Number of employees in company (used only with a Business sender) | [optional]
66
65
  **list_of_countries_of_operation** | **Array<String>** | List of countries of operation (used only with a Business sender) | [optional]
67
66
  **estimated_annual_revenue_turnover** | **String** | Estimated annual turnover (in USD or equivalent, used only with a Business sender) | [optional]
@@ -129,7 +128,6 @@ instance = TransferZero::Sender.new(id: bf9ff782-e182-45ac-abea-5bce83ad6670,
129
128
  aml_officer_phone: 123123123,
130
129
  aml_officer_phone_country: GB,
131
130
  company_website_url: www.azafinance.com,
132
- tax_identification_no: null,
133
131
  number_of_employees_in_company: 250+,
134
132
  list_of_countries_of_operation: ["Spain","Germany","Poland"],
135
133
  estimated_annual_revenue_turnover: null,
@@ -36,7 +36,7 @@ module TransferZero
36
36
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
37
37
  def initialize(config = Configuration.default)
38
38
  @config = config
39
- @user_agent = "TransferZero-SDK/Ruby/1.23.5"
39
+ @user_agent = "TransferZero-SDK/Ruby/1.24.0"
40
40
  @default_headers = {
41
41
  'Content-Type' => 'application/json',
42
42
  'User-Agent' => @user_agent
@@ -15,7 +15,7 @@ require 'date'
15
15
  module TransferZero
16
16
  # This describes the specific details on how the payment has to be routed to the recipient.
17
17
  class PayoutMethod
18
- # Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - `NGN::Bank` - for Nigerian bank account payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `GHS::Cash` - for Ghanaian cash remittance payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `XOF::Mobile` - for mobile money payments to West-Africa. - `XOF::Bank` - for Senegalese bank account payments. - `XOF::Cash` - for Senegalese cash remittance payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank and FP accounts transfers in GBP. - `ZAR::Bank` - for South Africa bank account payments. - `USD::Bank` - for USD account payments. *** Currently Nigeria only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. - `XAF::Mobile` - for mobile money payments to Cameroon. - `XAF::Bank` - for Cameroon bank account payments.. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance
18
+ # Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - `NGN::Bank` - for Nigerian bank account payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `GHS::Cash` - for Ghanaian cash remittance payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `XOF::Mobile` - for mobile money payments to West-Africa. - `XOF::Bank` - for Senegalese bank account payments. - `XOF::Cash` - for Senegalese cash remittance payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank and FP accounts transfers in GBP. - `ZAR::Bank` - for South Africa bank account payments. - `USD::Bank` - for USD account payments. *** Currently Nigeria only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. - `XAF::Mobile` - for mobile money payments to Cameroon. - `XAF::Bank` - for Cameroon bank account payments.. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. - `NZD::Bank` - for New Zealand bank account payments. - `INR::Bank` - for Indian bank account payments. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance
19
19
  attr_accessor :type
20
20
 
21
21
  attr_accessor :details
@@ -27,6 +27,7 @@ class PayoutMethodCountryEnum
27
27
  AR = "AR".freeze
28
28
  AM = "AM".freeze
29
29
  AW = "AW".freeze
30
+ AX = "AX".freeze
30
31
  AU = "AU".freeze
31
32
  AT = "AT".freeze
32
33
  AZ = "AZ".freeze
@@ -94,6 +94,8 @@ class PayoutMethodDetails
94
94
 
95
95
  attr_accessor :pix_key_value
96
96
 
97
+ attr_accessor :ifsc_code
98
+
97
99
  # Attribute mapping from ruby-style variable name to JSON key.
98
100
  def self.attribute_map
99
101
  {
@@ -136,7 +138,8 @@ class PayoutMethodDetails
136
138
  :'branch_code' => :'branch_code',
137
139
  :'swift_code' => :'swift_code',
138
140
  :'pix_key_type' => :'pix_key_type',
139
- :'pix_key_value' => :'pix_key_value'
141
+ :'pix_key_value' => :'pix_key_value',
142
+ :'ifsc_code' => :'ifsc_code'
140
143
  }
141
144
  end
142
145
 
@@ -182,7 +185,8 @@ class PayoutMethodDetails
182
185
  :'branch_code' => :'String',
183
186
  :'swift_code' => :'String',
184
187
  :'pix_key_type' => :'PayoutMethodPixKeyTypeEnum',
185
- :'pix_key_value' => :'String'
188
+ :'pix_key_value' => :'String',
189
+ :'ifsc_code' => :'String'
186
190
  }
187
191
  end
188
192
 
@@ -197,11 +201,13 @@ class PayoutMethodDetails
197
201
  :'PayoutMethodDetailsGHSCash',
198
202
  :'PayoutMethodDetailsGNFMobile',
199
203
  :'PayoutMethodDetailsIBAN',
204
+ :'PayoutMethodDetailsINRBank',
200
205
  :'PayoutMethodDetailsKESBank',
201
206
  :'PayoutMethodDetailsKESMobile',
202
207
  :'PayoutMethodDetailsMADCash',
203
208
  :'PayoutMethodDetailsMobile',
204
209
  :'PayoutMethodDetailsNGNBank',
210
+ :'PayoutMethodDetailsNZDBank',
205
211
  :'PayoutMethodDetailsUSDBank',
206
212
  :'PayoutMethodDetailsUSDCash',
207
213
  :'PayoutMethodDetailsXAFBank',
@@ -387,6 +393,10 @@ class PayoutMethodDetails
387
393
  if attributes.key?(:'pix_key_value')
388
394
  self.pix_key_value = attributes[:'pix_key_value']
389
395
  end
396
+
397
+ if attributes.key?(:'ifsc_code')
398
+ self.ifsc_code = attributes[:'ifsc_code']
399
+ end
390
400
  end
391
401
 
392
402
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -477,6 +487,10 @@ class PayoutMethodDetails
477
487
  invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
478
488
  end
479
489
 
490
+ if @ifsc_code.nil?
491
+ invalid_properties.push('invalid value for "ifsc_code", ifsc_code cannot be nil.')
492
+ end
493
+
480
494
  invalid_properties
481
495
  end
482
496
 
@@ -504,6 +518,7 @@ class PayoutMethodDetails
504
518
  return false if @postal_code.nil?
505
519
  return false if @city.nil?
506
520
  return false if @swift_code.nil?
521
+ return false if @ifsc_code.nil?
507
522
  _one_of_found = false
508
523
  openapi_one_of.each do |_class|
509
524
  _one_of = TransferZero.const_get(_class).build_from_hash(self.to_hash)
@@ -567,7 +582,8 @@ class PayoutMethodDetails
567
582
  branch_code == o.branch_code &&
568
583
  swift_code == o.swift_code &&
569
584
  pix_key_type == o.pix_key_type &&
570
- pix_key_value == o.pix_key_value
585
+ pix_key_value == o.pix_key_value &&
586
+ ifsc_code == o.ifsc_code
571
587
  end
572
588
 
573
589
  # @see the `==` method
@@ -579,7 +595,7 @@ class PayoutMethodDetails
579
595
  # Calculates hash code according to all attributes.
580
596
  # @return [Integer] Hash code
581
597
  def hash
582
- [first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, transfer_reason, iban, bank_name, bank_country, cash_provider, sort_code, bic, sender_identity_card_type, sender_identity_card_id, sender_city_of_birth, sender_country_of_birth, sender_gender, reason, identity_card_type, identity_card_id, reference, name, address, street, postal_code, city, email, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, branch_code, swift_code, pix_key_type, pix_key_value].hash
598
+ [first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, transfer_reason, iban, bank_name, bank_country, cash_provider, sort_code, bic, sender_identity_card_type, sender_identity_card_id, sender_city_of_birth, sender_country_of_birth, sender_gender, reason, identity_card_type, identity_card_id, reference, name, address, street, postal_code, city, email, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, branch_code, swift_code, pix_key_type, pix_key_value, ifsc_code].hash
583
599
  end
584
600
 
585
601
  require 'active_support/core_ext/hash'
@@ -13,12 +13,16 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # PIX Payment: ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"+552112345678\", // E.164 international format \"pix_key_type\": \"email\", \"pix_key_value\": \"person@example.com\", \"identity_card_type\": \"ID\", \"identity_card_id\": \"01234567890\", \"transfer_reason\": \"personal_account\" } ``` TED Payment: ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"+552112345678\", // E.164 international format \"bank_code\": \"104\", \"branch_code\": \"00001\", \"bank_account\": \"0009795493\", \"bank_account_type\": \"10\", \"identity_card_type\": \"ID\", \"identity_card_id\": \"01234567890\", \"transfer_reason\": \"personal_account\" } ``` See [BRL Bank](https://docs.transferzero.com/docs/payout-details/#brlbank) documentation for the bank_code and transfer_reason lists
16
+ # PIX Payment: ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"city\": \"Brasilia\", \"postal_code\": \"70070\", \"phone_number\": \"+552112345678\", // E.164 international format \"pix_key_type\": \"email\", \"pix_key_value\": \"person@example.com\", \"identity_card_type\": \"ID\", \"identity_card_id\": \"01234567890\", \"transfer_reason\": \"personal_account\" } ``` TED Payment: ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"city\": \"Brasilia\", \"postal_code\": \"70070\", \"phone_number\": \"+552112345678\", // E.164 international format \"bank_code\": \"104\", \"branch_code\": \"00001\", \"bank_account\": \"0009795493\", \"bank_account_type\": \"10\", \"identity_card_type\": \"ID\", \"identity_card_id\": \"01234567890\", \"transfer_reason\": \"personal_account\" } ``` See [BRL Bank](https://docs.transferzero.com/docs/payout-details/#brlbank) documentation for the bank_code and transfer_reason lists
17
17
  class PayoutMethodDetailsBRLBank
18
18
  attr_accessor :first_name
19
19
 
20
20
  attr_accessor :last_name
21
21
 
22
+ attr_accessor :city
23
+
24
+ attr_accessor :postal_code
25
+
22
26
  attr_accessor :phone_number
23
27
 
24
28
  attr_accessor :bank_code
@@ -44,6 +48,8 @@ class PayoutMethodDetailsBRLBank
44
48
  {
45
49
  :'first_name' => :'first_name',
46
50
  :'last_name' => :'last_name',
51
+ :'city' => :'city',
52
+ :'postal_code' => :'postal_code',
47
53
  :'phone_number' => :'phone_number',
48
54
  :'bank_code' => :'bank_code',
49
55
  :'branch_code' => :'branch_code',
@@ -62,6 +68,8 @@ class PayoutMethodDetailsBRLBank
62
68
  {
63
69
  :'first_name' => :'String',
64
70
  :'last_name' => :'String',
71
+ :'city' => :'String',
72
+ :'postal_code' => :'String',
65
73
  :'phone_number' => :'String',
66
74
  :'bank_code' => :'String',
67
75
  :'branch_code' => :'String',
@@ -98,6 +106,14 @@ class PayoutMethodDetailsBRLBank
98
106
  self.last_name = attributes[:'last_name']
99
107
  end
100
108
 
109
+ if attributes.key?(:'city')
110
+ self.city = attributes[:'city']
111
+ end
112
+
113
+ if attributes.key?(:'postal_code')
114
+ self.postal_code = attributes[:'postal_code']
115
+ end
116
+
101
117
  if attributes.key?(:'phone_number')
102
118
  self.phone_number = attributes[:'phone_number']
103
119
  end
@@ -151,6 +167,14 @@ class PayoutMethodDetailsBRLBank
151
167
  invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
152
168
  end
153
169
 
170
+ if @city.nil?
171
+ invalid_properties.push('invalid value for "city", city cannot be nil.')
172
+ end
173
+
174
+ if @postal_code.nil?
175
+ invalid_properties.push('invalid value for "postal_code", postal_code cannot be nil.')
176
+ end
177
+
154
178
  if @identity_card_type.nil?
155
179
  invalid_properties.push('invalid value for "identity_card_type", identity_card_type cannot be nil.')
156
180
  end
@@ -171,6 +195,8 @@ class PayoutMethodDetailsBRLBank
171
195
  def valid?
172
196
  return false if @first_name.nil?
173
197
  return false if @last_name.nil?
198
+ return false if @city.nil?
199
+ return false if @postal_code.nil?
174
200
  return false if @identity_card_type.nil?
175
201
  return false if @identity_card_id.nil?
176
202
  return false if @transfer_reason.nil?
@@ -184,6 +210,8 @@ class PayoutMethodDetailsBRLBank
184
210
  self.class == o.class &&
185
211
  first_name == o.first_name &&
186
212
  last_name == o.last_name &&
213
+ city == o.city &&
214
+ postal_code == o.postal_code &&
187
215
  phone_number == o.phone_number &&
188
216
  bank_code == o.bank_code &&
189
217
  branch_code == o.branch_code &&
@@ -205,7 +233,7 @@ class PayoutMethodDetailsBRLBank
205
233
  # Calculates hash code according to all attributes.
206
234
  # @return [Integer] Hash code
207
235
  def hash
208
- [first_name, last_name, phone_number, bank_code, branch_code, bank_account, bank_account_type, pix_key_type, pix_key_value, identity_card_type, identity_card_id, transfer_reason].hash
236
+ [first_name, last_name, city, postal_code, phone_number, bank_code, branch_code, bank_account, bank_account_type, pix_key_type, pix_key_value, identity_card_type, identity_card_id, transfer_reason].hash
209
237
  end
210
238
 
211
239
  require 'active_support/core_ext/hash'
@@ -0,0 +1,320 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module TransferZero
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"city\": \"New Delhi\", \"street\": \"1, Akbar Road\", \"postal_code\": \"110016\", \"phone_number\": \"+919876543210\", \"bank_name\": \"Bank of India\" \"bank_account\": \"1234567890\", \"ifsc_code\": \"BKID0006005\" } ``` See [INR Bank](https://docs.transferzero.com/docs/payout-details/#inrbank) documentation for the bank_name list
17
+ class PayoutMethodDetailsINRBank
18
+ attr_accessor :first_name
19
+
20
+ attr_accessor :last_name
21
+
22
+ attr_accessor :city
23
+
24
+ attr_accessor :street
25
+
26
+ attr_accessor :postal_code
27
+
28
+ attr_accessor :phone_number
29
+
30
+ attr_accessor :bank_name
31
+
32
+ attr_accessor :bank_account
33
+
34
+ attr_accessor :ifsc_code
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'first_name' => :'first_name',
40
+ :'last_name' => :'last_name',
41
+ :'city' => :'city',
42
+ :'street' => :'street',
43
+ :'postal_code' => :'postal_code',
44
+ :'phone_number' => :'phone_number',
45
+ :'bank_name' => :'bank_name',
46
+ :'bank_account' => :'bank_account',
47
+ :'ifsc_code' => :'ifsc_code'
48
+ }
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.openapi_types
53
+ {
54
+ :'first_name' => :'String',
55
+ :'last_name' => :'String',
56
+ :'city' => :'String',
57
+ :'street' => :'String',
58
+ :'postal_code' => :'String',
59
+ :'phone_number' => :'String',
60
+ :'bank_name' => :'String',
61
+ :'bank_account' => :'String',
62
+ :'ifsc_code' => :'String'
63
+ }
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PayoutMethodDetailsINRBank` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ attributes = attributes.each_with_object({}) { |(k, v), h|
75
+ if (!self.class.attribute_map.key?(k.to_sym))
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PayoutMethodDetailsINRBank`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+ end
78
+ h[k.to_sym] = v
79
+ }
80
+
81
+ if attributes.key?(:'first_name')
82
+ self.first_name = attributes[:'first_name']
83
+ end
84
+
85
+ if attributes.key?(:'last_name')
86
+ self.last_name = attributes[:'last_name']
87
+ end
88
+
89
+ if attributes.key?(:'city')
90
+ self.city = attributes[:'city']
91
+ end
92
+
93
+ if attributes.key?(:'street')
94
+ self.street = attributes[:'street']
95
+ end
96
+
97
+ if attributes.key?(:'postal_code')
98
+ self.postal_code = attributes[:'postal_code']
99
+ end
100
+
101
+ if attributes.key?(:'phone_number')
102
+ self.phone_number = attributes[:'phone_number']
103
+ end
104
+
105
+ if attributes.key?(:'bank_name')
106
+ self.bank_name = attributes[:'bank_name']
107
+ end
108
+
109
+ if attributes.key?(:'bank_account')
110
+ self.bank_account = attributes[:'bank_account']
111
+ end
112
+
113
+ if attributes.key?(:'ifsc_code')
114
+ self.ifsc_code = attributes[:'ifsc_code']
115
+ end
116
+ end
117
+
118
+ # Show invalid properties with the reasons. Usually used together with valid?
119
+ # @return Array for valid properties with the reasons
120
+ def list_invalid_properties
121
+ invalid_properties = Array.new
122
+ if @first_name.nil?
123
+ invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
124
+ end
125
+
126
+ if @last_name.nil?
127
+ invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
128
+ end
129
+
130
+ if @city.nil?
131
+ invalid_properties.push('invalid value for "city", city cannot be nil.')
132
+ end
133
+
134
+ if @street.nil?
135
+ invalid_properties.push('invalid value for "street", street cannot be nil.')
136
+ end
137
+
138
+ if @postal_code.nil?
139
+ invalid_properties.push('invalid value for "postal_code", postal_code cannot be nil.')
140
+ end
141
+
142
+ if @phone_number.nil?
143
+ invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
144
+ end
145
+
146
+ if @bank_name.nil?
147
+ invalid_properties.push('invalid value for "bank_name", bank_name cannot be nil.')
148
+ end
149
+
150
+ if @bank_account.nil?
151
+ invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
152
+ end
153
+
154
+ if @ifsc_code.nil?
155
+ invalid_properties.push('invalid value for "ifsc_code", ifsc_code cannot be nil.')
156
+ end
157
+
158
+ invalid_properties
159
+ end
160
+
161
+ # Check to see if the all the properties in the model are valid
162
+ # @return true if the model is valid
163
+ def valid?
164
+ return false if @first_name.nil?
165
+ return false if @last_name.nil?
166
+ return false if @city.nil?
167
+ return false if @street.nil?
168
+ return false if @postal_code.nil?
169
+ return false if @phone_number.nil?
170
+ return false if @bank_name.nil?
171
+ return false if @bank_account.nil?
172
+ return false if @ifsc_code.nil?
173
+ true
174
+ end
175
+
176
+ # Checks equality by comparing each attribute.
177
+ # @param [Object] Object to be compared
178
+ def ==(o)
179
+ return true if self.equal?(o)
180
+ self.class == o.class &&
181
+ first_name == o.first_name &&
182
+ last_name == o.last_name &&
183
+ city == o.city &&
184
+ street == o.street &&
185
+ postal_code == o.postal_code &&
186
+ phone_number == o.phone_number &&
187
+ bank_name == o.bank_name &&
188
+ bank_account == o.bank_account &&
189
+ ifsc_code == o.ifsc_code
190
+ end
191
+
192
+ # @see the `==` method
193
+ # @param [Object] Object to be compared
194
+ def eql?(o)
195
+ self == o
196
+ end
197
+
198
+ # Calculates hash code according to all attributes.
199
+ # @return [Integer] Hash code
200
+ def hash
201
+ [first_name, last_name, city, street, postal_code, phone_number, bank_name, bank_account, ifsc_code].hash
202
+ end
203
+
204
+ require 'active_support/core_ext/hash'
205
+ require 'active_support/hash_with_indifferent_access.rb'
206
+ # Builds the object from hash
207
+ # @param [Hash] attributes Model attributes in the form of hash
208
+ # @return [Object] Returns the model itself
209
+ def build_from_hash(attributes)
210
+ return nil unless attributes.is_a?(Hash)
211
+ self.class.openapi_types.each_pair do |key, type|
212
+ if type =~ /\AArray<(.*)>/i
213
+ # check to ensure the input is an array given that the the attribute
214
+ # is documented as an array but the input is not
215
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
216
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
217
+ end
218
+ elsif !attributes[self.class.attribute_map[key]].nil?
219
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
220
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
221
+ end
222
+
223
+ self
224
+ end
225
+
226
+ # Deserializes the data based on type
227
+ # @param string type Data type
228
+ # @param string value Value to be deserialized
229
+ # @return [Object] Deserialized data
230
+ def _deserialize(type, value)
231
+ case type.to_sym
232
+ when :DateTime
233
+ DateTime.parse(value)
234
+ when :Date
235
+ Date.parse(value)
236
+ when :String
237
+ value.to_s
238
+ when :Integer
239
+ value.to_i
240
+ when :Float
241
+ value.to_f
242
+ when :Boolean
243
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
244
+ true
245
+ else
246
+ false
247
+ end
248
+ when :Object
249
+ # generic object (usually a Hash), return directly
250
+ value
251
+ when /\AArray<(?<inner_type>.+)>\z/
252
+ inner_type = Regexp.last_match[:inner_type]
253
+ value.map { |v| _deserialize(inner_type, v) }
254
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
255
+ k_type = Regexp.last_match[:k_type]
256
+ v_type = Regexp.last_match[:v_type]
257
+ {}.tap do |hash|
258
+ value.each do |k, v|
259
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
260
+ end
261
+ end
262
+ else # model
263
+ temp_model = TransferZero.const_get(type).new
264
+ temp_model.build_from_hash(value)
265
+ end
266
+ end
267
+
268
+ # Returns the string representation of the object
269
+ # @return [String] String presentation of the object
270
+ def to_s
271
+ to_hash.to_s
272
+ end
273
+
274
+ # to_body is an alias to to_hash (backward compatibility)
275
+ # @return [Hash] Returns the object in the form of hash
276
+ def to_body
277
+ to_hash
278
+ end
279
+
280
+ # Returns the object in the form of hash
281
+ # @return [Hash] Returns the object in the form of hash
282
+ def to_hash
283
+ hash = {}
284
+ self.class.attribute_map.each_pair do |attr, param|
285
+ value = self.send(attr)
286
+ next if value.nil?
287
+ hash[param] = _to_hash(value)
288
+ end
289
+ ::ActiveSupport::HashWithIndifferentAccess.new(hash)
290
+ end
291
+
292
+ def [](key)
293
+ to_hash[key]
294
+ end
295
+
296
+ def dig(*args)
297
+ to_hash.dig(*args)
298
+ end
299
+
300
+ # Outputs non-array value in the form of hash
301
+ # For object, use to_hash. Otherwise, just return the value
302
+ # @param [Object] value Any valid value
303
+ # @return [Hash] Returns the value in the form of hash
304
+ def _to_hash(value)
305
+ if value.is_a?(Array)
306
+ value.compact.map { |v| _to_hash(v) }
307
+ elsif value.is_a?(Hash)
308
+ {}.tap do |hash|
309
+ value.each { |k, v| hash[k] = _to_hash(v) }
310
+ end
311
+ elsif value.respond_to? :to_hash
312
+ value.to_hash
313
+ else
314
+ value
315
+ end
316
+ end
317
+
318
+ end
319
+
320
+ end
@@ -0,0 +1,250 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module TransferZero
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"bank_account\": \"1212341234567123\", \"bank_name\": \"ASB Bank\" } ``` See [NZD Bank](https://docs.transferzero.com/docs/payout-details/#nzdbank) documentation for the bank_name list
17
+ class PayoutMethodDetailsNZDBank
18
+ attr_accessor :first_name
19
+
20
+ attr_accessor :last_name
21
+
22
+ attr_accessor :bank_account
23
+
24
+ attr_accessor :bank_name
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'first_name' => :'first_name',
30
+ :'last_name' => :'last_name',
31
+ :'bank_account' => :'bank_account',
32
+ :'bank_name' => :'bank_name'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'first_name' => :'String',
40
+ :'last_name' => :'String',
41
+ :'bank_account' => :'String',
42
+ :'bank_name' => :'String'
43
+ }
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PayoutMethodDetailsNZDBank` initialize method"
51
+ end
52
+
53
+ # check to see if the attribute exists and convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h|
55
+ if (!self.class.attribute_map.key?(k.to_sym))
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PayoutMethodDetailsNZDBank`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ end
58
+ h[k.to_sym] = v
59
+ }
60
+
61
+ if attributes.key?(:'first_name')
62
+ self.first_name = attributes[:'first_name']
63
+ end
64
+
65
+ if attributes.key?(:'last_name')
66
+ self.last_name = attributes[:'last_name']
67
+ end
68
+
69
+ if attributes.key?(:'bank_account')
70
+ self.bank_account = attributes[:'bank_account']
71
+ end
72
+
73
+ if attributes.key?(:'bank_name')
74
+ self.bank_name = attributes[:'bank_name']
75
+ end
76
+ end
77
+
78
+ # Show invalid properties with the reasons. Usually used together with valid?
79
+ # @return Array for valid properties with the reasons
80
+ def list_invalid_properties
81
+ invalid_properties = Array.new
82
+ if @first_name.nil?
83
+ invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
84
+ end
85
+
86
+ if @last_name.nil?
87
+ invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
88
+ end
89
+
90
+ if @bank_account.nil?
91
+ invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
92
+ end
93
+
94
+ if @bank_name.nil?
95
+ invalid_properties.push('invalid value for "bank_name", bank_name cannot be nil.')
96
+ end
97
+
98
+ invalid_properties
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ def valid?
104
+ return false if @first_name.nil?
105
+ return false if @last_name.nil?
106
+ return false if @bank_account.nil?
107
+ return false if @bank_name.nil?
108
+ true
109
+ end
110
+
111
+ # Checks equality by comparing each attribute.
112
+ # @param [Object] Object to be compared
113
+ def ==(o)
114
+ return true if self.equal?(o)
115
+ self.class == o.class &&
116
+ first_name == o.first_name &&
117
+ last_name == o.last_name &&
118
+ bank_account == o.bank_account &&
119
+ bank_name == o.bank_name
120
+ end
121
+
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(o)
125
+ self == o
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ def hash
131
+ [first_name, last_name, bank_account, bank_name].hash
132
+ end
133
+
134
+ require 'active_support/core_ext/hash'
135
+ require 'active_support/hash_with_indifferent_access.rb'
136
+ # Builds the object from hash
137
+ # @param [Hash] attributes Model attributes in the form of hash
138
+ # @return [Object] Returns the model itself
139
+ def build_from_hash(attributes)
140
+ return nil unless attributes.is_a?(Hash)
141
+ self.class.openapi_types.each_pair do |key, type|
142
+ if type =~ /\AArray<(.*)>/i
143
+ # check to ensure the input is an array given that the the attribute
144
+ # is documented as an array but the input is not
145
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
146
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
147
+ end
148
+ elsif !attributes[self.class.attribute_map[key]].nil?
149
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
150
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
151
+ end
152
+
153
+ self
154
+ end
155
+
156
+ # Deserializes the data based on type
157
+ # @param string type Data type
158
+ # @param string value Value to be deserialized
159
+ # @return [Object] Deserialized data
160
+ def _deserialize(type, value)
161
+ case type.to_sym
162
+ when :DateTime
163
+ DateTime.parse(value)
164
+ when :Date
165
+ Date.parse(value)
166
+ when :String
167
+ value.to_s
168
+ when :Integer
169
+ value.to_i
170
+ when :Float
171
+ value.to_f
172
+ when :Boolean
173
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
174
+ true
175
+ else
176
+ false
177
+ end
178
+ when :Object
179
+ # generic object (usually a Hash), return directly
180
+ value
181
+ when /\AArray<(?<inner_type>.+)>\z/
182
+ inner_type = Regexp.last_match[:inner_type]
183
+ value.map { |v| _deserialize(inner_type, v) }
184
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
185
+ k_type = Regexp.last_match[:k_type]
186
+ v_type = Regexp.last_match[:v_type]
187
+ {}.tap do |hash|
188
+ value.each do |k, v|
189
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
190
+ end
191
+ end
192
+ else # model
193
+ temp_model = TransferZero.const_get(type).new
194
+ temp_model.build_from_hash(value)
195
+ end
196
+ end
197
+
198
+ # Returns the string representation of the object
199
+ # @return [String] String presentation of the object
200
+ def to_s
201
+ to_hash.to_s
202
+ end
203
+
204
+ # to_body is an alias to to_hash (backward compatibility)
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_body
207
+ to_hash
208
+ end
209
+
210
+ # Returns the object in the form of hash
211
+ # @return [Hash] Returns the object in the form of hash
212
+ def to_hash
213
+ hash = {}
214
+ self.class.attribute_map.each_pair do |attr, param|
215
+ value = self.send(attr)
216
+ next if value.nil?
217
+ hash[param] = _to_hash(value)
218
+ end
219
+ ::ActiveSupport::HashWithIndifferentAccess.new(hash)
220
+ end
221
+
222
+ def [](key)
223
+ to_hash[key]
224
+ end
225
+
226
+ def dig(*args)
227
+ to_hash.dig(*args)
228
+ end
229
+
230
+ # Outputs non-array value in the form of hash
231
+ # For object, use to_hash. Otherwise, just return the value
232
+ # @param [Object] value Any valid value
233
+ # @return [Hash] Returns the value in the form of hash
234
+ def _to_hash(value)
235
+ if value.is_a?(Array)
236
+ value.compact.map { |v| _to_hash(v) }
237
+ elsif value.is_a?(Hash)
238
+ {}.tap do |hash|
239
+ value.each { |k, v| hash[k] = _to_hash(v) }
240
+ end
241
+ elsif value.respond_to? :to_hash
242
+ value.to_hash
243
+ else
244
+ value
245
+ end
246
+ end
247
+
248
+ end
249
+
250
+ end
@@ -79,7 +79,7 @@ class Sender
79
79
  # The nationality of the sender (used only with a Personal sender)
80
80
  attr_accessor :nationality
81
81
 
82
- # Legal entity type (used only with a Business sender) Available values: - sole_proprietorship: Sole Proprietorship - partnership: Partnership - privately_owned_company: Privately Owned Company (Limited Company) - publicly_owned_company: Publicly Listed Company (PLC) - government_owned_entity: Government Owned Entity Trusts - trust: Foundations & Similar Entities - ngo: Non-Government Organisations / Charities inc Religious bodies and place of worship - club_and_society: Clubs and Societies - go: GO (Majority Owned Subsidiary of State-Owned Company) - financial_institution: Financial Institution - mto: Money Transfer Operator (MTO) / Other Licensed Financial Institution Please note not all values are acceptable for some our corridors. Please reach out to our sales teams for more information. Note that if you select `financial_institution` then the fields `vat_registration_number`, `financial_regulator` and `regulatory_licence_number` will be mandatory as well. Note that if you select `mto` then following fields will be mandatory as well: `regulatory_licence_number`, `company_office_number`, `company_office_number_country`, `aml_officer_email`, `aml_officer_phone`, `aml_officer_phone_country`, `company_website_url`, `tax_identification_no`, `number_of_employees_in_company`, `list_of_countries_of_operation`, `estimated_annual_revenue_turnover`, `declaration`.
82
+ # Legal entity type (used only with a Business sender) Available values: - sole_proprietorship: Sole Proprietorship - partnership: Partnership - privately_owned_company: Privately Owned Company (Limited Company) - publicly_owned_company: Publicly Listed Company (PLC) - government_owned_entity: Government Owned Entity Trusts - trust: Foundations & Similar Entities - ngo: Non-Government Organisations / Charities inc Religious bodies and place of worship - club_and_society: Clubs and Societies - go: GO (Majority Owned Subsidiary of State-Owned Company) - financial_institution: Financial Institution - mto: Money Transfer Operator (MTO) / Other Licensed Financial Institution Please note not all values are acceptable for some our corridors. Please reach out to our sales teams for more information. Note that if you select `financial_institution` then the fields `vat_registration_number`, `financial_regulator` and `regulatory_licence_number` will be mandatory as well. Note that if you select `mto` then following fields will be mandatory as well: `vat_registration_number`, `financial_regulator`, `regulatory_licence_number`, `company_office_number`, `company_office_number_country`, `aml_officer_email`, `aml_officer_phone`, `aml_officer_phone_country`, `company_website_url`, `number_of_employees_in_company`, `list_of_countries_of_operation`, `estimated_annual_revenue_turnover`, `declaration`.
83
83
  attr_accessor :legal_entity_type
84
84
 
85
85
  # The registration date (used only with a Business sender)
@@ -184,9 +184,6 @@ class Sender
184
184
  # Company website URL (used only with a Business sender)
185
185
  attr_accessor :company_website_url
186
186
 
187
- # Tax Identification Number (used only with a Business sender)
188
- attr_accessor :tax_identification_no
189
-
190
187
  # Number of employees in company (used only with a Business sender)
191
188
  attr_accessor :number_of_employees_in_company
192
189
 
@@ -281,7 +278,6 @@ class Sender
281
278
  :'aml_officer_phone' => :'aml_officer_phone',
282
279
  :'aml_officer_phone_country' => :'aml_officer_phone_country',
283
280
  :'company_website_url' => :'company_website_url',
284
- :'tax_identification_no' => :'tax_identification_no',
285
281
  :'number_of_employees_in_company' => :'number_of_employees_in_company',
286
282
  :'list_of_countries_of_operation' => :'list_of_countries_of_operation',
287
283
  :'estimated_annual_revenue_turnover' => :'estimated_annual_revenue_turnover',
@@ -349,7 +345,6 @@ class Sender
349
345
  :'aml_officer_phone' => :'String',
350
346
  :'aml_officer_phone_country' => :'String',
351
347
  :'company_website_url' => :'String',
352
- :'tax_identification_no' => :'String',
353
348
  :'number_of_employees_in_company' => :'String',
354
349
  :'list_of_countries_of_operation' => :'Array<String>',
355
350
  :'estimated_annual_revenue_turnover' => :'String',
@@ -606,10 +601,6 @@ class Sender
606
601
  self.company_website_url = attributes[:'company_website_url']
607
602
  end
608
603
 
609
- if attributes.key?(:'tax_identification_no')
610
- self.tax_identification_no = attributes[:'tax_identification_no']
611
- end
612
-
613
604
  if attributes.key?(:'number_of_employees_in_company')
614
605
  self.number_of_employees_in_company = attributes[:'number_of_employees_in_company']
615
606
  end
@@ -799,7 +790,6 @@ class Sender
799
790
  aml_officer_phone == o.aml_officer_phone &&
800
791
  aml_officer_phone_country == o.aml_officer_phone_country &&
801
792
  company_website_url == o.company_website_url &&
802
- tax_identification_no == o.tax_identification_no &&
803
793
  number_of_employees_in_company == o.number_of_employees_in_company &&
804
794
  list_of_countries_of_operation == o.list_of_countries_of_operation &&
805
795
  estimated_annual_revenue_turnover == o.estimated_annual_revenue_turnover &&
@@ -815,7 +805,7 @@ class Sender
815
805
  # Calculates hash code according to all attributes.
816
806
  # @return [Integer] Hash code
817
807
  def hash
818
- [id, type, state, country, street, postal_code, city, phone_country, phone_number, email, ip, address_description, identification_number, identification_type, lang, name, first_name, middle_name, last_name, birth_date, occupation, nationality, legal_entity_type, registration_date, registration_number, nature_of_business, source_of_funds, custom_source_of_funds, core_business_activity, purpose_of_opening_account, office_phone, vat_registration_number, financial_regulator, regulatory_licence_number, contact_person_email, trading_country, trading_address, trading_name, number_monthly_transactions, amount_monthly_transactions, documents, metadata, errors, onboarding_status, politically_exposed_people, external_id, city_of_birth, country_of_birth, gender, sales_lead_id, created_at, company_office_number, company_office_number_country, aml_officer_email, aml_officer_phone, aml_officer_phone_country, company_website_url, tax_identification_no, number_of_employees_in_company, list_of_countries_of_operation, estimated_annual_revenue_turnover, declaration].hash
808
+ [id, type, state, country, street, postal_code, city, phone_country, phone_number, email, ip, address_description, identification_number, identification_type, lang, name, first_name, middle_name, last_name, birth_date, occupation, nationality, legal_entity_type, registration_date, registration_number, nature_of_business, source_of_funds, custom_source_of_funds, core_business_activity, purpose_of_opening_account, office_phone, vat_registration_number, financial_regulator, regulatory_licence_number, contact_person_email, trading_country, trading_address, trading_name, number_monthly_transactions, amount_monthly_transactions, documents, metadata, errors, onboarding_status, politically_exposed_people, external_id, city_of_birth, country_of_birth, gender, sales_lead_id, created_at, company_office_number, company_office_number_country, aml_officer_email, aml_officer_phone, aml_officer_phone_country, company_website_url, number_of_employees_in_company, list_of_countries_of_operation, estimated_annual_revenue_turnover, declaration].hash
819
809
  end
820
810
 
821
811
  require 'active_support/core_ext/hash'
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0-beta3
11
11
  =end
12
12
 
13
13
  module TransferZero
14
- VERSION = '1.23.5'
14
+ VERSION = '1.24.0'
15
15
  end
@@ -75,11 +75,13 @@ require 'transferzero-sdk/models/payout_method_details_ghs_bank'
75
75
  require 'transferzero-sdk/models/payout_method_details_ghs_cash'
76
76
  require 'transferzero-sdk/models/payout_method_details_gnf_mobile'
77
77
  require 'transferzero-sdk/models/payout_method_details_iban'
78
+ require 'transferzero-sdk/models/payout_method_details_inr_bank'
78
79
  require 'transferzero-sdk/models/payout_method_details_kes_bank'
79
80
  require 'transferzero-sdk/models/payout_method_details_kes_mobile'
80
81
  require 'transferzero-sdk/models/payout_method_details_mad_cash'
81
82
  require 'transferzero-sdk/models/payout_method_details_mobile'
82
83
  require 'transferzero-sdk/models/payout_method_details_ngn_bank'
84
+ require 'transferzero-sdk/models/payout_method_details_nzd_bank'
83
85
  require 'transferzero-sdk/models/payout_method_details_usd_bank'
84
86
  require 'transferzero-sdk/models/payout_method_details_usd_cash'
85
87
  require 'transferzero-sdk/models/payout_method_details_xaf_bank'
@@ -0,0 +1,89 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TransferZero::PayoutMethodDetailsINRBank
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayoutMethodDetailsINRBank' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayoutMethodDetailsINRBank.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayoutMethodDetailsINRBank' do
31
+ it 'should create an instance of PayoutMethodDetailsINRBank' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsINRBank)
33
+ end
34
+ end
35
+ describe 'test attribute "first_name"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "last_name"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "city"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "street"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "postal_code"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "phone_number"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "bank_name"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "bank_account"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "ifsc_code"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
89
+ end
@@ -0,0 +1,59 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TransferZero::PayoutMethodDetailsNZDBank
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayoutMethodDetailsNZDBank' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayoutMethodDetailsNZDBank.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayoutMethodDetailsNZDBank' do
31
+ it 'should create an instance of PayoutMethodDetailsNZDBank' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsNZDBank)
33
+ end
34
+ end
35
+ describe 'test attribute "first_name"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "last_name"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "bank_account"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "bank_name"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transferzero-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.5
4
+ version: 1.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-19 00:00:00.000000000 Z
11
+ date: 2023-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -163,11 +163,13 @@ files:
163
163
  - docs/PayoutMethodDetailsGHSCash.md
164
164
  - docs/PayoutMethodDetailsGNFMobile.md
165
165
  - docs/PayoutMethodDetailsIBAN.md
166
+ - docs/PayoutMethodDetailsINRBank.md
166
167
  - docs/PayoutMethodDetailsKESBank.md
167
168
  - docs/PayoutMethodDetailsKESMobile.md
168
169
  - docs/PayoutMethodDetailsMADCash.md
169
170
  - docs/PayoutMethodDetailsMobile.md
170
171
  - docs/PayoutMethodDetailsNGNBank.md
172
+ - docs/PayoutMethodDetailsNZDBank.md
171
173
  - docs/PayoutMethodDetailsUSDBank.md
172
174
  - docs/PayoutMethodDetailsUSDCash.md
173
175
  - docs/PayoutMethodDetailsXAFBank.md
@@ -311,11 +313,13 @@ files:
311
313
  - lib/transferzero-sdk/models/payout_method_details_ghs_cash.rb
312
314
  - lib/transferzero-sdk/models/payout_method_details_gnf_mobile.rb
313
315
  - lib/transferzero-sdk/models/payout_method_details_iban.rb
316
+ - lib/transferzero-sdk/models/payout_method_details_inr_bank.rb
314
317
  - lib/transferzero-sdk/models/payout_method_details_kes_bank.rb
315
318
  - lib/transferzero-sdk/models/payout_method_details_kes_mobile.rb
316
319
  - lib/transferzero-sdk/models/payout_method_details_mad_cash.rb
317
320
  - lib/transferzero-sdk/models/payout_method_details_mobile.rb
318
321
  - lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb
322
+ - lib/transferzero-sdk/models/payout_method_details_nzd_bank.rb
319
323
  - lib/transferzero-sdk/models/payout_method_details_usd_bank.rb
320
324
  - lib/transferzero-sdk/models/payout_method_details_usd_cash.rb
321
325
  - lib/transferzero-sdk/models/payout_method_details_xaf_bank.rb
@@ -448,11 +452,13 @@ files:
448
452
  - spec/models/payout_method_details_ghs_cash_spec.rb
449
453
  - spec/models/payout_method_details_gnf_mobile_spec.rb
450
454
  - spec/models/payout_method_details_iban_spec.rb
455
+ - spec/models/payout_method_details_inr_bank_spec.rb
451
456
  - spec/models/payout_method_details_kes_bank_spec.rb
452
457
  - spec/models/payout_method_details_kes_mobile_spec.rb
453
458
  - spec/models/payout_method_details_mad_cash_spec.rb
454
459
  - spec/models/payout_method_details_mobile_spec.rb
455
460
  - spec/models/payout_method_details_ngn_bank_spec.rb
461
+ - spec/models/payout_method_details_nzd_bank_spec.rb
456
462
  - spec/models/payout_method_details_spec.rb
457
463
  - spec/models/payout_method_details_usd_bank_spec.rb
458
464
  - spec/models/payout_method_details_usd_cash_spec.rb
@@ -526,6 +532,7 @@ files:
526
532
  - transferzero-sdk-1.22.0.gem
527
533
  - transferzero-sdk-1.23.0.gem
528
534
  - transferzero-sdk-1.23.3.gem
535
+ - transferzero-sdk-1.23.5.gem
529
536
  - transferzero-sdk.gemspec
530
537
  homepage: https://github.com/transferzero/transferzero-sdk-ruby
531
538
  licenses:
@@ -568,6 +575,7 @@ test_files:
568
575
  - spec/configuration_spec.rb
569
576
  - spec/models/webhook_definition_response_spec.rb
570
577
  - spec/models/payout_method_details_xof_cash_spec.rb
578
+ - spec/models/payout_method_details_nzd_bank_spec.rb
571
579
  - spec/models/sender_spec.rb
572
580
  - spec/models/currency_opposite_spec.rb
573
581
  - spec/models/payout_method_details_iban_spec.rb
@@ -601,6 +609,7 @@ test_files:
601
609
  - spec/models/document_webhook_spec.rb
602
610
  - spec/models/payout_method_details_zar_bank_spec.rb
603
611
  - spec/models/payout_method_gender_enum_spec.rb
612
+ - spec/models/payout_method_details_inr_bank_spec.rb
604
613
  - spec/models/payout_method_legal_entity_type_enum_spec.rb
605
614
  - spec/models/transaction_list_response_spec.rb
606
615
  - spec/models/payin_method_spec.rb