transferzero-sdk 1.18.0 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +19 -16
  3. data/README.md +12 -4
  4. data/docs/Document.md +2 -0
  5. data/docs/PayinMethod.md +12 -4
  6. data/docs/PayinMethodDetails.md +5 -5
  7. data/docs/PayinMethodDetailsMobile.md +3 -3
  8. data/docs/PayinMethodDetailsNGNBank.md +2 -2
  9. data/docs/PayinMethodResponse.md +17 -0
  10. data/docs/PayinMethodState.md +16 -0
  11. data/docs/PayinMethodUxFlow.md +16 -0
  12. data/docs/PayinMethodsApi.md +256 -0
  13. data/docs/PayoutMethodDetails.md +1 -1
  14. data/docs/PayoutMethodDetailsXOFCash.md +1 -1
  15. data/docs/RecipientStateReasonDetails.md +3 -3
  16. data/docs/Sender.md +2 -0
  17. data/docs/StateReasonDetails.md +23 -0
  18. data/lib/transferzero-sdk/api/payin_methods_api.rb +244 -0
  19. data/lib/transferzero-sdk/api_client.rb +1 -1
  20. data/lib/transferzero-sdk/models/document.rb +11 -1
  21. data/lib/transferzero-sdk/models/payin_method.rb +47 -9
  22. data/lib/transferzero-sdk/models/payin_method_details.rb +9 -15
  23. data/lib/transferzero-sdk/models/payin_method_details_mobile.rb +8 -14
  24. data/lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb +2 -2
  25. data/lib/transferzero-sdk/models/payin_method_response.rb +202 -0
  26. data/lib/transferzero-sdk/models/payin_method_state.rb +39 -0
  27. data/lib/transferzero-sdk/models/payin_method_ux_flow.rb +31 -0
  28. data/lib/transferzero-sdk/models/payout_method_details.rb +5 -0
  29. data/lib/transferzero-sdk/models/payout_method_details_xof_cash.rb +6 -1
  30. data/lib/transferzero-sdk/models/recipient_state_reason_details.rb +21 -2
  31. data/lib/transferzero-sdk/models/sender.rb +11 -1
  32. data/lib/transferzero-sdk/models/state_reason_details.rb +235 -0
  33. data/lib/transferzero-sdk/version.rb +1 -1
  34. data/lib/transferzero-sdk.rb +5 -0
  35. data/spec/api/payin_methods_api_spec.rb +84 -0
  36. data/spec/models/payin_method_response_spec.rb +41 -0
  37. data/spec/models/payin_method_state_spec.rb +35 -0
  38. data/spec/models/payin_method_ux_flow_spec.rb +35 -0
  39. data/spec/models/state_reason_details_spec.rb +59 -0
  40. metadata +32 -13
  41. data/transferzero-sdk-1.16.1.gem +0 -0
@@ -0,0 +1,84 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for TransferZero::PayinMethodsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'PayinMethodsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = TransferZero::PayinMethodsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PayinMethodsApi' do
30
+ it 'should create an instance of PayinMethodsApi' do
31
+ expect(@api_instance).to be_instance_of(TransferZero::PayinMethodsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for delete_payin_method
36
+ # Deleting a payin method
37
+ # Initiates a cancellation request for the specified payin method
38
+ # @param payin_method_id ID of the payin method to delete. Example: `/v1/payin_methods/bf9ff782-e182-45ac-abea-5bce83ad6670`
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [PayinMethodResponse]
41
+ describe 'delete_payin_method test' 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
+ # unit tests for get_payin_method
48
+ # Fetching a payin method
49
+ # Show a payin method by id
50
+ # @param payin_method_id ID of the payin method to get. Example: `/v1/payin_methods/bf9ff782-e182-45ac-abea-5bce83ad6670`
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [PayinMethodResponse]
53
+ describe 'get_payin_method 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
+
59
+ # unit tests for patch_payin_method
60
+ # Updating a payin method
61
+ # Updates the payin method specified in the URL path.
62
+ # @param payin_method_id ID of the payin method to get. Example: `/v1/payin_methods/bf9ff782-e182-45ac-abea-5bce83ad6670`
63
+ # @param payin_method
64
+ # @param [Hash] opts the optional parameters
65
+ # @return [PayinMethodResponse]
66
+ describe 'patch_payin_method test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
+ end
70
+ end
71
+
72
+ # unit tests for retry_payin_method
73
+ # Retries PayinMethod
74
+ # Retries the collection process for the payin method. Please note only payin methods in `error` state can be retried.
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
+ # @param [Hash] opts the optional parameters
77
+ # @return [nil]
78
+ describe 'retry_payin_method test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TransferZero::PayinMethodResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayinMethodResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayinMethodResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayinMethodResponse' do
31
+ it 'should create an instance of PayinMethodResponse' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayinMethodResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "object"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,35 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TransferZero::PayinMethodState
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayinMethodState' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayinMethodState.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayinMethodState' do
31
+ it 'should create an instance of PayinMethodState' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayinMethodState)
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,35 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TransferZero::PayinMethodUxFlow
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayinMethodUxFlow' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayinMethodUxFlow.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayinMethodUxFlow' do
31
+ it 'should create an instance of PayinMethodUxFlow' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayinMethodUxFlow)
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,59 @@
1
+ =begin
2
+ #TransferZero API
3
+
4
+ #Reference documentation for the TransferZero API V1
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TransferZero::StateReasonDetails
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'StateReasonDetails' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::StateReasonDetails.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of StateReasonDetails' do
31
+ it 'should create an instance of StateReasonDetails' do
32
+ expect(@instance).to be_instance_of(TransferZero::StateReasonDetails)
33
+ end
34
+ end
35
+ describe 'test attribute "code"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "category"' 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 "messages"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "description"' 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
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transferzero-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0
4
+ version: 1.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-14 00:00:00.000000000 Z
11
+ date: 2022-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -62,22 +62,22 @@ dependencies:
62
62
  name: rspec
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '3.6'
68
65
  - - ">="
