transferzero-sdk 1.4.0 → 1.5.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.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -15
  3. data/docs/Document.md +5 -1
  4. data/docs/DocumentsApi.md +74 -2
  5. data/docs/PayinMethod.md +4 -4
  6. data/docs/PayinMethodDetails.md +4 -2
  7. data/docs/PayinMethodDetailsNGNBank.md +4 -2
  8. data/docs/PayoutMethod.md +1 -1
  9. data/docs/RecipientsApi.md +2 -2
  10. data/docs/Transaction.md +1 -1
  11. data/docs/TransactionTraits.md +2 -2
  12. data/example/client.rb +14 -14
  13. data/lib/transferzero-sdk.rb +0 -7
  14. data/lib/transferzero-sdk/api/documents_api.rb +63 -0
  15. data/lib/transferzero-sdk/api/recipients_api.rb +2 -2
  16. data/lib/transferzero-sdk/api_client.rb +1 -1
  17. data/lib/transferzero-sdk/models/currency_exchange.rb +1 -2
  18. data/lib/transferzero-sdk/models/currency_opposite.rb +1 -2
  19. data/lib/transferzero-sdk/models/document.rb +20 -1
  20. data/lib/transferzero-sdk/models/document_webhook.rb +0 -1
  21. data/lib/transferzero-sdk/models/payin_method.rb +4 -4
  22. data/lib/transferzero-sdk/models/payin_method_details.rb +12 -7
  23. data/lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb +11 -6
  24. data/lib/transferzero-sdk/models/payout_method.rb +1 -1
  25. data/lib/transferzero-sdk/models/payout_method_webhook.rb +0 -1
  26. data/lib/transferzero-sdk/models/recipient_webhook.rb +0 -1
  27. data/lib/transferzero-sdk/models/sender.rb +1 -1
  28. data/lib/transferzero-sdk/models/sender_state.rb +1 -0
  29. data/lib/transferzero-sdk/models/sender_webhook.rb +0 -1
  30. data/lib/transferzero-sdk/models/transaction.rb +1 -1
  31. data/lib/transferzero-sdk/models/transaction_traits.rb +3 -3
  32. data/lib/transferzero-sdk/models/transaction_webhook.rb +0 -1
  33. data/lib/transferzero-sdk/models/webhook.rb +1 -1
  34. data/lib/transferzero-sdk/version.rb +1 -1
  35. data/spec/api/account_validation_api_spec.rb +2 -2
  36. data/spec/api/currency_info_api_spec.rb +2 -0
  37. data/spec/api/documents_api_spec.rb +15 -0
  38. data/spec/api/recipients_api_spec.rb +1 -1
  39. data/spec/api/transactions_api_spec.rb +13 -0
  40. data/spec/models/account_validation_request_spec.rb +7 -1
  41. data/spec/models/currency_opposite_spec.rb +6 -0
  42. data/spec/models/document_spec.rb +12 -0
  43. data/spec/models/payin_method_details_ngn_bank_spec.rb +6 -0
  44. data/spec/models/payin_method_details_spec.rb +6 -0
  45. data/spec/models/payout_method_details_spec.rb +7 -1
  46. data/spec/models/payout_method_details_xof_bank_spec.rb +1 -1
  47. data/spec/models/recipient_spec.rb +6 -0
  48. data/spec/models/sender_spec.rb +16 -0
  49. data/transferzero-sdk-1.4.0.gem +0 -0
  50. metadata +3 -32
  51. data/docs/CurrencyExchangeAllOf.md +0 -17
  52. data/docs/CurrencyOppositeAllOf.md +0 -19
  53. data/docs/DocumentWebhookAllOf.md +0 -17
  54. data/docs/PayoutMethodWebhookAllOf.md +0 -17
  55. data/docs/RecipientWebhookAllOf.md +0 -17
  56. data/docs/SenderWebhookAllOf.md +0 -17
  57. data/docs/TransactionWebhookAllOf.md +0 -17
  58. data/lib/transferzero-sdk/models/currency_exchange_all_of.rb +0 -204
  59. data/lib/transferzero-sdk/models/currency_opposite_all_of.rb +0 -212
  60. data/lib/transferzero-sdk/models/document_webhook_all_of.rb +0 -201
  61. data/lib/transferzero-sdk/models/payout_method_webhook_all_of.rb +0 -201
  62. data/lib/transferzero-sdk/models/recipient_webhook_all_of.rb +0 -201
  63. data/lib/transferzero-sdk/models/sender_webhook_all_of.rb +0 -201
  64. data/lib/transferzero-sdk/models/transaction_webhook_all_of.rb +0 -201
  65. data/spec/api_client_spec.rb +0 -189
  66. data/spec/models/currency_exchange_all_of_spec.rb +0 -41
  67. data/spec/models/currency_opposite_all_of_spec.rb +0 -41
  68. data/spec/models/document_webhook_all_of_spec.rb +0 -41
  69. data/spec/models/payout_method_webhook_all_of_spec.rb +0 -41
  70. data/spec/models/recipient_webhook_all_of_spec.rb +0 -41
  71. data/spec/models/sender_webhook_all_of_spec.rb +0 -41
  72. data/spec/models/transaction_webhook_all_of_spec.rb +0 -41
