transferzero-sdk 1.0.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +93 -0
- data/README.md +11 -4
- data/docs/AccountMeta.md +1 -1
- data/docs/Currency.md +1 -1
- data/docs/CurrencyExchange.md +1 -1
- data/docs/CurrencyExchangeAllOf.md +17 -0
- data/docs/CurrencyInfoApi.md +20 -6
- data/docs/CurrencyOpposite.md +4 -2
- data/docs/CurrencyOppositeAllOf.md +19 -0
- data/docs/Debit.md +2 -2
- data/docs/DocumentWebhookAllOf.md +17 -0
- data/docs/FieldSelectValidation.md +1 -1
- data/docs/FieldValidation.md +1 -1
- data/docs/PayinMethodDetails.md +1 -1
- data/docs/PayinMethodDetailsMobile.md +1 -1
- data/docs/PaymentMethod.md +2 -2
- data/docs/PaymentMethodOpposite.md +2 -2
- data/docs/PayoutMethod.md +1 -1
- data/docs/PayoutMethodWebhookAllOf.md +17 -0
- data/docs/Recipient.md +4 -2
- data/docs/RecipientWebhookAllOf.md +17 -0
- data/docs/Sender.md +4 -0
- data/docs/SenderWebhookAllOf.md +17 -0
- data/docs/TransactionWebhookAllOf.md +17 -0
- data/lib/transferzero-sdk.rb +7 -0
- data/lib/transferzero-sdk/api/currency_info_api.rb +6 -0
- data/lib/transferzero-sdk/api_client.rb +1 -3
- data/lib/transferzero-sdk/models/currency_exchange.rb +2 -1
- data/lib/transferzero-sdk/models/currency_exchange_all_of.rb +204 -0
- data/lib/transferzero-sdk/models/currency_opposite.rb +16 -5
- data/lib/transferzero-sdk/models/currency_opposite_all_of.rb +212 -0
- data/lib/transferzero-sdk/models/debit.rb +2 -7
- data/lib/transferzero-sdk/models/document_webhook.rb +1 -0
- data/lib/transferzero-sdk/models/document_webhook_all_of.rb +201 -0
- data/lib/transferzero-sdk/models/payout_method.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_details_mobile.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_webhook.rb +1 -0
- data/lib/transferzero-sdk/models/payout_method_webhook_all_of.rb +201 -0
- data/lib/transferzero-sdk/models/recipient.rb +11 -1
- data/lib/transferzero-sdk/models/recipient_webhook.rb +1 -0
- data/lib/transferzero-sdk/models/recipient_webhook_all_of.rb +201 -0
- data/lib/transferzero-sdk/models/sender.rb +34 -2
- data/lib/transferzero-sdk/models/sender_webhook.rb +1 -0
- data/lib/transferzero-sdk/models/sender_webhook_all_of.rb +201 -0
- data/lib/transferzero-sdk/models/transaction_webhook.rb +1 -0
- data/lib/transferzero-sdk/models/transaction_webhook_all_of.rb +201 -0
- data/lib/transferzero-sdk/version.rb +1 -1
- data/spec/models/currency_exchange_all_of_spec.rb +41 -0
- data/spec/models/currency_opposite_all_of_spec.rb +41 -0
- data/spec/models/document_webhook_all_of_spec.rb +41 -0
- data/spec/models/payout_method_webhook_all_of_spec.rb +41 -0
- data/spec/models/recipient_webhook_all_of_spec.rb +41 -0
- data/spec/models/sender_webhook_all_of_spec.rb +41 -0
- data/spec/models/transaction_webhook_all_of_spec.rb +41 -0
- metadata +44 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec7ad9295e642f964d1fd79f4dc572929b15e8a09611c5b3b427ca018c45cd38
|
4
|
+
data.tar.gz: ce7e8272987b6b48cf9374784cfec071df90f71b2db7daccb1526d90179f46c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20e6b03b1ed61397bed75c3a7de9a887fb3dc9a40a594c8ba22bad1a9c6728ac68abfb0e12eccb6b09089047a44e859b212a4dbf8e477d4ab33180cc4e7578a6
|
7
|
+
data.tar.gz: 27a877b021b92d6e45eec0bb90ac34ed37a7bbae0a08d19d984108bd60163a6fc39ed1cff9daf524cb096af6789334e52717f4f6b0d743ebaba2633a943105cd
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
transferzero-sdk (1.2.0)
|
5
|
+
activesupport (~> 5)
|
6
|
+
json (~> 2.1, >= 2.1.0)
|
7
|
+
typhoeus (~> 1.0, >= 1.0.1)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
ZenTest (4.11.2)
|
13
|
+
activesupport (5.2.3)
|
14
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
+
i18n (>= 0.7, < 2)
|
16
|
+
minitest (~> 5.1)
|
17
|
+
tzinfo (~> 1.1)
|
18
|
+
addressable (2.6.0)
|
19
|
+
public_suffix (>= 2.0.2, < 4.0)
|
20
|
+
autotest (4.4.6)
|
21
|
+
ZenTest (>= 4.4.1)
|
22
|
+
autotest-fsevent (0.2.14)
|
23
|
+
sys-uname
|
24
|
+
autotest-growl (0.2.16)
|
25
|
+
autotest-rails-pure (4.1.2)
|
26
|
+
byebug (11.0.1)
|
27
|
+
coderay (1.1.2)
|
28
|
+
concurrent-ruby (1.1.5)
|
29
|
+
crack (0.4.3)
|
30
|
+
safe_yaml (~> 1.0.0)
|
31
|
+
diff-lcs (1.3)
|
32
|
+
ethon (0.12.0)
|
33
|
+
ffi (>= 1.3.0)
|
34
|
+
ffi (1.11.1)
|
35
|
+
hashdiff (1.0.0)
|
36
|
+
i18n (1.6.0)
|
37
|
+
concurrent-ruby (~> 1.0)
|
38
|
+
json (2.2.0)
|
39
|
+
method_source (0.9.2)
|
40
|
+
minitest (5.11.3)
|
41
|
+
pry (0.12.2)
|
42
|
+
coderay (~> 1.1.0)
|
43
|
+
method_source (~> 0.9.0)
|
44
|
+
pry-byebug (3.7.0)
|
45
|
+
byebug (~> 11.0)
|
46
|
+
pry (~> 0.10)
|
47
|
+
public_suffix (3.1.1)
|
48
|
+
rake (12.0.0)
|
49
|
+
rspec (3.8.0)
|
50
|
+
rspec-core (~> 3.8.0)
|
51
|
+
rspec-expectations (~> 3.8.0)
|
52
|
+
rspec-mocks (~> 3.8.0)
|
53
|
+
rspec-core (3.8.2)
|
54
|
+
rspec-support (~> 3.8.0)
|
55
|
+
rspec-expectations (3.8.4)
|
56
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
57
|
+
rspec-support (~> 3.8.0)
|
58
|
+
rspec-mocks (3.8.1)
|
59
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
60
|
+
rspec-support (~> 3.8.0)
|
61
|
+
rspec-support (3.8.2)
|
62
|
+
safe_yaml (1.0.5)
|
63
|
+
sys-uname (1.0.4)
|
64
|
+
ffi (>= 1.0.0)
|
65
|
+
thread_safe (0.3.6)
|
66
|
+
typhoeus (1.3.1)
|
67
|
+
ethon (>= 0.9.0)
|
68
|
+
tzinfo (1.2.5)
|
69
|
+
thread_safe (~> 0.1)
|
70
|
+
vcr (3.0.3)
|
71
|
+
webmock (1.24.6)
|
72
|
+
addressable (>= 2.3.6)
|
73
|
+
crack (>= 0.3.2)
|
74
|
+
hashdiff
|
75
|
+
|
76
|
+
PLATFORMS
|
77
|
+
ruby
|
78
|
+
|
79
|
+
DEPENDENCIES
|
80
|
+
ZenTest (~> 4.11, >= 4.11.2)
|
81
|
+
autotest (~> 4.4, >= 4.4.6)
|
82
|
+
autotest-fsevent (~> 0.2, >= 0.2.12)
|
83
|
+
autotest-growl (~> 0.2, >= 0.2.16)
|
84
|
+
autotest-rails-pure (~> 4.1, >= 4.1.2)
|
85
|
+
pry-byebug
|
86
|
+
rake (~> 12.0.0)
|
87
|
+
rspec (~> 3.6, >= 3.6.0)
|
88
|
+
transferzero-sdk!
|
89
|
+
vcr (~> 3.0, >= 3.0.1)
|
90
|
+
webmock (~> 1.24, >= 1.24.3)
|
91
|
+
|
92
|
+
BUNDLED WITH
|
93
|
+
1.17.3
|
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.
|
10
|
+
- Package version: 1.3.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.
|
34
|
+
gem install ./transferzero-sdk-1.3.0.gem
|
35
35
|
```
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.3.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.
|
42
|
+
gem 'transferzero-sdk', '~> 1.3.0'
|
43
43
|
|
44
44
|
### Install from Git
|
45
45
|
|
@@ -164,9 +164,11 @@ Class | Method | HTTP request | Description
|
|
164
164
|
- [TransferZero::ApiLogResponse](docs/ApiLogResponse.md)
|
165
165
|
- [TransferZero::Currency](docs/Currency.md)
|
166
166
|
- [TransferZero::CurrencyExchange](docs/CurrencyExchange.md)
|
167
|
+
- [TransferZero::CurrencyExchangeAllOf](docs/CurrencyExchangeAllOf.md)
|
167
168
|
- [TransferZero::CurrencyExchangeListResponse](docs/CurrencyExchangeListResponse.md)
|
168
169
|
- [TransferZero::CurrencyListResponse](docs/CurrencyListResponse.md)
|
169
170
|
- [TransferZero::CurrencyOpposite](docs/CurrencyOpposite.md)
|
171
|
+
- [TransferZero::CurrencyOppositeAllOf](docs/CurrencyOppositeAllOf.md)
|
170
172
|
- [TransferZero::Debit](docs/Debit.md)
|
171
173
|
- [TransferZero::DebitListRequest](docs/DebitListRequest.md)
|
172
174
|
- [TransferZero::DebitListResponse](docs/DebitListResponse.md)
|
@@ -178,6 +180,7 @@ Class | Method | HTTP request | Description
|
|
178
180
|
- [TransferZero::DocumentRequest](docs/DocumentRequest.md)
|
179
181
|
- [TransferZero::DocumentResponse](docs/DocumentResponse.md)
|
180
182
|
- [TransferZero::DocumentWebhook](docs/DocumentWebhook.md)
|
183
|
+
- [TransferZero::DocumentWebhookAllOf](docs/DocumentWebhookAllOf.md)
|
181
184
|
- [TransferZero::ErrorStatus](docs/ErrorStatus.md)
|
182
185
|
- [TransferZero::FieldDescription](docs/FieldDescription.md)
|
183
186
|
- [TransferZero::FieldSelectValidation](docs/FieldSelectValidation.md)
|
@@ -209,12 +212,14 @@ Class | Method | HTTP request | Description
|
|
209
212
|
- [TransferZero::PayoutMethodRequest](docs/PayoutMethodRequest.md)
|
210
213
|
- [TransferZero::PayoutMethodResponse](docs/PayoutMethodResponse.md)
|
211
214
|
- [TransferZero::PayoutMethodWebhook](docs/PayoutMethodWebhook.md)
|
215
|
+
- [TransferZero::PayoutMethodWebhookAllOf](docs/PayoutMethodWebhookAllOf.md)
|
212
216
|
- [TransferZero::Recipient](docs/Recipient.md)
|
213
217
|
- [TransferZero::RecipientListResponse](docs/RecipientListResponse.md)
|
214
218
|
- [TransferZero::RecipientRequest](docs/RecipientRequest.md)
|
215
219
|
- [TransferZero::RecipientResponse](docs/RecipientResponse.md)
|
216
220
|
- [TransferZero::RecipientState](docs/RecipientState.md)
|
217
221
|
- [TransferZero::RecipientWebhook](docs/RecipientWebhook.md)
|
222
|
+
- [TransferZero::RecipientWebhookAllOf](docs/RecipientWebhookAllOf.md)
|
218
223
|
- [TransferZero::Sender](docs/Sender.md)
|
219
224
|
- [TransferZero::SenderListResponse](docs/SenderListResponse.md)
|
220
225
|
- [TransferZero::SenderRequest](docs/SenderRequest.md)
|
@@ -223,6 +228,7 @@ Class | Method | HTTP request | Description
|
|
223
228
|
- [TransferZero::SenderResponseMeta](docs/SenderResponseMeta.md)
|
224
229
|
- [TransferZero::SenderState](docs/SenderState.md)
|
225
230
|
- [TransferZero::SenderWebhook](docs/SenderWebhook.md)
|
231
|
+
- [TransferZero::SenderWebhookAllOf](docs/SenderWebhookAllOf.md)
|
226
232
|
- [TransferZero::Transaction](docs/Transaction.md)
|
227
233
|
- [TransferZero::TransactionListResponse](docs/TransactionListResponse.md)
|
228
234
|
- [TransferZero::TransactionRequest](docs/TransactionRequest.md)
|
@@ -232,6 +238,7 @@ Class | Method | HTTP request | Description
|
|
232
238
|
- [TransferZero::TransactionState](docs/TransactionState.md)
|
233
239
|
- [TransferZero::TransactionTraits](docs/TransactionTraits.md)
|
234
240
|
- [TransferZero::TransactionWebhook](docs/TransactionWebhook.md)
|
241
|
+
- [TransferZero::TransactionWebhookAllOf](docs/TransactionWebhookAllOf.md)
|
235
242
|
- [TransferZero::ValidationErrorDescription](docs/ValidationErrorDescription.md)
|
236
243
|
- [TransferZero::Webhook](docs/Webhook.md)
|
237
244
|
- [TransferZero::WebhookDefinition](docs/WebhookDefinition.md)
|
data/docs/AccountMeta.md
CHANGED
data/docs/Currency.md
CHANGED
data/docs/CurrencyExchange.md
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
# TransferZero::CurrencyExchangeAllOf
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**opposites** | [**Array<CurrencyOpposite>**](CurrencyOpposite.md) | Lists the currencies where you can exchange from this one | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'TransferZero'
|
13
|
+
|
14
|
+
instance = TransferZero::CurrencyExchangeAllOf.new(opposites: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/CurrencyInfoApi.md
CHANGED
@@ -67,7 +67,7 @@ end
|
|
67
67
|
|
68
68
|
|
69
69
|
# **info_currencies_in**
|
70
|
-
> CurrencyExchangeListResponse info_currencies_in
|
70
|
+
> CurrencyExchangeListResponse info_currencies_in(opts)
|
71
71
|
|
72
72
|
Getting a list of possible input currencies
|
73
73
|
|
@@ -80,9 +80,13 @@ require 'transferzero-sdk'
|
|
80
80
|
|
81
81
|
api_instance = TransferZero::CurrencyInfoApi.new
|
82
82
|
|
83
|
+
opts = {
|
84
|
+
sender_id: 'sender_id_example' # String | Allows the scoping of the results by `sender_id` (optional). Example: `/v1/info/currencies/in?sender_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87`
|
85
|
+
}
|
86
|
+
|
83
87
|
begin
|
84
88
|
#Getting a list of possible input currencies
|
85
|
-
result = api_instance.info_currencies_in
|
89
|
+
result = api_instance.info_currencies_in(opts)
|
86
90
|
p result
|
87
91
|
rescue TransferZero::ApiError => e
|
88
92
|
if e.validation_error
|
@@ -96,7 +100,10 @@ end
|
|
96
100
|
```
|
97
101
|
|
98
102
|
### Parameters
|
99
|
-
|
103
|
+
|
104
|
+
Name | Type | Description | Notes
|
105
|
+
------------- | ------------- | ------------- | -------------
|
106
|
+
**sender_id** | [**String**](.md)| Allows the scoping of the results by `sender_id` (optional). Example: `/v1/info/currencies/in?sender_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87` | [optional]
|
100
107
|
|
101
108
|
### Return type
|
102
109
|
|
@@ -124,7 +131,7 @@ end
|
|
124
131
|
|
125
132
|
|
126
133
|
# **info_currencies_out**
|
127
|
-
> CurrencyExchangeListResponse info_currencies_out
|
134
|
+
> CurrencyExchangeListResponse info_currencies_out(opts)
|
128
135
|
|
129
136
|
Getting a list of possible output currencies
|
130
137
|
|
@@ -137,9 +144,13 @@ require 'transferzero-sdk'
|
|
137
144
|
|
138
145
|
api_instance = TransferZero::CurrencyInfoApi.new
|
139
146
|
|
147
|
+
opts = {
|
148
|
+
sender_id: 'sender_id_example' # String | Allows the scoping of the results by `sender_id` (optional). Example: `/v1/info/currencies/out?sender_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87`
|
149
|
+
}
|
150
|
+
|
140
151
|
begin
|
141
152
|
#Getting a list of possible output currencies
|
142
|
-
result = api_instance.info_currencies_out
|
153
|
+
result = api_instance.info_currencies_out(opts)
|
143
154
|
p result
|
144
155
|
rescue TransferZero::ApiError => e
|
145
156
|
if e.validation_error
|
@@ -153,7 +164,10 @@ end
|
|
153
164
|
```
|
154
165
|
|
155
166
|
### Parameters
|
156
|
-
|
167
|
+
|
168
|
+
Name | Type | Description | Notes
|
169
|
+
------------- | ------------- | ------------- | -------------
|
170
|
+
**sender_id** | [**String**](.md)| Allows the scoping of the results by `sender_id` (optional). Example: `/v1/info/currencies/out?sender_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87` | [optional]
|
157
171
|
|
158
172
|
### Return type
|
159
173
|
|
data/docs/CurrencyOpposite.md
CHANGED
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
|
|
15
15
|
**margin** | **String** | The margin set for transactions in this currency | [optional]
|
16
16
|
**usd_equivalent** | **String** | The equivalent of the currency to 1 USD | [optional]
|
17
17
|
**rate** | **Float** | The rate of this particular currency with the base one | [optional]
|
18
|
+
**mtm_rate** | **Float** | Mark to market rate of this particular currency against the base one with the margin factored in | [optional]
|
18
19
|
|
19
20
|
## Code Sample
|
20
21
|
|
@@ -26,12 +27,13 @@ instance = TransferZero::CurrencyOpposite.new(code: NGN,
|
|
26
27
|
symbol: ₦,
|
27
28
|
decimals: 2,
|
28
29
|
subunit_to_unit: 100,
|
29
|
-
primary:
|
30
|
+
primary: true,
|
30
31
|
min: 100,
|
31
32
|
max: 50000000,
|
32
33
|
margin: null,
|
33
34
|
usd_equivalent: null,
|
34
|
-
rate: null
|
35
|
+
rate: null,
|
36
|
+
mtm_rate: null)
|
35
37
|
```
|
36
38
|
|
37
39
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# TransferZero::CurrencyOppositeAllOf
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**rate** | **Float** | The rate of this particular currency with the base one | [optional]
|
8
|
+
**mtm_rate** | **Float** | Mark to market rate of this particular currency against the base one with the margin factored in | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'TransferZero'
|
14
|
+
|
15
|
+
instance = TransferZero::CurrencyOppositeAllOf.new(rate: null,
|
16
|
+
mtm_rate: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/docs/Debit.md
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**amount** | **Float** | The amount to be debited from your account. The
|
8
|
-
**currency** | **String** | The currency of the amount in 3-character alpha ISO 4217 currency format |
|
7
|
+
**amount** | **Float** | The amount to be debited from your account. The \"amount\" parameter is optional - - if included, it must equal the amount required to fund the transaction. - if omitted, it will default to the amount required to fund the transaction. | [optional]
|
8
|
+
**currency** | **String** | The currency of the amount in 3-character alpha ISO 4217 currency format. The \"currency\" parameter is optional - if omitted, it will default to the payin currency of the transaction. - it can be added in as an additional check to ensure that the expected currency is used. (an error will be given back if it does not match up with the payin currency of the transaction) | [optional]
|
9
9
|
**to_type** | **String** | Describes what the debit is funding |
|
10
10
|
**to_id** | **String** | The ID of the resource the debit is funding |
|
11
11
|
**metadata** | [**Object**](.md) | Metadata of account debit | [optional]
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# TransferZero::DocumentWebhookAllOf
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**object** | [**Document**](Document.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'TransferZero'
|
13
|
+
|
14
|
+
instance = TransferZero::DocumentWebhookAllOf.new(object: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/FieldValidation.md
CHANGED
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
|
|
13
13
|
```ruby
|
14
14
|
require 'TransferZero'
|
15
15
|
|
16
|
-
instance = TransferZero::FieldValidation.new(presence:
|
16
|
+
instance = TransferZero::FieldValidation.new(presence: true,
|
17
17
|
inclusion: null,
|
18
18
|
format: {"with":"(?-mix:\\A\\d+\\z)"})
|
19
19
|
```
|
data/docs/PayinMethodDetails.md
CHANGED
data/docs/PaymentMethod.md
CHANGED
@@ -18,9 +18,9 @@ require 'TransferZero'
|
|
18
18
|
|
19
19
|
instance = TransferZero::PaymentMethod.new(type: NGN::Bank,
|
20
20
|
provider: Interswitch,
|
21
|
-
otc_permitted:
|
21
|
+
otc_permitted: false,
|
22
22
|
details: ["email","first_name","last_name","address"],
|
23
|
-
default:
|
23
|
+
default: false,
|
24
24
|
fields: {"email":{"type":"input","validations":{"inclusion":{"in":{"NI":"National Id","PP":"Passport"},"allow_blank":true}}}})
|
25
25
|
```
|
26
26
|
|
@@ -19,9 +19,9 @@ require 'TransferZero'
|
|
19
19
|
|
20
20
|
instance = TransferZero::PaymentMethodOpposite.new(type: NGN::Bank,
|
21
21
|
provider: Interswitch,
|
22
|
-
otc_permitted:
|
22
|
+
otc_permitted: false,
|
23
23
|
details: ["email","first_name","last_name","address"],
|
24
|
-
default:
|
24
|
+
default: false,
|
25
25
|
fields: {"email":{"type":"input","validations":{"inclusion":{"in":{"NI":"National Id","PP":"Passport"},"allow_blank":true}}}},
|
26
26
|
opposites: null)
|
27
27
|
```
|
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. - `NGN::Mobile` - for Nigerian mobile money payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `TZS::Mobile` - for Tanzanian mobile money payments. - `XOF::Mobile` - for Senegalese mobile money payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank transfers in GBP. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://github.com/transferzero/api-documentation/blob/master/additional-features.md#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. - `NGN::Mobile` - for Nigerian mobile money payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `TZS::Mobile` - for Tanzanian mobile money payments. - `XOF::Mobile` - for Senegalese mobile money 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 transfers in GBP. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://github.com/transferzero/api-documentation/blob/master/additional-features.md#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]
|