transferzero-sdk 1.36.1 → 1.36.2

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: f8a210b843c51cc4117fc3edc2363996659f31a5a5fba9895b1068c979112ab7
4
- data.tar.gz: 1dd7f64ea8d5bfcd128c9300bf6ada8e063cc895fa84afc2553ac46055e608c4
3
+ metadata.gz: ef214aa86a6c196ceae22cf745d4bf7fdc46220412b7f97769223ed8cb457089
4
+ data.tar.gz: b2821d7c950a9c52f54919d7295e30c1406de916ef0dcd5061f6e3393b2fb15d
5
5
  SHA512:
6
- metadata.gz: 39be389879d72cb01dd458d08696c819f8d3db36716aae1ba8341f306e15a2a5e5077a857af35b310a0b46018b7917f4a3d405476cb96222b7b0c8ac1df2a524
7
- data.tar.gz: f22e7208ce2786a40a1556028963854e31c9c8992843cbbf1c4eaa71c75d7814c70e5474f0f372c6d267c8e48090f6f527c0ffc9404f93ee1d07df03c6363a60
6
+ metadata.gz: 0b1a6b81aa205eacb294c18932d77558bd28b8bb3782683913b35dea7040c3d81df3cfb5bd60e269043e91c08af4861c646dd9dc982bf258e085ad7a84693bf5
7
+ data.tar.gz: 66a3af6bee2357c8d81571afc89f945897548513960f9c570963b296e321a8aea67d38694eb965b60439f190c4f2a64760c6ae6ed00ad44346a6cc7f9102ee15
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- transferzero-sdk (1.36.1)
4
+ transferzero-sdk (1.36.2)
5
5
  activesupport (>= 4)
6
6
  faraday (~> 1.0, >= 1.0.1)
7
7
  json (>= 1.4)
@@ -46,7 +46,7 @@ GEM
46
46
  faraday-httpclient (1.0.1)
47
47
  faraday-multipart (1.0.4)
48
48
  multipart-post (~> 2)
49
- faraday-net_http (1.0.1)
49
+ faraday-net_http (1.0.2)
50
50
  faraday-net_http_persistent (1.2.0)
51
51
  faraday-patron (1.0.0)
52
52
  faraday-rack (1.0.0)
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.36.1
10
+ - Package version: 1.36.2
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.36.1.gem
34
+ gem install ./transferzero-sdk-1.36.2.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.36.1.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.36.2.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.36.1'
42
+ gem 'transferzero-sdk', '~> 1.36.2'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -210,6 +210,7 @@ Class | Method | HTTP request | Description
210
210
  - [TransferZero::PayoutMethodDetailsBalance](docs/PayoutMethodDetailsBalance.md)
211
211
  - [TransferZero::PayoutMethodDetailsCADBank](docs/PayoutMethodDetailsCADBank.md)
212
212
  - [TransferZero::PayoutMethodDetailsEGPBank](docs/PayoutMethodDetailsEGPBank.md)
