transferzero-sdk 1.19.5 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/PayinMethodDetails.md +2 -0
  4. data/docs/PayinMethodDetailsMobile.md +2 -0
  5. data/lib/transferzero-sdk/api_client.rb +2 -30
  6. data/lib/transferzero-sdk/models/payin_method_details.rb +10 -1
  7. data/lib/transferzero-sdk/models/payin_method_details_mobile.rb +10 -1
  8. data/lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb +1 -1
  9. data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +1 -1
  10. data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +3 -0
  11. data/lib/transferzero-sdk/version.rb +1 -1
  12. data/spec/api/documents_api_spec.rb +0 -15
  13. data/spec/api/payin_methods_api_spec.rb +2 -2
  14. data/spec/api/payout_methods_api_spec.rb +1 -1
  15. data/spec/api/recipients_api_spec.rb +13 -1
  16. data/spec/api/senders_api_spec.rb +1 -1
  17. data/spec/api/transactions_api_spec.rb +1 -0
  18. data/spec/models/account_validation_request_spec.rb +14 -2
  19. data/spec/models/currency_exchange_spec.rb +0 -6
  20. data/spec/models/currency_opposite_spec.rb +4 -4
  21. data/spec/models/currency_spec.rb +0 -6
  22. data/spec/models/document_spec.rb +20 -2
  23. data/spec/models/payin_method_details_mobile_spec.rb +7 -1
  24. data/spec/models/payin_method_details_spec.rb +13 -1
  25. data/spec/models/payin_method_spec.rb +25 -1
  26. data/spec/models/payout_method_details_kes_bank_spec.rb +6 -0
  27. data/spec/models/payout_method_details_kes_mobile_spec.rb +6 -0
  28. data/spec/models/payout_method_details_mobile_spec.rb +6 -0
  29. data/spec/models/payout_method_details_spec.rb +108 -0
  30. data/spec/models/payout_method_details_xof_bank_spec.rb +12 -0
  31. data/spec/models/payout_method_details_xof_cash_spec.rb +3 -9
  32. data/spec/models/payout_method_details_xof_mobile_spec.rb +12 -0
  33. data/spec/models/payout_method_details_zar_bank_spec.rb +48 -0
  34. data/spec/models/recipient_spec.rb +22 -0
  35. data/spec/models/sender_spec.rb +169 -19
  36. data/transferzero-sdk-1.19.5.gem +0 -0
  37. data/transferzero-sdk-1.20.1.gem +0 -0
  38. metadata +4 -30
  39. data/docs/CurrencyExchangeAllOf.md +0 -17
  40. data/docs/CurrencyOppositeAllOf.md +0 -21
  41. data/docs/DocumentWebhookAllOf.md +0 -17
  42. data/docs/PayoutMethodWebhookAllOf.md +0 -17
  43. data/docs/RecipientWebhookAllOf.md +0 -17
  44. data/docs/SenderWebhookAllOf.md +0 -17
  45. data/docs/TransactionWebhookAllOf.md +0 -17
  46. data/lib/transferzero-sdk/models/currency_exchange_all_of.rb +0 -205
  47. data/lib/transferzero-sdk/models/currency_opposite_all_of.rb +0 -223
  48. data/lib/transferzero-sdk/models/document_webhook_all_of.rb +0 -202
  49. data/lib/transferzero-sdk/models/payout_method_webhook_all_of.rb +0 -202
  50. data/lib/transferzero-sdk/models/recipient_webhook_all_of.rb +0 -202
  51. data/lib/transferzero-sdk/models/sender_webhook_all_of.rb +0 -202
  52. data/lib/transferzero-sdk/models/transaction_webhook_all_of.rb +0 -202
  53. data/spec/models/currency_exchange_all_of_spec.rb +0 -41
  54. data/spec/models/currency_opposite_all_of_spec.rb +0 -53
  55. data/spec/models/document_webhook_all_of_spec.rb +0 -41
  56. data/spec/models/payout_method_webhook_all_of_spec.rb +0 -41
  57. data/spec/models/recipient_webhook_all_of_spec.rb +0 -41
  58. data/spec/models/sender_webhook_all_of_spec.rb +0 -41
  59. data/spec/models/transaction_webhook_all_of_spec.rb +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 711cab66de6f674b4c8a26cb49d592b823b1157823780e44d17dd86cb3c4f1e2
