transferzero-sdk 1.26.1 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5be47f1d203fb10177014dc2010918003221e523276a3699e1e9d59b5ebcd217
4
- data.tar.gz: b8db60c105a52f30acf04920d5f9b319da98c6c07ded7fbeb6836a9ced3db936
3
+ metadata.gz: bc3ff41a8e806c9cac51949b4c09709482a13841727a0609d264b22285120534
4
+ data.tar.gz: 626100aa021b382369e935c00c42ee758863b593c27178442d8c1c64513d204b
5
5
  SHA512:
6
- metadata.gz: 6f8686dd0191dc016cafc9c142881b320107afcd71b9b7ce9d9120a057a467b5d7f4901f80ee5a27d25740eb4c90ad11e2d6faed2ab54043dabe0065e596890f
7
- data.tar.gz: b03d7cbc46e6e983071d1d8a5a1f169493d93b5afca5d2e5cbf2a9ef048d5e41fcdbdfb7ba0bcc91d7373687dd8edbf7998abbfdf9b5d5171e6f797de44be69d
6
+ metadata.gz: f1351151eb99a89a9ea3f7f9970b23437aaae2c5a0d6f12138998ea07fbfd8718171847ea6442878a059c46ef5e1b38abc45b68816c139a9d62ff8bab6ea7dc2
7
+ data.tar.gz: 06e48cc37f882dc9aefc4587c97e1efad9ef228e52a37cbf560d39214e0c73809cb6765365e1bec6985cece2a274fb6504558e8f072ff32f44b8aed5d09216d4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- transferzero-sdk (1.25.0)
4
+ transferzero-sdk (1.26.1)
5
5
  activesupport (>= 4, < 7)
6
6
  faraday (~> 1.0, >= 1.0.1)
7
7
  json (>= 1.4)
@@ -10,7 +10,7 @@ GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
12
  ZenTest (4.12.1)
13
- activesupport (6.1.7.2)
13
+ activesupport (6.1.7.3)
14
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
15
  i18n (>= 1.6, < 2)
16
16
  minitest (>= 5.1)
@@ -18,7 +18,7 @@ GEM
18
18
  zeitwerk (~> 2.3)
19
19
  byebug (11.1.3)
20
20
  coderay (1.1.3)
21
- concurrent-ruby (1.2.0)
21
+ concurrent-ruby (1.2.2)
22
22
  diff-lcs (1.5.0)
23
23
  faraday (1.10.3)
24
24
  faraday-em_http (~> 1.0)
@@ -47,28 +47,28 @@ GEM
47
47
  concurrent-ruby (~> 1.0)
48
48
  json (2.6.3)
49
49
  method_source (1.0.0)
50
- minitest (5.17.0)
50
+ minitest (5.18.0)
51
51
  multipart-post (2.3.0)
52
- pry (0.13.1)
52
+ pry (0.14.2)
53
53
  coderay (~> 1.1)
54
54
  method_source (~> 1.0)
55
- pry-byebug (3.9.0)
55
+ pry-byebug (3.10.1)
56
56
  byebug (~> 11.0)
57
- pry (~> 0.13.0)
57
+ pry (>= 0.13, < 0.15)
58
58
  rake (12.0.0)
59
- rspec (3.11.0)
60
- rspec-core (~> 3.11.0)
61
- rspec-expectations (~> 3.11.0)
62
- rspec-mocks (~> 3.11.0)
63
- rspec-core (3.11.0)
64
- rspec-support (~> 3.11.0)
65
- rspec-expectations (3.11.1)
59
+ rspec (3.12.0)
60
+ rspec-core (~> 3.12.0)
61
+ rspec-expectations (~> 3.12.0)
62
+ rspec-mocks (~> 3.12.0)
63
+ rspec-core (3.12.1)
64
+ rspec-support (~> 3.12.0)
65
+ rspec-expectations (3.12.2)
66
66
  diff-lcs (>= 1.2.0, < 2.0)
