transferzero-sdk 1.15.0 → 1.15.1

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: a7bee0e13c9f1879f7a82519242c43d792c03e3c4556044ea6fa8196def9ce62
4
- data.tar.gz: 31f990f2e97bbdbeda0c0de1c4359898ca37d77e8cad33530f1a619bd0b50d77
3
+ metadata.gz: 51bd01e02fdd44be8f6c1427a37fc8a12d351b95e82cdb2f86fdb7e77cf342da
4
+ data.tar.gz: fb5abc65c2e17aff999798d05b7d08c416e56220b8d1c578b1adb877c5ba0260
5
5
  SHA512:
6
- metadata.gz: 670b7815b517758381aefc6e9e3f93e2ae810d02cd04e5cd3eaf55ec64e338a9fc9bb7ee6c223c7afa6de9eccac81499f44717885d224f6c70afd3037c6c8807
7
- data.tar.gz: 56358b61853f9ed9d08c397ce0d83978f40bb38e8d839c53f3e360d0867ab64e14f8c51cda57041d1b685db0f5fb526a5b3f30902848ccf0acaab7f0a7410a6b
6
+ metadata.gz: 74d6adb63c093c515b3912d2f9abf0f46ddccb1a2e637981446fa431274044f63606401f8a42b05c292e603a3162caa26f99feb10c9a14c094c4fcc8b7754d4e
7
+ data.tar.gz: 9396578c58ad84f73ef436754fedfb48aa8595bb746de3da8eb6051ef44c617276bc973aaa43bc280a929652bb95fe44f9422cf39688be06a84dd0d88002b425
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.15.0
10
+ - Package version: 1.15.1
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.15.0.gem
34
+ gem install ./transferzero-sdk-1.15.1.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.15.0.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.15.1.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.15.0'
42
+ gem 'transferzero-sdk', '~> 1.15.1'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
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
+ **iban** | **String** | IBAN to query - BBAN format for XOF bank accounts | [optional]
9
10
  **phone_number** | **String** | Phone number to query | [optional]
10
11
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | | [optional]
11
12
  **country** | **String** | Country of account in 2-character alpha ISO 3166-2 country format |
@@ -19,6 +20,7 @@ require 'TransferZero'
19
20
 
