transferzero-sdk 1.23.0 → 1.23.3
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 +4 -4
- data/README.md +4 -4
- data/docs/PayoutMethodDetailsBRLBank.md +2 -0
- data/docs/Sender.md +24 -2
- data/lib/transferzero-sdk/api_client.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_details_brl_bank.rb +11 -2
- data/lib/transferzero-sdk/models/sender.rb +119 -7
- data/lib/transferzero-sdk/version.rb +1 -1
- data/transferzero-sdk-1.23.0.gem +0 -0
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b16341760775c846e90177ddb2b389ac125b077e42a28821f8c2dbb3c92554f
|
4
|
+
data.tar.gz: 178bc1e86f4d7cf410ad8a0cd86b719513abe28d4e8f158f7de520c813df2fa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a595fcfe1fe8bfa61955d84dce5fc890f640e153817b6b2c19e06cb85479add01d0d77ebf9a59b98922cdba01c574c2a55e1066226a13a3aabb7ecd3c3da6176
|
7
|
+
data.tar.gz: 7ef163c7f63c75d478effda86c60ee8f15c5ae4aab27e85622d66b04c7c16e6d0b14d5091aec089307be7073c80ce57611cd69a3597942f0c31df4b327247218
|
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.
|
10
|
+
- Package version: 1.23.3
|
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.
|
34
|
+
gem install ./transferzero-sdk-1.23.3.gem
|
35
35
|
```
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.23.
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.23.3.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.
|
42
|
+
gem 'transferzero-sdk', '~> 1.23.3'
|
43
43
|
|
44
44
|
### Install from Git
|
45
45
|
|
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**first_name** | **String** | |
|
8
8
|
**last_name** | **String** | |
|
9
|
+
**phone_number** | **String** | | [optional]
|
9
10
|
**bank_code** | **String** | |
|
10
11
|
**branch_code** | **String** | |
|
11
12
|
**bank_account** | **String** | |
|
@@ -21,6 +22,7 @@ require 'TransferZero'
|
|
21
22
|
|
22
23
|
instance = TransferZero::PayoutMethodDetailsBRLBank.new(first_name: null,
|
23
24
|
last_name: null,
|
25
|
+
phone_number: null,
|
24
26
|
bank_code: null,
|
25
27
|
branch_code: null,
|
26
28
|
bank_account: null,
|
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 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. | [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]
|
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]
|
@@ -55,6 +55,17 @@ Name | Type | Description | Notes
|
|
55
55
|
**gender** | **String** | The gender of the sender: - `M`: Male - `F`: Female - `O`: Other | [optional]
|
56
56
|
**sales_lead_id** | **String** | Sales Lead ID for tracking (optional) | [optional]
|
57
57
|
**created_at** | **String** | Date and time of sender was created | [optional]
|
58
|
+
**company_office_number** | **String** | Phone number of company office (without country callcode, used only with a Business sender) | [optional]
|
59
|
+
**company_office_number_country** | **String** | Phone number country of company office in 2-character alpha ISO 3166-2 country format (used only with a Business sender) | [optional]
|
60
|
+
**aml_officer_email** | **String** | Email address of AML Officer (used only with a Business sender) | [optional]
|
61
|
+
**aml_officer_phone** | **String** | Phone number of AML Officer (without country callcode, used only with a Business sender) | [optional]
|
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
|
+
**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
|
+
**number_of_employees_in_company** | **String** | Number of employees in company (used only with a Business sender) | [optional]
|
66
|
+
**list_of_countries_of_operation** | **Array<String>** | List of countries of operation (used only with a Business sender) | [optional]
|
67
|
+
**estimated_annual_revenue_turnover** | **String** | Estimated annual turnover (in USD or equivalent, used only with a Business sender) | [optional]
|
68
|
+
**declaration** | **String** | Declaration that the signatory is authorised (used only with a Business sender) | [optional]
|
58
69
|
|
59
70
|
## Code Sample
|
60
71
|
|
@@ -111,7 +122,18 @@ instance = TransferZero::Sender.new(id: bf9ff782-e182-45ac-abea-5bce83ad6670,
|
|
111
122
|
country_of_birth: GB,
|
112
123
|
gender: M,
|
113
124
|
sales_lead_id: HF6HJVF67,
|
114
|
-
created_at: 2019-01-11T00:00:00.001+0000
|
125
|
+
created_at: 2019-01-11T00:00:00.001+0000,
|
126
|
+
company_office_number: 123123123,
|
127
|
+
company_office_number_country: GB,
|
128
|
+
aml_officer_email: null,
|
129
|
+
aml_officer_phone: 123123123,
|
130
|
+
aml_officer_phone_country: GB,
|
131
|
+
company_website_url: www.azafinance.com,
|
132
|
+
tax_identification_no: null,
|
133
|
+
number_of_employees_in_company: 250+,
|
134
|
+
list_of_countries_of_operation: ["Spain","Germany","Poland"],
|
135
|
+
estimated_annual_revenue_turnover: null,
|
136
|
+
declaration: Yes)
|
115
137
|
```
|
116
138
|
|
117
139
|
|
@@ -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.
|
39
|
+
@user_agent = "TransferZero-SDK/Ruby/1.23.3"
|
40
40
|
@default_headers = {
|
41
41
|
'Content-Type' => 'application/json',
|
42
42
|
'User-Agent' => @user_agent
|
@@ -13,12 +13,14 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TransferZero
|
16
|
-
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"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
|
+
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"+552112345678\", \"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 :phone_number
|
23
|
+
|
22
24
|
attr_accessor :bank_code
|
23
25
|
|
24
26
|
attr_accessor :branch_code
|
@@ -38,6 +40,7 @@ class PayoutMethodDetailsBRLBank
|
|
38
40
|
{
|
39
41
|
:'first_name' => :'first_name',
|
40
42
|
:'last_name' => :'last_name',
|
43
|
+
:'phone_number' => :'phone_number',
|
41
44
|
:'bank_code' => :'bank_code',
|
42
45
|
:'branch_code' => :'branch_code',
|
43
46
|
:'bank_account' => :'bank_account',
|
@@ -53,6 +56,7 @@ class PayoutMethodDetailsBRLBank
|
|
53
56
|
{
|
54
57
|
:'first_name' => :'String',
|
55
58
|
:'last_name' => :'String',
|
59
|
+
:'phone_number' => :'String',
|
56
60
|
:'bank_code' => :'String',
|
57
61
|
:'branch_code' => :'String',
|
58
62
|
:'bank_account' => :'String',
|
@@ -86,6 +90,10 @@ class PayoutMethodDetailsBRLBank
|
|
86
90
|
self.last_name = attributes[:'last_name']
|
87
91
|
end
|
88
92
|
|
93
|
+
if attributes.key?(:'phone_number')
|
94
|
+
self.phone_number = attributes[:'phone_number']
|
95
|
+
end
|
96
|
+
|
89
97
|
if attributes.key?(:'bank_code')
|
90
98
|
self.bank_code = attributes[:'bank_code']
|
91
99
|
end
|
@@ -180,6 +188,7 @@ class PayoutMethodDetailsBRLBank
|
|
180
188
|
self.class == o.class &&
|
181
189
|
first_name == o.first_name &&
|
182
190
|
last_name == o.last_name &&
|
191
|
+
phone_number == o.phone_number &&
|
183
192
|
bank_code == o.bank_code &&
|
184
193
|
branch_code == o.branch_code &&
|
185
194
|
bank_account == o.bank_account &&
|
@@ -198,7 +207,7 @@ class PayoutMethodDetailsBRLBank
|
|
198
207
|
# Calculates hash code according to all attributes.
|
199
208
|
# @return [Integer] Hash code
|
200
209
|
def hash
|
201
|
-
[first_name, last_name, bank_code, branch_code, bank_account, bank_account_type, identity_card_type, identity_card_id, transfer_reason].hash
|
210
|
+
[first_name, last_name, phone_number, bank_code, branch_code, bank_account, bank_account_type, identity_card_type, identity_card_id, transfer_reason].hash
|
202
211
|
end
|
203
212
|
|
204
213
|
require 'active_support/core_ext/hash'
|
@@ -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 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.
|
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`.
|
83
83
|
attr_accessor :legal_entity_type
|
84
84
|
|
85
85
|
# The registration date (used only with a Business sender)
|
@@ -166,6 +166,39 @@ class Sender
|
|
166
166
|
# Date and time of sender was created
|
167
167
|
attr_accessor :created_at
|
168
168
|
|
169
|
+
# Phone number of company office (without country callcode, used only with a Business sender)
|
170
|
+
attr_accessor :company_office_number
|
171
|
+
|
172
|
+
# Phone number country of company office in 2-character alpha ISO 3166-2 country format (used only with a Business sender)
|
173
|
+
attr_accessor :company_office_number_country
|
174
|
+
|
175
|
+
# Email address of AML Officer (used only with a Business sender)
|
176
|
+
attr_accessor :aml_officer_email
|
177
|
+
|
178
|
+
# Phone number of AML Officer (without country callcode, used only with a Business sender)
|
179
|
+
attr_accessor :aml_officer_phone
|
180
|
+
|
181
|
+
# Phone number country of AML Officer in 2-character alpha ISO 3166-2 country format (used only with a Business sender)
|
182
|
+
attr_accessor :aml_officer_phone_country
|
183
|
+
|
184
|
+
# Company website URL (used only with a Business sender)
|
185
|
+
attr_accessor :company_website_url
|
186
|
+
|
187
|
+
# Tax Identification Number (used only with a Business sender)
|
188
|
+
attr_accessor :tax_identification_no
|
189
|
+
|
190
|
+
# Number of employees in company (used only with a Business sender)
|
191
|
+
attr_accessor :number_of_employees_in_company
|
192
|
+
|
193
|
+
# List of countries of operation (used only with a Business sender)
|
194
|
+
attr_accessor :list_of_countries_of_operation
|
195
|
+
|
196
|
+
# Estimated annual turnover (in USD or equivalent, used only with a Business sender)
|
197
|
+
attr_accessor :estimated_annual_revenue_turnover
|
198
|
+
|
199
|
+
# Declaration that the signatory is authorised (used only with a Business sender)
|
200
|
+
attr_accessor :declaration
|
201
|
+
|
169
202
|
class EnumAttributeValidator
|
170
203
|
attr_reader :datatype
|
171
204
|
attr_reader :allowable_values
|
@@ -241,7 +274,18 @@ class Sender
|
|
241
274
|
:'country_of_birth' => :'country_of_birth',
|
242
275
|
:'gender' => :'gender',
|
243
276
|
:'sales_lead_id' => :'sales_lead_id',
|
244
|
-
:'created_at' => :'created_at'
|
277
|
+
:'created_at' => :'created_at',
|
278
|
+
:'company_office_number' => :'company_office_number',
|
279
|
+
:'company_office_number_country' => :'company_office_number_country',
|
280
|
+
:'aml_officer_email' => :'aml_officer_email',
|
281
|
+
:'aml_officer_phone' => :'aml_officer_phone',
|
282
|
+
:'aml_officer_phone_country' => :'aml_officer_phone_country',
|
283
|
+
:'company_website_url' => :'company_website_url',
|
284
|
+
:'tax_identification_no' => :'tax_identification_no',
|
285
|
+
:'number_of_employees_in_company' => :'number_of_employees_in_company',
|
286
|
+
:'list_of_countries_of_operation' => :'list_of_countries_of_operation',
|
287
|
+
:'estimated_annual_revenue_turnover' => :'estimated_annual_revenue_turnover',
|
288
|
+
:'declaration' => :'declaration'
|
245
289
|
}
|
246
290
|
end
|
247
291
|
|
@@ -298,7 +342,18 @@ class Sender
|
|
298
342
|
:'country_of_birth' => :'String',
|
299
343
|
:'gender' => :'String',
|
300
344
|
:'sales_lead_id' => :'String',
|
301
|
-
:'created_at' => :'String'
|
345
|
+
:'created_at' => :'String',
|
346
|
+
:'company_office_number' => :'String',
|
347
|
+
:'company_office_number_country' => :'String',
|
348
|
+
:'aml_officer_email' => :'String',
|
349
|
+
:'aml_officer_phone' => :'String',
|
350
|
+
:'aml_officer_phone_country' => :'String',
|
351
|
+
:'company_website_url' => :'String',
|
352
|
+
:'tax_identification_no' => :'String',
|
353
|
+
:'number_of_employees_in_company' => :'String',
|
354
|
+
:'list_of_countries_of_operation' => :'Array<String>',
|
355
|
+
:'estimated_annual_revenue_turnover' => :'String',
|
356
|
+
:'declaration' => :'String'
|
302
357
|
}
|
303
358
|
end
|
304
359
|
|
@@ -526,6 +581,52 @@ class Sender
|
|
526
581
|
if attributes.key?(:'created_at')
|
527
582
|
self.created_at = attributes[:'created_at']
|
528
583
|
end
|
584
|
+
|
585
|
+
if attributes.key?(:'company_office_number')
|
586
|
+
self.company_office_number = attributes[:'company_office_number']
|
587
|
+
end
|
588
|
+
|
589
|
+
if attributes.key?(:'company_office_number_country')
|
590
|
+
self.company_office_number_country = attributes[:'company_office_number_country']
|
591
|
+
end
|
592
|
+
|
593
|
+
if attributes.key?(:'aml_officer_email')
|
594
|
+
self.aml_officer_email = attributes[:'aml_officer_email']
|
595
|
+
end
|
596
|
+
|
597
|
+
if attributes.key?(:'aml_officer_phone')
|
598
|
+
self.aml_officer_phone = attributes[:'aml_officer_phone']
|
599
|
+
end
|
600
|
+
|
601
|
+
if attributes.key?(:'aml_officer_phone_country')
|
602
|
+
self.aml_officer_phone_country = attributes[:'aml_officer_phone_country']
|
603
|
+
end
|
604
|
+
|
605
|
+
if attributes.key?(:'company_website_url')
|
606
|
+
self.company_website_url = attributes[:'company_website_url']
|
607
|
+
end
|
608
|
+
|
609
|
+
if attributes.key?(:'tax_identification_no')
|
610
|
+
self.tax_identification_no = attributes[:'tax_identification_no']
|
611
|
+
end
|
612
|
+
|
613
|
+
if attributes.key?(:'number_of_employees_in_company')
|
614
|
+
self.number_of_employees_in_company = attributes[:'number_of_employees_in_company']
|
615
|
+
end
|
616
|
+
|
617
|
+
if attributes.key?(:'list_of_countries_of_operation')
|
618
|
+
if (value = attributes[:'list_of_countries_of_operation']).is_a?(Array)
|
619
|
+
self.list_of_countries_of_operation = value
|
620
|
+
end
|
621
|
+
end
|
622
|
+
|
623
|
+
if attributes.key?(:'estimated_annual_revenue_turnover')
|
624
|
+
self.estimated_annual_revenue_turnover = attributes[:'estimated_annual_revenue_turnover']
|
625
|
+
end
|
626
|
+
|
627
|
+
if attributes.key?(:'declaration')
|
628
|
+
self.declaration = attributes[:'declaration']
|
629
|
+
end
|
529
630
|
end
|
530
631
|
|
531
632
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -581,7 +682,7 @@ class Sender
|
|
581
682
|
return false if @ip.nil?
|
582
683
|
identification_type_validator = EnumAttributeValidator.new('String', ["DL", "PP", "ID", "OT"])
|
583
684
|
return false unless identification_type_validator.valid?(@identification_type)
|
584
|
-
legal_entity_type_validator = EnumAttributeValidator.new('String', ["sole_proprietorship", "partnership", "privately_owned_company", "publicly_owned_company", "government_owned_entity", "trust", "ngo", "club_and_society", "go", "other", "financial_institution"])
|
685
|
+
legal_entity_type_validator = EnumAttributeValidator.new('String', ["sole_proprietorship", "partnership", "privately_owned_company", "publicly_owned_company", "government_owned_entity", "trust", "ngo", "club_and_society", "go", "other", "financial_institution", "mto"])
|
585
686
|
return false unless legal_entity_type_validator.valid?(@legal_entity_type)
|
586
687
|
nature_of_business_validator = EnumAttributeValidator.new('String', ["personal", "agriculture_and_hunting", "forestry", "fishing", "agricultural_by_products", "coal_mining", "oil_mining", "iron_ore_mining", "other_metal_and_diamond_mining", "other_mineral_mining", "manufacturing_of_food_drink_tobacco", "manufacturing_of_textiles_leather_fur_furniture", "manufacture_of_wooden_products_furniture", "manufacture_of_paper_pulp_allied_products", "manufacture_of_chemicals_medical_petroleum_rubber_plastic_products", "manufacture_of_pottery_china_glass_stone", "manufacture_of_iron_steel_non_ferrous_metals_basic_industries", "manufacture_of_metal_products_electrical_and_scientific_engineering", "manufacture_of_jewelry_musical_instruments_toys", "electricity_gas_and_water", "construction", "wholesale_trade", "retail_trade", "catering_incl_hotels", "transport_storage", "communications", "finance_and_holding_companies", "insurance", "business_services", "real_estate_development_investment", "central_state_governments", "community_services_defence_police_prisons_etc", "social_services_education_health_care", "personal_services_leisure_services", "personal_services_domestic_laundry_repairs", "personal_services_embassies_international_organisations"])
|
587
688
|
return false unless nature_of_business_validator.valid?(@nature_of_business)
|
@@ -614,7 +715,7 @@ class Sender
|
|
614
715
|
# Custom attribute writer method checking allowed values (enum).
|
615
716
|
# @param [Object] legal_entity_type Object to be assigned
|
616
717
|
def legal_entity_type=(legal_entity_type)
|
617
|
-
validator = EnumAttributeValidator.new('String', ["sole_proprietorship", "partnership", "privately_owned_company", "publicly_owned_company", "government_owned_entity", "trust", "ngo", "club_and_society", "go", "other", "financial_institution"])
|
718
|
+
validator = EnumAttributeValidator.new('String', ["sole_proprietorship", "partnership", "privately_owned_company", "publicly_owned_company", "government_owned_entity", "trust", "ngo", "club_and_society", "go", "other", "financial_institution", "mto"])
|
618
719
|
unless validator.valid?(legal_entity_type) || legal_entity_type.empty?
|
619
720
|
fail ArgumentError, "invalid value for \"legal_entity_type\", must be one of #{validator.allowable_values}."
|
620
721
|
end
|
@@ -696,7 +797,18 @@ class Sender
|
|
696
797
|
country_of_birth == o.country_of_birth &&
|
697
798
|
gender == o.gender &&
|
698
799
|
sales_lead_id == o.sales_lead_id &&
|
699
|
-
created_at == o.created_at
|
800
|
+
created_at == o.created_at &&
|
801
|
+
company_office_number == o.company_office_number &&
|
802
|
+
company_office_number_country == o.company_office_number_country &&
|
803
|
+
aml_officer_email == o.aml_officer_email &&
|
804
|
+
aml_officer_phone == o.aml_officer_phone &&
|
805
|
+
aml_officer_phone_country == o.aml_officer_phone_country &&
|
806
|
+
company_website_url == o.company_website_url &&
|
807
|
+
tax_identification_no == o.tax_identification_no &&
|
808
|
+
number_of_employees_in_company == o.number_of_employees_in_company &&
|
809
|
+
list_of_countries_of_operation == o.list_of_countries_of_operation &&
|
810
|
+
estimated_annual_revenue_turnover == o.estimated_annual_revenue_turnover &&
|
811
|
+
declaration == o.declaration
|
700
812
|
end
|
701
813
|
|
702
814
|
# @see the `==` method
|
@@ -708,7 +820,7 @@ class Sender
|
|
708
820
|
# Calculates hash code according to all attributes.
|
709
821
|
# @return [Integer] Hash code
|
710
822
|
def hash
|
711
|
-
[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].hash
|
823
|
+
[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
|
712
824
|
end
|
713
825
|
|
714
826
|
require 'active_support/core_ext/hash'
|
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.
|
4
|
+
version: 1.23.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TransferZero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -68,22 +68,22 @@ dependencies:
|
|
68
68
|
name: rspec
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- - ">="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: 3.6.0
|
74
71
|
- - "~>"
|
75
72
|
- !ruby/object:Gem::Version
|
76
73
|
version: '3.6'
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 3.6.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - ">="
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: 3.6.0
|
84
81
|
- - "~>"
|
85
82
|
- !ruby/object:Gem::Version
|
86
83
|
version: '3.6'
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 3.6.0
|
87
87
|
description: Ruby library for the TransferZero API
|
88
88
|
email:
|
89
89
|
- engineers@transferzero.com
|
@@ -521,6 +521,7 @@ files:
|
|
521
521
|
- transferzero-sdk-1.20.1.gem
|
522
522
|
- transferzero-sdk-1.21.0.gem
|
523
523
|
- transferzero-sdk-1.22.0.gem
|
524
|
+
- transferzero-sdk-1.23.0.gem
|
524
525
|
- transferzero-sdk.gemspec
|
525
526
|
homepage: https://github.com/transferzero/transferzero-sdk-ruby
|
526
527
|
licenses:
|
@@ -541,7 +542,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
541
542
|
- !ruby/object:Gem::Version
|
542
543
|
version: '0'
|
543
544
|
requirements: []
|
544
|
-
rubygems_version: 3.
|
545
|
+
rubygems_version: 3.1.6
|
545
546
|
signing_key:
|
546
547
|
specification_version: 4
|
547
548
|
summary: TransferZero API Ruby Gem
|