@@ -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. - `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::Bank` - for Senegalese bank account payments. *** Currently in Beta phase *** - `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
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. - `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::Bank` - for Senegalese bank account payments. *** Currently in Beta phase *** - `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://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
@@ -43,7 +43,6 @@ module TransferZero
43
43
  # List of class defined in allOf (OpenAPI v3)
44
44
  def self.openapi_all_of
45
45
  [
46
- :'PayoutMethodWebhookAllOf',
47
46
  :'Webhook'
48
47
  ]
49
48
  end
@@ -43,7 +43,6 @@ module TransferZero
43
43
  # List of class defined in allOf (OpenAPI v3)
44
44
  def self.openapi_all_of
45
45
  [
46
- :'RecipientWebhookAllOf',
47
46
  :'Webhook'
48
47
  ]
49
48
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # This contains the details of the sender. The first time a specific sender is used the full details should be provided. Once a sender is created and is used, the next time you MUST only send the ID of the sender. This is so we can match the same sender across multiple transactions for KYC and audit purposes. Personal Sender Example: ```json { \"country\": \"UG\", \"phone_country\": \"UG\", \"phone_number\": \"752403639\", \"email\": \"example@home.org\", \"first_name\": \"Johnny\", \"last_name\": \"English\", \"city\": \"Kampala\", \"street\": \"Unknown 17-3\", \"address_description\": \"Description of address\", \"postal_code\": \"798983\", \"birth_date\": \"1900-12-31\", \"documents\": [ ], \"ip\": \"127.0.0.1\", \"identification_number\": \"AB123456\", \"identification_type\": \"ID\", \"external_id\": \"806ec63a-a5a7-43cc-9d75-1ee74fbcc026\", \"metadata\": { } } ``` Business Sender Example: ```json { \"type\": \"business\", \"country\": \"UG\", \"phone_country\": \"UG\", \"phone_number\": \"752403639\", \"email\": \"example@home.org\", \"name\": \"MyCompany\", \"city\": \"Kampala\", \"street\": \"Unknown 17-3\", \"postal_code\": \"798983\", \"address_description\": \"Description of address\", \"documents\": [ ], \"ip\": \"127.0.0.1\", \"identification_number\": \"AB123456\", \"identification_type\": \"ID\", \"external_id\": \"806ec63a-a5a7-43cc-9d75-1ee74fbcc026\", \"metadata\": { } } ``` [Sender in the API documentation](https://github.com/transferzero/api-documentation/blob/master/transaction-flow.md#sender)
16
+ # This contains the details of the sender. The first time a specific sender is used the full details should be provided. Once a sender is created and is used, the next time you MUST only send the ID of the sender. This is so we can match the same sender across multiple transactions for KYC and audit purposes. Personal Sender Example: ```json { \"country\": \"UG\", \"phone_country\": \"UG\", \"phone_number\": \"752403639\", \"email\": \"example@home.org\", \"first_name\": \"Johnny\", \"last_name\": \"English\", \"city\": \"Kampala\", \"street\": \"Unknown 17-3\", \"address_description\": \"Description of address\", \"postal_code\": \"798983\", \"birth_date\": \"1900-12-31\", \"documents\": [ ], \"ip\": \"127.0.0.1\", \"identification_number\": \"AB123456\", \"identification_type\": \"ID\", \"external_id\": \"806ec63a-a5a7-43cc-9d75-1ee74fbcc026\", \"metadata\": { } } ``` Business Sender Example: ```json { \"type\": \"business\", \"country\": \"UG\", \"phone_country\": \"UG\", \"phone_number\": \"752403639\", \"email\": \"example@home.org\", \"name\": \"MyCompany\", \"city\": \"Kampala\", \"street\": \"Unknown 17-3\", \"postal_code\": \"798983\", \"address_description\": \"Description of address\", \"documents\": [ ], \"ip\": \"127.0.0.1\", \"identification_number\": \"AB123456\", \"identification_type\": \"ID\", \"external_id\": \"806ec63a-a5a7-43cc-9d75-1ee74fbcc026\", \"metadata\": { } } ``` [Sender in the API documentation](https://docs.transferzero.com/docs/transaction-flow/#sender)
17
17
  class Sender