20
21
  instance = TransferZero::AccountValidationRequest.new(bank_account: null,
21
22
  bank_code: null,
23
+ iban: null,
22
24
  phone_number: +233000000000,
23
25
  mobile_provider: null,
24
26
  country: null,
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
14
14
  **country** | [**PayoutMethodCountryEnumUSDBank**](PayoutMethodCountryEnumUSDBank.md) | |
15
15
  **iban** | **String** | |
16
16
  **bank_name** | **String** | |
17
- **bank_country** | **String** | |
17
+ **bank_country** | **String** | | [optional]
18
18
  **cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | | [optional]
19
19
  **sort_code** | **String** | | [optional]
20
20
  **bic** | **String** | | [optional]
@@ -7,8 +7,9 @@ Name | Type | Description | Notes
7
7
  **first_name** | **String** | |
8
8
  **last_name** | **String** | |
9
9
  **iban** | **String** | |
10
- **bank_name** | **String** | |
11
- **bank_country** | **String** | |
10
+ **bank_name** | **String** | | [optional]
11
+ **bank_country** | **String** | | [optional]
12
+ **bank_code** | **String** | | [optional]
12
13
 
13
14
  ## Code Sample
14
15
 
@@ -19,7 +20,8 @@ instance = TransferZero::PayoutMethodDetailsXOFBank.new(first_name: null,
19
20
  last_name: null,
20
21
  iban: null,
21
22
  bank_name: null,
22
- bank_country: null)
23
+ bank_country: null,
24
+ bank_code: null)
23
25
  ```
24
26
 
25
27
 
@@ -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.15.0"
38
+ @user_agent = "TransferZero-SDK/Ruby/1.15.1"
39
39
  @default_headers = {
40
40
  'Content-Type' => 'application/json',
41
41
  'User-Agent' => @user_agent
@@ -20,6 +20,9 @@ class AccountValidationRequest
20
20
  # Bank Code to query - same codes are used as for creating the transactions
21
21
  attr_accessor :bank_code
22
22
 
23
+ # IBAN to query - BBAN format for XOF bank accounts
24
+ attr_accessor :iban
25
+
23
26
  # Phone number to query
24
27
  attr_accessor :phone_number
25
28
 
@@ -61,6 +64,7 @@ class AccountValidationRequest
61
64
  {
62
65
  :'bank_account' => :'bank_account',
63
66
  :'bank_code' => :'bank_code',
67
+ :'iban' => :'iban',
64
68
  :'phone_number' => :'phone_number',
65
69
  :'mobile_provider' => :'mobile_provider',
66
70
  :'country' => :'country',
@@ -74,6 +78,7 @@ class AccountValidationRequest
74
78
  {
75
79
  :'bank_account' => :'String',
76
80
  :'bank_code' => :'String',
81
+ :'iban' => :'String',
77
82
  :'phone_number' => :'String',
78
83
  :'mobile_provider' => :'PayoutMethodMobileProviderEnum',
79
84
  :'country' => :'String',
@@ -105,6 +110,10 @@ class AccountValidationRequest
105
110
  self.bank_code = attributes[:'bank_code']
106
111
  end
107
112
 
113
+ if attributes.key?(:'iban')
114
+ self.iban = attributes[:'iban']
115
+ end
116
+
108
117
  if attributes.key?(:'phone_number')
109
118
  self.phone_number = attributes[:'phone_number']
110
119
  end
@@ -149,7 +158,7 @@ class AccountValidationRequest
149
158
  # @return true if the model is valid
150
159
  def valid?
151
160
  return false if @country.nil?
152
- country_validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN"])
161
+ country_validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN", "CI"])
153
162
  return false unless country_validator.valid?(@country)
154
163
  return false if @currency.nil?
155
164
  currency_validator = EnumAttributeValidator.new('String', ["NGN", "GHS", "XOF"])
@@ -163,7 +172,7 @@ class AccountValidationRequest
163
172
  # Custom attribute writer method checking allowed values (enum).
164
173
  # @param [Object] country Object to be assigned
165
174
  def country=(country)
166
- validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN"])
175
+ validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN", "CI"])
167
176
  unless validator.valid?(country) || country.empty?
168
177
  fail ArgumentError, "invalid value for \"country\", must be one of #{validator.allowable_values}."
169
178
  end
@@ -197,6 +206,7 @@ class AccountValidationRequest
197
206
  self.class == o.class &&
198
207
  bank_account == o.bank_account &&
199
208
  bank_code == o.bank_code &&
209
+ iban == o.iban &&
200
210
  phone_number == o.phone_number &&
201
211
  mobile_provider == o.mobile_provider &&
202
212
  country == o.country &&
@@ -213,7 +223,7 @@ class AccountValidationRequest
213
223
  # Calculates hash code according to all attributes.
214
224
  # @return [Integer] Hash code
215
225
  def hash
216
- [bank_account, bank_code, phone_number, mobile_provider, country, currency, method].hash
226
+ [bank_account, bank_code, iban, phone_number, mobile_provider, country, currency, method].hash
217
227
  end
218
228
 
219
229
  require 'active_support/core_ext/hash'
@@ -400,10 +400,6 @@ class PayoutMethodDetails
400
400
  invalid_properties.push('invalid value for "bank_name", bank_name cannot be nil.')
401
401
  end
402
402
 
403
- if @bank_country.nil?
404
- invalid_properties.push('invalid value for "bank_country", bank_country cannot be nil.')
405
- end
406
-
407
403
  if @sender_identity_card_type.nil?
408
404
  invalid_properties.push('invalid value for "sender_identity_card_type", sender_identity_card_type cannot be nil.')
409
405
  end
@@ -463,7 +459,6 @@ class PayoutMethodDetails
463
459
  return false if @country.nil?
464
460
  return false if @iban.nil?
465
461
  return false if @bank_name.nil?
466
- return false if @bank_country.nil?
467
462
  return false if @sender_identity_card_type.nil?
468
463
  return false if @sender_identity_card_id.nil?
469
464
  return false if @identity_card_type.nil?
@@ -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\", \"iban\": \"SN08SN0000000000000000000000\", \"bank_name\": \"BRM\", \"bank_country\": \"SN\" # ISO country code for Senegal } ```
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"iban\": \"BJ0610100100144390000769\", # BBAN format \"bank_name\": \"Bank Of Africa Bénin\", \"bank_country\": \"BJ\", # ISO country code for Benin \"bank_code\": \"BJ061\" } ``` See [XOF Bank](https://docs.transferzero.com/docs/payout-details/#xofbank) documentation for the bank_code list
17
17
  class PayoutMethodDetailsXOFBank
