transferzero-sdk 1.17.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0dc4776f3a304bb0e878db347244d6a0ee0ab62f8976833c10287cd27152013
4
- data.tar.gz: c9fb602686ab7b5a837fd5cecfd423db2612eac2d4b8a07325a51bd8b8da91d1
3
+ metadata.gz: 474d2e8b413915921b190203849a12f46f3c9cc295868549fa26fb289195f14d
4
+ data.tar.gz: bebd2cd67ffd96cf63dcc64dea2554ab8127b77878d3cb6e7ba6077b20f1d8a1
5
5
  SHA512:
6
- metadata.gz: 2f096614a85af726f815b4f6e93a8923d694f483ef6e07331699f85c4454ccda323650d0b1bf9e9559eb49c92ac17e46706b6f505b50cb34ef4b7b1a71e0e46a
7
- data.tar.gz: 8e9bdce85dd2c00fa07cf3295590025afed03abe96d061d710936a2426b8570bc98767142e95448b0774402ce58149380fb40dd44c37f2f9ebec71f9a9103c9c
6
+ metadata.gz: cfe419596593cb1151d38376202a2acc60e041c69f32d66df49fccd00fc5ce2aee0110edbd4660f60806504db1e96013e1d42fbd802cd1c4794e462777a27e54
7
+ data.tar.gz: f97e85c959a7e03d3c8e98ba259111654b3aa344b1d2ad6c4c47b6657e920277dfb0eaa077826b7de34d185112aad51aa5ba2ce13990255ec65e846ea618f4d8
data/Gemfile.lock ADDED
@@ -0,0 +1,89 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ transferzero-sdk (1.16.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.4.1)
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-growl (0.2.16)
24
+ autotest-rails-pure (4.1.2)
25
+ byebug (11.1.3)
26
+ coderay (1.1.3)
27
+ concurrent-ruby (1.1.9)
28
+ crack (0.4.5)
29
+ rexml
30
+ diff-lcs (1.4.4)
31
+ ethon (0.14.0)
32
+ ffi (>= 1.15.0)
33
+ ffi (1.15.4)
34
+ hashdiff (1.0.1)
35
+ i18n (1.8.10)
36
+ concurrent-ruby (~> 1.0)
37
+ json (2.5.1)
38
+ method_source (1.0.0)
39
+ minitest (5.14.4)
40
+ pry (0.13.1)
41
+ coderay (~> 1.1)
42
+ method_source (~> 1.0)
43
+ pry-byebug (3.9.0)
44
+ byebug (~> 11.0)
45
+ pry (~> 0.13.0)
46
+ public_suffix (4.0.6)
47
+ rake (12.0.0)
48
+ rexml (3.2.4)
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.1)
54
+ rspec-support (~> 3.10.0)
55
+ rspec-expectations (3.10.1)
56
+ diff-lcs (>= 1.2.0, < 2.0)
57
+ rspec-support (~> 3.10.0)
58
+ rspec-mocks (3.10.1)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.10.0)
61
+ rspec-support (3.10.1)
62
+ typhoeus (1.4.0)
63
+ ethon (>= 0.9.0)
64
+ tzinfo (2.0.4)
65
+ concurrent-ruby (~> 1.0)
66
+ vcr (3.0.3)
67
+ webmock (1.24.6)
68
+ addressable (>= 2.3.6)
69
+ crack (>= 0.3.2)
70
+ hashdiff
71
+ zeitwerk (2.4.2)
72
+
73
+ PLATFORMS
74
+ ruby
75
+
76
+ DEPENDENCIES
77
+ ZenTest (~> 4.11, >= 4.11.2)
78
+ autotest (~> 4.4, >= 4.4.6)
79
+ autotest-growl (~> 0.2, >= 0.2.16)
80
+ autotest-rails-pure (~> 4.1, >= 4.1.2)
81
+ pry-byebug
82
+ rake (~> 12.0.0)
83
+ rspec (~> 3.6, >= 3.6.0)
84
+ transferzero-sdk!
85
+ vcr (~> 3.0, >= 3.0.1)
86
+ webmock (~> 1.24, >= 1.24.3)
87
+
88
+ BUNDLED WITH
89
+ 2.1.4
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.17.0
10
+ - Package version: 1.18.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.17.0.gem
34
+ gem install ./transferzero-sdk-1.18.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.17.0.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.18.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.17.0'
42
+ gem 'transferzero-sdk', '~> 1.18.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -205,6 +205,7 @@ Class | Method | HTTP request | Description
205
205
  - [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
206
206
  - [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
207
207
  - [TransferZero::PayoutMethodDetailsGHSCash](docs/PayoutMethodDetailsGHSCash.md)
208
+ - [TransferZero::PayoutMethodDetailsGNFMobile](docs/PayoutMethodDetailsGNFMobile.md)
208
209
  - [TransferZero::PayoutMethodDetailsIBAN](docs/PayoutMethodDetailsIBAN.md)
209
210
  - [TransferZero::PayoutMethodDetailsKESBank](docs/PayoutMethodDetailsKESBank.md)
210
211
  - [TransferZero::PayoutMethodDetailsKESMobile](docs/PayoutMethodDetailsKESMobile.md)
@@ -213,6 +214,7 @@ Class | Method | HTTP request | Description
213
214
  - [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
214
215
  - [TransferZero::PayoutMethodDetailsUSDBank](docs/PayoutMethodDetailsUSDBank.md)
215
216
  - [TransferZero::PayoutMethodDetailsUSDCash](docs/PayoutMethodDetailsUSDCash.md)
217
+ - [TransferZero::PayoutMethodDetailsXAFMobile](docs/PayoutMethodDetailsXAFMobile.md)
216
218
  - [TransferZero::PayoutMethodDetailsXOFBank](docs/PayoutMethodDetailsXOFBank.md)
217
219
  - [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
218
220
  - [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.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: - &#x60;NGN::Bank&#x60; - for Nigerian bank account payments. - &#x60;NGN::Mobile&#x60; - for Nigerian mobile money payments. - &#x60;GHS::Bank&#x60; - for Ghanaian bank account payments. - &#x60;GHS::Mobile&#x60; - for Ghanaian mobile money payments. - &#x60;GHS::Cash&#x60; - for Ghanaian cash remittance payments. - &#x60;UGX::Mobile&#x60; - for Ugandan mobile money payments. - &#x60;TZS::Mobile&#x60; - for Tanzanian mobile money payments. - &#x60;XOF::Mobile&#x60; - for mobile money payments to West-Africa. - &#x60;XOF::Bank&#x60; - for Senegalese bank account payments. - &#x60;XOF::Cash&#x60; - for Senegalese cash remittance payments. - &#x60;MAD::Cash&#x60; - for Moroccan cash remittance payments. - &#x60;EUR::Bank&#x60; - for IBAN bank transfers in EUR. - &#x60;GBP::Bank&#x60; - for IBAN bank and FP accounts transfers in GBP. - &#x60;ZAR::Bank&#x60; - for South Africa bank account payments. - &#x60;USD::Bank&#x60; - for USD account payments. *** Currently Nigeria only and in Beta phase *** - &#x60;USD::Cash&#x60; - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - &#x60;KES::Bank&#x60; - for Kenyan bank account payments. - &#x60;KES::Mobile&#x60; - for Kenyan mobile money payments. You can also send funds to the internal balance using &#x60;CCY::Balance&#x60;, where &#x60;CCY&#x60; 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: - &#x60;NGN::Bank&#x60; - for Nigerian bank account payments. - &#x60;NGN::Mobile&#x60; - for Nigerian mobile money payments. - &#x60;GHS::Bank&#x60; - for Ghanaian bank account payments. - &#x60;GHS::Mobile&#x60; - for Ghanaian mobile money payments. - &#x60;GHS::Cash&#x60; - for Ghanaian cash remittance payments. - &#x60;UGX::Mobile&#x60; - for Ugandan mobile money payments. - &#x60;TZS::Mobile&#x60; - for Tanzanian mobile money payments. - &#x60;XOF::Mobile&#x60; - for mobile money payments to West-Africa. - &#x60;XOF::Bank&#x60; - for Senegalese bank account payments. - &#x60;XOF::Cash&#x60; - for Senegalese cash remittance payments. - &#x60;MAD::Cash&#x60; - for Moroccan cash remittance payments. - &#x60;EUR::Bank&#x60; - for IBAN bank transfers in EUR. - &#x60;GBP::Bank&#x60; - for IBAN bank and FP accounts transfers in GBP. - &#x60;ZAR::Bank&#x60; - for South Africa bank account payments. - &#x60;USD::Bank&#x60; - for USD account payments. *** Currently Nigeria only and in Beta phase *** - &#x60;USD::Cash&#x60; - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - &#x60;KES::Bank&#x60; - for Kenyan bank account payments. - &#x60;KES::Mobile&#x60; - for Kenyan mobile money payments. - &#x60;XAF::Mobile&#x60; - for mobile money payments to Cameroon. - &#x60;GNF::Mobile&#x60; - for mobile money payments to Guinea. You can also send funds to the internal balance using &#x60;CCY::Balance&#x60;, where &#x60;CCY&#x60; 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]
@@ -12,10 +12,10 @@ Name | Type | Description | Notes
12
12
  **phone_number** | **String** | |
13
13
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
14
14
  **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | |
15
+ **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
15
16
  **iban** | **String** | |
16
17
  **bank_name** | **String** | |
17
18
  **bank_country** | **String** | | [optional]
18
- **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
19
19
  **cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | | [optional]
20
20
  **sort_code** | **String** | | [optional]
21
21
  **bic** | **String** | | [optional]
@@ -56,10 +56,10 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
56
56
  phone_number: null,
57
57
  mobile_provider: null,
58
58
  country: null,
59
+ transfer_reason: null,
59
60
  iban: null,
60
61
  bank_name: null,
61
62
  bank_country: null,
62
- transfer_reason: null,
63
63
  cash_provider: null,
64
64
  sort_code: null,
65
65
  bic: null,
@@ -0,0 +1,23 @@
1
+ # TransferZero::PayoutMethodDetailsGNFMobile
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **phone_number** | **String** | |
10
+ **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'TransferZero'
16
+
17
+ instance = TransferZero::PayoutMethodDetailsGNFMobile.new(first_name: null,
18
+ last_name: null,
19
+ phone_number: null,
20
+ mobile_provider: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,25 @@
1
+ # TransferZero::PayoutMethodDetailsXAFMobile
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **phone_number** | **String** | |
10
+ **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
11
+ **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'TransferZero'
17
+
18
+ instance = TransferZero::PayoutMethodDetailsXAFMobile.new(first_name: null,
19
+ last_name: null,
20
+ phone_number: null,
21
+ mobile_provider: null,
22
+ country: null)
23
+ ```
24
+
25
+
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **phone_number** | **String** | |
10
10
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
11
11
  **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
12
+ **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
12
13
 
13
14
  ## Code Sample
14
15
 
@@ -19,7 +20,8 @@ instance = TransferZero::PayoutMethodDetailsXOFMobile.new(first_name: null,
19
20
  last_name: null,
20
21
  phone_number: null,
21
22
  mobile_provider: null,
22
- country: null)
23
+ country: null,
24
+ transfer_reason: null)
23
25
  ```
24
26
 
25
27
 
data/docs/Sender.md CHANGED
@@ -52,6 +52,7 @@ Name | Type | Description | Notes
52
52
  **city_of_birth** | **String** | City of birth of sender | [optional]
53
53
  **country_of_birth** | **String** | Country of birth of sender in 2-character alpha ISO 3166-2 country format | [optional]
54
54
  **gender** | **String** | The gender of the sender: - &#x60;M&#x60;: Male - &#x60;F&#x60;: Female - &#x60;O&#x60;: Other | [optional]
55
+ **sales_lead_id** | **String** | Sales Lead ID for tracking (optional) | [optional]
55
56
  **created_at** | **String** | Date and time of sender was created | [optional]
56
57
 
57
58
  ## Code Sample
@@ -107,6 +108,7 @@ instance = TransferZero::Sender.new(id: bf9ff782-e182-45ac-abea-5bce83ad6670,
107
108
  city_of_birth: London,
108
109
  country_of_birth: GB,
109
110
  gender: M,
111
+ sales_lead_id: HF6HJVF67,
110
112
  created_at: 2019-01-11T00:00:00.001+0000)
111
113
  ```
112
114
 
@@ -35,7 +35,7 @@ module TransferZero
35
35
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
36
36
  def initialize(config = Configuration.default)
37
37
  @config = config
38
- @user_agent = "TransferZero-SDK/Ruby/1.17.0"
38
+ @user_agent = "TransferZero-SDK/Ruby/1.18.0"
39
39
  @default_headers = {
40
40
  'Content-Type' => 'application/json',
41
41
  '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. - `NGN::Mobile` - for Nigerian mobile money 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. - `TZS::Mobile` - for Tanzanian 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. 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. - `NGN::Mobile` - for Nigerian mobile money 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. - `TZS::Mobile` - for Tanzanian 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. - `GNF::Mobile` - for mobile money payments to Guinea. 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
@@ -30,14 +30,14 @@ class PayoutMethodDetails
30
30
 
31
31
  attr_accessor :country
32
32
 
33
+ attr_accessor :transfer_reason
34
+
33
35
  attr_accessor :iban
34
36
 
35
37
  attr_accessor :bank_name
36
38
 
37
39
  attr_accessor :bank_country
38
40
 
39
- attr_accessor :transfer_reason
40
-
41
41
  attr_accessor :cash_provider
42
42
 
43
43
  attr_accessor :sort_code
@@ -101,10 +101,10 @@ class PayoutMethodDetails
101
101
  :'phone_number' => :'phone_number',
102
102
  :'mobile_provider' => :'mobile_provider',
103
103
  :'country' => :'country',
104
+ :'transfer_reason' => :'transfer_reason',
104
105
  :'iban' => :'iban',
105
106
  :'bank_name' => :'bank_name',
106
107
  :'bank_country' => :'bank_country',
107
- :'transfer_reason' => :'transfer_reason',
108
108
  :'cash_provider' => :'cash_provider',
109
109
  :'sort_code' => :'sort_code',
110
110
  :'bic' => :'bic',
@@ -145,10 +145,10 @@ class PayoutMethodDetails
145
145
  :'phone_number' => :'String',
146
146
  :'mobile_provider' => :'PayoutMethodMobileProviderEnum',
147
147
  :'country' => :'PayoutMethodCountryEnum',
148
+ :'transfer_reason' => :'PayoutMethodTransferReasonEnum',
148
149
  :'iban' => :'String',
149
150
  :'bank_name' => :'String',
150
151
  :'bank_country' => :'String',
151
- :'transfer_reason' => :'PayoutMethodTransferReasonEnum',
152
152
  :'cash_provider' => :'PayoutMethodCashProviderEnum',
153
153
  :'sort_code' => :'String',
154
154
  :'bic' => :'String',
@@ -186,6 +186,7 @@ class PayoutMethodDetails
186
186
  :'PayoutMethodDetailsGBPBank',
187
187
  :'PayoutMethodDetailsGHSBank',
188
188
  :'PayoutMethodDetailsGHSCash',
189
+ :'PayoutMethodDetailsGNFMobile',
189
190
  :'PayoutMethodDetailsIBAN',
190
191
  :'PayoutMethodDetailsKESBank',
191
192
  :'PayoutMethodDetailsKESMobile',
@@ -194,6 +195,7 @@ class PayoutMethodDetails
194
195
  :'PayoutMethodDetailsNGNBank',
195
196
  :'PayoutMethodDetailsUSDBank',
196
197
  :'PayoutMethodDetailsUSDCash',
198
+ :'PayoutMethodDetailsXAFMobile',
197
199
  :'PayoutMethodDetailsXOFBank',
198
200
  :'PayoutMethodDetailsXOFCash',
199
201
  :'PayoutMethodDetailsXOFMobile',
@@ -248,6 +250,10 @@ class PayoutMethodDetails
248
250
  self.country = attributes[:'country']
249
251
  end
250
252
 
253
+ if attributes.key?(:'transfer_reason')
254
+ self.transfer_reason = attributes[:'transfer_reason']
255
+ end
256
+
251
257
  if attributes.key?(:'iban')
252
258
  self.iban = attributes[:'iban']
253
259
  end
@@ -260,10 +266,6 @@ class PayoutMethodDetails
260
266
  self.bank_country = attributes[:'bank_country']
261
267
  end
262
268
 
263
- if attributes.key?(:'transfer_reason')
264
- self.transfer_reason = attributes[:'transfer_reason']
265
- end
266
-
267
269
  if attributes.key?(:'cash_provider')
268
270
  self.cash_provider = attributes[:'cash_provider']
269
271
  end
@@ -506,10 +508,10 @@ class PayoutMethodDetails
506
508
  phone_number == o.phone_number &&
507
509
  mobile_provider == o.mobile_provider &&
508
510
  country == o.country &&
511
+ transfer_reason == o.transfer_reason &&
509
512
  iban == o.iban &&
510
513
  bank_name == o.bank_name &&
511
514
  bank_country == o.bank_country &&
512
- transfer_reason == o.transfer_reason &&
513
515
  cash_provider == o.cash_provider &&
514
516
  sort_code == o.sort_code &&
515
517
  bic == o.bic &&
@@ -547,7 +549,7 @@ class PayoutMethodDetails
547
549
  # Calculates hash code according to all attributes.
548
550
  # @return [Integer] Hash code
549
551
  def hash
550
- [first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, iban, bank_name, bank_country, transfer_reason, 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].hash
552
+ [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].hash
551
553
  end
552
554
 
553
555
  require 'active_support/core_ext/hash'
@@ -0,0 +1,250 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module TransferZero
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"444044436\", // local or international Guinea format \"mobile_provider\": \"mtn\" } ```
17
+ class PayoutMethodDetailsGNFMobile
18
+ attr_accessor :first_name
19
+
20
+ attr_accessor :last_name
21
+
22
+ attr_accessor :phone_number
23
+
24
+ attr_accessor :mobile_provider
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'first_name' => :'first_name',
30
+ :'last_name' => :'last_name',
31
+ :'phone_number' => :'phone_number',
32
+ :'mobile_provider' => :'mobile_provider'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'first_name' => :'String',
40
+ :'last_name' => :'String',
41
+ :'phone_number' => :'String',
42
+ :'mobile_provider' => :'PayoutMethodMobileProviderEnum'
43
+ }
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PayoutMethodDetailsGNFMobile` initialize method"
51
+ end
52
+
53
+ # check to see if the attribute exists and convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h|
55
+ if (!self.class.attribute_map.key?(k.to_sym))
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PayoutMethodDetailsGNFMobile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ end
58
+ h[k.to_sym] = v
59
+ }
60
+
61
+ if attributes.key?(:'first_name')
62
+ self.first_name = attributes[:'first_name']
63
+ end
64
+
65
+ if attributes.key?(:'last_name')
66
+ self.last_name = attributes[:'last_name']
67
+ end
68
+
69
+ if attributes.key?(:'phone_number')
70
+ self.phone_number = attributes[:'phone_number']
71
+ end
72
+
73
+ if attributes.key?(:'mobile_provider')
74
+ self.mobile_provider = attributes[:'mobile_provider']
75
+ end
76
+ end
77
+
78
+ # Show invalid properties with the reasons. Usually used together with valid?
79
+ # @return Array for valid properties with the reasons
80
+ def list_invalid_properties
81
+ invalid_properties = Array.new
82
+ if @first_name.nil?
83
+ invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
84
+ end
85
+
86
+ if @last_name.nil?
87
+ invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
88
+ end
89
+
90
+ if @phone_number.nil?
91
+ invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
92
+ end
93
+
94
+ if @mobile_provider.nil?
95
+ invalid_properties.push('invalid value for "mobile_provider", mobile_provider cannot be nil.')
96
+ end
97
+
98
+ invalid_properties
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ def valid?
104
+ return false if @first_name.nil?
105
+ return false if @last_name.nil?
106
+ return false if @phone_number.nil?
107
+ return false if @mobile_provider.nil?
108
+ true
109
+ end
110
+
111
+ # Checks equality by comparing each attribute.
112
+ # @param [Object] Object to be compared
113
+ def ==(o)
114
+ return true if self.equal?(o)
115
+ self.class == o.class &&
116
+ first_name == o.first_name &&
117
+ last_name == o.last_name &&
118
+ phone_number == o.phone_number &&
119
+ mobile_provider == o.mobile_provider
120
+ end
121
+
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(o)
125
+ self == o
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ def hash
131
+ [first_name, last_name, phone_number, mobile_provider].hash
132
+ end
133
+
134
+ require 'active_support/core_ext/hash'
135
+ require 'active_support/hash_with_indifferent_access.rb'
136
+ # Builds the object from hash
137
+ # @param [Hash] attributes Model attributes in the form of hash
138
+ # @return [Object] Returns the model itself
139
+ def build_from_hash(attributes)
140
+ return nil unless attributes.is_a?(Hash)
141
+ self.class.openapi_types.each_pair do |key, type|
142
+ if type =~ /\AArray<(.*)>/i
143
+ # check to ensure the input is an array given that the the attribute
144
+ # is documented as an array but the input is not
145
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
146
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
147
+ end
148
+ elsif !attributes[self.class.attribute_map[key]].nil?
149
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
150
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
151
+ end
152
+
153
+ self
154
+ end
155
+
156
+ # Deserializes the data based on type
157
+ # @param string type Data type
158
+ # @param string value Value to be deserialized
159
+ # @return [Object] Deserialized data
160
+ def _deserialize(type, value)
161
+ case type.to_sym
162
+ when :DateTime
163
+ DateTime.parse(value)
164
+ when :Date
165
+ Date.parse(value)
166
+ when :String
167
+ value.to_s
168
+ when :Integer
169
+ value.to_i
170
+ when :Float
171
+ value.to_f
172
+ when :Boolean
173
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
174
+ true
175
+ else
176
+ false
177
+ end
178
+ when :Object
179
+ # generic object (usually a Hash), return directly
180
+ value
181
+ when /\AArray<(?<inner_type>.+)>\z/
182
+ inner_type = Regexp.last_match[:inner_type]
183
+ value.map { |v| _deserialize(inner_type, v) }
184
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
185
+ k_type = Regexp.last_match[:k_type]
186
+ v_type = Regexp.last_match[:v_type]
187
+ {}.tap do |hash|
188
+ value.each do |k, v|
189
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
190
+ end
191
+ end
192
+ else # model
193
+ temp_model = TransferZero.const_get(type).new
194
+ temp_model.build_from_hash(value)
195
+ end
196
+ end
197
+
198
+ # Returns the string representation of the object
199
+ # @return [String] String presentation of the object
200
+ def to_s
201
+ to_hash.to_s
202
+ end
203
+
204
+ # to_body is an alias to to_hash (backward compatibility)
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_body
207
+ to_hash
208
+ end
209
+
210
+ # Returns the object in the form of hash
211
+ # @return [Hash] Returns the object in the form of hash
212
+ def to_hash
213
+ hash = {}
214
+ self.class.attribute_map.each_pair do |attr, param|
215
+ value = self.send(attr)
216
+ next if value.nil?
217
+ hash[param] = _to_hash(value)
218
+ end
219
+ ::ActiveSupport::HashWithIndifferentAccess.new(hash)
220
+ end
221
+
222
+ def [](key)
223
+ to_hash[key]
224
+ end
225
+
226
+ def dig(*args)
227
+ to_hash.dig(*args)
228
+ end
229
+
230
+ # Outputs non-array value in the form of hash
231
+ # For object, use to_hash. Otherwise, just return the value
232
+ # @param [Object] value Any valid value
233
+ # @return [Hash] Returns the value in the form of hash
234
+ def _to_hash(value)
235
+ if value.is_a?(Array)
236
+ value.compact.map { |v| _to_hash(v) }
237
+ elsif value.is_a?(Hash)
238
+ {}.tap do |hash|
239
+ value.each { |k, v| hash[k] = _to_hash(v) }
240
+ end
241
+ elsif value.respond_to? :to_hash
242
+ value.to_hash
243
+ else
244
+ value
245
+ end
246
+ end
247
+
248
+ end
249
+
250
+ end
@@ -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\": \"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\" }, (...) } ```
17
17
  class PayoutMethodDetailsMobile
18
18
  attr_accessor :first_name
19
19
 
@@ -0,0 +1,259 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module TransferZero
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"674044436\", // local or international cameroon format \"mobile_provider\": \"orange\", // or mtn\" \"country\" // Optional; Values: \"CM\" } ```
17
+ class PayoutMethodDetailsXAFMobile
18
+ attr_accessor :first_name
19
+
20
+ attr_accessor :last_name
21
+
22
+ attr_accessor :phone_number
23
+
24
+ attr_accessor :mobile_provider
25
+
26
+ attr_accessor :country
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'first_name' => :'first_name',
32
+ :'last_name' => :'last_name',
33
+ :'phone_number' => :'phone_number',
34
+ :'mobile_provider' => :'mobile_provider',
35
+ :'country' => :'country'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.openapi_types
41
+ {
42
+ :'first_name' => :'String',
43
+ :'last_name' => :'String',
44
+ :'phone_number' => :'String',
45
+ :'mobile_provider' => :'PayoutMethodMobileProviderEnum',
46
+ :'country' => :'PayoutMethodCountryEnum'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PayoutMethodDetailsXAFMobile` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ attributes = attributes.each_with_object({}) { |(k, v), h|
59
+ if (!self.class.attribute_map.key?(k.to_sym))
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PayoutMethodDetailsXAFMobile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ end
62
+ h[k.to_sym] = v
63
+ }
64
+
65
+ if attributes.key?(:'first_name')
66
+ self.first_name = attributes[:'first_name']
67
+ end
68
+
69
+ if attributes.key?(:'last_name')
70
+ self.last_name = attributes[:'last_name']
71
+ end
72
+
73
+ if attributes.key?(:'phone_number')
74
+ self.phone_number = attributes[:'phone_number']
75
+ end
76
+
77
+ if attributes.key?(:'mobile_provider')
78
+ self.mobile_provider = attributes[:'mobile_provider']
79
+ end
80
+
81
+ if attributes.key?(:'country')
82
+ self.country = attributes[:'country']
83
+ end
84
+ end
85
+
86
+ # Show invalid properties with the reasons. Usually used together with valid?
87
+ # @return Array for valid properties with the reasons
88
+ def list_invalid_properties
89
+ invalid_properties = Array.new
90
+ if @first_name.nil?
91
+ invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
92
+ end
93
+
94
+ if @last_name.nil?
95
+ invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
96
+ end
97
+
98
+ if @phone_number.nil?
99
+ invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
100
+ end
101
+
102
+ if @mobile_provider.nil?
103
+ invalid_properties.push('invalid value for "mobile_provider", mobile_provider cannot be nil.')
104
+ end
105
+
106
+ invalid_properties
107
+ end
108
+
109
+ # Check to see if the all the properties in the model are valid
110
+ # @return true if the model is valid
111
+ def valid?
112
+ return false if @first_name.nil?
113
+ return false if @last_name.nil?
114
+ return false if @phone_number.nil?
115
+ return false if @mobile_provider.nil?
116
+ true
117
+ end
118
+
119
+ # Checks equality by comparing each attribute.
120
+ # @param [Object] Object to be compared
121
+ def ==(o)
122
+ return true if self.equal?(o)
123
+ self.class == o.class &&
124
+ first_name == o.first_name &&
125
+ last_name == o.last_name &&
126
+ phone_number == o.phone_number &&
127
+ mobile_provider == o.mobile_provider &&
128
+ country == o.country
129
+ end
130
+
131
+ # @see the `==` method
132
+ # @param [Object] Object to be compared
133
+ def eql?(o)
134
+ self == o
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Integer] Hash code
139
+ def hash
140
+ [first_name, last_name, phone_number, mobile_provider, country].hash
141
+ end
142
+
143
+ require 'active_support/core_ext/hash'
144
+ require 'active_support/hash_with_indifferent_access.rb'
145
+ # Builds the object from hash
146
+ # @param [Hash] attributes Model attributes in the form of hash
147
+ # @return [Object] Returns the model itself
148
+ def build_from_hash(attributes)
149
+ return nil unless attributes.is_a?(Hash)
150
+ self.class.openapi_types.each_pair do |key, type|
151
+ if type =~ /\AArray<(.*)>/i
152
+ # check to ensure the input is an array given that the the attribute
153
+ # is documented as an array but the input is not
154
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
155
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
156
+ end
157
+ elsif !attributes[self.class.attribute_map[key]].nil?
158
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
159
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
160
+ end
161
+
162
+ self
163
+ end
164
+
165
+ # Deserializes the data based on type
166
+ # @param string type Data type
167
+ # @param string value Value to be deserialized
168
+ # @return [Object] Deserialized data
169
+ def _deserialize(type, value)
170
+ case type.to_sym
171
+ when :DateTime
172
+ DateTime.parse(value)
173
+ when :Date
174
+ Date.parse(value)
175
+ when :String
176
+ value.to_s
177
+ when :Integer
178
+ value.to_i
179
+ when :Float
180
+ value.to_f
181
+ when :Boolean
182
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
183
+ true
184
+ else
185
+ false
186
+ end
187
+ when :Object
188
+ # generic object (usually a Hash), return directly
189
+ value
190
+ when /\AArray<(?<inner_type>.+)>\z/
191
+ inner_type = Regexp.last_match[:inner_type]
192
+ value.map { |v| _deserialize(inner_type, v) }
193
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
194
+ k_type = Regexp.last_match[:k_type]
195
+ v_type = Regexp.last_match[:v_type]
196
+ {}.tap do |hash|
197
+ value.each do |k, v|
198
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
199
+ end
200
+ end
201
+ else # model
202
+ temp_model = TransferZero.const_get(type).new
203
+ temp_model.build_from_hash(value)
204
+ end
205
+ end
206
+
207
+ # Returns the string representation of the object
208
+ # @return [String] String presentation of the object
209
+ def to_s
210
+ to_hash.to_s
211
+ end
212
+
213
+ # to_body is an alias to to_hash (backward compatibility)
214
+ # @return [Hash] Returns the object in the form of hash
215
+ def to_body
216
+ to_hash
217
+ end
218
+
219
+ # Returns the object in the form of hash
220
+ # @return [Hash] Returns the object in the form of hash
221
+ def to_hash
222
+ hash = {}
223
+ self.class.attribute_map.each_pair do |attr, param|
224
+ value = self.send(attr)
225
+ next if value.nil?
226
+ hash[param] = _to_hash(value)
227
+ end
228
+ ::ActiveSupport::HashWithIndifferentAccess.new(hash)
229
+ end
230
+
231
+ def [](key)
232
+ to_hash[key]
233
+ end
234
+
235
+ def dig(*args)
236
+ to_hash.dig(*args)
237
+ end
238
+
239
+ # Outputs non-array value in the form of hash
240
+ # For object, use to_hash. Otherwise, just return the value
241
+ # @param [Object] value Any valid value
242
+ # @return [Hash] Returns the value in the form of hash
243
+ def _to_hash(value)
244
+ if value.is_a?(Array)
245
+ value.compact.map { |v| _to_hash(v) }
246
+ elsif value.is_a?(Hash)
247
+ {}.tap do |hash|
248
+ value.each { |k, v| hash[k] = _to_hash(v) }
249
+ end
250
+ elsif value.respond_to? :to_hash
251
+ value.to_hash
252
+ else
253
+ value
254
+ end
255
+ end
256
+
257
+ end
258
+
259
+ end
@@ -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\" or \"tigo\" for Senegal; \"orange\", \"mtn\" or \"moov\" for Ivory Coast \"country\" # Optional; Values: \"SN\" for Senegal or \"CI\" for Ivory Coast; Default value is \"SN\" } ```
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"774044436\", // local or international Senegalese or Ivory Coast format \"mobile_provider\": \"orange\", // \"orange\" or \"tigo\" 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
 
@@ -25,6 +25,8 @@ class PayoutMethodDetailsXOFMobile
25
25
 
26
26
  attr_accessor :country
27
27
 
28
+ attr_accessor :transfer_reason
29
+
28
30
  # Attribute mapping from ruby-style variable name to JSON key.
29
31
  def self.attribute_map
30
32
  {
@@ -32,7 +34,8 @@ class PayoutMethodDetailsXOFMobile
32
34
  :'last_name' => :'last_name',
33
35
  :'phone_number' => :'phone_number',
34
36
  :'mobile_provider' => :'mobile_provider',
35
- :'country' => :'country'
37
+ :'country' => :'country',
38
+ :'transfer_reason' => :'transfer_reason'
36
39
  }
37
40
  end
38
41
 
@@ -43,7 +46,8 @@ class PayoutMethodDetailsXOFMobile
43
46
  :'last_name' => :'String',
44
47
  :'phone_number' => :'String',
45
48
  :'mobile_provider' => :'PayoutMethodMobileProviderEnum',
46
- :'country' => :'PayoutMethodCountryEnum'
49
+ :'country' => :'PayoutMethodCountryEnum',
50
+ :'transfer_reason' => :'PayoutMethodTransferReasonEnum'
47
51
  }
48
52
  end
49
53
 
@@ -81,6 +85,10 @@ class PayoutMethodDetailsXOFMobile
81
85
  if attributes.key?(:'country')
82
86
  self.country = attributes[:'country']
83
87
  end
88
+
89
+ if attributes.key?(:'transfer_reason')
90
+ self.transfer_reason = attributes[:'transfer_reason']
91
+ end
84
92
  end
85
93
 
86
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -125,7 +133,8 @@ class PayoutMethodDetailsXOFMobile
125
133
  last_name == o.last_name &&
126
134
  phone_number == o.phone_number &&
127
135
  mobile_provider == o.mobile_provider &&
128
- country == o.country
136
+ country == o.country &&
137
+ transfer_reason == o.transfer_reason
129
138
  end
130
139
 
131
140
  # @see the `==` method
@@ -137,7 +146,7 @@ class PayoutMethodDetailsXOFMobile
137
146
  # Calculates hash code according to all attributes.
138
147
  # @return [Integer] Hash code
139
148
  def hash
140
- [first_name, last_name, phone_number, mobile_provider, country].hash
149
+ [first_name, last_name, phone_number, mobile_provider, country, transfer_reason].hash
141
150
  end
142
151
 
143
152
  require 'active_support/core_ext/hash'
@@ -24,6 +24,7 @@ class PayoutMethodMobileProviderEnum
24
24
  MPESA = "mpesa".freeze
25
25
  AFRICELL = "africell".freeze
26
26
  TELECOM = "telecom".freeze
27
+ MOBICASH = "mobicash".freeze
27
28
 
28
29
  # Builds the enum from string
29
30
  # @param [String] The enum value in the form of the string
@@ -157,6 +157,9 @@ class Sender
157
157
  # The gender of the sender: - `M`: Male - `F`: Female - `O`: Other
158
158
  attr_accessor :gender
159
159
 
160
+ # Sales Lead ID for tracking (optional)
161
+ attr_accessor :sales_lead_id
162
+
160
163
  # Date and time of sender was created
161
164
  attr_accessor :created_at
162
165
 
@@ -233,6 +236,7 @@ class Sender
233
236
  :'city_of_birth' => :'city_of_birth',
234
237
  :'country_of_birth' => :'country_of_birth',
235
238
  :'gender' => :'gender',
239
+ :'sales_lead_id' => :'sales_lead_id',
236
240
  :'created_at' => :'created_at'
237
241
  }
238
242
  end
@@ -288,6 +292,7 @@ class Sender
288
292
  :'city_of_birth' => :'String',
289
293
  :'country_of_birth' => :'String',
290
294
  :'gender' => :'String',
295
+ :'sales_lead_id' => :'String',
291
296
  :'created_at' => :'String'
292
297
  }
293
298
  end
@@ -505,6 +510,10 @@ class Sender
505
510
  self.gender = attributes[:'gender']
506
511
  end
507
512
 
513
+ if attributes.key?(:'sales_lead_id')
514
+ self.sales_lead_id = attributes[:'sales_lead_id']
515
+ end
516
+
508
517
  if attributes.key?(:'created_at')
509
518
  self.created_at = attributes[:'created_at']
510
519
  end
@@ -676,6 +685,7 @@ class Sender
676
685
  city_of_birth == o.city_of_birth &&
677
686
  country_of_birth == o.country_of_birth &&
678
687
  gender == o.gender &&
688
+ sales_lead_id == o.sales_lead_id &&
679
689
  created_at == o.created_at
680
690
  end
681
691
 
@@ -688,7 +698,7 @@ class Sender
688
698
  # Calculates hash code according to all attributes.
689
699
  # @return [Integer] Hash code
690
700
  def hash
691
- [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, number_monthly_transactions, amount_monthly_transactions, documents, metadata, errors, onboarding_status, politically_exposed_people, external_id, city_of_birth, country_of_birth, gender, created_at].hash
701
+ [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, 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
692
702
  end
693
703
 
694
704
  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.17.0'
14
+ VERSION = '1.18.0'
15
15
  end
@@ -69,6 +69,7 @@ require 'transferzero-sdk/models/payout_method_details_balance'
69
69
  require 'transferzero-sdk/models/payout_method_details_gbp_bank'
70
70
  require 'transferzero-sdk/models/payout_method_details_ghs_bank'
71
71
  require 'transferzero-sdk/models/payout_method_details_ghs_cash'
72
+ require 'transferzero-sdk/models/payout_method_details_gnf_mobile'
72
73
  require 'transferzero-sdk/models/payout_method_details_iban'
73
74
  require 'transferzero-sdk/models/payout_method_details_kes_bank'
74
75
  require 'transferzero-sdk/models/payout_method_details_kes_mobile'
@@ -77,6 +78,7 @@ require 'transferzero-sdk/models/payout_method_details_mobile'
77
78
  require 'transferzero-sdk/models/payout_method_details_ngn_bank'
78
79
  require 'transferzero-sdk/models/payout_method_details_usd_bank'
79
80
  require 'transferzero-sdk/models/payout_method_details_usd_cash'
81
+ require 'transferzero-sdk/models/payout_method_details_xaf_mobile'
80
82
  require 'transferzero-sdk/models/payout_method_details_xof_bank'
81
83
  require 'transferzero-sdk/models/payout_method_details_xof_cash'
82
84
  require 'transferzero-sdk/models/payout_method_details_xof_mobile'
@@ -0,0 +1,59 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TransferZero::PayoutMethodDetailsGNFMobile
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayoutMethodDetailsGNFMobile' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayoutMethodDetailsGNFMobile.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayoutMethodDetailsGNFMobile' do
31
+ it 'should create an instance of PayoutMethodDetailsGNFMobile' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsGNFMobile)
33
+ end
34
+ end
35
+ describe 'test attribute "first_name"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "last_name"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "phone_number"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "mobile_provider"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ end
@@ -0,0 +1,65 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TransferZero::PayoutMethodDetailsXAFMobile
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayoutMethodDetailsXAFMobile' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayoutMethodDetailsXAFMobile.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayoutMethodDetailsXAFMobile' do
31
+ it 'should create an instance of PayoutMethodDetailsXAFMobile' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsXAFMobile)
33
+ end
34
+ end
35
+ describe 'test attribute "first_name"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "last_name"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "phone_number"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "mobile_provider"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "country"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transferzero-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-18 00:00:00.000000000 Z
11
+ date: 2021-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -206,6 +206,7 @@ extensions: []
206
206
  extra_rdoc_files: []
207
207
  files:
208
208
  - Gemfile
209
+ - Gemfile.lock
209
210
  - LICENSE
210
211
  - README.md
211
212
  - Rakefile
@@ -269,6 +270,7 @@ files:
269
270
  - docs/PayoutMethodDetailsGBPBank.md
270
271
  - docs/PayoutMethodDetailsGHSBank.md
271
272
  - docs/PayoutMethodDetailsGHSCash.md
273
+ - docs/PayoutMethodDetailsGNFMobile.md
272
274
  - docs/PayoutMethodDetailsIBAN.md
273
275
  - docs/PayoutMethodDetailsKESBank.md
274
276
  - docs/PayoutMethodDetailsKESMobile.md
@@ -277,6 +279,7 @@ files:
277
279
  - docs/PayoutMethodDetailsNGNBank.md
278
280
  - docs/PayoutMethodDetailsUSDBank.md
279
281
  - docs/PayoutMethodDetailsUSDCash.md
282
+ - docs/PayoutMethodDetailsXAFMobile.md
280
283
  - docs/PayoutMethodDetailsXOFBank.md
281
284
  - docs/PayoutMethodDetailsXOFCash.md
282
285
  - docs/PayoutMethodDetailsXOFMobile.md
@@ -407,6 +410,7 @@ files:
407
410
  - lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb
408
411
  - lib/transferzero-sdk/models/payout_method_details_ghs_bank.rb
409
412
  - lib/transferzero-sdk/models/payout_method_details_ghs_cash.rb
413
+ - lib/transferzero-sdk/models/payout_method_details_gnf_mobile.rb
410
414
  - lib/transferzero-sdk/models/payout_method_details_iban.rb
411
415
  - lib/transferzero-sdk/models/payout_method_details_kes_bank.rb
412
416
  - lib/transferzero-sdk/models/payout_method_details_kes_mobile.rb
@@ -415,6 +419,7 @@ files:
415
419
  - lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb
416
420
  - lib/transferzero-sdk/models/payout_method_details_usd_bank.rb
417
421
  - lib/transferzero-sdk/models/payout_method_details_usd_cash.rb
422
+ - lib/transferzero-sdk/models/payout_method_details_xaf_mobile.rb
418
423
  - lib/transferzero-sdk/models/payout_method_details_xof_bank.rb
419
424
  - lib/transferzero-sdk/models/payout_method_details_xof_cash.rb
420
425
  - lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb
@@ -534,6 +539,7 @@ files:
534
539
  - spec/models/payout_method_details_gbp_bank_spec.rb
535
540
  - spec/models/payout_method_details_ghs_bank_spec.rb
536
541
  - spec/models/payout_method_details_ghs_cash_spec.rb
542
+ - spec/models/payout_method_details_gnf_mobile_spec.rb
537
543
  - spec/models/payout_method_details_iban_spec.rb
538
544
  - spec/models/payout_method_details_kes_bank_spec.rb
539
545
  - spec/models/payout_method_details_kes_mobile_spec.rb
@@ -543,6 +549,7 @@ files:
543
549
  - spec/models/payout_method_details_spec.rb
544
550
  - spec/models/payout_method_details_usd_bank_spec.rb
545
551
  - spec/models/payout_method_details_usd_cash_spec.rb
552
+ - spec/models/payout_method_details_xaf_mobile_spec.rb
546
553
  - spec/models/payout_method_details_xof_bank_spec.rb
547
554
  - spec/models/payout_method_details_xof_cash_spec.rb
548
555
  - spec/models/payout_method_details_xof_mobile_spec.rb
@@ -599,6 +606,7 @@ files:
599
606
  - spec/models/webhook_log_spec.rb
600
607
  - spec/models/webhook_spec.rb
601
608
  - spec/spec_helper.rb
609
+ - transferzero-sdk-1.16.1.gem
602
610
  - transferzero-sdk.gemspec
603
611
  homepage: https://github.com/transferzero/transferzero-sdk-ruby
604
612
  licenses:
@@ -619,7 +627,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
619
627
  - !ruby/object:Gem::Version
620
628
  version: '0'
621
629
  requirements: []
622
- rubygems_version: 3.1.2
630
+ rubygems_version: 3.1.4
623
631
  signing_key:
624
632
  specification_version: 4
625
633
  summary: TransferZero API Ruby Gem
@@ -699,7 +707,9 @@ test_files:
699
707
  - spec/models/sender_response_existing_spec.rb
700
708
  - spec/models/sender_request_spec.rb
701
709
  - spec/models/webhook_log_spec.rb
710
+ - spec/models/payout_method_details_gnf_mobile_spec.rb
702
711
  - spec/models/payout_method_details_ghs_bank_spec.rb
712
+ - spec/models/payout_method_details_xaf_mobile_spec.rb
703
713
  - spec/models/payout_method_details_mobile_spec.rb
704
714
  - spec/models/transaction_response_spec.rb
705
715
  - spec/models/transaction_state_spec.rb