69
66
  - !ruby/object:Gem::Version
70
67
  version: 3.6.0
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '3.6'
71
71
  type: :development
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - "~>"
76
- - !ruby/object:Gem::Version
77
- version: '3.6'
78
75
  - - ">="
79
76
  - !ruby/object:Gem::Version
80
77
  version: 3.6.0
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '3.6'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: vcr
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -256,6 +256,10 @@ files:
256
256
  - docs/PayinMethodDetailsMobile.md
257
257
  - docs/PayinMethodDetailsNGNBank.md
258
258
  - docs/PayinMethodRequest.md
259
+ - docs/PayinMethodResponse.md
260
+ - docs/PayinMethodState.md
261
+ - docs/PayinMethodUxFlow.md
262
+ - docs/PayinMethodsApi.md
259
263
  - docs/PaymentMethod.md
260
264
  - docs/PaymentMethodListResponse.md
261
265
  - docs/PaymentMethodOpposite.md
@@ -315,6 +319,7 @@ files:
315
319
  - docs/SenderState.md
316
320
  - docs/SenderWebhook.md
317
321
  - docs/SendersApi.md
322
+ - docs/StateReasonDetails.md
318
323
  - docs/Transaction.md
319
324
  - docs/TransactionListResponse.md
320
325
  - docs/TransactionRequest.md
@@ -349,6 +354,7 @@ files:
349
354
  - lib/transferzero-sdk/api/currency_info_api.rb
350
355
  - lib/transferzero-sdk/api/documents_api.rb
351
356
  - lib/transferzero-sdk/api/logs_api.rb
357
+ - lib/transferzero-sdk/api/payin_methods_api.rb
352
358
  - lib/transferzero-sdk/api/payment_methods_api.rb
353
359
  - lib/transferzero-sdk/api/payout_methods_api.rb
354
360
  - lib/transferzero-sdk/api/recipients_api.rb
@@ -397,6 +403,9 @@ files:
397
403
  - lib/transferzero-sdk/models/payin_method_details_mobile.rb
398
404
  - lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb
399
405
  - lib/transferzero-sdk/models/payin_method_request.rb
406
+ - lib/transferzero-sdk/models/payin_method_response.rb
407
+ - lib/transferzero-sdk/models/payin_method_state.rb
408
+ - lib/transferzero-sdk/models/payin_method_ux_flow.rb
400
409
  - lib/transferzero-sdk/models/payment_method.rb
401
410
  - lib/transferzero-sdk/models/payment_method_list_response.rb
402
411
  - lib/transferzero-sdk/models/payment_method_opposite.rb
@@ -452,6 +461,7 @@ files:
452
461
  - lib/transferzero-sdk/models/sender_response_meta.rb
453
462
  - lib/transferzero-sdk/models/sender_state.rb
454
463
  - lib/transferzero-sdk/models/sender_webhook.rb
464
+ - lib/transferzero-sdk/models/state_reason_details.rb
455
465
  - lib/transferzero-sdk/models/transaction.rb
456
466
  - lib/transferzero-sdk/models/transaction_list_response.rb
457
467
  - lib/transferzero-sdk/models/transaction_request.rb
@@ -482,6 +492,7 @@ files:
482
492
  - spec/api/currency_info_api_spec.rb