18
18
  attr_accessor :first_name
19
19
 
@@ -25,6 +25,8 @@ class PayoutMethodDetailsXOFBank
25
25
 
26
26
  attr_accessor :bank_country
27
27
 
28
+ attr_accessor :bank_code
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 PayoutMethodDetailsXOFBank
32
34
  :'last_name' => :'last_name',
33
35
  :'iban' => :'iban',
34
36
  :'bank_name' => :'bank_name',
35
- :'bank_country' => :'bank_country'
37
+ :'bank_country' => :'bank_country',
38
+ :'bank_code' => :'bank_code'
36
39
  }
37
40
  end
38
41
 
@@ -43,7 +46,8 @@ class PayoutMethodDetailsXOFBank
43
46
  :'last_name' => :'String',
44
47
  :'iban' => :'String',
45
48
  :'bank_name' => :'String',
46
- :'bank_country' => :'String'
49
+ :'bank_country' => :'String',
50
+ :'bank_code' => :'String'
47
51
  }
48
52
  end
49
53
 
@@ -81,6 +85,10 @@ class PayoutMethodDetailsXOFBank
81
85
  if attributes.key?(:'bank_country')
82
86
  self.bank_country = attributes[:'bank_country']
83
87
  end
88
+
89
+ if attributes.key?(:'bank_code')
90
+ self.bank_code = attributes[:'bank_code']
91
+ end
84
92
  end
85
93
 
86
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,14 +107,6 @@ class PayoutMethodDetailsXOFBank
99
107
  invalid_properties.push('invalid value for "iban", iban cannot be nil.')
100
108
  end
101
109
 
102
- if @bank_name.nil?
103
- invalid_properties.push('invalid value for "bank_name", bank_name cannot be nil.')
104
- end
105
-
106
- if @bank_country.nil?
107
- invalid_properties.push('invalid value for "bank_country", bank_country cannot be nil.')
108
- end
109
-
110
110
  invalid_properties
111
111
  end
112
112
 
@@ -116,8 +116,6 @@ class PayoutMethodDetailsXOFBank
116
116
  return false if @first_name.nil?
117
117
  return false if @last_name.nil?
118
118
  return false if @iban.nil?
119
- return false if @bank_name.nil?
120
- return false if @bank_country.nil?
121
119
  true
122
120
  end
123
121
 
@@ -130,7 +128,8 @@ class PayoutMethodDetailsXOFBank
130
128
  last_name == o.last_name &&
131
129
  iban == o.iban &&
132
130
  bank_name == o.bank_name &&
133
- bank_country == o.bank_country
131
+ bank_country == o.bank_country &&
132
+ bank_code == o.bank_code
134
133
  end
135
134
 
136
135
  # @see the `==` method
@@ -142,7 +141,7 @@ class PayoutMethodDetailsXOFBank
142
141
  # Calculates hash code according to all attributes.
143
142
  # @return [Integer] Hash code
144
143
  def hash
145
- [first_name, last_name, iban, bank_name, bank_country].hash
144
+ [first_name, last_name, iban, bank_name, bank_country, bank_code].hash
146
145
  end
