bitpesa-sdk 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +1 -0
- data/Gemfile.lock +5 -4
- data/README.md +19 -7
- data/docs/Sender.md +1 -0
- data/docs/SenderResponse.md +1 -0
- data/docs/SenderResponseExisting.md +8 -0
- data/docs/SenderResponseMeta.md +8 -0
- data/docs/SendersApi.md +2 -0
- data/docs/Transaction.md +1 -0
- data/docs/TransactionResponse.md +1 -0
- data/docs/TransactionResponseExisting.md +9 -0
- data/docs/TransactionResponseMeta.md +8 -0
- data/docs/TransactionsApi.md +2 -0
- data/example/client.rb +47 -9
- data/lib/bitpesa-sdk.rb +4 -0
- data/lib/bitpesa-sdk/api/senders_api.rb +3 -0
- data/lib/bitpesa-sdk/api/transactions_api.rb +3 -0
- data/lib/bitpesa-sdk/api_client.rb +1 -1
- data/lib/bitpesa-sdk/models/sender.rb +12 -2
- data/lib/bitpesa-sdk/models/sender_response.rb +13 -4
- data/lib/bitpesa-sdk/models/sender_response_existing.rb +195 -0
- data/lib/bitpesa-sdk/models/sender_response_meta.rb +195 -0
- data/lib/bitpesa-sdk/models/transaction.rb +11 -1
- data/lib/bitpesa-sdk/models/transaction_response.rb +13 -4
- data/lib/bitpesa-sdk/models/transaction_response_existing.rb +204 -0
- data/lib/bitpesa-sdk/models/transaction_response_meta.rb +195 -0
- data/lib/bitpesa-sdk/version.rb +1 -1
- data/spec/api/account_debits_api_spec.rb +17 -15
- data/spec/api/account_validation_api_spec.rb +10 -10
- data/spec/api/accounts_api_spec.rb +13 -13
- data/spec/api/api_logs_api_spec.rb +15 -11
- data/spec/api/currency_info_api_spec.rb +13 -13
- data/spec/api/documents_api_spec.rb +16 -14
- data/spec/api/logs_api_spec.rb +15 -11
- data/spec/api/payment_methods_api_spec.rb +11 -11
- data/spec/api/payout_methods_api_spec.rb +55 -11
- data/spec/api/recipients_api_spec.rb +23 -18
- data/spec/api/senders_api_spec.rb +26 -21
- data/spec/api/transactions_api_spec.rb +48 -22
- data/spec/api/webhooks_api_spec.rb +20 -20
- data/spec/api_client_spec.rb +52 -90
- data/spec/configuration_spec.rb +13 -13
- data/spec/models/account_meta_spec.rb +5 -6
- data/spec/models/api_log_spec.rb +16 -17
- data/spec/models/currency_spec.rb +27 -16
- data/spec/models/debit_request_spec.rb +9 -34
- data/spec/models/debit_spec.rb +42 -13
- data/spec/models/document_request_spec.rb +9 -56
- data/spec/models/document_spec.rb +71 -8
- data/spec/models/pagination_spec.rb +33 -10
- data/spec/models/payin_method_details_mobile_spec.rb +6 -7
- data/spec/models/payin_method_details_ngn_bank_spec.rb +5 -6
- data/spec/models/payment_method_spec.rb +19 -14
- data/spec/models/payout_method_details_balance_spec.rb +5 -6
- data/spec/models/payout_method_details_ghs_bank_spec.rb +8 -9
- data/spec/models/payout_method_details_iban_spec.rb +9 -10
- data/spec/models/payout_method_details_mad_cash_spec.rb +15 -24
- data/spec/models/payout_method_details_mobile_spec.rb +7 -8
- data/spec/models/payout_method_details_ngn_bank_spec.rb +9 -14
- data/spec/models/payout_method_details_xof_mobile_spec.rb +8 -13
- data/spec/models/payout_method_request_spec.rb +6 -19
- data/spec/models/payout_method_response_spec.rb +6 -19
- data/spec/models/payout_method_spec.rb +18 -19
- data/spec/models/recipient_request_spec.rb +6 -25
- data/spec/models/recipient_response_spec.rb +6 -103
- data/spec/models/recipient_spec.rb +127 -8
- data/spec/models/sender_request_spec.rb +9 -104
- data/spec/models/sender_response_existing_spec.rb +41 -0
- data/spec/models/sender_response_meta_spec.rb +41 -0
- data/spec/models/sender_response_spec.rb +8 -103
- data/spec/models/sender_spec.rb +167 -8
- data/spec/models/transaction_request_spec.rb +9 -16
- data/spec/models/transaction_response_existing_spec.rb +47 -0
- data/spec/models/transaction_response_meta_spec.rb +41 -0
- data/spec/models/transaction_response_spec.rb +8 -75
- data/spec/models/transaction_spec.rb +84 -13
- data/spec/models/transaction_traits_spec.rb +6 -7
- data/spec/models/webhook_definition_request_spec.rb +6 -19
- data/spec/models/webhook_log_metadata_request_spec.rb +10 -11
- data/spec/models/webhook_log_metadata_response_spec.rb +10 -11
- data/spec/models/webhook_log_metadata_spec.rb +17 -18
- data/spec/models/webhook_log_spec.rb +13 -14
- data/spec/models/webhook_spec.rb +7 -8
- data/spec/spec_helper.rb +4 -4
- metadata +19 -309
- data/example/.LICENSE.un~ +0 -0
- data/example/.client.rb.un~ +0 -0
- data/spec/api/transaction_requests_api_spec.rb +0 -76
- data/spec/models/account_base_spec.rb +0 -48
- data/spec/models/api_log_base_spec.rb +0 -90
- data/spec/models/body_spec.rb +0 -58
- data/spec/models/currency_base_spec.rb +0 -84
- data/spec/models/debit_base_spec.rb +0 -66
- data/spec/models/debit_error_response_spec.rb +0 -72
- data/spec/models/debit_valid_response_spec.rb +0 -72
- data/spec/models/default_document_spec.rb +0 -94
- data/spec/models/default_recipient_spec.rb +0 -60
- data/spec/models/default_sender_spec.rb +0 -142
- data/spec/models/default_webhook_spec.rb +0 -60
- data/spec/models/document_base_spec.rb +0 -88
- data/spec/models/document_error_response_spec.rb +0 -94
- data/spec/models/document_valid_response_spec.rb +0 -94
- data/spec/models/full_invalid_transaction_request_spec.rb +0 -78
- data/spec/models/full_invalid_transaction_spec.rb +0 -66
- data/spec/models/full_valid_transaction_request_spec.rb +0 -66
- data/spec/models/full_valid_transaction_spec.rb +0 -60
- data/spec/models/inline_response_200_10_spec.rb +0 -42
- data/spec/models/inline_response_200_11_spec.rb +0 -48
- data/spec/models/inline_response_200_12_spec.rb +0 -42
- data/spec/models/inline_response_200_13_spec.rb +0 -48
- data/spec/models/inline_response_200_14_spec.rb +0 -42
- data/spec/models/inline_response_200_15_spec.rb +0 -48
- data/spec/models/inline_response_200_16_spec.rb +0 -48
- data/spec/models/inline_response_200_17_spec.rb +0 -48
- data/spec/models/inline_response_200_18_spec.rb +0 -42
- data/spec/models/inline_response_200_19_spec.rb +0 -48
- data/spec/models/inline_response_200_1_spec.rb +0 -48
- data/spec/models/inline_response_200_20_spec.rb +0 -42
- data/spec/models/inline_response_200_21_object_spec.rb +0 -42
- data/spec/models/inline_response_200_21_spec.rb +0 -42
- data/spec/models/inline_response_200_22_object_spec.rb +0 -42
- data/spec/models/inline_response_200_22_spec.rb +0 -42
- data/spec/models/inline_response_200_23_object_spec.rb +0 -42
- data/spec/models/inline_response_200_23_spec.rb +0 -48
- data/spec/models/inline_response_200_24_spec.rb +0 -42
- data/spec/models/inline_response_200_25_spec.rb +0 -42
- data/spec/models/inline_response_200_26_spec.rb +0 -42
- data/spec/models/inline_response_200_27_spec.rb +0 -48
- data/spec/models/inline_response_200_28_spec.rb +0 -42
- data/spec/models/inline_response_200_29_spec.rb +0 -48
- data/spec/models/inline_response_200_2_object_spec.rb +0 -42
- data/spec/models/inline_response_200_2_spec.rb +0 -42
- data/spec/models/inline_response_200_30_spec.rb +0 -42
- data/spec/models/inline_response_200_31_spec.rb +0 -48
- data/spec/models/inline_response_200_32_spec.rb +0 -42
- data/spec/models/inline_response_200_33_spec.rb +0 -48
- data/spec/models/inline_response_200_34_spec.rb +0 -42
- data/spec/models/inline_response_200_35_spec.rb +0 -48
- data/spec/models/inline_response_200_36_spec.rb +0 -48
- data/spec/models/inline_response_200_37_spec.rb +0 -48
- data/spec/models/inline_response_200_38_spec.rb +0 -42
- data/spec/models/inline_response_200_39_spec.rb +0 -48
- data/spec/models/inline_response_200_3_spec.rb +0 -48
- data/spec/models/inline_response_200_40_spec.rb +0 -42
- data/spec/models/inline_response_200_4_object_spec.rb +0 -42
- data/spec/models/inline_response_200_4_spec.rb +0 -42
- data/spec/models/inline_response_200_5_spec.rb +0 -42
- data/spec/models/inline_response_200_6_spec.rb +0 -42
- data/spec/models/inline_response_200_7_spec.rb +0 -48
- data/spec/models/inline_response_200_8_spec.rb +0 -42
- data/spec/models/inline_response_200_9_spec.rb +0 -48
- data/spec/models/inline_response_200_spec.rb +0 -48
- data/spec/models/inline_response_201_10_spec.rb +0 -42
- data/spec/models/inline_response_201_11_spec.rb +0 -42
- data/spec/models/inline_response_201_1_spec.rb +0 -42
- data/spec/models/inline_response_201_2_spec.rb +0 -42
- data/spec/models/inline_response_201_3_spec.rb +0 -42
- data/spec/models/inline_response_201_4_spec.rb +0 -42
- data/spec/models/inline_response_201_5_spec.rb +0 -42
- data/spec/models/inline_response_201_6_spec.rb +0 -42
- data/spec/models/inline_response_201_7_spec.rb +0 -42
- data/spec/models/inline_response_201_8_spec.rb +0 -42
- data/spec/models/inline_response_201_9_spec.rb +0 -42
- data/spec/models/inline_response_201_spec.rb +0 -42
- data/spec/models/inline_response_400_1_spec.rb +0 -48
- data/spec/models/inline_response_400_spec.rb +0 -48
- data/spec/models/inline_response_422_10_spec.rb +0 -42
- data/spec/models/inline_response_422_11_spec.rb +0 -42
- data/spec/models/inline_response_422_12_spec.rb +0 -42
- data/spec/models/inline_response_422_13_spec.rb +0 -42
- data/spec/models/inline_response_422_14_spec.rb +0 -42
- data/spec/models/inline_response_422_1_meta_spec.rb +0 -42
- data/spec/models/inline_response_422_1_object_spec.rb +0 -42
- data/spec/models/inline_response_422_1_spec.rb +0 -42
- data/spec/models/inline_response_422_2_spec.rb +0 -42
- data/spec/models/inline_response_422_3_spec.rb +0 -42
- data/spec/models/inline_response_422_4_spec.rb +0 -42
- data/spec/models/inline_response_422_5_spec.rb +0 -42
- data/spec/models/inline_response_422_6_spec.rb +0 -42
- data/spec/models/inline_response_422_7_meta_spec.rb +0 -42
- data/spec/models/inline_response_422_7_spec.rb +0 -42
- data/spec/models/inline_response_422_8_meta_spec.rb +0 -42
- data/spec/models/inline_response_422_8_object_spec.rb +0 -42
- data/spec/models/inline_response_422_8_spec.rb +0 -48
- data/spec/models/inline_response_422_9_spec.rb +0 -42
- data/spec/models/inline_response_422_meta_spec.rb +0 -42
- data/spec/models/inline_response_422_object_spec.rb +0 -42
- data/spec/models/inline_response_422_spec.rb +0 -48
- data/spec/models/invalid_debit_spec.rb +0 -78
- data/spec/models/invalid_document_spec.rb +0 -100
- data/spec/models/invalid_recipient_spec.rb +0 -66
- data/spec/models/invalid_sender_spec.rb +0 -148
- data/spec/models/invalid_webhook_spec.rb +0 -60
- data/spec/models/meta_2_pagination_spec.rb +0 -66
- data/spec/models/meta_2_spec.rb +0 -42
- data/spec/models/meta_pagination_spec.rb +0 -66
- data/spec/models/meta_spec.rb +0 -42
- data/spec/models/object_spec.rb +0 -48
- data/spec/models/opposite_payment_method_base_spec.rb +0 -72
- data/spec/models/opposite_payment_method_spec.rb +0 -72
- data/spec/models/pagination_pagination_spec.rb +0 -66
- data/spec/models/payin_method_base_spec.rb +0 -66
- data/spec/models/payin_method_details_base_spec.rb +0 -36
- data/spec/models/payin_method_type_base_spec.rb +0 -42
- data/spec/models/payin_method_type_spec.rb +0 -42
- data/spec/models/payment_method_base_spec.rb +0 -66
- data/spec/models/payout_method_base_spec.rb +0 -54
- data/spec/models/payout_method_details_base_spec.rb +0 -36
- data/spec/models/payout_method_error_response_spec.rb +0 -60
- data/spec/models/payout_method_valid_response_spec.rb +0 -60
- data/spec/models/recipient_base_spec.rb +0 -54
- data/spec/models/recipient_error_response_spec.rb +0 -60
- data/spec/models/recipient_valid_response_spec.rb +0 -60
- data/spec/models/sender_base_spec.rb +0 -136
- data/spec/models/sender_error_response_spec.rb +0 -142
- data/spec/models/sender_existing_request_spec.rb +0 -42
- data/spec/models/sender_full_request_spec.rb +0 -136
- data/spec/models/sender_valid_response_spec.rb +0 -142
- data/spec/models/transaction_base_spec.rb +0 -60
- data/spec/models/transaction_error_response_spec.rb +0 -66
- data/spec/models/transaction_request_base_spec.rb +0 -48
- data/spec/models/transaction_request_error_response_spec.rb +0 -54
- data/spec/models/transaction_request_request_spec.rb +0 -48
- data/spec/models/transaction_request_valid_response_spec.rb +0 -54
- data/spec/models/transaction_valid_response_spec.rb +0 -66
- data/spec/models/valid_debit_spec.rb +0 -90
- data/spec/models/webhook_base_spec.rb +0 -54
- data/spec/models/webhook_definition_base_spec.rb +0 -54
- data/spec/models/webhook_definition_error_response_spec.rb +0 -60
- data/spec/models/webhook_definition_valid_response_spec.rb +0 -60
- data/spec/models/webhook_error_response_spec.rb +0 -60
- data/spec/models/webhook_log_base_metadata_params_spec.rb +0 -42
- data/spec/models/webhook_log_base_metadata_request_spec.rb +0 -54
- data/spec/models/webhook_log_base_metadata_response_spec.rb +0 -54
- data/spec/models/webhook_log_base_metadata_spec.rb +0 -96
- data/spec/models/webhook_log_base_spec.rb +0 -72
- data/spec/models/webhook_log_metadata_params_spec.rb +0 -42
- data/spec/models/webhook_request_spec.rb +0 -54
- data/spec/models/webhook_valid_response_spec.rb +0 -60
@@ -1,54 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#BitPesa API
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BitPesa::RecipientBase
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'RecipientBase' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BitPesa::RecipientBase.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of RecipientBase' do
|
31
|
-
it 'should create an instance of RecipientBase' do
|
32
|
-
expect(@instance).to be_instance_of(BitPesa::RecipientBase)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "requested_amount"' 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 "requested_currency"' 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 "payout_method"' 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
|
-
end
|
54
|
-
|
@@ -1,60 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#BitPesa API
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BitPesa::RecipientErrorResponse
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'RecipientErrorResponse' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BitPesa::RecipientErrorResponse.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of RecipientErrorResponse' do
|
31
|
-
it 'should create an instance of RecipientErrorResponse' do
|
32
|
-
expect(@instance).to be_instance_of(BitPesa::RecipientErrorResponse)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "requested_amount"' 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 "requested_currency"' 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 "payout_method"' 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 "errors"' 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
|
60
|
-
|
@@ -1,60 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#BitPesa API
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BitPesa::RecipientValidResponse
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'RecipientValidResponse' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BitPesa::RecipientValidResponse.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of RecipientValidResponse' do
|
31
|
-
it 'should create an instance of RecipientValidResponse' do
|
32
|
-
expect(@instance).to be_instance_of(BitPesa::RecipientValidResponse)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "requested_amount"' 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 "requested_currency"' 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 "payout_method"' 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 "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
|
-
end
|
60
|
-
|
@@ -1,136 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#BitPesa API
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BitPesa::SenderBase
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'SenderBase' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BitPesa::SenderBase.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of SenderBase' do
|
31
|
-
it 'should create an instance of SenderBase' do
|
32
|
-
expect(@instance).to be_instance_of(BitPesa::SenderBase)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "type"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Person", "Business"])
|
39
|
-
#validator.allowable_values.each do |value|
|
40
|
-
# expect { @instance.type = value }.not_to raise_error
|
41
|
-
#end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
describe 'test attribute "country"' do
|
46
|
-
it 'should work' do
|
47
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
describe 'test attribute "phone_country"' do
|
52
|
-
it 'should work' do
|
53
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
describe 'test attribute "phone_number"' do
|
58
|
-
it 'should work' do
|
59
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
describe 'test attribute "email"' do
|
64
|
-
it 'should work' do
|
65
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
describe 'test attribute "first_name"' do
|
70
|
-
it 'should work' do
|
71
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
describe 'test attribute "last_name"' do
|
76
|
-
it 'should work' do
|
77
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
describe 'test attribute "name"' do
|
82
|
-
it 'should work' do
|
83
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
describe 'test attribute "city"' 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
|
-
|
93
|
-
describe 'test attribute "street"' do
|
94
|
-
it 'should work' do
|
95
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
describe 'test attribute "address_description"' do
|
100
|
-
it 'should work' do
|
101
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
describe 'test attribute "postal_code"' 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 "birth_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 "ip"' 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
|
-
|
123
|
-
describe 'test attribute "documents"' do
|
124
|
-
it 'should work' do
|
125
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
describe 'test attribute "metadata"' do
|
130
|
-
it 'should work' do
|
131
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
end
|
136
|
-
|
@@ -1,142 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#BitPesa API
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BitPesa::SenderErrorResponse
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'SenderErrorResponse' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BitPesa::SenderErrorResponse.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of SenderErrorResponse' do
|
31
|
-
it 'should create an instance of SenderErrorResponse' do
|
32
|
-
expect(@instance).to be_instance_of(BitPesa::SenderErrorResponse)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "type"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Person", "Business"])
|
39
|
-
#validator.allowable_values.each do |value|
|
40
|
-
# expect { @instance.type = value }.not_to raise_error
|
41
|
-
#end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
describe 'test attribute "country"' do
|
46
|
-
it 'should work' do
|
47
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
describe 'test attribute "phone_country"' do
|
52
|
-
it 'should work' do
|
53
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
describe 'test attribute "phone_number"' do
|
58
|
-
it 'should work' do
|
59
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
describe 'test attribute "email"' do
|
64
|
-
it 'should work' do
|
65
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
describe 'test attribute "first_name"' do
|
70
|
-
it 'should work' do
|
71
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
describe 'test attribute "last_name"' do
|
76
|
-
it 'should work' do
|
77
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
describe 'test attribute "name"' do
|
82
|
-
it 'should work' do
|
83
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
describe 'test attribute "city"' 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
|
-
|
93
|
-
describe 'test attribute "street"' do
|
94
|
-
it 'should work' do
|
95
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
describe 'test attribute "address_description"' do
|
100
|
-
it 'should work' do
|
101
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
describe 'test attribute "postal_code"' 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 "birth_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 "ip"' 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
|
-
|
123
|
-
describe 'test attribute "documents"' do
|
124
|
-
it 'should work' do
|
125
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
describe 'test attribute "metadata"' do
|
130
|
-
it 'should work' do
|
131
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
describe 'test attribute "errors"' do
|
136
|
-
it 'should work' do
|
137
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
138
|
-
end
|
139
|
-
end
|
140
|
-
|
141
|
-
end
|
142
|
-
|