transferzero-sdk 1.27.6 → 1.27.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69c09c863196a8b059b9f339e996c7621ab925c234f3e61598f84365ca16f46d
4
- data.tar.gz: 353de11249637554debf347c6dcebc78e61bf98a7d945e59f73a8bb5ce6ca763
3
+ metadata.gz: 9504c9f27da319bd09f47051b432c664c1deb4c402b011b80896a1bca3c910a2
4
+ data.tar.gz: 98bc46c2582a754d3c1f7b4aaf87131de1bfca3ee26a2b147eab883b249032dd
5
5
  SHA512:
6
- metadata.gz: 91ef089e9e371b3b21127a79993098fa14e70b41fec97b74214dcec67d9d4482e0abf1d7d9a0bc8987b90bfa04a3a5b2d3fa2f9a2d462af0948509219c7995f8
7
- data.tar.gz: a7b4c91b5a301640185b9a7f1db539fd0bfbc9ff6d4cf3dc8a94e4cb57c138b3b9ea69327cd620a66cce31e4dcfa8044f7655994b9a5c6821478371e9910fdab
6
+ metadata.gz: 985b933257b416d1f6cf16eddab936f98bfda75d80b38f4deac5da599c8f5f78fab5307e3bb4a8fbccc1cdcc53060640220fde9a1714a200db6ec99a25ed9ac0
7
+ data.tar.gz: f02aa5926fc63d8b7b33f426c8af124ec3978dd05c13a6178c538f5fd4109044c18d807c6f4fcb03ae07e858b7731e2ac903a27ddea60c258f4af6ec9506f188
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- transferzero-sdk (1.27.6)
4
+ transferzero-sdk (1.27.8)
5
5
  activesupport (>= 4, < 7)
6
6
  faraday (~> 1.0, >= 1.0.1)
7
7
  json (>= 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.27.5
10
+ - Package version: 1.27.8
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.27.5.gem
34
+ gem install ./transferzero-sdk-1.27.8.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.27.5.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.27.8.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.27.5'
42
+ gem 'transferzero-sdk', '~> 1.27.8'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -42,7 +42,8 @@ Name | Type | Description | Notes
42
42
  **nature_of_business** | [**PayoutMethodNatureOfBusinessEnum**](PayoutMethodNatureOfBusinessEnum.md) | | [optional]
43
43
  **legal_entity_type** | [**PayoutMethodLegalEntityTypeEnum**](PayoutMethodLegalEntityTypeEnum.md) | | [optional]
44
44
  **routing_number** | **String** | | [optional]
45
- **swift_code** | **String** | |
45
+ **swift_code** | **String** | | [optional]
46
+ **relationship_to_sender** | **String** | | [optional]
46
47
  **pix_key_type** | [**PayoutMethodPixKeyTypeEnum**](PayoutMethodPixKeyTypeEnum.md) | | [optional]
47
48
  **pix_key_value** | **String** | | [optional]
48
49
  **ifsc_code** | **String** | |
@@ -91,6 +92,7 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
91
92
  legal_entity_type: null,
92
93
  routing_number: null,
93
94
  swift_code: null,
95
+ relationship_to_sender: null,
94
96
  pix_key_type: null,
95
97
  pix_key_value: null,
96
98
  ifsc_code: null)
@@ -6,16 +6,14 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **first_name** | **String** | |
8
8
  **last_name** | **String** | |
9
- **bank_code** | **String** | |
10
9
  **street** | **String** | |
10
+ **city** | **String** | | [optional]
11
+ **bank_code** | **String** | |
11
12
  **bank_account** | **String** | |
12
- **bank_name** | **String** | |
13
- **branch_code** | **String** | | [optional]
14
- **swift_code** | **String** | |
15
- **transfer_reason_code** | **String** | | [optional]
16
- **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
13
+ **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | |
17
14
  **identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
18
15
  **identity_card_id** | **String** | |
16
+ **relationship_to_sender** | **String** | | [optional]
19
17
 
20
18
  ## Code Sample
21
19
 
@@ -24,16 +22,14 @@ require 'TransferZero'
24
22
 