147
146
 
148
147
  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.15.0'
14
+ VERSION = '1.15.1'
15
15
  end
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.15.0
4
+ version: 1.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-23 00:00:00.000000000 Z
11
+ date: 2021-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -62,22 +62,22 @@ dependencies:
62
62
  name: rspec
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: 3.6.0
68
65
  - - "~>"
69
66
  - !ruby/object:Gem::Version
70
67
  version: '3.6'
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 3.6.0
71
71
  type: :development
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- version: 3.6.0
78
75
  - - "~>"
79
76
  - !ruby/object:Gem::Version
80
77
  version: '3.6'
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 3.6.0
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: vcr
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -206,7 +206,6 @@ extensions: []
206
206
  extra_rdoc_files: []
207
207
  files:
208
208
  - Gemfile
209
- - Gemfile.lock
210
209
  - LICENSE
211
210
  - README.md
212
211
  - Rakefile
@@ -597,17 +596,12 @@ files:
597
596
  - spec/models/webhook_log_spec.rb
598
597
  - spec/models/webhook_spec.rb
599
598
  - spec/spec_helper.rb
600
- - transferzero-sdk-1.10.0.gem
601
- - transferzero-sdk-1.11.0.gem
602
- - transferzero-sdk-1.12.0.gem
603
- - transferzero-sdk-1.14.0.gem
604
- - transferzero-sdk-1.14.1.gem
605
599
  - transferzero-sdk.gemspec
606
600
  homepage: https://github.com/transferzero/transferzero-sdk-ruby
607
601
  licenses:
608
602
  - MIT
609
603
  metadata: {}
610
- post_install_message:
604
+ post_install_message:
611
605
  rdoc_options: []
612
606
  require_paths:
613
607
  - lib
@@ -622,8 +616,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
622
616
  - !ruby/object:Gem::Version
623
617
  version: '0'
624
618
  requirements: []
625
- rubygems_version: 3.0.3
626
- signing_key:
619
+ rubygems_version: 3.1.2
620
+ signing_key:
627
621
  specification_version: 4
628
622
  summary: TransferZero API Ruby Gem
629
623
  test_files:
data/Gemfile.lock DELETED
@@ -1,93 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- transferzero-sdk (1.9.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.0.3.4)
14
- concurrent-ruby (~> 1.0, >= 1.0.2)
15
- i18n (>= 0.7, < 2)
16
- minitest (~> 5.1)
17
- tzinfo (~> 1.1)
18
- zeitwerk (~> 2.2, >= 2.2.2)
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.7)
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.5)
37
- concurrent-ruby (~> 1.0)
38
- json (2.3.1)
39
- method_source (1.0.0)
40
- minitest (5.14.2)
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
- thread_safe (0.3.6)
65
- typhoeus (1.4.0)
66
- ethon (>= 0.9.0)
67
- tzinfo (1.2.8)
68
- thread_safe (~> 0.1)
69
- vcr (3.0.3)
70
- webmock (1.24.6)
71
- addressable (>= 2.3.6)
72
- crack (>= 0.3.2)
73
- hashdiff
74
- zeitwerk (2.4.2)
75
-
76
- PLATFORMS
77
- ruby
78
-
79
- DEPENDENCIES
80
- ZenTest (~> 4.11, >= 4.11.2)
81
- autotest (~> 4.4, >= 4.4.6)
82
- autotest-fsevent (~> 0.2, >= 0.2.12)
83
- autotest-growl (~> 0.2, >= 0.2.16)
84
- autotest-rails-pure (~> 4.1, >= 4.1.2)
85
- pry-byebug
86
- rake (~> 12.0.0)
87
- rspec (~> 3.6, >= 3.6.0)
88
- transferzero-sdk!
89
- vcr (~> 3.0, >= 3.0.1)
90
- webmock (~> 1.24, >= 1.24.3)
91
-
92
- BUNDLED WITH
93
- 2.1.4
Binary file
Binary file
Binary file
Binary file
Binary file