transferzero-sdk 1.23.5 → 1.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -4
  3. data/docs/PayoutMethod.md +1 -1
  4. data/docs/PayoutMethodDetails.md +4 -2
  5. data/docs/PayoutMethodDetailsBRLBank.md +4 -0
  6. data/docs/PayoutMethodDetailsBWPBank.md +25 -0
  7. data/docs/PayoutMethodDetailsINRBank.md +33 -0
  8. data/docs/PayoutMethodDetailsNZDBank.md +23 -0
  9. data/docs/PayoutMethodDetailsZMWBank.md +23 -0
  10. data/docs/Sender.md +1 -3
  11. data/lib/transferzero-sdk/api_client.rb +1 -1
  12. data/lib/transferzero-sdk/models/payout_method.rb +1 -1
  13. data/lib/transferzero-sdk/models/payout_method_country_enum.rb +1 -0
  14. data/lib/transferzero-sdk/models/payout_method_details.rb +28 -5
  15. data/lib/transferzero-sdk/models/payout_method_details_brl_bank.rb +30 -2
  16. data/lib/transferzero-sdk/models/payout_method_details_bwp_bank.rb +264 -0
  17. data/lib/transferzero-sdk/models/payout_method_details_inr_bank.rb +320 -0
  18. data/lib/transferzero-sdk/models/payout_method_details_nzd_bank.rb +250 -0
  19. data/lib/transferzero-sdk/models/payout_method_details_zmw_bank.rb +250 -0
  20. data/lib/transferzero-sdk/models/sender.rb +2 -12
  21. data/lib/transferzero-sdk/version.rb +1 -1
  22. data/lib/transferzero-sdk.rb +4 -0
  23. data/spec/models/payout_method_details_bwp_bank_spec.rb +65 -0
  24. data/spec/models/payout_method_details_inr_bank_spec.rb +89 -0
  25. data/spec/models/payout_method_details_nzd_bank_spec.rb +59 -0
  26. data/spec/models/payout_method_details_zmw_bank_spec.rb +59 -0
  27. metadata +18 -13
  28. data/Gemfile.lock +0 -92
  29. data/transferzero-sdk-1.19.0.gem +0 -0
  30. data/transferzero-sdk-1.19.2.gem +0 -0
  31. data/transferzero-sdk-1.19.3.gem +0 -0
  32. data/transferzero-sdk-1.19.4.gem +0 -0
  33. data/transferzero-sdk-1.19.5.gem +0 -0
  34. data/transferzero-sdk-1.20.1.gem +0 -0
  35. data/transferzero-sdk-1.21.0.gem +0 -0
  36. data/transferzero-sdk-1.22.0.gem +0 -0
  37. data/transferzero-sdk-1.23.0.gem +0 -0
  38. data/transferzero-sdk-1.23.3.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 371671ea6f73262096beb1b8357f2923179a76c8c2a71ce68529ec57aa3fc2bd
4
- data.tar.gz: 2c51ec76ac620606182ec4df940e750be3df07b29f8bca373b7dcfa65820ef59
3
+ metadata.gz: 94ca1a923fcfdde85d94653aa0b0cdf269c002ff2e8d1556f3229c248337bd76
4
+ data.tar.gz: 4e7dda95d76581b246169282e6d2f4201125ea08a56c8ee69dd676f0015eda5c
5
5
  SHA512:
6
- metadata.gz: ff558d11ac7d0ca020a38e5e96a6bc7b3286c369871b70f7103b5c457890c8da051c42cf1c1bbdc57d2b658f1326597333797c90582c7f0f45021f9eba6e7b3c
7
- data.tar.gz: d948b5633191d8bb7a7478f21a5a2659e6c1a254a62a32e7b2dbd64a07d781d6e32592384dec5be26f81a7d07760f6cc7501c2b404ae11beb7212bdcff94c41d
6
+ metadata.gz: bf4074448dbdb754354892e20e796b60d2925725d31f78753a9f763f779217bf22612aa6d2430cf98e65564d2c762a38ee858ebe4331f430b095a92620172c3a
7
+ data.tar.gz: bbead843e3b399d68a1f0093df6463883e7348e1c2aae05b3e98ba8693d65ea799a6be98cc57b68a782ac589230cbd4cda3cc148a1f4cd70a4309d7ee59671f1
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.25.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.25.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.25.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.25.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -209,17 +209,20 @@ Class | Method | HTTP request | Description
209
209
  - [TransferZero::PayoutMethodDetails](docs/PayoutMethodDetails.md)