4
- data.tar.gz: c8cbfdc26f64b1d8e76974cfce5f6b136ea027b2cd01bbff5d52294b8b8878cc
3
+ metadata.gz: 210c396980b5a7a7e8f5604e6924caf81a9becceec2ff871ccc5b814d2d57c90
4
+ data.tar.gz: 3cf73381738f45a2c118311b9b973f6b8e4d3a0692fdba5e7982b6bb37baa0d0
5
5
  SHA512:
6
- metadata.gz: 7195f09b3c82779a5c741bf583c5d007d270c065b3175469a7f5e1e07be4972c55bef885efafc99a6382bbada07a8677bcd22fc542ed27cf9cf2e6ba6828ad58
7
- data.tar.gz: 86661a8a92640e8b76f6aa4a2291d145632cf8d76d8b322cc9bc0fc1b4a47000fec36acc0a0b49e616bf64cad80aa74075363928711fe05b6e3c948b054c8810
6
+ metadata.gz: abbfe0dd76475f06e5c57edcdfa98bf190ee3e50c18dee67df14b53618adc52b594eec63a44317ce66d9d0b0b715db5aab86a8e4abfbf2e10589978ff5b2afd5
7
+ data.tar.gz: 8d2af0242623ea04b7d6a6cbc3e9c7906eae35826b51a0425c39fe85c1556fb39b6c86bda21d7840d3c11dddc5a6885bf3149921e7b05e77c65823a1287057bc
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.19.5
10
+ - Package version: 1.21.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.19.5.gem
34
+ gem install ./transferzero-sdk-1.21.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.19.5.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.21.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.19.5'
42
+ gem 'transferzero-sdk', '~> 1.21.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **redirect_url** | **String** | This is where the sender should be redirected back when the payment has been finished | [optional]
9
9
  **phone_number** | **String** | The phone number where the funds should be collected from | [optional]
10
10
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | | [optional]
11
+ **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
11
12
  **otp** | **String** | The OTP that the sender received in otp verified ussd popup ux flow. | [optional]
12
13
  **refund_address** | **String** | Please make sure the refund_address is a valid BTC address belonging to the sender, as that is going to be used in case the transaction has to be refunded. | [optional]
13
14
 
@@ -20,6 +21,7 @@ instance = TransferZero::PayinMethodDetails.new(payment_method: null,
20
21
  redirect_url: null,
21
22
  phone_number: +2569999999,
22
23
  mobile_provider: null,
24
+ country: null,
23
25
  otp: null,
24
26
  refund_address: null)
25
27
  ```
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **phone_number** | **String** | The phone number where the funds should be collected from | [optional]
8
8
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | | [optional]
9
+ **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
9
10
  **otp** | **String** | The OTP that the sender received in otp verified ussd popup ux flow. | [optional]
10
11
 
11
12
  ## Code Sample
@@ -15,6 +16,7 @@ require 'TransferZero'
15
16
 
16
17
  instance = TransferZero::PayinMethodDetailsMobile.new(phone_number: +2569999999,
17
18
  mobile_provider: null,
19
+ country: null,
18
20
  otp: null)
19
21
  ```
20
22
 