18
18
  # Type of sender to create - either person or business (defaults to person)
19
19
  attr_accessor :type
@@ -20,6 +20,7 @@ module TransferZero
20
20
  BANNED = "banned".freeze
21
21
  REJECTED = "rejected".freeze
22
22
  DISABLED = "disabled".freeze
23
+ INCOMPLETE = "incomplete".freeze
23
24
 
24
25
  # Builds the enum from string
25
26
  # @param [String] The enum value in the form of the string
@@ -43,7 +43,6 @@ module TransferZero
43
43
  # List of class defined in allOf (OpenAPI v3)
44
44
  def self.openapi_all_of
45
45
  [
46
- :'SenderWebhookAllOf',
47
46
  :'Webhook'
48
47
  ]
49
48
  end
@@ -18,7 +18,7 @@ module TransferZero
18
18
  # The input currency describes what currency the transaction will be paid in (3-character alpha ISO 4217 currency format). For example if you wish to create an EUR to NGN transaction then input currency should be set to EUR.
19
19
  attr_accessor :input_currency
20
20
 
21
- # Allows setting alternative collections, where funding the transaction is done through alternative means and not via account balance. For more information please see [Collections from senders](https://github.com/transferzero/api-documentation/blob/master/additional-features.md#collections-from-senders) in the API documentation
21
+ # Allows setting alternative collections, where funding the transaction is done through alternative means and not via account balance. For more information please see [Collections from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) in the API documentation
22
22
  attr_accessor :payin_methods
23
23
 
24
24
  # Additional metadata to store on the transaction. If you widh to store your local transaction ID, you should add it here inside a `sendRef` field, and we will return this value back to you in the daily transaction reports.
@@ -13,12 +13,12 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # Additional features that are enabled on the transaction. For more details please see [Additional features](https://github.com/transferzero/api-documentation/blob/master/additional-features.md) in our API documentation
16
+ # Additional features that are enabled on the transaction. For more details please see [Additional features](https://docs.transferzero.com/docs/additional-features/) in our API documentation
17
17
  class TransactionTraits
18
- # Enables or disables the auto refund functionality. Please see [Auto cancellation and refund of transactions](https://github.com/transferzero/api-documentation/blob/master/additional-features.md#auto-cancellation-and-refund-of-transactions) for more details
18
+ # Enables or disables the auto refund functionality. Please see [Auto cancellation and refund of transactions](https://docs.transferzero.com/docs/additional-features/#auto-cancellation-and-refund-of-transactions) for more details
19
19
  attr_accessor :auto_refund
20
20
 
21
- # Enabled or disables the name validation functionality. Please see [Name validation in transactions](https://github.com/transferzero/api-documentation/blob/master/additional-features.md#name-validation-in-transactions) for more details
21
+ # Enabled or disables the name validation functionality. Please see [Name validation in transactions](https://docs.transferzero.com/docs/additional-features/#name-validation-in-transactions) for more details
22
22
  attr_accessor :account_validation
23
23
 
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -43,7 +43,6 @@ module TransferZero
43
43
  # List of class defined in allOf (OpenAPI v3)
44
44
  def self.openapi_all_of
45
45
  [
46
- :'TransactionWebhookAllOf',
47
46
  :'Webhook'
48
47
  ]
49
48
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # Whenever objects in the TransferZero API change state, we can optionally send the changed details to a pre-registered webhook address. Webhooks can be created either using the [developer portal](https://developers.transferzero.com), or using the [TransferZero API](#operations-tag-Webhooks). Whenever possible we prefer using webhooks to listen on events (for example when a transaction has been paid out) instead of polling the status, and we expect implementations fully utilising webhooks. Webhooks will always generate a `POST` request to the specified endpoint, and will also include the same authentication headers as described in the [authentication documentation](https://github.com/transferzero/api-documentation/blob/master/authentication.md), so their validity can be verified on the receiver end.
16
+ # Whenever objects in the TransferZero API change state, we can optionally send the changed details to a pre-registered webhook address. Webhooks can be created either using the [developer portal](https://developers.transferzero.com), or using the [TransferZero API](#operations-tag-Webhooks). Whenever possible we prefer using webhooks to listen on events (for example when a transaction has been paid out) instead of polling the status, and we expect implementations fully utilising webhooks. Webhooks will always generate a `POST` request to the specified endpoint, and will also include the same authentication headers as described in the [authentication documentation](https://docs.transferzero.com/docs/authentication), so their validity can be verified on the receiver end.
17
17
  class Webhook
18
18
  # The ID of the webhook that was used to send out this callback
19
19
  attr_accessor :webhook
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0-beta3
11
11
  =end
12
12
 