483
493
  - spec/api/documents_api_spec.rb
484
494
  - spec/api/logs_api_spec.rb
495
+ - spec/api/payin_methods_api_spec.rb
485
496
  - spec/api/payment_methods_api_spec.rb
486
497
  - spec/api/payout_methods_api_spec.rb
487
498
  - spec/api/recipients_api_spec.rb
@@ -527,7 +538,10 @@ files:
527
538
  - spec/models/payin_method_details_ngn_bank_spec.rb
528
539
  - spec/models/payin_method_details_spec.rb
529
540
  - spec/models/payin_method_request_spec.rb
541
+ - spec/models/payin_method_response_spec.rb
530
542
  - spec/models/payin_method_spec.rb
543
+ - spec/models/payin_method_state_spec.rb
544
+ - spec/models/payin_method_ux_flow_spec.rb
531
545
  - spec/models/payment_method_list_response_spec.rb
532
546
  - spec/models/payment_method_opposite_spec.rb
533
547
  - spec/models/payment_method_spec.rb
@@ -583,6 +597,7 @@ files:
583
597
  - spec/models/sender_spec.rb
584
598
  - spec/models/sender_state_spec.rb
585
599
  - spec/models/sender_webhook_spec.rb
600
+ - spec/models/state_reason_details_spec.rb
586
601
  - spec/models/transaction_list_response_spec.rb
587
602
  - spec/models/transaction_request_spec.rb
588
603
  - spec/models/transaction_response_existing_spec.rb
@@ -606,13 +621,12 @@ files:
606
621
  - spec/models/webhook_log_spec.rb
607
622
  - spec/models/webhook_spec.rb
608
623
  - spec/spec_helper.rb
609
- - transferzero-sdk-1.16.1.gem
610
624
  - transferzero-sdk.gemspec
611
625
  homepage: https://github.com/transferzero/transferzero-sdk-ruby
612
626
  licenses:
613
627
  - MIT
614
628
  metadata: {}
615
- post_install_message:
629
+ post_install_message:
616
630
  rdoc_options: []
617
631
  require_paths:
618
632
  - lib
@@ -627,8 +641,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
627
641
  - !ruby/object:Gem::Version
628
642
  version: '0'
629
643
  requirements: []
630
- rubygems_version: 3.1.4
631
- signing_key:
644
+ rubygems_version: 3.0.3
645
+ signing_key:
632
646
  specification_version: 4
633
647
  summary: TransferZero API Ruby Gem
634
648
  test_files:
@@ -637,6 +651,7 @@ test_files:
637
651
  - spec/api/transactions_api_spec.rb
638
652
  - spec/api/webhooks_api_spec.rb
639
653
  - spec/api/recipients_api_spec.rb
654
+ - spec/api/payin_methods_api_spec.rb
640
655
  - spec/api/senders_api_spec.rb
641
656
  - spec/api/account_validation_api_spec.rb
642
657
  - spec/api/payout_methods_api_spec.rb
@@ -689,6 +704,7 @@ test_files:
689
704
  - spec/models/account_validation_response_spec.rb
690
705
  - spec/models/payout_method_details_btc_spec.rb
691
706
  - spec/models/api_log_spec.rb
707
+ - spec/models/payin_method_state_spec.rb
692
708
  - spec/models/document_response_spec.rb
693
709
  - spec/models/currency_exchange_list_response_spec.rb
694
710
  - spec/models/validation_error_description_spec.rb
@@ -700,9 +716,11 @@ test_files:
700
716
  - spec/models/account_list_response_spec.rb
701
717
  - spec/models/document_list_response_spec.rb
702
718
  - spec/models/transaction_spec.rb
719
+ - spec/models/payin_method_ux_flow_spec.rb
703
720
  - spec/models/field_select_validation_spec.rb
704
721
  - spec/models/account_meta_spec.rb
705
722
  - spec/models/payout_method_details_kes_bank_spec.rb
723
+ - spec/models/payin_method_response_spec.rb
706
724
  - spec/models/account_validation_request_spec.rb
707
725
  - spec/models/sender_response_existing_spec.rb
708
726
  - spec/models/sender_request_spec.rb
@@ -753,6 +771,7 @@ test_files:
753
771
  - spec/models/transaction_request_spec.rb
754
772
  - spec/models/payout_method_details_xof_mobile_spec.rb
755
773
  - spec/models/sender_list_response_spec.rb
774
+ - spec/models/state_reason_details_spec.rb
756
775
  - spec/models/payout_method_details_ghs_cash_spec.rb
757
776
  - spec/models/payout_method_transfer_reason_enum_spec.rb
758
777
  - spec/models/payout_method_cash_provider_enum_spec.rb
Binary file