@@ -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.19.5"
39
+ @user_agent = "TransferZero-SDK/Ruby/1.21.0"
40
40
  @default_headers = {
41
41
  'Content-Type' => 'application/json',
42
42
  'User-Agent' => @user_agent
@@ -338,7 +338,7 @@ module TransferZero
338
338
  elsif body
339
339
  data = body.is_a?(String) ? body : body.to_json
340
340
  else
341
- data = nil
341
+ data = ''
342
342
  end
343
343
  data
344
344
  end
@@ -367,34 +367,6 @@ module TransferZero
367
367
  @config.base_url(opts[:operation]) + path
368
368
  end
369
369
 
370
- # Builds the HTTP request body
371
- #
372
- # @param [Hash] header_params Header parameters
373
- # @param [Hash] form_params Query parameters
374
- # @param [Object] body HTTP body (JSON/XML)
375
- # @return [String] HTTP body data in the form of string
376
- def build_request_body(header_params, form_params, body)
377
- # http form
378
- if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
379
- header_params['Content-Type'] == 'multipart/form-data'
380
- data = {}
381
- form_params.each do |key, value|
382
- case value
383
- when ::File, ::Array, nil
384
- # let typhoeus handle File, Array and nil parameters
385
- data[key] = value
386
- else
387
- data[key] = value.to_s
388
- end
389
- end
390
- elsif body
391
- data = body.is_a?(String) ? body : body.to_json
392
- else
393
- data = nil
394
- end
395
- data
396
- end
397
-
398
370
  # Sign request using HMAC-SHA512 algorithm.
399
371
  #
400
372
  # @param [Hash] params An array with the nonce, request method, url and the hex digest of the request body
@@ -26,6 +26,8 @@ class PayinMethodDetails
26
26
 
27
27
  attr_accessor :mobile_provider
28
28
 
29
+ attr_accessor :country
30
+
29
31
  # The OTP that the sender received in otp verified ussd popup ux flow.
30
32
  attr_accessor :otp
31
33
 
@@ -39,6 +41,7 @@ class PayinMethodDetails
39
41
  :'redirect_url' => :'redirect_url',
40
42
  :'phone_number' => :'phone_number',
41
43
  :'mobile_provider' => :'mobile_provider',
44
+ :'country' => :'country',
42
45
  :'otp' => :'otp',
43
46
  :'refund_address' => :'refund_address'
44
47
  }
@@ -51,6 +54,7 @@ class PayinMethodDetails
51
54
  :'redirect_url' => :'String',
52
55
  :'phone_number' => :'String',
53
56
  :'mobile_provider' => :'PayoutMethodMobileProviderEnum',
57
+ :'country' => :'PayoutMethodCountryEnum',
54
58
  :'otp' => :'String',
55
59
  :'refund_address' => :'String'
56
60
  }
@@ -96,6 +100,10 @@ class PayinMethodDetails
96
100
  self.mobile_provider = attributes[:'mobile_provider']
97
101
  end
98
102
 
103
+ if attributes.key?(:'country')
104
+ self.country = attributes[:'country']
105
+ end
106
+
99
107
  if attributes.key?(:'otp')
100
108
  self.otp = attributes[:'otp']
101
109
  end
@@ -143,6 +151,7 @@ class PayinMethodDetails
143
151
  redirect_url == o.redirect_url &&
144
152
  phone_number == o.phone_number &&
145
153
  mobile_provider == o.mobile_provider &&
154
+ country == o.country &&
146
155
  otp == o.otp &&
147
156
  refund_address == o.refund_address
148
157
  end
@@ -156,7 +165,7 @@ class PayinMethodDetails
156
165
  # Calculates hash code according to all attributes.
157
166
  # @return [Integer] Hash code
158
167
  def hash
159
- [payment_method, redirect_url, phone_number, mobile_provider, otp, refund_address].hash
168
+ [payment_method, redirect_url, phone_number, mobile_provider, country, otp, refund_address].hash
160
169
  end
161
170
 
162
171
  require 'active_support/core_ext/hash'
@@ -20,6 +20,8 @@ class PayinMethodDetailsMobile
20
20
 
21
21
  attr_accessor :mobile_provider
22
22
 
23
+ attr_accessor :country
24
+
23
25
  # The OTP that the sender received in otp verified ussd popup ux flow.
24
26
  attr_accessor :otp
25
27
 
@@ -28,6 +30,7 @@ class PayinMethodDetailsMobile
28
30
  {
29
31
  :'phone_number' => :'phone_number',
30
32
  :'mobile_provider' => :'mobile_provider',
33
+ :'country' => :'country',
31
34
  :'otp' => :'otp'
32
35
  }