213
+ - [TransferZero::PayoutMethodDetailsEGPCash](docs/PayoutMethodDetailsEGPCash.md)
213
214
  - [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
214
215
  - [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
215
216
  - [TransferZero::PayoutMethodDetailsGHSCash](docs/PayoutMethodDetailsGHSCash.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: - `NGN::Bank` - for Nigerian bank account 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. - `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 for Egypt, Nigeria and United States only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently for 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 Central African (CEMAC) countries. *** Currently in Beta phase *** - `XAF::Bank` - for Cameroon bank account payments. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. - `NZD::Bank` - for New Zealand bank account payments. - `INR::Bank` - for Indian bank account payments. - `BWP::Bank` - for Botswana bank account payments. - `ZMW::Bank` - for Zambian bank account payments. - `CAD::Bank` - for Canadian bank account payments. - `UGX::Bank` - for Ugandan bank account payments. - `EGP::Bank` - for Egyptian bank account 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 | [optional]
7
+ **type** | **String** | 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. - `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. - `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 for Egypt, Nigeria and United States only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently for 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 Central African (CEMAC) countries. *** Currently in Beta phase *** - `XAF::Bank` - for Cameroon bank account payments. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. - `NZD::Bank` - for New Zealand bank account payments. - `INR::Bank` - for Indian bank account payments. - `BWP::Bank` - for Botswana bank account payments. - `ZMW::Bank` - for Zambian bank account payments. - `CAD::Bank` - for Canadian bank account payments. - `UGX::Bank` - for Ugandan bank account payments. - `EGP::Bank` - for Egyptian bank account payments. - `EGP::Cash` - for Egyptian cash 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 | [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]
@@ -0,0 +1,27 @@
1
+ # TransferZero::PayoutMethodDetailsEGPCash
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **middle_name** | **String** | | [optional]
9
+ **last_name** | **String** | |
10
+ **phone_number** | **String** | |
11
+ **street** | **String** | |
12
+ **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | |
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'TransferZero'
18
+
19
+ instance = TransferZero::PayoutMethodDetailsEGPCash.new(first_name: null,
20
+ middle_name: null,
21
+ last_name: null,
22
+ phone_number: null,
23
+ street: null,
24
+ transfer_reason: null)
25
+ ```
26
+
27
+
@@ -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.36.1"
39
+ @user_agent = "TransferZero-SDK/Ruby/1.36.2"
40
40
  @default_headers = {
41
41
  'Content-Type' => 'application/json',
42
42
  '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. - `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. - `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 for Egypt, Nigeria and United States only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently for 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 Central African (CEMAC) countries. *** Currently in Beta phase *** - `XAF::Bank` - for Cameroon bank account payments. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. - `NZD::Bank` - for New Zealand bank account payments. - `INR::Bank` - for Indian bank account payments. - `BWP::Bank` - for Botswana bank account payments. - `ZMW::Bank` - for Zambian bank account payments. - `CAD::Bank` - for Canadian bank account payments. - `UGX::Bank` - for Ugandan bank account payments. - `EGP::Bank` - for Egyptian bank account 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. - `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. - `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 for Egypt, Nigeria and United States only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently for 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 Central African (CEMAC) countries. *** Currently in Beta phase *** - `XAF::Bank` - for Cameroon bank account payments. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. - `NZD::Bank` - for New Zealand bank account payments. - `INR::Bank` - for Indian bank account payments. - `BWP::Bank` - for Botswana bank account payments. - `ZMW::Bank` - for Zambian bank account payments. - `CAD::Bank` - for Canadian bank account payments. - `UGX::Bank` - for Ugandan bank account payments. - `EGP::Bank` - for Egyptian bank account payments. - `EGP::Cash` - for Egyptian cash 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
19
19
  attr_accessor :type
20
20
 
21
21
  attr_accessor :details
@@ -220,6 +220,7 @@ class PayoutMethodDetails
220
220
  :'PayoutMethodDetailsBalance',
221
221
  :'PayoutMethodDetailsCADBank',
222
222
  :'PayoutMethodDetailsEGPBank',
223
+ :'PayoutMethodDetailsEGPCash',
223
224
  :'PayoutMethodDetailsGBPBank',
224
225
  :'PayoutMethodDetailsGHSBank',
225
226
  :'PayoutMethodDetailsGHSCash',
@@ -0,0 +1,273 @@
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\", \"middle_name\": \"Middle\", \"last_name\": \"Last\", \"phone_number\": \"+201023456789\", \"street\": \"1 Main Street\", \"transfer_reason\": \"personal_account\" }
17
+ class PayoutMethodDetailsEGPCash
18
+ attr_accessor :first_name
19
+
20
+ attr_accessor :middle_name
21
+
22
+ attr_accessor :last_name
23
+
24
+ attr_accessor :phone_number
25
+
26
+ attr_accessor :street
27
+
28
+ attr_accessor :transfer_reason
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'first_name' => :'first_name',
34
+ :'middle_name' => :'middle_name',
35
+ :'last_name' => :'last_name',
36
+ :'phone_number' => :'phone_number',
37
+ :'street' => :'street',
38
+ :'transfer_reason' => :'transfer_reason'
39
+ }
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.openapi_types
44
+ {
45
+ :'first_name' => :'String',
46
+ :'middle_name' => :'String',
47
+ :'last_name' => :'String',
48
+ :'phone_number' => :'String',
49
+ :'street' => :'String',
50
+ :'transfer_reason' => :'PayoutMethodTransferReasonEnum'
51
+ }
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PayoutMethodDetailsEGPCash` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ attributes = attributes.each_with_object({}) { |(k, v), h|
63
+ if (!self.class.attribute_map.key?(k.to_sym))
64
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PayoutMethodDetailsEGPCash`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ end
66
+ h[k.to_sym] = v
67
+ }
68
+
69
+ if attributes.key?(:'first_name')
70
+ self.first_name = attributes[:'first_name']
71
+ end
72
+
73
+ if attributes.key?(:'middle_name')
74
+ self.middle_name = attributes[:'middle_name']
75
+ end
76
+
77
+ if attributes.key?(:'last_name')
78
+ self.last_name = attributes[:'last_name']
79
+ end
80
+
81
+ if attributes.key?(:'phone_number')
82
+ self.phone_number = attributes[:'phone_number']
83
+ end
84
+
85
+ if attributes.key?(:'street')
86
+ self.street = attributes[:'street']
87
+ end
88
+
89
+ if attributes.key?(:'transfer_reason')
90
+ self.transfer_reason = attributes[:'transfer_reason']
91
+ end
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properties with the reasons
96
+ def list_invalid_properties
97
+ invalid_properties = Array.new
98
+ if @first_name.nil?
99
+ invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
100
+ end
101
+
102
+ if @last_name.nil?
103
+ invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
104
+ end
105
+
106
+ if @phone_number.nil?
107
+ invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
108
+ end
109
+
110
+ if @street.nil?
111
+ invalid_properties.push('invalid value for "street", street cannot be nil.')
112
+ end
113
+
114
+ if @transfer_reason.nil?
115
+ invalid_properties.push('invalid value for "transfer_reason", transfer_reason cannot be nil.')
116
+ end
117
+
118
+ invalid_properties
119
+ end
120
+
121
+ # Check to see if the all the properties in the model are valid
122
+ # @return true if the model is valid
123
+ def valid?
124
+ return false if @first_name.nil?
125
+ return false if @last_name.nil?
126
+ return false if @phone_number.nil?
127
+ return false if @street.nil?
128
+ return false if @transfer_reason.nil?
129
+ true
130
+ end
131
+
132
+ # Checks equality by comparing each attribute.
133
+ # @param [Object] Object to be compared
134
+ def ==(o)
135
+ return true if self.equal?(o)
136
+ self.class == o.class &&
137
+ first_name == o.first_name &&
138
+ middle_name == o.middle_name &&
139
+ last_name == o.last_name &&
140
+ phone_number == o.phone_number &&
141
+ street == o.street &&
142
+ transfer_reason == o.transfer_reason
143
+ end
144
+
145
+ # @see the `==` method
146
+ # @param [Object] Object to be compared
147
+ def eql?(o)
148
+ self == o
149
+ end
150
+
151
+ # Calculates hash code according to all attributes.
152
+ # @return [Integer] Hash code
153
+ def hash
154
+ [first_name, middle_name, last_name, phone_number, street, transfer_reason].hash
155
+ end
156
+
157
+ require 'active_support/core_ext/hash'
158
+ require 'active_support/hash_with_indifferent_access.rb'
159
+ # Builds the object from hash
160
+ # @param [Hash] attributes Model attributes in the form of hash
161
+ # @return [Object] Returns the model itself
162
+ def build_from_hash(attributes)
163
+ return nil unless attributes.is_a?(Hash)
164
+ self.class.openapi_types.each_pair do |key, type|
165
+ if type =~ /\AArray<(.*)>/i
166
+ # check to ensure the input is an array given that the the attribute
167
+ # is documented as an array but the input is not
168
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
169
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
170
+ end
171
+ elsif !attributes[self.class.attribute_map[key]].nil?
172
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
173
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
174
+ end
175
+
176
+ self
177
+ end
178
+
179
+ # Deserializes the data based on type
180
+ # @param string type Data type
181
+ # @param string value Value to be deserialized
182
+ # @return [Object] Deserialized data
183
+ def _deserialize(type, value)
184
+ case type.to_sym
185
+ when :DateTime
186
+ DateTime.parse(value)
187
+ when :Date
188
+ Date.parse(value)
189
+ when :String
190
+ value.to_s
191
+ when :Integer
192
+ value.to_i
193
+ when :Float
194
+ value.to_f
195
+ when :Boolean
196
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
197
+ true
198
+ else
199
+ false
200
+ end
201
+ when :Object
202
+ # generic object (usually a Hash), return directly
203
+ value
204
+ when /\AArray<(?<inner_type>.+)>\z/
205
+ inner_type = Regexp.last_match[:inner_type]
206
+ value.map { |v| _deserialize(inner_type, v) }
207
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
208
+ k_type = Regexp.last_match[:k_type]
209
+ v_type = Regexp.last_match[:v_type]
210
+ {}.tap do |hash|
211
+ value.each do |k, v|
212
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
213
+ end
214
+ end
215
+ else # model
216
+ temp_model = TransferZero.const_get(type).new
217
+ temp_model.build_from_hash(value)
218
+ end
219
+ end
220
+
221
+ # Returns the string representation of the object
222
+ # @return [String] String presentation of the object
223
+ def to_s
224
+ to_hash.to_s
225
+ end
226
+
227
+ # to_body is an alias to to_hash (backward compatibility)
228
+ # @return [Hash] Returns the object in the form of hash
229
+ def to_body
230
+ to_hash
231
+ end
232
+
233
+ # Returns the object in the form of hash
234
+ # @return [Hash] Returns the object in the form of hash
235
+ def to_hash
236
+ hash = {}
237
+ self.class.attribute_map.each_pair do |attr, param|
238
+ value = self.send(attr)
239
+ next if value.nil?
240
+ hash[param] = _to_hash(value)
241
+ end
242
+ ::ActiveSupport::HashWithIndifferentAccess.new(hash)
243
+ end
244
+
245
+ def [](key)
246
+ to_hash[key]
247
+ end
248
+
249
+ def dig(*args)
250
+ to_hash.dig(*args)
251
+ end
252
+
253
+ # Outputs non-array value in the form of hash
254
+ # For object, use to_hash. Otherwise, just return the value
255
+ # @param [Object] value Any valid value
256
+ # @return [Hash] Returns the value in the form of hash
257
+ def _to_hash(value)
258
+ if value.is_a?(Array)
259
+ value.compact.map { |v| _to_hash(v) }
260
+ elsif value.is_a?(Hash)
261
+ {}.tap do |hash|
262
+ value.each { |k, v| hash[k] = _to_hash(v) }
263
+ end
264
+ elsif value.respond_to? :to_hash
265
+ value.to_hash
266
+ else
267
+ value
268
+ end
269
+ end
270
+
271
+ end
272
+
273
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0-beta3
11
11
  =end
12
12
 
13
13
  module TransferZero
14
- VERSION = '1.36.1'
14
+ VERSION = '1.36.2'
15
15
  end
@@ -72,6 +72,7 @@ require 'transferzero-sdk/models/payout_method_details_bwp_bank'
72
72
  require 'transferzero-sdk/models/payout_method_details_balance'
73
73
  require 'transferzero-sdk/models/payout_method_details_cad_bank'
74
74
  require 'transferzero-sdk/models/payout_method_details_egp_bank'
75
+ require 'transferzero-sdk/models/payout_method_details_egp_cash'
75
76
  require 'transferzero-sdk/models/payout_method_details_gbp_bank'
76
77
  require 'transferzero-sdk/models/payout_method_details_ghs_bank'
77
78
  require 'transferzero-sdk/models/payout_method_details_ghs_cash'
@@ -0,0 +1,71 @@
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::PayoutMethodDetailsEGPCash
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayoutMethodDetailsEGPCash' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayoutMethodDetailsEGPCash.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayoutMethodDetailsEGPCash' do
31
+ it 'should create an instance of PayoutMethodDetailsEGPCash' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsEGPCash)
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 "middle_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 "last_name"' 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 "phone_number"' 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 "street"' 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
+ describe 'test attribute "transfer_reason"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ 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.36.1
4
+ version: 1.36.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-11 00:00:00.000000000 Z
11
+ date: 2024-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -159,6 +159,7 @@ files:
159
159
  - docs/PayoutMethodDetailsBalance.md
160
160
  - docs/PayoutMethodDetailsCADBank.md
161
161
  - docs/PayoutMethodDetailsEGPBank.md
162
+ - docs/PayoutMethodDetailsEGPCash.md
162
163
  - docs/PayoutMethodDetailsGBPBank.md
163
164
  - docs/PayoutMethodDetailsGHSBank.md
164
165
  - docs/PayoutMethodDetailsGHSCash.md
@@ -322,6 +323,7 @@ files:
322
323
  - lib/transferzero-sdk/models/payout_method_details_bwp_bank.rb
323
324
  - lib/transferzero-sdk/models/payout_method_details_cad_bank.rb
324
325
  - lib/transferzero-sdk/models/payout_method_details_egp_bank.rb
326
+ - lib/transferzero-sdk/models/payout_method_details_egp_cash.rb
325
327
  - lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb
326
328
  - lib/transferzero-sdk/models/payout_method_details_ghs_bank.rb
327
329
  - lib/transferzero-sdk/models/payout_method_details_ghs_cash.rb
@@ -474,6 +476,7 @@ files:
474
476
  - spec/models/payout_method_details_bwp_bank_spec.rb
475
477
  - spec/models/payout_method_details_cad_bank_spec.rb
476
478
  - spec/models/payout_method_details_egp_bank_spec.rb
479
+ - spec/models/payout_method_details_egp_cash_spec.rb
477
480
  - spec/models/payout_method_details_gbp_bank_spec.rb
478
481
  - spec/models/payout_method_details_ghs_bank_spec.rb
479
482
  - spec/models/payout_method_details_ghs_cash_spec.rb
@@ -580,157 +583,158 @@ signing_key:
580
583
  specification_version: 4
581
584
  summary: TransferZero API Ruby Gem
582
585
  test_files:
583
- - spec/api/transactions_api_spec.rb
584
- - spec/api/account_debits_api_spec.rb
585
- - spec/api/webhooks_api_spec.rb
586
- - spec/api/account_validation_api_spec.rb
586
+ - spec/api/accounts_api_spec.rb
587
+ - spec/api/payin_methods_api_spec.rb
587
588
  - spec/api/logs_api_spec.rb
588
589
  - spec/api/documents_api_spec.rb
590
+ - spec/api/transactions_api_spec.rb
591
+ - spec/api/account_validation_api_spec.rb
589
592
  - spec/api/currency_info_api_spec.rb
590
- - spec/api/accounts_api_spec.rb
591
- - spec/api/api_logs_api_spec.rb
592
- - spec/api/payout_methods_api_spec.rb
593
- - spec/api/payin_methods_api_spec.rb
594
593
  - spec/api/senders_api_spec.rb
595
- - spec/api/recipients_api_spec.rb
594
+ - spec/api/payout_methods_api_spec.rb
595
+ - spec/api/api_logs_api_spec.rb
596
+ - spec/api/account_debits_api_spec.rb
596
597
  - spec/api/payment_methods_api_spec.rb
598
+ - spec/api/webhooks_api_spec.rb
599
+ - spec/api/recipients_api_spec.rb
597
600
  - spec/configuration_spec.rb
598
- - spec/models/payout_method_details_kes_bank_spec.rb
599
- - spec/models/field_select_validation_spec.rb
600
- - spec/models/payout_method_bank_account_type_enum_spec.rb
601
- - spec/models/payin_method_details_spec.rb
601
+ - spec/models/payout_method_details_xof_mobile_spec.rb
602
+ - spec/models/recipient_webhook_spec.rb
603
+ - spec/models/payout_method_details_gbp_bank_spec.rb
604
+ - spec/models/account_list_response_spec.rb
605
+ - spec/models/payout_method_webhook_all_of_spec.rb
606
+ - spec/models/currency_opposite_all_of_spec.rb
607
+ - spec/models/payin_method_request_spec.rb
608
+ - spec/models/transaction_spec.rb
609
+ - spec/models/sender_state_spec.rb
610
+ - spec/models/payment_method_list_response_spec.rb
611
+ - spec/models/error_status_spec.rb
612
+ - spec/models/payout_method_request_spec.rb
613
+ - spec/models/webhook_log_spec.rb
614
+ - spec/models/payout_method_country_enum_spec.rb
615
+ - spec/models/payout_method_details_zar_bank_spec.rb
616
+ - spec/models/debit_response_spec.rb
617
+ - spec/models/recipient_list_response_spec.rb
618
+ - spec/models/currency_list_response_spec.rb
619
+ - spec/models/payin_method_state_spec.rb
620
+ - spec/models/payout_method_webhook_spec.rb
621
+ - spec/models/debit_list_response_spec.rb
622
+ - spec/models/payout_method_details_gnf_mobile_spec.rb
623
+ - spec/models/webhook_log_metadata_response_spec.rb
624
+ - spec/models/document_webhook_all_of_spec.rb
625
+ - spec/models/payout_method_nature_of_business_enum_spec.rb
626
+ - spec/models/payout_method_gender_enum_spec.rb
602
627
  - spec/models/account_meta_spec.rb
628
+ - spec/models/payout_method_legal_entity_type_enum_spec.rb
629
+ - spec/models/recipient_webhook_all_of_spec.rb
630
+ - spec/models/payout_method_details_cad_bank_spec.rb
631
+ - spec/models/sender_list_response_spec.rb
603
632
  - spec/models/payout_method_list_response_spec.rb
604
- - spec/models/payout_method_details_ghs_cash_spec.rb
605
- - spec/models/payout_method_details_btc_spec.rb
606
- - spec/models/sender_spec.rb
607
- - spec/models/account_validation_result_spec.rb
608
- - spec/models/api_log_list_response_spec.rb
609
- - spec/models/payout_method_identity_card_type_enum_spec.rb
610
- - spec/models/transaction_traits_spec.rb
611
- - spec/models/document_webhook_spec.rb
612
- - spec/models/payin_method_state_spec.rb
613
- - spec/models/currency_list_response_spec.rb
633
+ - spec/models/pagination_meta_spec.rb
614
634
  - spec/models/transaction_response_spec.rb
615
- - spec/models/payout_method_request_spec.rb
616
- - spec/models/payin_method_details_mobile_spec.rb
617
- - spec/models/debit_spec.rb
618
- - spec/models/sender_webhook_spec.rb
619
- - spec/models/debit_list_response_spec.rb
620
- - spec/models/webhook_spec.rb
635
+ - spec/models/payout_method_details_iban_spec.rb
636
+ - spec/models/payment_method_opposite_spec.rb
637
+ - spec/models/payout_method_details_xof_bank_spec.rb
638
+ - spec/models/payout_method_response_spec.rb
621
639
  - spec/models/transaction_response_existing_spec.rb
622
- - spec/models/currency_spec.rb
623
- - spec/models/payout_method_details_egp_bank_spec.rb
624
- - spec/models/webhook_log_metadata_spec.rb
625
- - spec/models/sender_request_spec.rb
626
- - spec/models/payout_method_webhook_all_of_spec.rb
627
- - spec/models/debit_request_spec.rb
628
- - spec/models/field_validation_spec.rb
629
- - spec/models/payment_method_opposite_all_of_spec.rb
630
- - spec/models/payout_method_details_usd_cash_spec.rb
631
- - spec/models/payout_method_spec.rb
632
- - spec/models/payout_method_details_xof_mobile_spec.rb
633
- - spec/models/payin_method_details_btc_spec.rb
634
- - spec/models/transaction_response_meta_spec.rb
640
+ - spec/models/payout_method_bank_account_type_enum_spec.rb
641
+ - spec/models/payout_method_details_ghs_cash_spec.rb
642
+ - spec/models/payout_method_details_brl_bank_spec.rb
643
+ - spec/models/payout_method_details_xaf_bank_spec.rb
644
+ - spec/models/proof_of_payment_list_response_spec.rb
645
+ - spec/models/api_log_list_response_spec.rb
646
+ - spec/models/field_description_spec.rb
647
+ - spec/models/recipient_spec.rb
648
+ - spec/models/payout_method_details_kes_bank_spec.rb
649
+ - spec/models/payout_method_details_usd_bank_spec.rb
635
650
  - spec/models/payout_method_details_mad_cash_spec.rb
636
- - spec/models/debit_response_spec.rb
637
- - spec/models/payin_method_spec.rb
651
+ - spec/models/webhook_definition_list_response_spec.rb
638
652
  - spec/models/payout_method_details_ghs_bank_spec.rb
639
- - spec/models/payout_method_details_brl_bank_spec.rb
640
- - spec/models/account_response_spec.rb
641
- - spec/models/sender_webhook_all_of_spec.rb
642
- - spec/models/payout_method_details_nzd_bank_spec.rb
643
- - spec/models/payout_method_nature_of_business_enum_spec.rb
644
- - spec/models/account_list_response_spec.rb
645
- - spec/models/webhook_log_response_spec.rb
646
- - spec/models/payout_method_country_enum_spec.rb
653
+ - spec/models/account_validation_request_spec.rb
647
654
  - spec/models/payout_method_details_ugx_bank_spec.rb
648
- - spec/models/proof_of_payment_spec.rb
655
+ - spec/models/debit_request_wrapper_spec.rb
656
+ - spec/models/document_webhook_spec.rb
649
657
  - spec/models/recipient_state_reason_details_spec.rb
650
- - spec/models/politically_exposed_person_spec.rb
651
- - spec/models/sender_response_meta_spec.rb
652
- - spec/models/payout_method_details_cad_bank_spec.rb
653
- - spec/models/currency_opposite_spec.rb
654
- - spec/models/currency_exchange_spec.rb
655
- - spec/models/sender_list_response_spec.rb
656
- - spec/models/account_validation_error_spec.rb
657
- - spec/models/payout_method_details_balance_spec.rb
658
658
  - spec/models/payout_method_details_spec.rb
659
- - spec/models/transaction_request_spec.rb
660
- - spec/models/transaction_spec.rb
661
- - spec/models/payout_method_details_zmw_bank_spec.rb
662
- - spec/models/webhook_log_spec.rb
663
- - spec/models/webhook_definition_list_response_spec.rb
664
- - spec/models/field_description_spec.rb
665
- - spec/models/recipient_webhook_spec.rb
659
+ - spec/models/webhook_definition_event_list_response_spec.rb
660
+ - spec/models/payin_method_response_spec.rb
666
661
  - spec/models/payin_method_ux_flow_spec.rb
667
- - spec/models/transaction_list_response_spec.rb
668
- - spec/models/payin_method_details_ngn_bank_spec.rb
669
- - spec/models/payout_method_details_iban_spec.rb
670
- - spec/models/recipient_list_response_spec.rb
671
- - spec/models/debit_request_wrapper_spec.rb
672
- - spec/models/payin_method_request_spec.rb
673
- - spec/models/payout_method_mobile_provider_enum_spec.rb
674
- - spec/models/state_reason_details_spec.rb
675
- - spec/models/payout_method_gender_enum_spec.rb
676
- - spec/models/transaction_webhook_spec.rb
677
- - spec/models/proof_of_payment_list_response_spec.rb
678
- - spec/models/currency_exchange_all_of_spec.rb
679
- - spec/models/payout_method_details_zar_bank_spec.rb
680
- - spec/models/payout_method_details_ngn_bank_spec.rb
681
- - spec/models/recipient_state_spec.rb
682
- - spec/models/payout_method_details_xaf_bank_spec.rb
683
- - spec/models/webhook_definition_spec.rb
684
- - spec/models/api_log_response_spec.rb
685
- - spec/models/document_webhook_all_of_spec.rb
686
- - spec/models/error_status_spec.rb
662
+ - spec/models/payin_method_details_spec.rb
663
+ - spec/models/payout_method_details_inr_bank_spec.rb
664
+ - spec/models/payin_method_details_btc_spec.rb
665
+ - spec/models/payout_method_identity_card_type_enum_spec.rb
666
+ - spec/models/webhook_spec.rb
667
+ - spec/models/payout_method_details_xaf_mobile_spec.rb
668
+ - spec/models/webhook_definition_response_spec.rb
669
+ - spec/models/payment_method_opposite_all_of_spec.rb
687
670
  - spec/models/payout_method_pix_key_type_enum_spec.rb
688
- - spec/models/webhook_definition_event_list_response_spec.rb
689
- - spec/models/payout_method_details_mobile_spec.rb
690
- - spec/models/currency_opposite_all_of_spec.rb
691
- - spec/models/recipient_response_spec.rb
692
- - spec/models/currency_exchange_list_response_spec.rb
693
- - spec/models/payout_method_response_spec.rb
694
- - spec/models/debit_list_request_spec.rb
695
- - spec/models/payment_method_list_response_spec.rb
696
- - spec/models/webhook_log_list_response_spec.rb
697
- - spec/models/payout_method_details_xof_bank_spec.rb
698
671
  - spec/models/payout_method_details_bwp_bank_spec.rb
699
- - spec/models/payout_method_legal_entity_type_enum_spec.rb
700
- - spec/models/sender_response_existing_spec.rb
701
- - spec/models/transaction_webhook_all_of_spec.rb
702
- - spec/models/validation_error_description_spec.rb
703
- - spec/models/sender_state_spec.rb
704
- - spec/models/sender_response_spec.rb
705
- - spec/models/document_request_spec.rb
706
- - spec/models/pagination_meta_spec.rb
672
+ - spec/models/webhook_log_list_response_spec.rb
673
+ - spec/models/account_validation_result_spec.rb
674
+ - spec/models/currency_exchange_list_response_spec.rb
675
+ - spec/models/payment_method_spec.rb
707
676
  - spec/models/transaction_state_spec.rb
708
- - spec/models/document_list_response_spec.rb
709
- - spec/models/payout_method_cash_provider_enum_spec.rb
677
+ - spec/models/payin_method_spec.rb
678
+ - spec/models/payout_method_details_zmw_bank_spec.rb
710
679
  - spec/models/webhook_definition_request_spec.rb
711
- - spec/models/payin_method_response_spec.rb
712
- - spec/models/webhook_log_metadata_response_spec.rb
713
- - spec/models/account_spec.rb
714
- - spec/models/recipient_spec.rb
680
+ - spec/models/payin_method_details_mobile_spec.rb
681
+ - spec/models/state_reason_details_spec.rb
682
+ - spec/models/field_validation_spec.rb
683
+ - spec/models/currency_exchange_spec.rb
684
+ - spec/models/debit_spec.rb
685
+ - spec/models/webhook_log_response_spec.rb
686
+ - spec/models/webhook_log_metadata_spec.rb
687
+ - spec/models/payout_method_details_nzd_bank_spec.rb
688
+ - spec/models/recipient_response_spec.rb
689
+ - spec/models/debit_request_spec.rb
690
+ - spec/models/account_response_spec.rb
691
+ - spec/models/document_request_spec.rb
692
+ - spec/models/payout_method_details_btc_spec.rb
693
+ - spec/models/webhook_definition_spec.rb
694
+ - spec/models/payout_method_details_egp_cash_spec.rb
695
+ - spec/models/webhook_log_metadata_request_spec.rb
696
+ - spec/models/transaction_response_meta_spec.rb
697
+ - spec/models/payout_method_cash_provider_enum_spec.rb
698
+ - spec/models/sender_webhook_spec.rb
715
699
  - spec/models/payout_method_details_xof_cash_spec.rb
716
- - spec/models/payment_method_spec.rb
700
+ - spec/models/sender_request_spec.rb
701
+ - spec/models/sender_response_existing_spec.rb
702
+ - spec/models/payout_method_details_mobile_spec.rb
703
+ - spec/models/api_log_spec.rb
704
+ - spec/models/payout_method_mobile_provider_enum_spec.rb
705
+ - spec/models/payout_method_details_egp_bank_spec.rb
706
+ - spec/models/sender_spec.rb
717
707
  - spec/models/payout_method_transfer_reason_enum_spec.rb
708
+ - spec/models/account_spec.rb
709
+ - spec/models/politically_exposed_person_spec.rb
710
+ - spec/models/transaction_list_response_spec.rb
711
+ - spec/models/pagination_spec.rb
712
+ - spec/models/document_spec.rb
713
+ - spec/models/payout_method_details_usd_cash_spec.rb
714
+ - spec/models/debit_list_request_spec.rb
715
+ - spec/models/transaction_request_spec.rb
718
716
  - spec/models/payout_method_details_kes_mobile_spec.rb
717
+ - spec/models/account_validation_error_spec.rb
718
+ - spec/models/document_list_response_spec.rb
719
+ - spec/models/proof_of_payment_spec.rb
720
+ - spec/models/payout_method_details_ngn_bank_spec.rb
721
+ - spec/models/transaction_webhook_spec.rb
722
+ - spec/models/validation_error_description_spec.rb
723
+ - spec/models/payout_method_spec.rb
724
+ - spec/models/document_response_spec.rb
725
+ - spec/models/sender_response_spec.rb
726
+ - spec/models/payout_method_details_balance_spec.rb
727
+ - spec/models/sender_webhook_all_of_spec.rb
728
+ - spec/models/field_select_validation_spec.rb
729
+ - spec/models/payin_method_details_ngn_bank_spec.rb
730
+ - spec/models/transaction_webhook_all_of_spec.rb
719
731
  - spec/models/recipient_request_spec.rb
720
- - spec/models/payout_method_webhook_spec.rb
721
- - spec/models/payout_method_details_inr_bank_spec.rb
722
- - spec/models/webhook_log_metadata_request_spec.rb
723
- - spec/models/recipient_webhook_all_of_spec.rb
732
+ - spec/models/transaction_traits_spec.rb
733
+ - spec/models/currency_opposite_spec.rb
734
+ - spec/models/recipient_state_spec.rb
735
+ - spec/models/currency_spec.rb
736
+ - spec/models/currency_exchange_all_of_spec.rb
724
737
  - spec/models/account_validation_response_spec.rb
725
- - spec/models/payout_method_details_usd_bank_spec.rb
726
- - spec/models/payout_method_details_xaf_mobile_spec.rb
727
- - spec/models/payout_method_details_gbp_bank_spec.rb
728
- - spec/models/document_spec.rb
729
- - spec/models/document_response_spec.rb
730
- - spec/models/payment_method_opposite_spec.rb
731
- - spec/models/api_log_spec.rb
732
- - spec/models/account_validation_request_spec.rb
733
- - spec/models/webhook_definition_response_spec.rb
734
- - spec/models/payout_method_details_gnf_mobile_spec.rb
735
- - spec/models/pagination_spec.rb
738
+ - spec/models/api_log_response_spec.rb
739
+ - spec/models/sender_response_meta_spec.rb
736
740
  - spec/spec_helper.rb