13
13
  module TransferZero
14
- VERSION = '1.4.0'
14
+ VERSION = '1.5.0'
15
15
  end
@@ -33,8 +33,8 @@ describe 'AccountValidationApi' do
33
33
  end
34
34
 
35
35
  # unit tests for post_account_validations
36
- # Validates the existence of a bank account
37
- # Validates the existence of a bank account and returns the associated customer name
36
+ # Validates the existence of a bank account or a mobile phone number
37
+ # Validates the existence of a bank account or mobile phone number and returns the associated customer name
38
38
  # @param account_validation_request
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [AccountValidationResponse]
@@ -47,6 +47,7 @@ describe 'CurrencyInfoApi' do
47
47
  # Getting a list of possible input currencies
48
48
  # Fetches a list of currencies available to use as the input currency in other API requests. Usually the 3-character alpha ISO 4217 currency code (eg. USD) is used as the identifier. Use this endpoint to determine the current exchange rate from a specific input currency to any output currency that's available.
49
49
  # @param [Hash] opts the optional parameters
50
+ # @option opts [String] :sender_id Allows the scoping of the results by `sender_id` (optional). Example: `/v1/info/currencies/in?sender_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87`
50
51
  # @return [CurrencyExchangeListResponse]
51
52
  describe 'info_currencies_in test' do
52
53
  it 'should work' do
@@ -58,6 +59,7 @@ describe 'CurrencyInfoApi' do
58
59
  # Getting a list of possible output currencies
59
60
  # Fetches a list of currencies available to use as the output currency and their exchange rates against the available input currencies. Usually the 3-character alpha ISO 4217 currency code (eg. USD) is used as the identifier.
60
61
  # @param [Hash] opts the optional parameters
62
+ # @option opts [String] :sender_id Allows the scoping of the results by `sender_id` (optional). Example: `/v1/info/currencies/out?sender_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87`
61
63
  # @return [CurrencyExchangeListResponse]
62
64
  describe 'info_currencies_out test' do
63
65
  it 'should work' do
@@ -32,11 +32,25 @@ 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
+
35
48
  # unit tests for get_document
36
49
  # Fetching a document
37
50
  # Returns a single document by the Documents ID
38
51
  # @param document_id ID of the document to get. Example: `/v1/documents/bf9ff782-e182-45ac-abea-5bce83ad6670`
39
52
  # @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`
40
54
  # @return [DocumentResponse]
41
55
  describe 'get_document test' do
42
56
  it 'should work' do
@@ -50,6 +64,7 @@ describe 'DocumentsApi' do
50
64
  # @param [Hash] opts the optional parameters
51
65
  # @option opts [Integer] :page The page number to request (defaults to 1)
52
66
  # @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`
53
68
  # @return [DocumentListResponse]
54
69
  describe 'get_documents test' do
55
70
  it 'should work' do
@@ -54,7 +54,7 @@ describe 'RecipientsApi' do
54
54
  # @option opts [String] :created_at_to End date to filter recipients by created_at range Allows filtering results by the specified `created_at` timeframe. Example: `/v1/recipients?created_at_from=2018-06-06&created_at_to=2018-06-08`
55
55
  # @option opts [String] :amount_from Minimum amount to filter recipients by amount range. Allows filtering results by the specified `amount` range. When using this filter, the `currency` should also be specified. Example: `/v1/recipients?currency=NGN&amount_from=83.76672339&amount_to=83.76672339`
56
56
  # @option opts [String] :amount_to Max amount to filter recipients by amount range. Allows filtering results by the specified `amount` range. When using this filter, the `currency` should also be specified. Example: `/v1/recipients?currency=NGN&amount_from=83.76672339&amount_to=83.76672339`
57
- # @option opts [Array<String>] :state Allows filtering results by &#x60;state&#x60; of recipient. See [API Documentation - Recipient state](https://github.com/transferzero/api-documentation/blob/master/transaction-flow.md#state-1) for possible states. Example: &#x60;/v1/recipients?state[]&#x3D;error&amp;state[]&#x3D;initial&#x60;
57
+ # @option opts [Array<String>] :state Allows filtering results by &#x60;state&#x60; of recipient. See [API Documentation - Recipient state](https://docs.transferzero.com/docs/transaction-flow/#state) for possible states. Example: &#x60;/v1/recipients?state[]&#x3D;error&amp;state[]&#x3D;initial&#x60;
58
58
  # @option opts [Array<String>] :currency Allows filtering results by &#x60;input_currency&#x60;. Additionally required when filtering by an amount range Example: &#x60;/v1/recipients?currency[]&#x3D;KES&amp;currency[]&#x3D;NGN&#x60;
59
59
  # @return [RecipientListResponse]
