transferzero-sdk 1.23.0 → 1.23.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AccountValidationRequest.md +1 -1
  4. data/docs/PayinMethodDetails.md +1 -1
  5. data/docs/PayinMethodDetailsMobile.md +1 -1
  6. data/docs/PayoutMethodDetailsBRLBank.md +2 -0
  7. data/docs/Sender.md +25 -3
  8. data/lib/transferzero-sdk/api_client.rb +1 -1
  9. data/lib/transferzero-sdk/models/account_validation_request.rb +1 -1
  10. data/lib/transferzero-sdk/models/payin_method_details_mobile.rb +1 -1
  11. data/lib/transferzero-sdk/models/payout_method_details_brl_bank.rb +11 -2
  12. data/lib/transferzero-sdk/models/payout_method_details_ghs_cash.rb +1 -1
  13. data/lib/transferzero-sdk/models/payout_method_details_gnf_mobile.rb +1 -1
  14. data/lib/transferzero-sdk/models/payout_method_details_kes_mobile.rb +1 -1
  15. data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +1 -1
  16. data/lib/transferzero-sdk/models/payout_method_details_mobile.rb +1 -1
  17. data/lib/transferzero-sdk/models/payout_method_details_usd_bank.rb +1 -1
  18. data/lib/transferzero-sdk/models/payout_method_details_usd_cash.rb +1 -1
  19. data/lib/transferzero-sdk/models/payout_method_details_xaf_mobile.rb +1 -1
  20. data/lib/transferzero-sdk/models/payout_method_details_xof_cash.rb +1 -1
  21. data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +1 -1
  22. data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +1 -1
  23. data/lib/transferzero-sdk/models/sender.rb +120 -13
  24. data/lib/transferzero-sdk/version.rb +1 -1
  25. data/transferzero-sdk-1.20.1.gem +0 -0
  26. data/transferzero-sdk-1.22.0.gem +0 -0
  27. data/transferzero-sdk-1.22.1.gem +0 -0
  28. metadata +10 -16
  29. data/Gemfile.lock +0 -92
  30. data/transferzero-sdk-1.19.0.gem +0 -0
  31. data/transferzero-sdk-1.19.2.gem +0 -0
  32. data/transferzero-sdk-1.19.3.gem +0 -0
  33. data/transferzero-sdk-1.19.4.gem +0 -0
  34. data/transferzero-sdk-1.19.5.gem +0 -0
  35. data/transferzero-sdk-1.21.0.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ef35d260fdb8491f6c57060b3597adf5ab4bfd2778213c2904c479f82801d6d
4
- data.tar.gz: 9b80b4dccc67d68f7cc22526834a9647e5a4b715a536f666f537cc93aeffaad1
3
+ metadata.gz: '08277e352124f818b74713c8f0426ae4f00259ebbcec8bb22a3f5725382d4af3'
4
+ data.tar.gz: c2a79facc169d164ea487c088d075d0ff4e7b7dcfad7f1b791aac3365811d85e
5
5
  SHA512:
6
- metadata.gz: 28b7fff73e9a77cbaeb9e4e708451bd1aff743475c061b365a6f886d6215a9adeeca0bb1b88389bfc09b1829ccc425cdbbac65ea9ef2a2f8e50db5b6b6016db4
7
- data.tar.gz: 187df95aa34be68988f5c20ad8d022bf1890383dcb3f3fe5c4b28e0b1e604fe461c15ddd11aba0c4f67005a2e1722a0cb0e7b8e734229d91343846a4ea802b88
6
+ metadata.gz: 89da4859814824be5dea389f04248542cf54d6001c5b4a227d9765a9f22cde20115310920db5740f91e817a509173cb796497b843c472d4b303d0d9ec52e0085
7
+ data.tar.gz: 65e22b15eea9ea8365d02b3b29ab5cc7b522ed8185ae84e0674a643e5a6d31b0773bab7f6f7defc41e2bc1d630d635a38c76276a5b54c21e37ac517f17b919b3
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.0
10
+ - Package version: 1.23.4
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.0.gem
34
+ gem install ./transferzero-sdk-1.23.4.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.23.0.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.23.4.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.0'
42
+ gem 'transferzero-sdk', '~> 1.23.4'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **bank_account** | **String** | Account Number to query | [optional]
8
8
  **bank_code** | **String** | Bank Code to query - same codes are used as for creating the transactions | [optional]