67
- rspec-support (~> 3.11.0)
68
- rspec-mocks (3.11.1)
67
+ rspec-support (~> 3.12.0)
68
+ rspec-mocks (3.12.4)
69
69
  diff-lcs (>= 1.2.0, < 2.0)
70
- rspec-support (~> 3.11.0)
71
- rspec-support (3.11.1)
70
+ rspec-support (~> 3.12.0)
71
+ rspec-support (3.12.0)
72
72
  ruby2_keywords (0.0.5)
73
73
  tzinfo (2.0.6)
74
74
  concurrent-ruby (~> 1.0)
@@ -85,4 +85,4 @@ DEPENDENCIES
85
85
  transferzero-sdk!
86
86
 
87
87
  BUNDLED WITH
88
- 2.3.16
88
+ 2.4.6
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.26.1
10
+ - Package version: 1.27.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  For more information, please visit:
@@ -31,15 +31,15 @@ gem build transferzero-sdk.gemspec
31
31
  Then either install the gem locally:
32
32
 
33
33
  ```shell
34
- gem install ./transferzero-sdk-1.26.1.gem
34
+ gem install ./transferzero-sdk-1.27.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.26.1.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.27.0.gem` to install the development dependencies)
37
37
 
38
38
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
39
39
 
40
40
  Finally add this to the Gemfile:
41
41
 