60
60
  describe 'get_recipients test' do
@@ -44,6 +44,18 @@ describe 'TransactionsApi' do
44
44
  end
45
45
  end
46
46
 
47
+ # unit tests for create_and_fund_transaction
48
+ # Creates a new transaction and funds it from account balance
49
+ # This endpoint creates a transaction and funds it from an account balance. You must ensure that you have established an account with us in the pay-in currency of the transactions you wish to create, and that this account is sufficently funded, before calling this endpoint. Note that the &lt;pre&gt;external_id&lt;/pre&gt; field is required for requests to this endpoint.
50
+ # @param transaction_request
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [TransactionResponse]
53
+ describe 'create_and_fund_transaction test' 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
+
47
59
  # unit tests for get_transaction
48
60
  # Fetch a single transaction
49
61
  # Finds and returns a Transaction created by the requesting API key, using the provided Transaction ID.
@@ -63,6 +75,7 @@ describe 'TransactionsApi' do
63
75
  # @option opts [Integer] :page The page number to request (defaults to 1)
64
76
  # @option opts [Integer] :per The number of results to load per page (defaults to 10)
65
77
  # @option opts [String] :external_id Allows filtering results by &#x60;external_id&#x60;. Example: &#x60;/v1/senders?external_id&#x3D;26ec8517-2f0d-48c0-b74f-0bccb9ab3a87&#x60;
78
+ # @option opts [String] :sender_id Allows filtering results by &#x60;sender_id&#x60;. Example: &#x60;/v1/transactions?sender_id&#x3D;b41d3cb7-6c54-4245-85fc-8e30690eb0f7&#x60;
66
79
  # @return [TransactionListResponse]
67
80
  describe 'get_transactions test' do
68
81
  it 'should work' do
@@ -44,6 +44,12 @@ describe 'AccountValidationRequest' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "phone_number"' 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 "country"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -67,7 +73,7 @@ describe 'AccountValidationRequest' do
67
73
  describe 'test attribute "method"' do
68
74
  it 'should work' do
69
75
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bank"])
76
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bank", "mobile"])
71
77
  # validator.allowable_values.each do |value|
72
78
  # expect { @instance.method = value }.not_to raise_error
73
79
  # end
@@ -98,4 +98,10 @@ describe 'CurrencyOpposite' do
98
98
  end
99
99
  end
100
100
 
101
+ describe 'test attribute "mtm_rate"' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
101
107
  end
@@ -32,6 +32,12 @@ 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
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
+
35
41
  describe 'test attribute "upload"' do
36
42
  it 'should work' do
37
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -78,6 +84,12 @@ describe 'Document' do
78
84
  end
79
85
  end
80
86
 
87
+ describe 'test attribute "document_type"' do
88
+ it 'should work' do
89
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
+ end
91
+ end
92
+
81
93
  describe 'test attribute "issuing_country"' do
82
94
  it 'should work' do
83
95
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,6 +32,12 @@ describe 'PayinMethodDetailsNGNBank' do
32
32
  expect(@instance).to be_instance_of(TransferZero::PayinMethodDetailsNGNBank)
33
33
  end
34
34
  end
35
+ describe 'test attribute "payment_method"' 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
+
35
41
  describe 'test attribute "redirect_url"' do
36
42
  it 'should work' do
37
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,6 +32,12 @@ describe 'PayinMethodDetails' do
32
32
  expect(@instance).to be_instance_of(TransferZero::PayinMethodDetails)
33
33
  end
34
34
  end
35
+ describe 'test attribute "payment_method"' 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
+
35
41
  describe 'test attribute "redirect_url"' do
36
42
  it 'should work' do
37
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -74,13 +74,19 @@ describe 'PayoutMethodDetails' do
74
74
  end
75
75
  end
76
76
 
77
+ describe 'test attribute "iban"' 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
+
77
83
  describe 'test attribute "bank_name"' do
78
84
  it 'should work' do
79
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
86
  end
81
87
  end
82
88
 
83
- describe 'test attribute "iban"' do
89
+ describe 'test attribute "bank_country"' do
84
90
  it 'should work' do
85
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
92
  end
@@ -44,7 +44,7 @@ describe 'PayoutMethodDetailsXOFBank' do
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "bank_account"' do
47
+ describe 'test attribute "iban"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
@@ -68,6 +68,12 @@ describe 'Recipient' do
68
68
  end
69
69
  end
70
70
 
71
+ describe 'test attribute "retriable"' 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 "input_usd_amount"' do
72
78
  it 'should work' do
73
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -156,6 +156,22 @@ describe 'Sender' do
156
156
  end
157
157
  end
158
158
 