33
36
  end
@@ -37,6 +40,7 @@ class PayinMethodDetailsMobile
37
40
  {
38
41
  :'phone_number' => :'String',
39
42
  :'mobile_provider' => :'PayoutMethodMobileProviderEnum',
43
+ :'country' => :'PayoutMethodCountryEnum',
40
44
  :'otp' => :'String'
41
45
  }
42
46
  end
@@ -64,6 +68,10 @@ class PayinMethodDetailsMobile
64
68
  self.mobile_provider = attributes[:'mobile_provider']
65
69
  end
66
70
 
71
+ if attributes.key?(:'country')
72
+ self.country = attributes[:'country']
73
+ end
74
+
67
75
  if attributes.key?(:'otp')
68
76
  self.otp = attributes[:'otp']
69
77
  end
@@ -89,6 +97,7 @@ class PayinMethodDetailsMobile
89
97
  self.class == o.class &&
90
98
  phone_number == o.phone_number &&
91
99
  mobile_provider == o.mobile_provider &&
100
+ country == o.country &&
92
101
  otp == o.otp
93
102
  end
94
103
 
@@ -101,7 +110,7 @@ class PayinMethodDetailsMobile
101
110
  # Calculates hash code according to all attributes.
102
111
  # @return [Integer] Hash code
103
112
  def hash
104
- [phone_number, mobile_provider, otp].hash
113
+ [phone_number, mobile_provider, country, otp].hash
105
114
  end
106
115
 
107
116
  require 'active_support/core_ext/hash'
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"bank_code\": \"058\", \"bank_account\": \"123456789\", \"bank_account_type\": \"10\" # 10 for saving # 20 for current accounts } ``` The valid bank_code values are: - Access Bank: 044 - Diamond Bank: 063 - EcoBank: 050 - FCMB Bank: 214 - Fidelity Bank: 070 - First Bank of Nigeria: 011 - Guaranty Trust Bank : 058 - Heritage Bank: 030 - Jaiz Bank: 301 - Keystone: 082 - Mainstreet: 014 - Polaris Bank: 076 - Stanbic IBTC Bank: 039 - Sterling bank: 232 - Union Bank: 032 - United Bank for Africa: 033 - Unity Bank: 215 - Wema Bank: 035 - Zenith International: 057
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"bank_code\": \"058\", \"bank_account\": \"123456789\", \"bank_account_type\": \"10\" # 10 for saving # 20 for current accounts } ``` The valid bank_code values are: - Access Bank: 044 - Citi Bank Group: 023 - Diamond Bank: 063 - EcoBank: 050 - FCMB Bank: 214 - Fidelity Bank: 070 - First Bank of Nigeria: 011 - Guaranty Trust Bank : 058 - Heritage Bank: 030 - Jaiz Bank: 301 - Keystone: 082 - Mainstreet: 014 - Polaris Bank: 076 - Stanbic IBTC Bank: 039 - Sterling bank: 232 - Union Bank: 032 - United Bank for Africa: 033 - Unity Bank: 215 - Wema Bank: 035 - Zenith International: 057
17
17
  class PayoutMethodDetailsNGNBank
18
18
  attr_accessor :first_name
19
19
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"774044436\", // local or international Senegalese or Ivory Coast format \"mobile_provider\": \"orange\", // \"orange\" or \"tigo\" for Senegal; \"orange\", \"mtn\" or \"moov\" for Ivory Coast; \"orange\" or \"mobicash\" for Burkina Faso and Mali \"country\" // Optional; Values: \"SN\" for Senegal; \"CI\" for Ivory Coast; \"ML\" for Mali; \"BF\" for Burkina Faso; Default value is \"SN\" \"transfer_reason\": \"personal_account\" // mandatory for Mali payouts, optional otherwise } ```
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"774044436\", // local or international Senegalese or Ivory Coast format \"mobile_provider\": \"orange\", // \"orange\", \"tigo\", \"emoney\", \"free\" or \"wave\" for Senegal; \"orange\", \"mtn\" or \"moov\" for Ivory Coast; \"orange\" or \"mobicash\" for Burkina Faso and Mali \"country\" // Optional; Values: \"SN\" for Senegal; \"CI\" for Ivory Coast; \"ML\" for Mali; \"BF\" for Burkina Faso; Default value is \"SN\" \"transfer_reason\": \"personal_account\" // mandatory for Mali payouts, optional otherwise } ```
17
17
  class PayoutMethodDetailsXOFMobile