210
210
  - [TransferZero::PayoutMethodDetailsBRLBank](docs/PayoutMethodDetailsBRLBank.md)
211
211
  - [TransferZero::PayoutMethodDetailsBTC](docs/PayoutMethodDetailsBTC.md)
212
+ - [TransferZero::PayoutMethodDetailsBWPBank](docs/PayoutMethodDetailsBWPBank.md)
212
213
  - [TransferZero::PayoutMethodDetailsBalance](docs/PayoutMethodDetailsBalance.md)
213
214
  - [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
214
215
  - [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
215
216
  - [TransferZero::PayoutMethodDetailsGHSCash](docs/PayoutMethodDetailsGHSCash.md)
216
217
  - [TransferZero::PayoutMethodDetailsGNFMobile](docs/PayoutMethodDetailsGNFMobile.md)
217
218
  - [TransferZero::PayoutMethodDetailsIBAN](docs/PayoutMethodDetailsIBAN.md)
219
+ - [TransferZero::PayoutMethodDetailsINRBank](docs/PayoutMethodDetailsINRBank.md)
218
220
  - [TransferZero::PayoutMethodDetailsKESBank](docs/PayoutMethodDetailsKESBank.md)
219
221
  - [TransferZero::PayoutMethodDetailsKESMobile](docs/PayoutMethodDetailsKESMobile.md)
220
222
  - [TransferZero::PayoutMethodDetailsMADCash](docs/PayoutMethodDetailsMADCash.md)
221
223
  - [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
222
224
  - [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
225
+ - [TransferZero::PayoutMethodDetailsNZDBank](docs/PayoutMethodDetailsNZDBank.md)
223
226
  - [TransferZero::PayoutMethodDetailsUSDBank](docs/PayoutMethodDetailsUSDBank.md)
224
227
  - [TransferZero::PayoutMethodDetailsUSDCash](docs/PayoutMethodDetailsUSDCash.md)
225
228
  - [TransferZero::PayoutMethodDetailsXAFBank](docs/PayoutMethodDetailsXAFBank.md)
@@ -228,6 +231,7 @@ Class | Method | HTTP request | Description
228
231
  - [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
229
232
  - [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
230
233
  - [TransferZero::PayoutMethodDetailsZARBank](docs/PayoutMethodDetailsZARBank.md)
234
+ - [TransferZero::PayoutMethodDetailsZMWBank](docs/PayoutMethodDetailsZMWBank.md)
231
235
  - [TransferZero::PayoutMethodGenderEnum](docs/PayoutMethodGenderEnum.md)
232
236
  - [TransferZero::PayoutMethodIdentityCardTypeEnum](docs/PayoutMethodIdentityCardTypeEnum.md)
233
237
  - [TransferZero::PayoutMethodLegalEntityTypeEnum](docs/PayoutMethodLegalEntityTypeEnum.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. - 'BWP::Bank' - for Botswana bank account payments. - 'ZMW::Bank' - for Zambian 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]
@@ -40,10 +40,11 @@ Name | Type | Description | Notes
40
40
  **registration_number** | **String** | | [optional]
41
41
  **nature_of_business** | [**PayoutMethodNatureOfBusinessEnum**](PayoutMethodNatureOfBusinessEnum.md) | | [optional]
42
42
  **legal_entity_type** | [**PayoutMethodLegalEntityTypeEnum**](PayoutMethodLegalEntityTypeEnum.md) | | [optional]
43
- **branch_code** | **String** | | [optional]
43
+ **branch_code** | **String** | |
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,25 @@
1
+ # TransferZero::PayoutMethodDetailsBWPBank
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **bank_name** | **String** | |
10
+ **bank_account** | **String** | |
11
+ **branch_code** | **String** | |
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'TransferZero'
17
+
18
+ instance = TransferZero::PayoutMethodDetailsBWPBank.new(first_name: null,
19
+ last_name: null,
20
+ bank_name: null,
21
+ bank_account: null,
22
+ branch_code: null)
23
+ ```
24
+
25
+
@@ -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
+
@@ -0,0 +1,23 @@
1
+ # TransferZero::PayoutMethodDetailsZMWBank
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **bank_account** | **String** | |
10
+ **branch_code** | **String** | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'TransferZero'
16
+
17
+ instance = TransferZero::PayoutMethodDetailsZMWBank.new(first_name: null,
18
+ last_name: null,
19
+ bank_account: null,
20
+ branch_code: 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.25.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. - 'BWP::Bank' - for Botswana bank account payments. - 'ZMW::Bank' - for Zambian 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
 
@@ -191,17 +195,20 @@ class PayoutMethodDetails
191
195
  [
192
196
  :'PayoutMethodDetailsBRLBank',
193
197
  :'PayoutMethodDetailsBTC',
198
+ :'PayoutMethodDetailsBWPBank',
194
199
  :'PayoutMethodDetailsBalance',
195
200
  :'PayoutMethodDetailsGBPBank',
196
201
  :'PayoutMethodDetailsGHSBank',
197
202
  :'PayoutMethodDetailsGHSCash',
198
203
  :'PayoutMethodDetailsGNFMobile',
199
204
  :'PayoutMethodDetailsIBAN',
205
+ :'PayoutMethodDetailsINRBank',
200
206
  :'PayoutMethodDetailsKESBank',
201
207
  :'PayoutMethodDetailsKESMobile',
202
208
  :'PayoutMethodDetailsMADCash',
203
209
  :'PayoutMethodDetailsMobile',
204
210
  :'PayoutMethodDetailsNGNBank',
211
+ :'PayoutMethodDetailsNZDBank',
205
212
  :'PayoutMethodDetailsUSDBank',
206
213
  :'PayoutMethodDetailsUSDCash',
207
214
  :'PayoutMethodDetailsXAFBank',
@@ -209,7 +216,8 @@ class PayoutMethodDetails
209
216
  :'PayoutMethodDetailsXOFBank',
210
217
  :'PayoutMethodDetailsXOFCash',
211
218
  :'PayoutMethodDetailsXOFMobile',
212
- :'PayoutMethodDetailsZARBank'
219
+ :'PayoutMethodDetailsZARBank',
220
+ :'PayoutMethodDetailsZMWBank'
213
221
  ]
214
222
  end
215
223
 
@@ -387,6 +395,10 @@ class PayoutMethodDetails
387
395
  if attributes.key?(:'pix_key_value')
388
396
  self.pix_key_value = attributes[:'pix_key_value']
389
397
  end
398
+
399
+ if attributes.key?(:'ifsc_code')
400
+ self.ifsc_code = attributes[:'ifsc_code']
401
+ end
390
402
  end
391
403
 
392
404
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -473,10 +485,18 @@ class PayoutMethodDetails
473
485
  invalid_properties.push('invalid value for "city", city cannot be nil.')
474
486
  end
475
487
 
488
+ if @branch_code.nil?
489
+ invalid_properties.push('invalid value for "branch_code", branch_code cannot be nil.')
490
+ end
491
+
476
492
  if @swift_code.nil?
477
493
  invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
478
494
  end
479
495
 
496
+ if @ifsc_code.nil?
497
+ invalid_properties.push('invalid value for "ifsc_code", ifsc_code cannot be nil.')
498
+ end
499
+
480
500
  invalid_properties
481
501
  end
482
502
 
@@ -503,7 +523,9 @@ class PayoutMethodDetails
503
523
  return false if @street.nil?
504
524
  return false if @postal_code.nil?
505
525
  return false if @city.nil?
526
+ return false if @branch_code.nil?
506
527
  return false if @swift_code.nil?
528
+ return false if @ifsc_code.nil?
507
529
  _one_of_found = false
508
530
  openapi_one_of.each do |_class|
509
531
  _one_of = TransferZero.const_get(_class).build_from_hash(self.to_hash)
@@ -567,7 +589,8 @@ class PayoutMethodDetails
567
589
  branch_code == o.branch_code &&
568
590
  swift_code == o.swift_code &&
569
591
  pix_key_type == o.pix_key_type &&
570
- pix_key_value == o.pix_key_value
592
+ pix_key_value == o.pix_key_value &&
593
+ ifsc_code == o.ifsc_code
571
594
  end
572
595
 
573
596
  # @see the `==` method
@@ -579,7 +602,7 @@ class PayoutMethodDetails
579
602
  # Calculates hash code according to all attributes.
580
603
  # @return [Integer] Hash code
581
604
  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
605
+ [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
606
  end
584
607
 
585
608
  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'