42
- gem 'transferzero-sdk', '~> 1.26.1'
42
+ gem 'transferzero-sdk', '~> 1.27.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -224,6 +224,7 @@ Class | Method | HTTP request | Description
224
224
  - [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
225
225
  - [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
226
226
  - [TransferZero::PayoutMethodDetailsNZDBank](docs/PayoutMethodDetailsNZDBank.md)
227
+ - [TransferZero::PayoutMethodDetailsUGXBank](docs/PayoutMethodDetailsUGXBank.md)
227
228
  - [TransferZero::PayoutMethodDetailsUSDBank](docs/PayoutMethodDetailsUSDBank.md)
228
229
  - [TransferZero::PayoutMethodDetailsUSDCash](docs/PayoutMethodDetailsUSDCash.md)
229
230
  - [TransferZero::PayoutMethodDetailsXAFBank](docs/PayoutMethodDetailsXAFBank.md)
data/docs/PayoutMethod.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **type** | **String** | Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - &#x60;NGN::Bank&#x60; - for Nigerian bank account payments. - &#x60;GHS::Bank&#x60; - for Ghanaian bank account payments. - &#x60;GHS::Mobile&#x60; - for Ghanaian mobile money payments. - &#x60;GHS::Cash&#x60; - for Ghanaian cash remittance payments. - &#x60;UGX::Mobile&#x60; - for Ugandan mobile money payments. - &#x60;XOF::Mobile&#x60; - for mobile money payments to West-Africa. - &#x60;XOF::Bank&#x60; - for Senegalese bank account payments. - &#x60;XOF::Cash&#x60; - for Senegalese cash remittance payments. - &#x60;MAD::Cash&#x60; - for Moroccan cash remittance payments. - &#x60;EUR::Bank&#x60; - for IBAN bank transfers in EUR. - &#x60;GBP::Bank&#x60; - for IBAN bank and FP accounts transfers in GBP. - &#x60;ZAR::Bank&#x60; - for South Africa bank account payments. - &#x60;USD::Bank&#x60; - for USD account payments. *** Currently Nigeria &amp; United States only and in Beta phase *** - &#x60;USD::Cash&#x60; - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - &#x60;KES::Bank&#x60; - for Kenyan bank account payments. - &#x60;KES::Mobile&#x60; - for Kenyan mobile money payments. - &#x60;XAF::Mobile&#x60; - for mobile money payments to Cameroon. - &#x60;XAF::Bank&#x60; - for Cameroon bank account payments.. - &#x60;GNF::Mobile&#x60; - for mobile money payments to Guinea. - &#x60;BRL::Bank&#x60; - for Brazilian bank account payments. - &#x60;NZD::Bank&#x60; - for New Zealand bank account payments. - &#x60;INR::Bank&#x60; - for Indian bank account payments. - &#x60;BWP::Bank&#x60; - for Botswana bank account payments. - &#x60;ZMW::Bank&#x60; - for Zambian bank account payments. - &#x60;CAD::Bank&#x60; - for Canadian bank account payments You can also send funds to the internal balance using &#x60;CCY::Balance&#x60;, where &#x60;CCY&#x60; is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance | [optional]
7
+ **type** | **String** | Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - &#x60;NGN::Bank&#x60; - for Nigerian bank account payments. - &#x60;GHS::Bank&#x60; - for Ghanaian bank account payments. - &#x60;GHS::Mobile&#x60; - for Ghanaian mobile money payments. - &#x60;GHS::Cash&#x60; - for Ghanaian cash remittance payments. - &#x60;UGX::Mobile&#x60; - for Ugandan mobile money payments. - &#x60;XOF::Mobile&#x60; - for mobile money payments to West-Africa. - &#x60;XOF::Bank&#x60; - for Senegalese bank account payments. - &#x60;XOF::Cash&#x60; - for Senegalese cash remittance payments. - &#x60;MAD::Cash&#x60; - for Moroccan cash remittance payments. - &#x60;EUR::Bank&#x60; - for IBAN bank transfers in EUR. - &#x60;GBP::Bank&#x60; - for IBAN bank and FP accounts transfers in GBP. - &#x60;ZAR::Bank&#x60; - for South Africa bank account payments. - &#x60;USD::Bank&#x60; - for USD account payments. *** Currently Nigeria &amp; United States only and in Beta phase *** - &#x60;USD::Cash&#x60; - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - &#x60;KES::Bank&#x60; - for Kenyan bank account payments. - &#x60;KES::Mobile&#x60; - for Kenyan mobile money payments. - &#x60;XAF::Mobile&#x60; - for mobile money payments to Cameroon. - &#x60;XAF::Bank&#x60; - for Cameroon bank account payments.. - &#x60;GNF::Mobile&#x60; - for mobile money payments to Guinea. - &#x60;BRL::Bank&#x60; - for Brazilian bank account payments. - &#x60;NZD::Bank&#x60; - for New Zealand bank account payments. - &#x60;INR::Bank&#x60; - for Indian bank account payments. - &#x60;BWP::Bank&#x60; - for Botswana bank account payments. - &#x60;ZMW::Bank&#x60; - for Zambian bank account payments. - &#x60;CAD::Bank&#x60; - for Canadian bank account payments. - &#x60;UGX::Bank&#x60; - for Ugandan bank account payments. You can also send funds to the internal balance using &#x60;CCY::Balance&#x60;, where &#x60;CCY&#x60; is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance | [optional]
8
8
  **details** | [**PayoutMethodDetails**](PayoutMethodDetails.md) | | [optional]
9
9
  **metadata** | [**Object**](.md) | Metadata of payout method. You can store any kind of information in this field. | [optional]
10
10
  **id** | **String** | | [optional]
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  **phone_number** | **String** | |
13
13
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
14
14
  **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | |
15
- **transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | |
15
+ **transfer_reason** | **String** | |
16
16
  **iban** | **String** | |
17
17
  **bank_name** | **String** | |
18
18
  **bank_country** | **String** | | [optional]
@@ -0,0 +1,33 @@
1
+ # TransferZero::PayoutMethodDetailsUGXBank
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first_name** | **String** | |
8
+ **last_name** | **String** | |
9
+ **street** | **String** | |
10
+ **city** | **String** | |
11
+ **postal_code** | **String** | |
12
+ **identity_card_id** | **String** | |
13
+ **bank_account** | **String** | |
14
+ **branch_code** | **String** | |
15
+ **transfer_reason** | **String** | |
16
+
17
+ ## Code Sample
18
+
19
+ ```ruby
20
+ require 'TransferZero'
21
+
22
+ instance = TransferZero::PayoutMethodDetailsUGXBank.new(first_name: null,
23
+ last_name: null,
24
+ street: null,
25
+ city: null,
26
+ postal_code: null,
27
+ identity_card_id: null,
28
+ bank_account: null,
29
+ branch_code: null,
30
+ transfer_reason: null)
31
+ ```
32
+
33
+
@@ -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.26.1"
39
+ @user_agent = "TransferZero-SDK/Ruby/1.27.0"
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 Nigeria & United States only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. - `XAF::Mobile` - for mobile money payments to Cameroon. - `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 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 Nigeria & United States only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. - `XAF::Mobile` - for mobile money payments to Cameroon. - `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. 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
@@ -157,7 +157,7 @@ class PayoutMethodDetails
157
157
  :'phone_number' => :'String',
158
158
  :'mobile_provider' => :'PayoutMethodMobileProviderEnum',
159
159
  :'country' => :'PayoutMethodCountryEnum',
160
- :'transfer_reason' => :'PayoutMethodTransferReasonEnum',
160
+ :'transfer_reason' => :'String',
161
161
  :'iban' => :'String',
162
162
  :'bank_name' => :'String',
163
163
  :'bank_country' => :'String',
@@ -214,6 +214,7 @@ class PayoutMethodDetails
214
214
  :'PayoutMethodDetailsMobile',
215
215
  :'PayoutMethodDetailsNGNBank',
216
216
  :'PayoutMethodDetailsNZDBank',
217
+ :'PayoutMethodDetailsUGXBank',
217
218
  :'PayoutMethodDetailsUSDBank',
218
219
  :'PayoutMethodDetailsUSDCash',
219
220
  :'PayoutMethodDetailsXAFBank',
@@ -0,0 +1,320 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module TransferZero
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"street\": \"1, Old Taxi Park\", \"city\": \"Kampala\", \"postal_code\": \"10102\", \"identity_card_id\": \"3081900101123411\", \"bank_account\": \"1234567890\", \"branch_code\": \"130547\", \"transfer_reason\": \"personal_account\" } ``` See [UGX Bank](https://docs.transferzero.com/docs/payout-details/#ugxbank) documentation for the branch_code list
17
+ class PayoutMethodDetailsUGXBank
18
+ attr_accessor :first_name
19
+
20
+ attr_accessor :last_name
21
+
22
+ attr_accessor :street
23
+
24
+ attr_accessor :city
25
+
26
+ attr_accessor :postal_code
27
+
28
+ attr_accessor :identity_card_id
29
+
30
+ attr_accessor :bank_account
31
+
32
+ attr_accessor :branch_code
33
+
34
+ attr_accessor :transfer_reason
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'first_name' => :'first_name',
40
+ :'last_name' => :'last_name',
41
+ :'street' => :'street',
42
+ :'city' => :'city',
43
+ :'postal_code' => :'postal_code',
44
+ :'identity_card_id' => :'identity_card_id',
45
+ :'bank_account' => :'bank_account',
46
+ :'branch_code' => :'branch_code',
47
+ :'transfer_reason' => :'transfer_reason'
48
+ }
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.openapi_types
53
+ {
54
+ :'first_name' => :'String',
55
+ :'last_name' => :'String',
56
+ :'street' => :'String',
57
+ :'city' => :'String',
58
+ :'postal_code' => :'String',
59
+ :'identity_card_id' => :'String',
60
+ :'bank_account' => :'String',
61
+ :'branch_code' => :'String',
62
+ :'transfer_reason' => :'String'
63
+ }
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PayoutMethodDetailsUGXBank` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ attributes = attributes.each_with_object({}) { |(k, v), h|
75
+ if (!self.class.attribute_map.key?(k.to_sym))
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PayoutMethodDetailsUGXBank`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+ end
78
+ h[k.to_sym] = v
79
+ }
80
+
81
+ if attributes.key?(:'first_name')
82
+ self.first_name = attributes[:'first_name']
83
+ end
84
+
85
+ if attributes.key?(:'last_name')
86
+ self.last_name = attributes[:'last_name']
87
+ end
88
+
89
+ if attributes.key?(:'street')
90
+ self.street = attributes[:'street']
91
+ end
92
+
93
+ if attributes.key?(:'city')
94
+ self.city = attributes[:'city']
95
+ end
96
+
97
+ if attributes.key?(:'postal_code')
98
+ self.postal_code = attributes[:'postal_code']
99
+ end
100
+
101
+ if attributes.key?(:'identity_card_id')
102
+ self.identity_card_id = attributes[:'identity_card_id']
103
+ end
104
+
105
+ if attributes.key?(:'bank_account')
106
+ self.bank_account = attributes[:'bank_account']
107
+ end
108
+
109
+ if attributes.key?(:'branch_code')
110
+ self.branch_code = attributes[:'branch_code']
111
+ end
112
+
113
+ if attributes.key?(:'transfer_reason')
114
+ self.transfer_reason = attributes[:'transfer_reason']
115
+ end
116
+ end
117
+
118
+ # Show invalid properties with the reasons. Usually used together with valid?
119
+ # @return Array for valid properties with the reasons
120
+ def list_invalid_properties
121
+ invalid_properties = Array.new
122
+ if @first_name.nil?
123
+ invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
124
+ end
125
+
126
+ if @last_name.nil?
127
+ invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
128
+ end
129
+
130
+ if @street.nil?
131
+ invalid_properties.push('invalid value for "street", street cannot be nil.')
132
+ end
133
+
134
+ if @city.nil?
135
+ invalid_properties.push('invalid value for "city", city cannot be nil.')
136
+ end
137
+
138
+ if @postal_code.nil?
139
+ invalid_properties.push('invalid value for "postal_code", postal_code cannot be nil.')
140
+ end
141
+
142
+ if @identity_card_id.nil?
143
+ invalid_properties.push('invalid value for "identity_card_id", identity_card_id cannot be nil.')
144
+ end
145
+
146
+ if @bank_account.nil?
147
+ invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
148
+ end
149
+
150
+ if @branch_code.nil?
151
+ invalid_properties.push('invalid value for "branch_code", branch_code cannot be nil.')
152
+ end
153
+
154
+ if @transfer_reason.nil?
155
+ invalid_properties.push('invalid value for "transfer_reason", transfer_reason cannot be nil.')
156
+ end
157
+
158
+ invalid_properties
159
+ end
160
+
161
+ # Check to see if the all the properties in the model are valid
162
+ # @return true if the model is valid
163
+ def valid?
164
+ return false if @first_name.nil?
165
+ return false if @last_name.nil?
166
+ return false if @street.nil?
167
+ return false if @city.nil?
168
+ return false if @postal_code.nil?
169
+ return false if @identity_card_id.nil?
170
+ return false if @bank_account.nil?
171
+ return false if @branch_code.nil?
172
+ return false if @transfer_reason.nil?
173
+ true
174
+ end
175
+
176
+ # Checks equality by comparing each attribute.
177
+ # @param [Object] Object to be compared
178
+ def ==(o)
179
+ return true if self.equal?(o)
180
+ self.class == o.class &&
181
+ first_name == o.first_name &&
182
+ last_name == o.last_name &&
183
+ street == o.street &&
184
+ city == o.city &&
185
+ postal_code == o.postal_code &&
186
+ identity_card_id == o.identity_card_id &&
187
+ bank_account == o.bank_account &&
188
+ branch_code == o.branch_code &&
189
+ transfer_reason == o.transfer_reason
190
+ end
191
+
192
+ # @see the `==` method
193
+ # @param [Object] Object to be compared
194
+ def eql?(o)
195
+ self == o
196
+ end
197
+
198
+ # Calculates hash code according to all attributes.
199
+ # @return [Integer] Hash code
200
+ def hash
201
+ [first_name, last_name, street, city, postal_code, identity_card_id, bank_account, branch_code, transfer_reason].hash
202
+ end
203
+
204
+ require 'active_support/core_ext/hash'
205
+ require 'active_support/hash_with_indifferent_access.rb'
206
+ # Builds the object from hash
207
+ # @param [Hash] attributes Model attributes in the form of hash
208
+ # @return [Object] Returns the model itself
209
+ def build_from_hash(attributes)
210
+ return nil unless attributes.is_a?(Hash)
211
+ self.class.openapi_types.each_pair do |key, type|
212
+ if type =~ /\AArray<(.*)>/i
213
+ # check to ensure the input is an array given that the the attribute
214
+ # is documented as an array but the input is not
215
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
216
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
217
+ end
218
+ elsif !attributes[self.class.attribute_map[key]].nil?
219
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
220
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
221
+ end
222
+
223
+ self
224
+ end
225
+
226
+ # Deserializes the data based on type
227
+ # @param string type Data type
228
+ # @param string value Value to be deserialized
229
+ # @return [Object] Deserialized data
230
+ def _deserialize(type, value)
231
+ case type.to_sym
232
+ when :DateTime
233
+ DateTime.parse(value)
234
+ when :Date
235
+ Date.parse(value)
236
+ when :String
237
+ value.to_s
238
+ when :Integer
239
+ value.to_i
240
+ when :Float
241
+ value.to_f
242
+ when :Boolean
243
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
244
+ true
245
+ else
246
+ false
247
+ end
248
+ when :Object
249
+ # generic object (usually a Hash), return directly
250
+ value
251
+ when /\AArray<(?<inner_type>.+)>\z/
252
+ inner_type = Regexp.last_match[:inner_type]
253
+ value.map { |v| _deserialize(inner_type, v) }
254
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
255
+ k_type = Regexp.last_match[:k_type]
256
+ v_type = Regexp.last_match[:v_type]
257
+ {}.tap do |hash|
258
+ value.each do |k, v|
259
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
260
+ end
261
+ end
262
+ else # model
263
+ temp_model = TransferZero.const_get(type).new
264
+ temp_model.build_from_hash(value)
265
+ end
266
+ end
267
+
268
+ # Returns the string representation of the object
269
+ # @return [String] String presentation of the object
270
+ def to_s
271
+ to_hash.to_s
272
+ end
273
+
274
+ # to_body is an alias to to_hash (backward compatibility)
275
+ # @return [Hash] Returns the object in the form of hash
276
+ def to_body
277
+ to_hash
278
+ end
279
+
280
+ # Returns the object in the form of hash
281
+ # @return [Hash] Returns the object in the form of hash
282
+ def to_hash
283
+ hash = {}
284
+ self.class.attribute_map.each_pair do |attr, param|
285
+ value = self.send(attr)
286
+ next if value.nil?
287
+ hash[param] = _to_hash(value)
288
+ end
289
+ ::ActiveSupport::HashWithIndifferentAccess.new(hash)
290
+ end
291
+
292
+ def [](key)
293
+ to_hash[key]
294
+ end
295
+
296
+ def dig(*args)
297
+ to_hash.dig(*args)
298
+ end
299
+
300
+ # Outputs non-array value in the form of hash
301
+ # For object, use to_hash. Otherwise, just return the value
302
+ # @param [Object] value Any valid value
303
+ # @return [Hash] Returns the value in the form of hash
304
+ def _to_hash(value)
305
+ if value.is_a?(Array)
306
+ value.compact.map { |v| _to_hash(v) }
307
+ elsif value.is_a?(Hash)
308
+ {}.tap do |hash|
309
+ value.each { |k, v| hash[k] = _to_hash(v) }
310
+ end
311
+ elsif value.respond_to? :to_hash
312
+ value.to_hash
313
+ else
314
+ value
315
+ end
316
+ end
317
+
318
+ end
319
+
320
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0-beta3
11
11
  =end