18
18
  attr_accessor :first_name
19
19
 
@@ -25,6 +25,9 @@ class PayoutMethodMobileProviderEnum
25
25
  AFRICELL = "africell".freeze
26
26
  TELECOM = "telecom".freeze
27
27
  MOBICASH = "mobicash".freeze
28
+ EMONEY = "emoney".freeze
29
+ FREE = "free".freeze
30
+ WAVE = "wave".freeze
28
31
 
29
32
  # Builds the enum from string
30
33
  # @param [String] The enum value in the form of the string
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0-beta3
11
11
  =end
12
12
 
13
13
  module TransferZero
14
- VERSION = '1.19.5'
14
+ VERSION = '1.21.0'
15
15
  end
@@ -32,25 +32,11 @@ describe 'DocumentsApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for delete_document
36
- # Deleting a document
37
- # Deletes a single document by the Document ID
38
- # @param document_id ID of the document to delete. Example: `/v1/document/bf9ff782-e182-45ac-abea-5bce83ad6670`
39
- # @param [Hash] opts the optional parameters
40
- # @option opts [String] :sender_id Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7`
41
- # @return [DocumentResponse]
42
- describe 'delete_document test' do
43
- it 'should work' do
44
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
- end
46
- end
47
-
48
35
  # unit tests for get_document
49
36
  # Fetching a document
50
37
  # Returns a single document by the Documents ID
51
38
  # @param document_id ID of the document to get. Example: `/v1/documents/bf9ff782-e182-45ac-abea-5bce83ad6670`
52
39
  # @param [Hash] opts the optional parameters
53
- # @option opts [String] :sender_id Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7`
54
40
  # @return [DocumentResponse]
55
41
  describe 'get_document test' do
56
42
  it 'should work' do
@@ -64,7 +50,6 @@ describe 'DocumentsApi' do
64
50
  # @param [Hash] opts the optional parameters
65
51
  # @option opts [Integer] :page The page number to request (defaults to 1)
66
52
  # @option opts [Integer] :per The number of results to load per page (defaults to 10)
67
- # @option opts [String] :sender_id Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7`
68
53
  # @return [DocumentListResponse]
69
54
  describe 'get_documents test' do
70
55
  it 'should work' do
@@ -58,7 +58,7 @@ describe 'PayinMethodsApi' do
58
58
 
59
59
  # unit tests for patch_payin_method
60
60
  # Updating a payin method
61
- # Updates the payin method specified in the URL path.
61
+ # Updates a single payin method by the Payin Method ID
62
62
  # @param payin_method_id ID of the payin method to get. Example: `/v1/payin_methods/bf9ff782-e182-45ac-abea-5bce83ad6670`
63
63
  # @param payin_method
64
64
  # @param [Hash] opts the optional parameters
@@ -74,7 +74,7 @@ describe 'PayinMethodsApi' do
74
74
  # Retries the collection process for the payin method. Please note only payin methods in `error` state can be retried.
75
75
  # @param payin_method_id ID of the payin method whose collection process should be retried Example: `/v1/payin_methods/9d4d7b73-a94c-4979-ab57-09074fd55d33/retry`
76
76
  # @param [Hash] opts the optional parameters
77
- # @return [nil]
77
+ # @return [PayinMethodResponse]
78
78
  describe 'retry_payin_method test' do
79
79
  it 'should work' do
80
80
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -76,7 +76,7 @@ describe 'PayoutMethodsApi' do
76
76
 
77
77
  # unit tests for patch_payout_method
78
78
  # Updating a payout method