159
+ describe 'test attribute "identification_number"' do
160
+ it 'should work' do
161
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
+ end
163
+ end
164
+
165
+ describe 'test attribute "identification_type"' do
166
+ it 'should work' do
167
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
168
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["DL", "PP", "ID", "OT"])
169
+ # validator.allowable_values.each do |value|
170
+ # expect { @instance.identification_type = value }.not_to raise_error
171
+ # end
172
+ end
173
+ end
174
+
159
175
  describe 'test attribute "documents"' do
160
176
  it 'should work' do
161
177
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
Binary file
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.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-16 00:00:00.000000000 Z
11
+ date: 2020-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -226,12 +226,10 @@ files:
226
226
  - docs/ApiLogResponse.md
227
227
  - docs/Currency.md
228
228
  - docs/CurrencyExchange.md
229
- - docs/CurrencyExchangeAllOf.md
230
229
  - docs/CurrencyExchangeListResponse.md
231
230
  - docs/CurrencyInfoApi.md
232
231
  - docs/CurrencyListResponse.md
233
232
  - docs/CurrencyOpposite.md
234
- - docs/CurrencyOppositeAllOf.md
235
233
  - docs/Debit.md
236
234
  - docs/DebitListRequest.md
237
235
  - docs/DebitListResponse.md
@@ -243,7 +241,6 @@ files:
243
241
  - docs/DocumentRequest.md
244
242
  - docs/DocumentResponse.md
245
243
  - docs/DocumentWebhook.md
246
- - docs/DocumentWebhookAllOf.md
247
244
  - docs/DocumentsApi.md
248
245
  - docs/ErrorStatus.md
249
246
  - docs/FieldDescription.md
@@ -279,7 +276,6 @@ files:
279
276
  - docs/PayoutMethodRequest.md
280
277
  - docs/PayoutMethodResponse.md
281
278
  - docs/PayoutMethodWebhook.md
282
- - docs/PayoutMethodWebhookAllOf.md
283
279
  - docs/PayoutMethodsApi.md
284
280
  - docs/Recipient.md
285
281
  - docs/RecipientListResponse.md
@@ -287,7 +283,6 @@ files:
287
283
  - docs/RecipientResponse.md
288
284
  - docs/RecipientState.md
289
285
  - docs/RecipientWebhook.md
290
- - docs/RecipientWebhookAllOf.md
291
286
  - docs/RecipientsApi.md
292
287
  - docs/Sender.md
293
288
  - docs/SenderListResponse.md
@@ -297,7 +292,6 @@ files:
297
292
  - docs/SenderResponseMeta.md
298
293
  - docs/SenderState.md
299
294
  - docs/SenderWebhook.md
300
- - docs/SenderWebhookAllOf.md
301
295
  - docs/SendersApi.md
302
296
  - docs/Transaction.md
303
297
  - docs/TransactionListResponse.md
@@ -308,7 +302,6 @@ files:
308
302
  - docs/TransactionState.md
309
303
  - docs/TransactionTraits.md
310
304
  - docs/TransactionWebhook.md
311
- - docs/TransactionWebhookAllOf.md
312
305
  - docs/TransactionsApi.md
313
306
  - docs/ValidationErrorDescription.md
314
307
  - docs/Webhook.md
@@ -356,11 +349,9 @@ files:
356
349
  - lib/transferzero-sdk/models/api_log_response.rb
357
350
  - lib/transferzero-sdk/models/currency.rb
358
351
  - lib/transferzero-sdk/models/currency_exchange.rb
359
- - lib/transferzero-sdk/models/currency_exchange_all_of.rb
360
352
  - lib/transferzero-sdk/models/currency_exchange_list_response.rb
361
353
  - lib/transferzero-sdk/models/currency_list_response.rb
362
354
  - lib/transferzero-sdk/models/currency_opposite.rb
363
- - lib/transferzero-sdk/models/currency_opposite_all_of.rb
364
355
  - lib/transferzero-sdk/models/debit.rb
365
356
  - lib/transferzero-sdk/models/debit_list_request.rb
366
357
  - lib/transferzero-sdk/models/debit_list_response.rb
@@ -372,7 +363,6 @@ files:
372
363
  - lib/transferzero-sdk/models/document_request.rb
373
364
  - lib/transferzero-sdk/models/document_response.rb
374
365
  - lib/transferzero-sdk/models/document_webhook.rb
375
- - lib/transferzero-sdk/models/document_webhook_all_of.rb
376
366
  - lib/transferzero-sdk/models/error_status.rb
377
367
  - lib/transferzero-sdk/models/field_description.rb
378
368
  - lib/transferzero-sdk/models/field_select_validation.rb
@@ -405,14 +395,12 @@ files:
405
395
  - lib/transferzero-sdk/models/payout_method_request.rb