12
12
 
13
13
  module TransferZero
14
- VERSION = '1.26.1'
14
+ VERSION = '1.27.0'
15
15
  end
@@ -84,6 +84,7 @@ require 'transferzero-sdk/models/payout_method_details_mad_cash'
84
84
  require 'transferzero-sdk/models/payout_method_details_mobile'
85
85
  require 'transferzero-sdk/models/payout_method_details_ngn_bank'
86
86
  require 'transferzero-sdk/models/payout_method_details_nzd_bank'
87
+ require 'transferzero-sdk/models/payout_method_details_ugx_bank'
87
88
  require 'transferzero-sdk/models/payout_method_details_usd_bank'
88
89
  require 'transferzero-sdk/models/payout_method_details_usd_cash'
89
90
  require 'transferzero-sdk/models/payout_method_details_xaf_bank'
@@ -0,0 +1,89 @@
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::PayoutMethodDetailsUGXBank
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayoutMethodDetailsUGXBank' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayoutMethodDetailsUGXBank.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayoutMethodDetailsUGXBank' do
31
+ it 'should create an instance of PayoutMethodDetailsUGXBank' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsUGXBank)
33
+ end
34
+ end
35
+ describe 'test attribute "first_name"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "last_name"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "street"' 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 "city"' 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 "postal_code"' 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 "identity_card_id"' 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
+ describe 'test attribute "bank_account"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "branch_code"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "transfer_reason"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
89
+ 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.26.1
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-06 00:00:00.000000000 Z
11
+ date: 2023-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -172,6 +172,7 @@ files:
172
172
  - docs/PayoutMethodDetailsMobile.md