79
- # Updates the payout method specified in the URL path.
79
+ # Updates a single payout method by the Payout Method ID
80
80
  # @param payout_method_id ID of the payout method to get. Example: `/v1/payout_methods/bf9ff782-e182-45ac-abea-5bce83ad6670`
81
81
  # @param payout_method
82
82
  # @param [Hash] opts the optional parameters
@@ -34,7 +34,7 @@ describe 'RecipientsApi' do
34
34
 
35
35
  # unit tests for delete_recipient
36
36
  # Cancelling a recipient
37
- # Cancels the payment to the recipient specified in the URL path. Please note only recipients where the `may_cancel` attribute is true can be cancelled.
37
+ # Cancels the payment to the recipient specified in the URL path. Please note recipients where the `may_cancel` attribute is true will be cancelled immediately. If the `may_cancel` attribute is false you can still try to cancel the recipient, however it will only gets cancelled if we will receive a confirmation from our partner that the payment has failed
38
38
  # @param recipient_id ID of recipient to cancel. Example: `/v1/recipients/9d4d7b73-a94c-4979-ab57-09074fd55d33`
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [RecipientResponse]
@@ -76,4 +76,16 @@ describe 'RecipientsApi' do
76
76
  end
77
77
  end
78
78
 
79
+ # unit tests for proof_of_payments
80
+ # Returns list of proof of payments
81
+ # Returns a list of uploaded proof of payment files for a transaction recipient
82
+ # @param recipient_id ID of the recipient for whom the proof of payments will be returned. Example: `/v1/recipients/9d4d7b73-a94c-4979-ab57-09074fd55d33/proof_of_payments`
83
+ # @param [Hash] opts the optional parameters
84
+ # @return [ProofOfPaymentListResponse]
85
+ describe 'proof_of_payments test' do
86
+ it 'should work' do
87
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
88
+ end
89
+ end
90
+
79
91
  end
@@ -74,7 +74,7 @@ describe 'SendersApi' do
74
74
 
75
75
  # unit tests for patch_sender
76
76
  # Updating a sender
77
- # Updates the sender specified in the URL path.
77
+ # Updates a single sender by the Sender ID
78
78
  # @param sender_id ID of the sender to get. Example: `/v1/senders/bf9ff782-e182-45ac-abea-5bce83ad6670`
79
79
  # @param sender_request
80
80
  # @param [Hash] opts the optional parameters
@@ -76,6 +76,7 @@ describe 'TransactionsApi' do
76
76
  # @option opts [Integer] :per The number of results to load per page (defaults to 10)
77
77
  # @option opts [String] :external_id Allows filtering results by `external_id`. Example: `/v1/senders?external_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87`
78
78
  # @option opts [String] :sender_id Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7`
79
+ # @option opts [String] :transactions_type Allows filtering results by `transactions_type`. Example: `/v1/transactions?transactions_type=automated`
79
80
  # @return [TransactionListResponse]
80
81
  describe 'get_transactions test' do
81
82
  it 'should work' do
@@ -44,16 +44,28 @@ describe 'AccountValidationRequest' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "iban"' 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
+
47
53
  describe 'test attribute "phone_number"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
56
  end
51
57
  end
52
58
 
59
+ describe 'test attribute "mobile_provider"' 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
+
53
65
  describe 'test attribute "country"' do
54
66
  it 'should work' do
55
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["NG", "GH"])
68
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["NG", "GH", "SN", "CI"])
57
69
  # validator.allowable_values.each do |value|
58
70
  # expect { @instance.country = value }.not_to raise_error
59
71
  # end
@@ -63,7 +75,7 @@ describe 'AccountValidationRequest' do
63
75
  describe 'test attribute "currency"' do
64
76
  it 'should work' do
65
77
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["NGN", "GHS"])
78
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["NGN", "GHS", "XOF"])
67
79
  # validator.allowable_values.each do |value|
68
80
  # expect { @instance.currency = value }.not_to raise_error
69
81
  # end
@@ -80,12 +80,6 @@ describe 'CurrencyExchange' do
80
80
  end
81
81
  end
82
82
 
83
- describe 'test attribute "margin"' 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
83
  describe 'test attribute "usd_equivalent"' do