9
9
  **iban** | **String** | IBAN to query - BBAN format for XOF bank accounts | [optional]
10
- **phone_number** | **String** | Phone number to query | [optional]
10
+ **phone_number** | **String** | Phone number to query in E.164 format | [optional]
11
11
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | | [optional]
12
12
  **country** | **String** | Country of account in 2-character alpha ISO 3166-2 country format |
13
13
  **currency** | **String** | The currency the bank account is in |
@@ -19,7 +19,7 @@ require 'TransferZero'
19
19
 
20
20
  instance = TransferZero::PayinMethodDetails.new(payment_method: null,
21
21
  redirect_url: null,
22
- phone_number: +2569999999,
22
+ phone_number: +256129999999,
23
23
  mobile_provider: null,
24
24
  country: null,
25
25
  otp: null,
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
14
14
  ```ruby
15
15
  require 'TransferZero'
16
16
 
17
- instance = TransferZero::PayinMethodDetailsMobile.new(phone_number: +2569999999,
17
+ instance = TransferZero::PayinMethodDetailsMobile.new(phone_number: +256129999999,
18
18
  mobile_provider: null,
19
19
  country: null,
20
20
  otp: null)
@@ -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
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  **street** | **String** | Sender's street |
12
12
  **postal_code** | **String** | Zip code of sender |
13
13
  **city** | **String** | Sender's city |
14
- **phone_country** | **String** | Phone country of sender in 2-character alpha ISO 3166-2 country format |
14
+ **phone_country** | **String** | Phone country of sender in 2-character alpha ISO 3166-2 country format | [optional]
15
15
  **phone_number** | **String** | Phone number of sender (without country callcode) | [optional]
16
16
  **email** | **String** | Email of sender |
17
17
  **ip** | **String** | IP of sender |
@@ -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.0"
39
+ @user_agent = "TransferZero-SDK/Ruby/1.23.4"
40
40
  @default_headers = {
41
41
  'Content-Type' => 'application/json',
42
42
  'User-Agent' => @user_agent
@@ -23,7 +23,7 @@ class AccountValidationRequest
23
23
  # IBAN to query - BBAN format for XOF bank accounts
24
24
  attr_accessor :iban
25
25
 
26
- # Phone number to query
26
+ # Phone number to query in E.164 format
27
27
  attr_accessor :phone_number
28
28
 
29
29
  attr_accessor :mobile_provider
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # ```JSON \"details\": { \"phone_number\": \"+2569999999\", } ```
16
+ # ```JSON \"details\": { \"phone_number\": \"+256129999999\", } ```
17
17
  class PayinMethodDetailsMobile
18
18
  # The phone number where the funds should be collected from
19
19
  attr_accessor :phone_number
@@ -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\", // 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 :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'
@@ -13,7 +13,7 @@ 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\", \"phone_number\": \"0322023144\" } ```
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"+233322023144\" } ```
17
17
  class PayoutMethodDetailsGHSCash
18
18
  attr_accessor :first_name
19
19
 
@@ -13,7 +13,7 @@ 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\", \"phone_number\": \"444044436\", // local or international Guinea format \"mobile_provider\": \"mtn\" } ```
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"+224444044436\", // E.164 international format \"mobile_provider\": \"mtn\" } ```
17
17
  class PayoutMethodDetailsGNFMobile
18
18
  attr_accessor :first_name
19
19
 
@@ -13,7 +13,7 @@ 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\", \"street\": \"Main Street\", \"phone_number\": \"+254997853134\", \"mobile_provider\": \"mpesa\", \"transfer_reason\": \"personal_account\", // New transfer reason field \"identity_card_type\": \"ID\", \"identity_card_id\": \"AB12345678\" } ``` See [KES Mobile](https://docs.transferzero.com/docs/payout-details/#kesmobile) documentation for transfer_reason lists
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"street\": \"Main Street\", \"phone_number\": \"+254997853134\", // E.164 international format \"mobile_provider\": \"mpesa\", \"transfer_reason\": \"personal_account\", // New transfer reason field \"identity_card_type\": \"ID\", \"identity_card_id\": \"AB12345678\" } ``` See [KES Mobile](https://docs.transferzero.com/docs/payout-details/#kesmobile) documentation for transfer_reason lists
17
17
  class PayoutMethodDetailsKESMobile
18
18
  attr_accessor :first_name
19
19
 
@@ -13,7 +13,7 @@ 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\", \"phone_number\": \"212537718685\" # Mandatory; International format preferred \"sender_identity_card_type\" => \"O\", # Mandatory; Values: \"O\": Other, \"PP\": Passport, \"ID\": National ID \"sender_identity_card_id\" => 'AB12345678', # Mandatory \"sender_city_of_birth\" => \"London\", # Optional \"sender_country_of_birth\" => \"GB\", # Optional; ISO 2-letter format \"sender_gender\" => \"M\", # Optional; Values: \"M\": Male, \"F\": Female \"reason\" => \"Remittance payment\", # Optional; Default value is 'Remittance payment' \"identity_card_type\" => \"ID\", # Optional; Values: \"PP\": Passport, \"ID\": National ID \"identity_card_id\" => 'AB12345678' # Optional } ``` Please note when sending MAD::Cash payments you should subscribe to the recipient.pending webhook, as that will broadcast the payment reference ID the customer need to use to obtain the funds. Example webhook response excerpt - ```JSON { (...) \"state\":\"pending\", \"metadata\": { \"payment_reference\":\"9M5GJRJUBCY\" }, (...) } ``` The reference can also be provided optionally for MAD::Cash, but if you want to use this functionality please contact us for more details.
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"+212537718685\" # Mandatory; E.164 international format \"sender_identity_card_type\" => \"O\", # Mandatory; Values: \"O\": Other, \"PP\": Passport, \"ID\": National ID \"sender_identity_card_id\" => 'AB12345678', # Mandatory \"sender_city_of_birth\" => \"London\", # Optional \"sender_country_of_birth\" => \"GB\", # Optional; ISO 2-letter format \"sender_gender\" => \"M\", # Optional; Values: \"M\": Male, \"F\": Female \"reason\" => \"Remittance payment\", # Optional; Default value is 'Remittance payment' \"identity_card_type\" => \"ID\", # Optional; Values: \"PP\": Passport, \"ID\": National ID \"identity_card_id\" => 'AB12345678' # Optional } ``` Please note when sending MAD::Cash payments you should subscribe to the recipient.pending webhook, as that will broadcast the payment reference ID the customer need to use to obtain the funds. Example webhook response excerpt - ```JSON { (...) \"state\":\"pending\", \"metadata\": { \"payment_reference\":\"9M5GJRJUBCY\" }, (...) } ``` The reference can also be provided optionally for MAD::Cash, but if you want to use this functionality please contact us for more details.
17
17
  class PayoutMethodDetailsMADCash
18
18
  attr_accessor :first_name
19
19
 
@@ -13,7 +13,7 @@ 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\", \"phone_number\": \"7087661234\" // local or international format } ``` Please note when sending XOF::Cash payments you should subscribe to the recipient.pending webhook, as that will broadcast the payment reference ID the customer need to use to obtain the funds. Example webhook response excerpt - ```JSON { (...) \"state\":\"pending\", \"metadata\": { \"payment_reference\":\"9M5GJRJUBCY\" }, (...) } ```
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"+221708766123\" // E.164 international format } ``` Please note when sending XOF::Cash payments you should subscribe to the recipient.pending webhook, as that will broadcast the payment reference ID the customer need to use to obtain the funds. Example webhook response excerpt - ```JSON { (...) \"state\":\"pending\", \"metadata\": { \"payment_reference\":\"9M5GJRJUBCY\" }, (...) } ```
17
17
  class PayoutMethodDetailsMobile
18
18
  attr_accessor :first_name
19
19
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # ```JSON \"details\": { \"first_name\": \"Jane\", \"last_name\": \"Doe\", \"phone_number\": \"+2341234567\", \"bank_code\": \"057\", \"bank_account\": \"1234567890\", \"country\": \"NG\" } ``` See [USD Bank](https://docs.transferzero.com/docs/payout-details/#usdbank) documentation for the bank_code and country lists
16
+ # ```JSON \"details\": { \"first_name\": \"Jane\", \"last_name\": \"Doe\", \"phone_number\": \"+2341234567\", // E.164 international format \"bank_code\": \"057\", \"bank_account\": \"1234567890\", \"country\": \"NG\" } ``` See [USD Bank](https://docs.transferzero.com/docs/payout-details/#usdbank) documentation for the bank_code and country lists
17
17
  class PayoutMethodDetailsUSDBank
18
18
  attr_accessor :first_name
19
19
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # ```JSON \"details\": { \"first_name\": \"Jane\", \"last_name\": \"Doe\", \"phone_number\": \"+2341234567\", \"country\": \"NG\" } ``` See [USD Cash](https://docs.transferzero.com/docs/payout-details/#usdcash) documentation for the country list
16
+ # ```JSON \"details\": { \"first_name\": \"Jane\", \"last_name\": \"Doe\", \"phone_number\": \"+2341234567\", // E.164 international format \"country\": \"NG\" } ``` See [USD Cash](https://docs.transferzero.com/docs/payout-details/#usdcash) documentation for the country list
17
17
  class PayoutMethodDetailsUSDCash
18
18
  attr_accessor :first_name
19
19
 
@@ -13,7 +13,7 @@ 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\", \"phone_number\": \"674044436\", // local or international cameroon format \"mobile_provider\": \"orange\", // or mtn\" \"country\" // Optional; Values: \"CM\" } ```
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"+237674044436\", // E.164 international format \"mobile_provider\": \"orange\", // or mtn\" \"country\" // Optional; Values: \"CM\" } ```
17
17
  class PayoutMethodDetailsXAFMobile
18
18
  attr_accessor :first_name
19
19
 
@@ -13,7 +13,7 @@ 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\", \"phone_number\": \"221774044436\", // local or international format \"cash_provider\": \"wizall\" // Mandatory; Values: \"wizall\"; \"country\": \"SN\" // Optional; Values: \"CI\", \"ML\" or \"SN\"; Default value is \"SN\"; } ``` Please note all senders trying to create Wizall cash pickup requests must have `identity_type` and `identity_number` present. The fields above are generally considered optional for senders for other payment corridors. If you wish to use an existing sender who has some of these fields missing you can provide them alongside the `id` or `external_id` field in the sender details. For example - ```JSON { \"transaction\": { \"sender\": { \"external_id\": \"<id of sender>\", \"identity_type\": \"ID\", \"identity_number\": \"AB12345678\", (...) }, (...) } } ```
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"+221774044436\", // E.164 international format \"cash_provider\": \"wizall\" // Mandatory; Values: \"wizall\"; \"country\": \"SN\" // Optional; Values: \"CI\", \"ML\" or \"SN\"; Default value is \"SN\"; } ``` Please note all senders trying to create Wizall cash pickup requests must have `identity_type` and `identity_number` present. The fields above are generally considered optional for senders for other payment corridors. If you wish to use an existing sender who has some of these fields missing you can provide them alongside the `id` or `external_id` field in the sender details. For example - ```JSON { \"transaction\": { \"sender\": { \"external_id\": \"<id of sender>\", \"identity_type\": \"ID\", \"identity_number\": \"AB12345678\", (...) }, (...) } } ```
17
17
  class PayoutMethodDetailsXOFCash
18
18
  attr_accessor :first_name
19
19
 
@@ -13,7 +13,7 @@ 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\", \"phone_number\": \"774044436\", // local or international Senegalese or Ivory Coast format \"mobile_provider\": \"orange\", // \"orange\", \"tigo\", \"emoney\", \"free\" or \"wave\" for Senegal; \"orange\", \"mtn\" or \"moov\" for Ivory Coast; \"orange\" or \"mobicash\" for Burkina Faso and Mali \"country\" // Optional; Values: \"SN\" for Senegal; \"CI\" for Ivory Coast; \"ML\" for Mali; \"BF\" for Burkina Faso; Default value is \"SN\" \"transfer_reason\": \"personal_account\" // mandatory for Mali payouts, optional otherwise } ```
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"+221708766123\", // E.164 international format \"mobile_provider\": \"orange\", // \"orange\", \"tigo\", \"emoney\", \"free\" or \"wave\" for Senegal; \"orange\", \"mtn\" or \"moov\" for Ivory Coast; \"orange\" or \"mobicash\" for Burkina Faso and Mali \"country\" // Optional; Values: \"SN\" for Senegal; \"CI\" for Ivory Coast; \"ML\" for Mali; \"BF\" for Burkina Faso; Default value is \"SN\" \"transfer_reason\": \"personal_account\" // mandatory for Mali payouts, optional otherwise } ```
17
17
  class PayoutMethodDetailsXOFMobile
18
18
  attr_accessor :first_name
19
19
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # ```JSON \"details\": { \"first_name\": \"First\", // Mandatory for personal payouts; \"last_name\": \"Last\", // Mandatory for personal payouts; \"name\" \"First Ltd\", // Mandatory for business payouts; \"contact_first_name\" \"Business\", // Mandatory for business payouts; \"contact_last_name\" \"Contact\", // Mandatory for business payouts; \"street\": \"Main Street\", \"postal_code\": \"AB0001\", \"city\": \"Cape Town\", \"email\": \"recipient@email.com\", \"bank_name\" 'Bank Zero', // Optional \"bank_code\": \"334810\", \"bank_account\": \"12345678\", \"phone_number\": \"+27119785313\", \"transfer_reason\": \"personal_account\", // New transfer reason field \"legal_entity_type\": \"sole_proprietorship\", // Optional; Default value is \"person\"; Mandatory for business payouts; \"nature_of_business\": \"mining\", // Optional for business payouts; \"registration_number\": \"17364BGC\" // Optional for business payouts; } ``` See [ZAR Bank](https://docs.transferzero.com/docs/payout-details/#zarbank) documentation for the bank_code and transfer_reason lists
16
+ # ```JSON \"details\": { \"first_name\": \"First\", // Mandatory for personal payouts; \"last_name\": \"Last\", // Mandatory for personal payouts; \"name\" \"First Ltd\", // Mandatory for business payouts; \"contact_first_name\" \"Business\", // Mandatory for business payouts; \"contact_last_name\" \"Contact\", // Mandatory for business payouts; \"street\": \"Main Street\", \"postal_code\": \"AB0001\", \"city\": \"Cape Town\", \"email\": \"recipient@email.com\", \"bank_name\" 'Bank Zero', // Optional \"bank_code\": \"334810\", \"bank_account\": \"12345678\", \"phone_number\": \"+27119785313\", // E.164 international format \"transfer_reason\": \"personal_account\", // New transfer reason field \"legal_entity_type\": \"sole_proprietorship\", // Optional; Default value is \"person\"; Mandatory for business payouts; \"nature_of_business\": \"mining\", // Optional for business payouts; \"registration_number\": \"17364BGC\" // Optional for business payouts; } ``` See [ZAR Bank](https://docs.transferzero.com/docs/payout-details/#zarbank) documentation for the bank_code and transfer_reason lists
17
17
  class PayoutMethodDetailsZARBank
18
18
  attr_accessor :first_name
19
19
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # This contains the details of the sender. The first time a specific sender is used the full details should be provided. Once a sender is created and is used, the next time you MUST only send the ID of the sender. This is so we can match the same sender across multiple transactions for KYC and audit purposes. Personal Sender Example: ```json { // name \"first_name\": \"Jane\", \"last_name\": \"Doe\", // address \"country\": \"US\", \"city\": \"New York\", \"street\": \"20 W 34th St\", \"postal_code\": \"10001\", \"address_description\": \"\", // DOB \"birth_date\": \"1974-12-24\", // Contact Details; You can usually use your company's contact details here \"phone_country\": \"US\", \"phone_number\": \"5555551234\", \"email\": \"info@transferzero.com\", // ID of the sender in your system \"external_id\": \"Sender:US:234523\", // these fields are mandatory, but you can usually leave them with the following default values: \"documents\": [ ], \"ip\": \"127.0.0.1\", \"metadata\": {} } ``` Business Sender Example: ```json { \"type\": \"business\", \"name\": \"Company name\", // Country of Incorporation \"country\": \"US\", // Trading address of the company \"trading_country\": \"US\", \"city\": \"New York\", \"street\": \"20 W 34th St\", \"postal_code\": \"10001\", \"address_description\": \"\", // Company Details \"legal_entity_type\": \"privately_owned_company\", \"registration_date\": \"2012-01-25\", \"registration_number\": \"VAT1234567\", \"nature_of_business\": \"retail_trade\", // Contact Details \"phone_country\": \"US\", \"phone_number\": \"5555551234\", \"email\": \"example@home.org\", // ID of the sender in your system \"external_id\": \"Sender:Business:US:234523\", // these fields are mandatory, but you can usually leave them with the following default values: \"documents\": [ ], \"ip\": \"127.0.0.1\", \"metadata\": {} } ``` [Sender in the API documentation](https://docs.transferzero.com/docs/transaction-flow/#sender)
16
+ # This contains the details of the sender. The first time a specific sender is used the full details should be provided. Once a sender is created and is used, the next time you MUST only send the ID of the sender. This is so we can match the same sender across multiple transactions for KYC and audit purposes. Personal Sender Example: ```json { // name \"first_name\": \"Jane\", \"last_name\": \"Doe\", // address \"country\": \"US\", \"city\": \"New York\", \"street\": \"20 W 34th St\", \"postal_code\": \"10001\", \"address_description\": \"\", // DOB \"birth_date\": \"1974-12-24\", // Contact Details; You can usually use your company's contact details here \"phone_number\": \"+15555551234\", \"email\": \"info@transferzero.com\", // ID of the sender in your system \"external_id\": \"Sender:US:234523\", // these fields are mandatory, but you can usually leave them with the following default values: \"documents\": [ ], \"ip\": \"127.0.0.1\", \"metadata\": {} } ``` Business Sender Example: ```json { \"type\": \"business\", \"name\": \"Company name\", // Country of Incorporation \"country\": \"US\", // Trading address of the company \"trading_country\": \"US\", \"city\": \"New York\", \"street\": \"20 W 34th St\", \"postal_code\": \"10001\", \"address_description\": \"\", // Company Details \"legal_entity_type\": \"privately_owned_company\", \"registration_date\": \"2012-01-25\", \"registration_number\": \"VAT1234567\", \"nature_of_business\": \"retail_trade\", // Contact Details \"phone_number\": \"+15555551234\", \"email\": \"example@home.org\", // ID of the sender in your system \"external_id\": \"Sender:Business:US:234523\", // these fields are mandatory, but you can usually leave them with the following default values: \"documents\": [ ], \"ip\": \"127.0.0.1\", \"metadata\": {} } ``` [Sender in the API documentation](https://docs.transferzero.com/docs/transaction-flow/#sender)
17
17
  class Sender
18
18
  attr_accessor :id
19
19
 
@@ -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?
@@ -548,10 +649,6 @@ class Sender
548
649
  invalid_properties.push('invalid value for "city", city cannot be nil.')
549
650
  end
550
651
 
551
- if @phone_country.nil?
552
- invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
553
- end
554
-
555
652
  if @email.nil?
556
653
  invalid_properties.push('invalid value for "email", email cannot be nil.')
557
654
  end
@@ -576,12 +673,11 @@ class Sender
576
673
  return false if @street.nil?
577
674
  return false if @postal_code.nil?
578
675
  return false if @city.nil?
579
- return false if @phone_country.nil?
580
676
  return false if @email.nil?
581
677
  return false if @ip.nil?
582
678
  identification_type_validator = EnumAttributeValidator.new('String', ["DL", "PP", "ID", "OT"])
583
679
  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"])
680
+ 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
681
  return false unless legal_entity_type_validator.valid?(@legal_entity_type)
586
682
  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
683
  return false unless nature_of_business_validator.valid?(@nature_of_business)
@@ -614,7 +710,7 @@ class Sender
614
710
  # Custom attribute writer method checking allowed values (enum).
615
711
  # @param [Object] legal_entity_type Object to be assigned
616
712
  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"])
713
+ 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
714
  unless validator.valid?(legal_entity_type) || legal_entity_type.empty?
619
715
  fail ArgumentError, "invalid value for \"legal_entity_type\", must be one of #{validator.allowable_values}."
620
716
  end
@@ -696,7 +792,18 @@ class Sender
696
792
  country_of_birth == o.country_of_birth &&
697
793
  gender == o.gender &&
698
794
  sales_lead_id == o.sales_lead_id &&
699
- created_at == o.created_at
795
+ created_at == o.created_at &&
796
+ company_office_number == o.company_office_number &&
797
+ company_office_number_country == o.company_office_number_country &&
798
+ aml_officer_email == o.aml_officer_email &&
799
+ aml_officer_phone == o.aml_officer_phone &&
800
+ aml_officer_phone_country == o.aml_officer_phone_country &&
801
+ company_website_url == o.company_website_url &&
802
+ tax_identification_no == o.tax_identification_no &&
803
+ number_of_employees_in_company == o.number_of_employees_in_company &&
804
+ list_of_countries_of_operation == o.list_of_countries_of_operation &&
805
+ estimated_annual_revenue_turnover == o.estimated_annual_revenue_turnover &&
806
+ declaration == o.declaration
700
807
  end
701
808
 
702
809
  # @see the `==` method
@@ -708,7 +815,7 @@ class Sender
708
815
  # Calculates hash code according to all attributes.
709
816
  # @return [Integer] Hash code
710
817
  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
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
712
819
  end
713
820
 
714
821
  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.0'
14
+ VERSION = '1.23.4'
15
15
  end
Binary file
Binary file
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.0
4
+ version: 1.23.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-03 00:00:00.000000000 Z
11
+ date: 2022-11-30 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
@@ -92,7 +92,6 @@ extensions: []
92
92
  extra_rdoc_files: []
93
93
  files:
94
94
  - Gemfile
95
- - Gemfile.lock
96
95
  - LICENSE
97
96
  - README.md
98
97
  - Rakefile
@@ -513,14 +512,9 @@ files:
513
512
  - spec/models/webhook_log_spec.rb
514
513
  - spec/models/webhook_spec.rb
515
514
  - spec/spec_helper.rb
516
- - transferzero-sdk-1.19.0.gem
517
- - transferzero-sdk-1.19.2.gem
518
- - transferzero-sdk-1.19.3.gem
519
- - transferzero-sdk-1.19.4.gem
520
- - transferzero-sdk-1.19.5.gem
521
515
  - transferzero-sdk-1.20.1.gem
522
- - transferzero-sdk-1.21.0.gem
523
516
  - transferzero-sdk-1.22.0.gem
517
+ - transferzero-sdk-1.22.1.gem
524
518
  - transferzero-sdk.gemspec
525
519
  homepage: https://github.com/transferzero/transferzero-sdk-ruby
526
520
  licenses:
@@ -541,7 +535,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
541
535
  - !ruby/object:Gem::Version
542
536
  version: '0'
543
537
  requirements: []
544
- rubygems_version: 3.0.3
538
+ rubygems_version: 3.1.6
545
539
  signing_key:
546
540
  specification_version: 4
547
541
  summary: TransferZero API Ruby Gem
data/Gemfile.lock DELETED
@@ -1,92 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- transferzero-sdk (1.11.0)
5
- activesupport (>= 4)
6
- json (>= 1.4)
7
- typhoeus (~> 1.0, >= 1.0.1)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- ZenTest (4.12.0)
13
- activesupport (6.1.3)
14
- concurrent-ruby (~> 1.0, >= 1.0.2)
15
- i18n (>= 1.6, < 2)
16
- minitest (>= 5.1)
17
- tzinfo (~> 2.0)
18
- zeitwerk (~> 2.3)
19
- addressable (2.7.0)
20
- public_suffix (>= 2.0.2, < 5.0)
21
- autotest (4.4.6)
22
- ZenTest (>= 4.4.1)
23
- autotest-fsevent (0.2.17)
24
- sys-uname
25
- autotest-growl (0.2.16)
26
- autotest-rails-pure (4.1.2)
27
- byebug (11.1.3)
28
- coderay (1.1.3)
29
- concurrent-ruby (1.1.8)
30
- crack (0.4.4)
31
- diff-lcs (1.4.4)
32
- ethon (0.12.0)
33
- ffi (>= 1.3.0)
34
- ffi (1.13.1)
35
- hashdiff (1.0.1)
36
- i18n (1.8.9)
37
- concurrent-ruby (~> 1.0)
38
- json (2.5.1)
39
- method_source (1.0.0)
40
- minitest (5.14.3)
41
- pry (0.13.1)
42
- coderay (~> 1.1)
43
- method_source (~> 1.0)
44
- pry-byebug (3.9.0)
45
- byebug (~> 11.0)
46
- pry (~> 0.13.0)
47
- public_suffix (4.0.6)
48
- rake (12.0.0)
49
- rspec (3.10.0)
50
- rspec-core (~> 3.10.0)
51
- rspec-expectations (~> 3.10.0)
52
- rspec-mocks (~> 3.10.0)
53
- rspec-core (3.10.0)
54
- rspec-support (~> 3.10.0)
55
- rspec-expectations (3.10.0)
56
- diff-lcs (>= 1.2.0, < 2.0)
57
- rspec-support (~> 3.10.0)
58
- rspec-mocks (3.10.0)
59
- diff-lcs (>= 1.2.0, < 2.0)
60
- rspec-support (~> 3.10.0)
61
- rspec-support (3.10.0)
62
- sys-uname (1.2.2)
63
- ffi (~> 1.1)
64
- typhoeus (1.4.0)
65
- ethon (>= 0.9.0)
66
- tzinfo (2.0.4)
67
- concurrent-ruby (~> 1.0)
68
- vcr (3.0.3)
69
- webmock (1.24.6)
70
- addressable (>= 2.3.6)
71
- crack (>= 0.3.2)
72
- hashdiff
73
- zeitwerk (2.4.2)
74
-
75
- PLATFORMS
76
- ruby
77
-
78
- DEPENDENCIES
79
- ZenTest (~> 4.11, >= 4.11.2)
80
- autotest (~> 4.4, >= 4.4.6)
81
- autotest-fsevent (~> 0.2, >= 0.2.12)
82
- autotest-growl (~> 0.2, >= 0.2.16)
83
- autotest-rails-pure (~> 4.1, >= 4.1.2)
84
- pry-byebug
85
- rake (~> 12.0.0)
86
- rspec (~> 3.6, >= 3.6.0)
87
- transferzero-sdk!
88
- vcr (~> 3.0, >= 3.0.1)
89
- webmock (~> 1.24, >= 1.24.3)
90
-
91
- BUNDLED WITH
92
- 1.17.3
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file