25
23
  instance = TransferZero::PayoutMethodDetailsKESBank.new(first_name: null,
26
24
  last_name: null,
27
- bank_code: null,
28
25
  street: null,
26
+ city: null,
27
+ bank_code: null,
29
28
  bank_account: null,
30
- bank_name: null,
31
- branch_code: null,
32
- swift_code: null,
33
- transfer_reason_code: null,
34
29
  transfer_reason: null,
35
30
  identity_card_type: null,
36
- identity_card_id: null)
31
+ identity_card_id: null,
32
+ relationship_to_sender: null)
37
33
  ```
38
34
 
39
35
 
@@ -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.27.5"
39
+ @user_agent = "TransferZero-SDK/Ruby/1.27.8"
40
40
  @default_headers = {
41
41
  'Content-Type' => 'application/json',
42
42
  'User-Agent' => @user_agent
@@ -158,10 +158,10 @@ class AccountValidationRequest
158
158
  # @return true if the model is valid
159
159
  def valid?
160
160
  return false if @country.nil?
161
- country_validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN", "CI"])
161
+ country_validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN", "CI", "UG"])
162
162
  return false unless country_validator.valid?(@country)
163
163
  return false if @currency.nil?
164
- currency_validator = EnumAttributeValidator.new('String', ["NGN", "GHS", "XOF"])
164
+ currency_validator = EnumAttributeValidator.new('String', ["NGN", "GHS", "XOF", "UGX"])
165
165
  return false unless currency_validator.valid?(@currency)
166
166
  return false if @method.nil?
167
167
  method_validator = EnumAttributeValidator.new('String', ["bank", "mobile"])
@@ -172,7 +172,7 @@ class AccountValidationRequest
172
172
  # Custom attribute writer method checking allowed values (enum).
173
173
  # @param [Object] country Object to be assigned
174
174
  def country=(country)
175
- validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN", "CI"])
175
+ validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN", "CI", "UG"])
176
176
  unless validator.valid?(country) || country.empty?
177
177
  fail ArgumentError, "invalid value for \"country\", must be one of #{validator.allowable_values}."
178
178
  end
@@ -182,7 +182,7 @@ class AccountValidationRequest
182
182
  # Custom attribute writer method checking allowed values (enum).
183
183
  # @param [Object] currency Object to be assigned
184
184
  def currency=(currency)
185
- validator = EnumAttributeValidator.new('String', ["NGN", "GHS", "XOF"])
185
+ validator = EnumAttributeValidator.new('String', ["NGN", "GHS", "XOF", "UGX"])
186
186
  unless validator.valid?(currency) || currency.empty?
187
187
  fail ArgumentError, "invalid value for \"currency\", must be one of #{validator.allowable_values}."
188
188
  end
@@ -92,6 +92,8 @@ class PayoutMethodDetails
92
92
 
93
93
  attr_accessor :swift_code
94
94
 
95
+ attr_accessor :relationship_to_sender
96
+
95
97
  attr_accessor :pix_key_type
96
98
 
97
99
  attr_accessor :pix_key_value
@@ -140,6 +142,7 @@ class PayoutMethodDetails
140
142
  :'legal_entity_type' => :'legal_entity_type',
141
143
  :'routing_number' => :'routing_number',
142
144
  :'swift_code' => :'swift_code',
145
+ :'relationship_to_sender' => :'relationship_to_sender',
143
146
  :'pix_key_type' => :'pix_key_type',
144
147
  :'pix_key_value' => :'pix_key_value',
145
148
  :'ifsc_code' => :'ifsc_code'
@@ -188,6 +191,7 @@ class PayoutMethodDetails
188
191
  :'legal_entity_type' => :'PayoutMethodLegalEntityTypeEnum',
189
192
  :'routing_number' => :'String',
190
193
  :'swift_code' => :'String',
194
+ :'relationship_to_sender' => :'String',
191
195
  :'pix_key_type' => :'PayoutMethodPixKeyTypeEnum',
192
196
  :'pix_key_value' => :'String',
193
197
  :'ifsc_code' => :'String'
@@ -398,6 +402,10 @@ class PayoutMethodDetails
398
402
  self.swift_code = attributes[:'swift_code']
399
403
  end
400
404
 
405
+ if attributes.key?(:'relationship_to_sender')
406
+ self.relationship_to_sender = attributes[:'relationship_to_sender']
407
+ end
408
+
401
409
  if attributes.key?(:'pix_key_type')
402
410
  self.pix_key_type = attributes[:'pix_key_type']
403
411
  end
@@ -499,10 +507,6 @@ class PayoutMethodDetails
499
507
  invalid_properties.push('invalid value for "branch_code", branch_code cannot be nil.')
500
508
  end
501
509
 
502
- if @swift_code.nil?
503
- invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
504
- end
505
-
506
510
  if @ifsc_code.nil?
507
511
  invalid_properties.push('invalid value for "ifsc_code", ifsc_code cannot be nil.')
508
512
  end
@@ -534,7 +538,6 @@ class PayoutMethodDetails
534
538
  return false if @postal_code.nil?
535
539
  return false if @city.nil?
536
540
  return false if @branch_code.nil?
537
- return false if @swift_code.nil?
538
541
  return false if @ifsc_code.nil?
539
542
  _one_of_found = false
540
543
  openapi_one_of.each do |_class|
@@ -599,6 +602,7 @@ class PayoutMethodDetails
599
602
  legal_entity_type == o.legal_entity_type &&
600
603
  routing_number == o.routing_number &&
601
604
  swift_code == o.swift_code &&
605
+ relationship_to_sender == o.relationship_to_sender &&
602
606
  pix_key_type == o.pix_key_type &&
603
607
  pix_key_value == o.pix_key_value &&
604
608
  ifsc_code == o.ifsc_code
@@ -613,7 +617,7 @@ class PayoutMethodDetails
613
617
  # Calculates hash code according to all attributes.
614
618
  # @return [Integer] Hash code
615
619
  def hash
616
- [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, branch_code, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, routing_number, swift_code, pix_key_type, pix_key_value, ifsc_code].hash
620
+ [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, branch_code, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, routing_number, swift_code, relationship_to_sender, pix_key_type, pix_key_value, ifsc_code].hash
617
621
  end
618
622
 
619
623
  require 'active_support/core_ext/hash'
@@ -13,25 +13,19 @@ 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\", \"bank_code\": \"68\", \"bank_account\": \"12345678\", \"bank_name\": \"Equity Bank Ltd\", \"branch_code\": \"404\", \"swift_code\" \"ABCLKENA\", \"transfer_reason\": \"personal_account\", // New transfer reason field \"identity_card_type\": \"ID\", \"identity_card_id\": \"AB12345678\" } ``` The valid bank_code values are: - Habib Bank Limited: 08 - Trans-National Bank Limited: 26 - Housing Finance Co. Kenya: 61 - UBA Kenya Bank Ltd: 76 - Kenya Commercial Bank: 01000 - Standard Chartered Bank: 02000 - Barclays Bank of Kenya: 03000 - Bank of India: 05000 - Bank of Boroda: 06000 - NCBA Bank: 07000 - Prime Bank: 10000 - Co-operative Bank of Kenya: 11000 - National Bank of Kenya: 12000 - M-Oriental Commercial Bank Limited: 14000 - Citibank: 16000 - Habib Bank A.G. Zurich: 17000 - Middle East Bank: 18000 - Bank of Africa Kenya: 19000 - Consolidated Bank of Kenya: 23000 - Credit Bank Ltd: 25000 - Chase Bank: 30000 - Stanbic Bank Kenya: 31000 - African Banking Corporation: 35000 - Giro Bank Limited: 42000 - ECO Bank Kenya: 43000 - Spire Bank Limited: 49000 - Paramount Universal Bank Limited: 50000 - Jamii Bora Bank: 51000 - Guaranty Trust Bank Kenya: 53000 - Victoria Bank Limited: 54000 - Guardian Bank: 55000 - Investments and Mortgages Bank Limited: 57000 - Development Bank of Kenya: 59000 - Fidelity Commercial Bank: 46000 - Diamond Trust Bank: 63000 - Sidian Bank: 66000 - Equity Bank Limited: 68000 - Family Bank: 70000 - Gulf African Bank: 72000 - First Community Bank: 74000 - KWFT Bank: 78000 See [KES Bank](https://docs.transferzero.com/docs/payout-details/#kesbank) documentation for the transfer_reason list
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"street\": \"Main Street\", \"city\": \"Nairobi\" \"bank_code\": \"68\", \"bank_account\": \"12345678\", \"transfer_reason\": \"personal_account\", // New transfer reason field \"identity_card_type\": \"ID\", \"identity_card_id\": \"AB12345678\", \"relationship_to_sender\": \"Relative\" } ``` The valid bank_code values are: - Absa Bank: 03 - African Banking Corporation: 35 - Bank of Africa Kenya: 19 - Citibank: 16 - Co-operative Bank of Kenya: 11 - Consolidated Bank of Kenya: 23 - Credit Bank Ltd: 25 - Diamond Trust Bank: 63 - DIB Bank: 75 - ECO Bank Kenya: 43 - Equity Bank Limited: 68 - Family Bank: 70 - First Community Bank: 74 - Guaranty Trust Bank Kenya: 53 - Guardian Bank: 55 - Gulf African Bank : 72 - Housing Finance Co. Kenya: 61 - I&M Bank: 57 - Kingdom Bank: 51 - Kenya Commercial Bank: 01 - KWFT Bank: 78 - Mayfair Bank: 65 - M-Oriental Commercial Bank Limited: 14 - Middle East Bank: 18 - National Bank of Kenya: 12 - NCBA Bank: 07 - Paramount Universal Bank Limited: 50 - Prime Bank: 10 - Sidian Bank: 66 - Stanbic Bank Kenya: 31 - Standard Chartered Bank: 02 - UBA Kenya Bank Ltd: 76 - Victoria Bank Limited: 54 See [KES Bank](https://docs.transferzero.com/docs/payout-details/#kesbank) documentation for the transfer_reason list
17
17
  class PayoutMethodDetailsKESBank
18
18
  attr_accessor :first_name
19
19
 
20
20
  attr_accessor :last_name
21
21
 
22
- attr_accessor :bank_code
23
-
24
22
  attr_accessor :street
25
23
 
26
- attr_accessor :bank_account
27
-
28
- attr_accessor :bank_name
29
-
30
- attr_accessor :branch_code
24
+ attr_accessor :city
31
25
 
32
- attr_accessor :swift_code
26
+ attr_accessor :bank_code
33
27
 
34
- attr_accessor :transfer_reason_code
28
+ attr_accessor :bank_account
35
29
 
36
30
  attr_accessor :transfer_reason
37
31
 
@@ -39,21 +33,21 @@ class PayoutMethodDetailsKESBank
39
33
 
40
34
  attr_accessor :identity_card_id
41
35
 
36
+ attr_accessor :relationship_to_sender
37
+
42
38
  # Attribute mapping from ruby-style variable name to JSON key.
43
39
  def self.attribute_map
44
40
  {
45
41
  :'first_name' => :'first_name',
46
42
  :'last_name' => :'last_name',
47
- :'bank_code' => :'bank_code',
48
43
  :'street' => :'street',
44
+ :'city' => :'city',
45
+ :'bank_code' => :'bank_code',
49
46
  :'bank_account' => :'bank_account',
50
- :'bank_name' => :'bank_name',
51
- :'branch_code' => :'branch_code',
52
- :'swift_code' => :'swift_code',
53
- :'transfer_reason_code' => :'transfer_reason_code',
54
47
  :'transfer_reason' => :'transfer_reason',
55
48
  :'identity_card_type' => :'identity_card_type',
56
- :'identity_card_id' => :'identity_card_id'
49
+ :'identity_card_id' => :'identity_card_id',
50
+ :'relationship_to_sender' => :'relationship_to_sender'
57
51
  }
58
52
  end
59
53
 
@@ -62,16 +56,14 @@ class PayoutMethodDetailsKESBank
62
56
  {
63
57
  :'first_name' => :'String',
64
58
  :'last_name' => :'String',
65
- :'bank_code' => :'String',
66
59
  :'street' => :'String',
60
+ :'city' => :'String',
61
+ :'bank_code' => :'String',
67
62
  :'bank_account' => :'String',
68
- :'bank_name' => :'String',
69
- :'branch_code' => :'String',
70
- :'swift_code' => :'String',
71
- :'transfer_reason_code' => :'String',
72
63
  :'transfer_reason' => :'PayoutMethodTransferReasonEnum',
73
64
  :'identity_card_type' => :'PayoutMethodIdentityCardTypeEnum',
74
- :'identity_card_id' => :'String'
65
+ :'identity_card_id' => :'String',
66
+ :'relationship_to_sender' => :'String'
75
67
  }
76
68
  end
77
69
 
@@ -98,32 +90,20 @@ class PayoutMethodDetailsKESBank
98
90
  self.last_name = attributes[:'last_name']
99
91
  end
100
92
 
101
- if attributes.key?(:'bank_code')
102
- self.bank_code = attributes[:'bank_code']
103
- end
104
-
105
93
  if attributes.key?(:'street')
106
94
  self.street = attributes[:'street']
107
95
  end
108
96
 
109
- if attributes.key?(:'bank_account')
110
- self.bank_account = attributes[:'bank_account']
111
- end
112
-
113
- if attributes.key?(:'bank_name')
114
- self.bank_name = attributes[:'bank_name']
115
- end
116
-
117
- if attributes.key?(:'branch_code')
118
- self.branch_code = attributes[:'branch_code']
97
+ if attributes.key?(:'city')
98
+ self.city = attributes[:'city']
119
99
  end
120
100
 
121
- if attributes.key?(:'swift_code')
122
- self.swift_code = attributes[:'swift_code']
101
+ if attributes.key?(:'bank_code')
102
+ self.bank_code = attributes[:'bank_code']
123
103
  end
124
104
 
125
- if attributes.key?(:'transfer_reason_code')
126
- self.transfer_reason_code = attributes[:'transfer_reason_code']
105
+ if attributes.key?(:'bank_account')
106
+ self.bank_account = attributes[:'bank_account']
127
107
  end
128
108
 
129
109
  if attributes.key?(:'transfer_reason')
@@ -137,6 +117,10 @@ class PayoutMethodDetailsKESBank
137
117
  if attributes.key?(:'identity_card_id')
138
118
  self.identity_card_id = attributes[:'identity_card_id']
139
119
  end
120
+
121
+ if attributes.key?(:'relationship_to_sender')
122
+ self.relationship_to_sender = attributes[:'relationship_to_sender']
123
+ end
140
124
  end
141
125
 
142
126
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -151,24 +135,20 @@ class PayoutMethodDetailsKESBank
151
135
  invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
152
136
  end
153
137
 
154
- if @bank_code.nil?
155
- invalid_properties.push('invalid value for "bank_code", bank_code cannot be nil.')
156
- end
157
-
158
138
  if @street.nil?
159
139
  invalid_properties.push('invalid value for "street", street cannot be nil.')
160
140
  end
161
141
 
162
- if @bank_account.nil?
163
- invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
142
+ if @bank_code.nil?
143
+ invalid_properties.push('invalid value for "bank_code", bank_code cannot be nil.')
164
144
  end
165
145
 
166
- if @bank_name.nil?
167
- invalid_properties.push('invalid value for "bank_name", bank_name cannot be nil.')
146
+ if @bank_account.nil?
147
+ invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
168
148
  end
169
149
 
170
- if @swift_code.nil?
171
- invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
150
+ if @transfer_reason.nil?
151
+ invalid_properties.push('invalid value for "transfer_reason", transfer_reason cannot be nil.')
172
152
  end
173
153
 
174
154
  if @identity_card_type.nil?
@@ -187,11 +167,10 @@ class PayoutMethodDetailsKESBank
187
167
  def valid?
188
168
  return false if @first_name.nil?
189
169
  return false if @last_name.nil?
190
- return false if @bank_code.nil?
191
170
  return false if @street.nil?
171
+ return false if @bank_code.nil?
192
172
  return false if @bank_account.nil?
193
- return false if @bank_name.nil?
194
- return false if @swift_code.nil?
173
+ return false if @transfer_reason.nil?
195
174
  return false if @identity_card_type.nil?
196
175
  return false if @identity_card_id.nil?
197
176
  true
@@ -204,16 +183,14 @@ class PayoutMethodDetailsKESBank
204
183
  self.class == o.class &&
205
184
  first_name == o.first_name &&
206
185
  last_name == o.last_name &&
207
- bank_code == o.bank_code &&
208
186
  street == o.street &&
187
+ city == o.city &&
188
+ bank_code == o.bank_code &&
209
189
  bank_account == o.bank_account &&
210
- bank_name == o.bank_name &&
211
- branch_code == o.branch_code &&
212
- swift_code == o.swift_code &&
213
- transfer_reason_code == o.transfer_reason_code &&
214
190
  transfer_reason == o.transfer_reason &&
215
191
  identity_card_type == o.identity_card_type &&
216
- identity_card_id == o.identity_card_id
192
+ identity_card_id == o.identity_card_id &&
193
+ relationship_to_sender == o.relationship_to_sender
217
194
  end
218
195
 
219
196
  # @see the `==` method
@@ -225,7 +202,7 @@ class PayoutMethodDetailsKESBank
225
202
  # Calculates hash code according to all attributes.
226
203
  # @return [Integer] Hash code
227
204
  def hash
228
- [first_name, last_name, bank_code, street, bank_account, bank_name, branch_code, swift_code, transfer_reason_code, transfer_reason, identity_card_type, identity_card_id].hash
205
+ [first_name, last_name, street, city, bank_code, bank_account, transfer_reason, identity_card_type, identity_card_id, relationship_to_sender].hash
229
206
  end
230
207
 
231
208
  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.27.6'
14
+ VERSION = '1.27.8'
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.27.6
4
+ version: 1.27.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2023-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -583,156 +583,156 @@ signing_key:
583
583
  specification_version: 4
584
584
  summary: TransferZero API Ruby Gem
585
585
  test_files:
586
- - spec/api/payout_methods_api_spec.rb
587
- - spec/api/account_debits_api_spec.rb
586
+ - spec/api/api_logs_api_spec.rb
588
587
  - spec/api/account_validation_api_spec.rb
589
- - spec/api/documents_api_spec.rb
590
588
  - spec/api/payin_methods_api_spec.rb
589
+ - spec/api/logs_api_spec.rb
590
+ - spec/api/recipients_api_spec.rb
591
+ - spec/api/payment_methods_api_spec.rb
592
+ - spec/api/documents_api_spec.rb
593
+ - spec/api/payout_methods_api_spec.rb
594
+ - spec/api/currency_info_api_spec.rb
591
595
  - spec/api/senders_api_spec.rb
596
+ - spec/api/accounts_api_spec.rb
597
+ - spec/api/account_debits_api_spec.rb
592
598
  - spec/api/webhooks_api_spec.rb
593
- - spec/api/api_logs_api_spec.rb
594
599
  - spec/api/transactions_api_spec.rb
595
- - spec/api/logs_api_spec.rb
596
- - spec/api/accounts_api_spec.rb
597
- - spec/api/currency_info_api_spec.rb
598
- - spec/api/payment_methods_api_spec.rb
599
- - spec/api/recipients_api_spec.rb
600
600
  - spec/configuration_spec.rb
601
- - spec/models/payout_method_details_xaf_bank_spec.rb
602
- - spec/models/payin_method_ux_flow_spec.rb
603
- - spec/models/webhook_definition_spec.rb
604
- - spec/models/transaction_request_spec.rb
605
- - spec/models/recipient_webhook_spec.rb
606
- - spec/models/pagination_spec.rb
607
- - spec/models/recipient_spec.rb
608
- - spec/models/account_meta_spec.rb
609
- - spec/models/transaction_webhook_all_of_spec.rb
610
- - spec/models/payout_method_pix_key_type_enum_spec.rb
611
- - spec/models/transaction_state_spec.rb
612
- - spec/models/payout_method_details_ghs_cash_spec.rb
613
- - spec/models/sender_state_spec.rb
614
- - spec/models/currency_exchange_all_of_spec.rb
615
- - spec/models/document_request_spec.rb
616
- - spec/models/account_validation_response_spec.rb
601
+ - spec/models/sender_request_spec.rb
602
+ - spec/models/webhook_definition_event_list_response_spec.rb
603
+ - spec/models/payout_method_details_zar_bank_spec.rb
604
+ - spec/models/payout_method_nature_of_business_enum_spec.rb
605
+ - spec/models/debit_request_wrapper_spec.rb
606
+ - spec/models/document_list_response_spec.rb
607
+ - spec/models/field_description_spec.rb
608
+ - spec/models/debit_request_spec.rb
617
609
  - spec/models/payout_method_legal_entity_type_enum_spec.rb
618
- - spec/models/webhook_spec.rb
619
- - spec/models/proof_of_payment_spec.rb
620
- - spec/models/payout_method_details_xaf_mobile_spec.rb
621
- - spec/models/payout_method_details_xof_mobile_spec.rb
622
- - spec/models/transaction_spec.rb
623
- - spec/models/field_select_validation_spec.rb
624
- - spec/models/payment_method_opposite_all_of_spec.rb
625
- - spec/models/recipient_state_reason_details_spec.rb
626
- - spec/models/sender_response_spec.rb
627
- - spec/models/transaction_response_meta_spec.rb
628
- - spec/models/api_log_spec.rb
629
- - spec/models/payout_method_details_ghs_bank_spec.rb
630
- - spec/models/sender_list_response_spec.rb
631
610
  - spec/models/recipient_request_spec.rb
632
- - spec/models/payout_method_details_brl_bank_spec.rb
633
- - spec/models/payout_method_details_ngn_bank_spec.rb
634
- - spec/models/payout_method_details_zar_bank_spec.rb
635
- - spec/models/payout_method_details_kes_mobile_spec.rb
636
- - spec/models/pagination_meta_spec.rb
611
+ - spec/models/payout_method_details_balance_spec.rb
612
+ - spec/models/politically_exposed_person_spec.rb
613
+ - spec/models/transaction_webhook_spec.rb
614
+ - spec/models/payout_method_details_mobile_spec.rb
615
+ - spec/models/payin_method_details_btc_spec.rb
616
+ - spec/models/payout_method_cash_provider_enum_spec.rb
637
617
  - spec/models/validation_error_description_spec.rb
638
- - spec/models/document_list_response_spec.rb
639
- - spec/models/account_response_spec.rb
640
- - spec/models/payout_method_details_gnf_mobile_spec.rb
641
618
  - spec/models/payout_method_request_spec.rb
642
- - spec/models/payout_method_details_usd_bank_spec.rb
643
- - spec/models/webhook_log_list_response_spec.rb
619
+ - spec/models/sender_response_spec.rb
620
+ - spec/models/recipient_list_response_spec.rb
621
+ - spec/models/payout_method_details_ghs_cash_spec.rb
622
+ - spec/models/sender_response_meta_spec.rb
623
+ - spec/models/payout_method_details_gbp_bank_spec.rb
624
+ - spec/models/debit_spec.rb
625
+ - spec/models/transaction_state_spec.rb
626
+ - spec/models/payout_method_response_spec.rb
627
+ - spec/models/payout_method_webhook_all_of_spec.rb
628
+ - spec/models/payout_method_mobile_provider_enum_spec.rb
629
+ - spec/models/transaction_response_existing_spec.rb
630
+ - spec/models/sender_response_existing_spec.rb
631
+ - spec/models/api_log_list_response_spec.rb
632
+ - spec/models/payout_method_pix_key_type_enum_spec.rb
633
+ - spec/models/transaction_traits_spec.rb
634
+ - spec/models/currency_opposite_all_of_spec.rb
635
+ - spec/models/document_response_spec.rb
636
+ - spec/models/field_validation_spec.rb
637
+ - spec/models/pagination_meta_spec.rb
638
+ - spec/models/transaction_webhook_all_of_spec.rb
639
+ - spec/models/webhook_spec.rb
640
+ - spec/models/webhook_log_metadata_request_spec.rb
641
+ - spec/models/payout_method_details_nzd_bank_spec.rb
644
642
  - spec/models/currency_spec.rb
645
- - spec/models/webhook_definition_response_spec.rb
643
+ - spec/models/account_list_response_spec.rb
644
+ - spec/models/transaction_list_response_spec.rb
646
645
  - spec/models/payout_method_details_xof_cash_spec.rb
646
+ - spec/models/webhook_log_metadata_spec.rb
647
+ - spec/models/payout_method_transfer_reason_enum_spec.rb
648
+ - spec/models/webhook_log_spec.rb
649
+ - spec/models/payout_method_details_zmw_bank_spec.rb
650
+ - spec/models/sender_list_response_spec.rb
651
+ - spec/models/transaction_response_meta_spec.rb
652
+ - spec/models/payout_method_details_xaf_bank_spec.rb
653
+ - spec/models/currency_exchange_spec.rb
654
+ - spec/models/recipient_spec.rb
655
+ - spec/models/account_validation_request_spec.rb
656
+ - spec/models/payment_method_opposite_all_of_spec.rb
657
+ - spec/models/payin_method_spec.rb
658
+ - spec/models/payout_method_list_response_spec.rb
659
+ - spec/models/payout_method_gender_enum_spec.rb
660
+ - spec/models/state_reason_details_spec.rb
661
+ - spec/models/payout_method_details_brl_bank_spec.rb
662
+ - spec/models/field_select_validation_spec.rb
663
+ - spec/models/currency_exchange_list_response_spec.rb
664
+ - spec/models/sender_state_spec.rb
665
+ - spec/models/account_validation_result_spec.rb
666
+ - spec/models/payout_method_details_inr_bank_spec.rb
667
+ - spec/models/api_log_spec.rb
668
+ - spec/models/currency_list_response_spec.rb
669
+ - spec/models/payout_method_details_iban_spec.rb
647
670
  - spec/models/payment_method_opposite_spec.rb
671
+ - spec/models/payment_method_list_response_spec.rb
672
+ - spec/models/payout_method_details_ngn_bank_spec.rb
673
+ - spec/models/account_validation_response_spec.rb
674
+ - spec/models/webhook_definition_response_spec.rb
675
+ - spec/models/payout_method_details_xof_bank_spec.rb
676
+ - spec/models/proof_of_payment_spec.rb
677
+ - spec/models/payout_method_country_enum_spec.rb
648
678
  - spec/models/error_status_spec.rb
649
- - spec/models/debit_request_spec.rb
650
- - spec/models/document_spec.rb
651
- - spec/models/transaction_response_existing_spec.rb
652
- - spec/models/payout_method_mobile_provider_enum_spec.rb
653
- - spec/models/sender_webhook_all_of_spec.rb
654
- - spec/models/sender_webhook_spec.rb
655
- - spec/models/payout_method_details_ugx_bank_spec.rb
656
- - spec/models/payout_method_transfer_reason_enum_spec.rb
679
+ - spec/models/payout_method_details_btc_spec.rb
657
680
  - spec/models/payout_method_spec.rb
658
- - spec/models/payout_method_identity_card_type_enum_spec.rb
659
- - spec/models/account_spec.rb
660
- - spec/models/currency_list_response_spec.rb
661
- - spec/models/webhook_definition_request_spec.rb
662
- - spec/models/account_validation_result_spec.rb
663
- - spec/models/payin_method_details_btc_spec.rb
664
- - spec/models/debit_spec.rb
665
- - spec/models/payout_method_details_mobile_spec.rb
681
+ - spec/models/payout_method_details_ugx_bank_spec.rb
682
+ - spec/models/payment_method_spec.rb
683
+ - spec/models/payout_method_details_cad_bank_spec.rb
666
684
  - spec/models/payin_method_details_mobile_spec.rb
667
- - spec/models/payout_method_list_response_spec.rb
668
- - spec/models/transaction_traits_spec.rb
669
- - spec/models/payout_method_details_balance_spec.rb
670
- - spec/models/payout_method_details_spec.rb
671
- - spec/models/payout_method_details_bwp_bank_spec.rb
672
- - spec/models/transaction_list_response_spec.rb
673
- - spec/models/account_list_response_spec.rb
674
- - spec/models/payout_method_cash_provider_enum_spec.rb
675
- - spec/models/payin_method_details_ngn_bank_spec.rb
685
+ - spec/models/webhook_definition_spec.rb
676
686
  - spec/models/document_webhook_spec.rb
677
- - spec/models/payout_method_webhook_all_of_spec.rb
678
- - spec/models/currency_opposite_all_of_spec.rb
679
- - spec/models/webhook_log_response_spec.rb
680
- - spec/models/account_validation_request_spec.rb
681
- - spec/models/debit_list_request_spec.rb
682
- - spec/models/politically_exposed_person_spec.rb
683
- - spec/models/payout_method_details_usd_cash_spec.rb
687
+ - spec/models/account_validation_error_spec.rb
688
+ - spec/models/payout_method_details_mad_cash_spec.rb
689
+ - spec/models/sender_webhook_all_of_spec.rb
690
+ - spec/models/sender_webhook_spec.rb
684
691
  - spec/models/sender_spec.rb
685
- - spec/models/sender_response_existing_spec.rb
686
- - spec/models/debit_list_response_spec.rb
687
- - spec/models/recipient_webhook_all_of_spec.rb
692
+ - spec/models/payin_method_ux_flow_spec.rb
693
+ - spec/models/currency_opposite_spec.rb
694
+ - spec/models/recipient_state_reason_details_spec.rb
695
+ - spec/models/payout_method_details_kes_bank_spec.rb
688
696
  - spec/models/recipient_response_spec.rb
689
- - spec/models/payout_method_nature_of_business_enum_spec.rb
697
+ - spec/models/payout_method_details_ghs_bank_spec.rb
698
+ - spec/models/payout_method_webhook_spec.rb
699
+ - spec/models/payout_method_details_usd_cash_spec.rb
700
+ - spec/models/payin_method_state_spec.rb
701
+ - spec/models/recipient_webhook_spec.rb
702
+ - spec/models/document_request_spec.rb
703
+ - spec/models/payin_method_details_ngn_bank_spec.rb
704
+ - spec/models/transaction_request_spec.rb
705
+ - spec/models/pagination_spec.rb
690
706
  - spec/models/webhook_definition_list_response_spec.rb
707
+ - spec/models/account_meta_spec.rb
708
+ - spec/models/webhook_definition_request_spec.rb
691
709
  - spec/models/document_webhook_all_of_spec.rb
692
- - spec/models/debit_request_wrapper_spec.rb
693
- - spec/models/payin_method_request_spec.rb
694
- - spec/models/sender_request_spec.rb
695
- - spec/models/payout_method_details_iban_spec.rb
696
- - spec/models/field_description_spec.rb
697
- - spec/models/payin_method_details_spec.rb
698
- - spec/models/webhook_log_metadata_request_spec.rb
699
- - spec/models/webhook_log_metadata_response_spec.rb
700
- - spec/models/payout_method_country_enum_spec.rb
701
- - spec/models/currency_opposite_spec.rb
702
- - spec/models/payout_method_bank_account_type_enum_spec.rb
703
- - spec/models/payment_method_spec.rb
704
- - spec/models/proof_of_payment_list_response_spec.rb
705
- - spec/models/payout_method_details_xof_bank_spec.rb
706
- - spec/models/transaction_webhook_spec.rb
707
- - spec/models/payout_method_gender_enum_spec.rb
708
- - spec/models/sender_response_meta_spec.rb
709
- - spec/models/webhook_log_metadata_spec.rb
710
- - spec/models/field_validation_spec.rb
711
- - spec/models/payout_method_details_mad_cash_spec.rb
712
- - spec/models/webhook_log_spec.rb
710
+ - spec/models/payout_method_details_gnf_mobile_spec.rb
711
+ - spec/models/debit_list_response_spec.rb
713
712
  - spec/models/debit_response_spec.rb
714
- - spec/models/currency_exchange_list_response_spec.rb
715
- - spec/models/payout_method_details_kes_bank_spec.rb
716
- - spec/models/api_log_list_response_spec.rb
717
713
  - spec/models/recipient_state_spec.rb
718
- - spec/models/document_response_spec.rb
719
- - spec/models/account_validation_error_spec.rb
720
- - spec/models/payout_method_details_btc_spec.rb
721
- - spec/models/payout_method_details_gbp_bank_spec.rb
722
- - spec/models/payment_method_list_response_spec.rb
723
- - spec/models/payout_method_response_spec.rb
724
- - spec/models/payout_method_webhook_spec.rb
725
- - spec/models/payin_method_state_spec.rb
726
- - spec/models/payin_method_spec.rb
727
- - spec/models/payout_method_details_cad_bank_spec.rb
728
- - spec/models/payout_method_details_nzd_bank_spec.rb
729
- - spec/models/state_reason_details_spec.rb
730
- - spec/models/recipient_list_response_spec.rb
731
- - spec/models/payout_method_details_inr_bank_spec.rb
714
+ - spec/models/recipient_webhook_all_of_spec.rb
715
+ - spec/models/payin_method_response_spec.rb
716
+ - spec/models/webhook_log_list_response_spec.rb
717
+ - spec/models/payin_method_request_spec.rb
718
+ - spec/models/document_spec.rb
719
+ - spec/models/transaction_spec.rb
720
+ - spec/models/payout_method_details_xaf_mobile_spec.rb
721
+ - spec/models/proof_of_payment_list_response_spec.rb
722
+ - spec/models/payout_method_details_kes_mobile_spec.rb
723
+ - spec/models/account_response_spec.rb
732
724
  - spec/models/transaction_response_spec.rb
733
- - spec/models/currency_exchange_spec.rb
725
+ - spec/models/webhook_log_metadata_response_spec.rb
726
+ - spec/models/debit_list_request_spec.rb
727
+ - spec/models/payout_method_details_bwp_bank_spec.rb
728
+ - spec/models/payin_method_details_spec.rb
729
+ - spec/models/payout_method_details_spec.rb
730
+ - spec/models/payout_method_details_xof_mobile_spec.rb
731
+ - spec/models/payout_method_bank_account_type_enum_spec.rb
732
+ - spec/models/currency_exchange_all_of_spec.rb
733
+ - spec/models/webhook_log_response_spec.rb
734
734
  - spec/models/api_log_response_spec.rb
735
- - spec/models/payin_method_response_spec.rb
736
- - spec/models/webhook_definition_event_list_response_spec.rb
737
- - spec/models/payout_method_details_zmw_bank_spec.rb
735
+ - spec/models/payout_method_details_usd_bank_spec.rb
736
+ - spec/models/payout_method_identity_card_type_enum_spec.rb
737
+ - spec/models/account_spec.rb
738
738
  - spec/spec_helper.rb