90
84
  it 'should work' do
91
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -80,25 +80,25 @@ describe 'CurrencyOpposite' do
80
80
  end
81
81
  end
82
82
 
83
- describe 'test attribute "margin"' do
83
+ describe 'test attribute "usd_equivalent"' do
84
84
  it 'should work' do
85
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
86
  end
87
87
  end
88
88
 
89
- describe 'test attribute "usd_equivalent"' do
89
+ describe 'test attribute "rate"' do
90
90
  it 'should work' do
91
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
92
  end
93
93
  end
94
94
 
95
- describe 'test attribute "rate"' do
95
+ describe 'test attribute "mtm_rate"' do
96
96
  it 'should work' do
97
97
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
98
  end
99
99
  end
100
100
 
101
- describe 'test attribute "mtm_rate"' do
101
+ describe 'test attribute "margin"' do
102
102
  it 'should work' do
103
103
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
104
  end
@@ -80,12 +80,6 @@ describe 'Currency' do
80
80
  end
81
81
  end
82
82
 
83
- describe 'test attribute "margin"' 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
83
  describe 'test attribute "usd_equivalent"' do
90
84
  it 'should work' do
91
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,13 +32,13 @@ describe 'Document' do
32
32
  expect(@instance).to be_instance_of(TransferZero::Document)
33
33
  end
34
34
  end
35
- describe 'test attribute "sender_id"' do
35
+ describe 'test attribute "upload"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "upload"' do
41
+ describe 'test attribute "url"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
@@ -102,6 +102,24 @@ describe 'Document' do
102
102
  end
103
103
  end
104
104
 
105
+ describe 'test attribute "document_id"' do
106
+ it 'should work' do
107
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
+ end
109
+ end
110
+
111
+ describe 'test attribute "expiry_date"' do
112
+ it 'should work' do
113
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
114
+ end
115
+ end
116
+
117
+ describe 'test attribute "source"' do
118
+ it 'should work' do
119
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
120
+ end
121
+ end
122
+
105
123
  describe 'test attribute "errors"' do
106
124
  it 'should work' do
107
125
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -38,7 +38,13 @@ describe 'PayinMethodDetailsMobile' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "send_instructions"' do
41
+ describe 'test attribute "mobile_provider"' 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 "otp"' do
42
48
  it 'should work' do
43
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
50
  end
@@ -50,7 +50,19 @@ describe 'PayinMethodDetails' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "send_instructions"' do
53
+ describe 'test attribute "mobile_provider"' 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 "otp"' 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 "refund_address"' do
54
66
  it 'should work' do
55
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
68
  end
@@ -38,12 +38,36 @@ describe 'PayinMethod' do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "ux_flow"' 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
+
41
47
  describe 'test attribute "in_details"' do
42
48
  it 'should work' do
43
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
50
  end
45
51
  end
46
52
 
53
+ describe 'test attribute "id"' 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 "state"' 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 "state_reason_details"' 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
+
47
71
  describe 'test attribute "out_details"' do
48
72
  it 'should work' do
49
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -56,7 +80,7 @@ describe 'PayinMethod' do
56
80
  end
57
81
  end
58
82
 
59
- describe 'test attribute "provider"' do
83
+ describe 'test attribute "errors"' do
60
84
  it 'should work' do
61
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
86
  end
@@ -86,6 +86,12 @@ describe 'PayoutMethodDetailsKESBank' do
86
86
  end
87
87
  end
88
88
 
89
+ describe 'test attribute "transfer_reason"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
89
95
  describe 'test attribute "identity_card_type"' do
90
96
  it 'should work' do
91
97
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -68,6 +68,12 @@ describe 'PayoutMethodDetailsKESMobile' do
68
68
  end
69
69
  end
70
70
 
71
+ describe 'test attribute "transfer_reason"' 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
+
71
77
  describe 'test attribute "identity_card_type"' do
72
78
  it 'should work' do
73
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -50,4 +50,10 @@ describe 'PayoutMethodDetailsMobile' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "mobile_provider"' 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
+
53
59
  end