406
396
  - lib/transferzero-sdk/models/payout_method_response.rb
407
397
  - lib/transferzero-sdk/models/payout_method_webhook.rb
408
- - lib/transferzero-sdk/models/payout_method_webhook_all_of.rb
409
398
  - lib/transferzero-sdk/models/recipient.rb
410
399
  - lib/transferzero-sdk/models/recipient_list_response.rb
411
400
  - lib/transferzero-sdk/models/recipient_request.rb
412
401
  - lib/transferzero-sdk/models/recipient_response.rb
413
402
  - lib/transferzero-sdk/models/recipient_state.rb
414
403
  - lib/transferzero-sdk/models/recipient_webhook.rb
415
- - lib/transferzero-sdk/models/recipient_webhook_all_of.rb
416
404
  - lib/transferzero-sdk/models/sender.rb
417
405
  - lib/transferzero-sdk/models/sender_list_response.rb
418
406
  - lib/transferzero-sdk/models/sender_request.rb
@@ -421,7 +409,6 @@ files:
421
409
  - lib/transferzero-sdk/models/sender_response_meta.rb
422
410
  - lib/transferzero-sdk/models/sender_state.rb
423
411
  - lib/transferzero-sdk/models/sender_webhook.rb
424
- - lib/transferzero-sdk/models/sender_webhook_all_of.rb
425
412
  - lib/transferzero-sdk/models/transaction.rb
426
413
  - lib/transferzero-sdk/models/transaction_list_response.rb
427
414
  - lib/transferzero-sdk/models/transaction_request.rb
@@ -431,7 +418,6 @@ files:
431
418
  - lib/transferzero-sdk/models/transaction_state.rb
432
419
  - lib/transferzero-sdk/models/transaction_traits.rb
433
420
  - lib/transferzero-sdk/models/transaction_webhook.rb
434
- - lib/transferzero-sdk/models/transaction_webhook_all_of.rb
435
421
  - lib/transferzero-sdk/models/validation_error_description.rb
436
422
  - lib/transferzero-sdk/models/webhook.rb
437
423
  - lib/transferzero-sdk/models/webhook_definition.rb
@@ -459,7 +445,6 @@ files:
459
445
  - spec/api/senders_api_spec.rb
460
446
  - spec/api/transactions_api_spec.rb
461
447
  - spec/api/webhooks_api_spec.rb
462
- - spec/api_client_spec.rb
463
448
  - spec/configuration_spec.rb
464
449
  - spec/models/account_list_response_spec.rb
465
450
  - spec/models/account_meta_spec.rb
@@ -472,11 +457,9 @@ files:
472
457
  - spec/models/api_log_list_response_spec.rb
473
458
  - spec/models/api_log_response_spec.rb
474
459
  - spec/models/api_log_spec.rb
475
- - spec/models/currency_exchange_all_of_spec.rb
476
460
  - spec/models/currency_exchange_list_response_spec.rb
477
461
  - spec/models/currency_exchange_spec.rb
478
462
  - spec/models/currency_list_response_spec.rb
479
- - spec/models/currency_opposite_all_of_spec.rb
480
463
  - spec/models/currency_opposite_spec.rb
481
464
  - spec/models/currency_spec.rb
482
465
  - spec/models/debit_list_request_spec.rb
@@ -489,7 +472,6 @@ files:
489
472
  - spec/models/document_request_spec.rb
490
473
  - spec/models/document_response_spec.rb
491
474
  - spec/models/document_spec.rb
492
- - spec/models/document_webhook_all_of_spec.rb
493
475
  - spec/models/document_webhook_spec.rb
494
476
  - spec/models/error_status_spec.rb
495
477
  - spec/models/field_description_spec.rb
@@ -522,14 +504,12 @@ files:
522
504
  - spec/models/payout_method_request_spec.rb
523
505
  - spec/models/payout_method_response_spec.rb
524
506
  - spec/models/payout_method_spec.rb
525
- - spec/models/payout_method_webhook_all_of_spec.rb
526
507
  - spec/models/payout_method_webhook_spec.rb
527
508
  - spec/models/recipient_list_response_spec.rb
528
509
  - spec/models/recipient_request_spec.rb
529
510
  - spec/models/recipient_response_spec.rb
530
511
  - spec/models/recipient_spec.rb
531
512
  - spec/models/recipient_state_spec.rb
532
- - spec/models/recipient_webhook_all_of_spec.rb
533
513
  - spec/models/recipient_webhook_spec.rb
534
514
  - spec/models/sender_list_response_spec.rb
535
515
  - spec/models/sender_request_spec.rb
@@ -538,7 +518,6 @@ files:
538
518
  - spec/models/sender_response_spec.rb