173
173
  - docs/PayoutMethodDetailsNGNBank.md
174
174
  - docs/PayoutMethodDetailsNZDBank.md
175
+ - docs/PayoutMethodDetailsUGXBank.md
175
176
  - docs/PayoutMethodDetailsUSDBank.md
176
177
  - docs/PayoutMethodDetailsUSDCash.md
177
178
  - docs/PayoutMethodDetailsXAFBank.md
@@ -325,6 +326,7 @@ files:
325
326
  - lib/transferzero-sdk/models/payout_method_details_mobile.rb
326
327
  - lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb
327
328
  - lib/transferzero-sdk/models/payout_method_details_nzd_bank.rb
329
+ - lib/transferzero-sdk/models/payout_method_details_ugx_bank.rb
328
330
  - lib/transferzero-sdk/models/payout_method_details_usd_bank.rb
329
331
  - lib/transferzero-sdk/models/payout_method_details_usd_cash.rb
330
332
  - lib/transferzero-sdk/models/payout_method_details_xaf_bank.rb
@@ -468,6 +470,7 @@ files:
468
470
  - spec/models/payout_method_details_ngn_bank_spec.rb
469
471
  - spec/models/payout_method_details_nzd_bank_spec.rb
470
472
  - spec/models/payout_method_details_spec.rb
473
+ - spec/models/payout_method_details_ugx_bank_spec.rb
471
474
  - spec/models/payout_method_details_usd_bank_spec.rb
472
475
  - spec/models/payout_method_details_usd_cash_spec.rb
473
476
  - spec/models/payout_method_details_xaf_bank_spec.rb
@@ -632,6 +635,7 @@ test_files:
632
635
  - spec/models/webhook_log_metadata_spec.rb
633
636
  - spec/models/account_list_response_spec.rb
634
637
  - spec/models/document_list_response_spec.rb
638
+ - spec/models/payout_method_details_ugx_bank_spec.rb
635
639
  - spec/models/transaction_spec.rb
636
640
  - spec/models/payin_method_ux_flow_spec.rb
637
641
  - spec/models/field_select_validation_spec.rb