539
519
  - spec/models/sender_spec.rb
540
520
  - spec/models/sender_state_spec.rb
541
- - spec/models/sender_webhook_all_of_spec.rb
542
521
  - spec/models/sender_webhook_spec.rb
543
522
  - spec/models/transaction_list_response_spec.rb
544
523
  - spec/models/transaction_request_spec.rb
@@ -548,7 +527,6 @@ files:
548
527
  - spec/models/transaction_spec.rb
549
528
  - spec/models/transaction_state_spec.rb
550
529
  - spec/models/transaction_traits_spec.rb
551
- - spec/models/transaction_webhook_all_of_spec.rb
552
530
  - spec/models/transaction_webhook_spec.rb
553
531
  - spec/models/validation_error_description_spec.rb
554
532
  - spec/models/webhook_definition_event_list_response_spec.rb
@@ -564,6 +542,7 @@ files:
564
542
  - spec/models/webhook_log_spec.rb
565
543
  - spec/models/webhook_spec.rb
566
544
  - spec/spec_helper.rb
545
+ - transferzero-sdk-1.4.0.gem
567
546
  - transferzero-sdk.gemspec
568
547
  homepage: https://github.com/transferzero/transferzero-sdk-ruby
569
548
  licenses:
@@ -602,7 +581,6 @@ test_files:
602
581
  - spec/api/accounts_api_spec.rb
603
582
  - spec/api/payment_methods_api_spec.rb
604
583
  - spec/api/account_debits_api_spec.rb
605
- - spec/api_client_spec.rb
606
584
  - spec/configuration_spec.rb
607
585
  - spec/models/webhook_definition_response_spec.rb
608
586
  - spec/models/sender_spec.rb
@@ -616,7 +594,6 @@ test_files:
616
594
  - spec/models/webhook_log_metadata_response_spec.rb
617
595
  - spec/models/currency_list_response_spec.rb
618
596
  - spec/models/debit_response_spec.rb
619
- - spec/models/currency_opposite_all_of_spec.rb
620
597
  - spec/models/webhook_definition_event_list_response_spec.rb
621
598
  - spec/models/debit_spec.rb
622
599
  - spec/models/transaction_response_meta_spec.rb
@@ -625,23 +602,19 @@ test_files:
625
602
  - spec/models/webhook_definition_request_spec.rb
626
603
  - spec/models/sender_state_spec.rb
627
604
  - spec/models/payout_method_request_spec.rb
628
- - spec/models/document_webhook_all_of_spec.rb
629
605
  - spec/models/webhook_log_metadata_request_spec.rb
630
606
  - spec/models/recipient_webhook_spec.rb
631
- - spec/models/recipient_webhook_all_of_spec.rb
632
607
  - spec/models/api_log_list_response_spec.rb
633
608
  - spec/models/debit_list_response_spec.rb
634
609
  - spec/models/pagination_meta_spec.rb
635
610
  - spec/models/account_validation_result_spec.rb
636
611
  - spec/models/debit_request_wrapper_spec.rb
637
612
  - spec/models/document_webhook_spec.rb
638
- - spec/models/transaction_webhook_all_of_spec.rb
639
613
  - spec/models/payout_method_gender_enum_spec.rb
640
614
  - spec/models/transaction_list_response_spec.rb
641
615
  - spec/models/payin_method_spec.rb
642
616
  - spec/models/sender_response_spec.rb
643
617
  - spec/models/payin_method_details_mobile_spec.rb
644
- - spec/models/currency_exchange_all_of_spec.rb
645
618
  - spec/models/payout_method_details_mad_cash_spec.rb
646
619
  - spec/models/account_validation_response_spec.rb
647
620
  - spec/models/api_log_spec.rb
@@ -652,7 +625,6 @@ test_files:
652
625
  - spec/models/transaction_webhook_spec.rb
653
626
  - spec/models/payout_method_details_xof_bank_spec.rb
654
627
  - spec/models/webhook_log_metadata_spec.rb
655
- - spec/models/sender_webhook_all_of_spec.rb
656
628
  - spec/models/account_list_response_spec.rb
657
629
  - spec/models/document_list_response_spec.rb
658
630
  - spec/models/transaction_spec.rb
@@ -679,7 +651,6 @@ test_files:
679
651
  - spec/models/recipient_list_response_spec.rb
680
652
  - spec/models/account_response_spec.rb
681
653
  - spec/models/recipient_request_spec.rb
682
- - spec/models/payout_method_webhook_all_of_spec.rb
683
654
  - spec/models/payout_method_webhook_spec.rb
684
655
  - spec/models/sender_response_meta_spec.rb
685
656
  - spec/models/payout_method_response_spec.rb