courier_spec 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/courier_spec.gemspec +1 -1
- data/lib/balance_pb.rb +31 -0
- data/lib/balance_services_pb.rb +1 -0
- data/lib/courier_spec.rb +6 -0
- data/lib/loan_pb.rb +33 -0
- data/lib/loan_services_pb.rb +23 -0
- data/lib/status_pb.rb +25 -0
- data/lib/status_services_pb.rb +22 -0
- data/lib/subscription_pb.rb +27 -0
- data/lib/subscription_services_pb.rb +22 -0
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f77d1ae65787418fce32774f366725971ac6cd624862a032f195b2950ff6d87c
|
4
|
+
data.tar.gz: f2644cec747e4b4d87b0c0d3d40625c3d5794ce752c8ece8ea144b9f5b6f5eb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90583586dffd504be47e52c428362a9027bbfba8a5ce4dca0a5af6d3d723b1f72888546da0afe7acb19f38e402d19c455e49cacf6aeced6a267fcb30f0a09293
|
7
|
+
data.tar.gz: 3711ebf16bbbfa9b5060e021cb836e2ddd2751938c303311d15d33b4767e99a6621ab18d00e34846c9b754d0cb253b5b476fe5d4e0462d5da7b12a9f4f1d4341
|
data/courier_spec.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'courier_spec'
|
7
|
-
spec.version = '0.1.
|
7
|
+
spec.version = '0.1.1'
|
8
8
|
spec.date = '2019-09-12'
|
9
9
|
spec.summary = "Courier Spec for proto files!"
|
10
10
|
spec.description = "The gem is the generated files for proto file"
|
data/lib/balance_pb.rb
CHANGED
@@ -13,6 +13,35 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
13
13
|
add_message "balance.BalanceReply" do
|
14
14
|
optional :value, :float, 1
|
15
15
|
optional :currency, :string, 2
|
16
|
+
optional :status, :string, 3
|
17
|
+
end
|
18
|
+
add_message "balance.BalancesReply" do
|
19
|
+
repeated :packages, :message, 1, "balance.BalanceItemReply"
|
20
|
+
optional :credit_balance, :float, 2
|
21
|
+
optional :credit_expiry, :int64, 3
|
22
|
+
optional :grace_expiry, :int64, 4
|
23
|
+
optional :msisdn, :int64, 5
|
24
|
+
optional :account_status, :string, 6
|
25
|
+
end
|
26
|
+
add_message "balance.BalanceItemReply" do
|
27
|
+
optional :name, :string, 1
|
28
|
+
optional :description, :string, 2
|
29
|
+
optional :remaining, :float, 3
|
30
|
+
optional :unit, :string, 4
|
31
|
+
optional :category, :string, 5
|
32
|
+
optional :expired_at, :int64, 6
|
33
|
+
optional :created_at, :int64, 7
|
34
|
+
optional :used, :float, 8
|
35
|
+
optional :total, :float, 9
|
36
|
+
optional :status, :string, 10
|
37
|
+
optional :loan_amount, :float, 11
|
38
|
+
optional :account_balance_info, :string, 12
|
39
|
+
optional :fee, :float, 13
|
40
|
+
optional :result_code, :int32, 14
|
41
|
+
optional :result_namespace, :string, 15
|
42
|
+
optional :is_closed, :bool, 16
|
43
|
+
optional :msisdn, :int64, 17
|
44
|
+
optional :transaction_id, :int64, 18
|
16
45
|
end
|
17
46
|
end
|
18
47
|
end
|
@@ -20,4 +49,6 @@ end
|
|
20
49
|
module Balance
|
21
50
|
BalanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("balance.BalanceRequest").msgclass
|
22
51
|
BalanceReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("balance.BalanceReply").msgclass
|
52
|
+
BalancesReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("balance.BalancesReply").msgclass
|
53
|
+
BalanceItemReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("balance.BalanceItemReply").msgclass
|
23
54
|
end
|
data/lib/balance_services_pb.rb
CHANGED
@@ -15,6 +15,7 @@ module Balance
|
|
15
15
|
self.service_name = 'balance.Balance'
|
16
16
|
|
17
17
|
rpc :GetBalance, BalanceRequest, BalanceReply
|
18
|
+
rpc :GetBalances, BalanceRequest, BalancesReply
|
18
19
|
rpc :SetBalance, BalanceRequest, BalanceReply
|
19
20
|
rpc :AddBalance, BalanceRequest, BalanceReply
|
20
21
|
rpc :DeductBalance, BalanceRequest, BalanceReply
|
data/lib/courier_spec.rb
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
module CourierSpec
|
2
2
|
require 'balance_pb'
|
3
|
+
require 'loan_pb'
|
3
4
|
require 'package_pb'
|
5
|
+
require 'status_pb'
|
6
|
+
require 'subscription_pb'
|
4
7
|
require 'balance_services_pb'
|
8
|
+
require 'loan_services_pb'
|
5
9
|
require 'package_services_pb'
|
10
|
+
require 'status_services_pb'
|
11
|
+
require 'subscription_services_pb'
|
6
12
|
end
|
data/lib/loan_pb.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: loan.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("loan.proto", :syntax => :proto3) do
|
8
|
+
add_message "loan.LoanRequest" do
|
9
|
+
optional :name, :string, 1
|
10
|
+
optional :total, :float, 2
|
11
|
+
optional :unit, :string, 3
|
12
|
+
optional :type, :int64, 4
|
13
|
+
optional :amount, :float, 5
|
14
|
+
optional :expiration, :int64, 6
|
15
|
+
end
|
16
|
+
add_message "loan.LoanReply" do
|
17
|
+
optional :id, :int64, 1
|
18
|
+
optional :status, :string, 2
|
19
|
+
optional :amount, :float, 3
|
20
|
+
optional :fee, :float, 4
|
21
|
+
optional :code, :string, 5
|
22
|
+
optional :remaining, :float, 6
|
23
|
+
optional :closed, :bool, 7
|
24
|
+
optional :msisdn, :int64, 8
|
25
|
+
optional :transaction_id, :int64, 9
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
module Loan
|
31
|
+
LoanRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("loan.LoanRequest").msgclass
|
32
|
+
LoanReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("loan.LoanReply").msgclass
|
33
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: loan.proto for package 'loan'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'loan_pb'
|
6
|
+
|
7
|
+
module Loan
|
8
|
+
module Loan
|
9
|
+
class Service
|
10
|
+
|
11
|
+
include GRPC::GenericService
|
12
|
+
|
13
|
+
self.marshal_class_method = :encode
|
14
|
+
self.unmarshal_class_method = :decode
|
15
|
+
self.service_name = 'loan.Loan'
|
16
|
+
|
17
|
+
rpc :GetLoan, LoanRequest, LoanReply
|
18
|
+
rpc :CloseLoan, LoanRequest, LoanReply
|
19
|
+
end
|
20
|
+
|
21
|
+
Stub = Service.rpc_stub_class
|
22
|
+
end
|
23
|
+
end
|
data/lib/status_pb.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: status.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("status.proto", :syntax => :proto3) do
|
8
|
+
add_message "status.StatusRequest" do
|
9
|
+
optional :phone_number, :string, 1
|
10
|
+
end
|
11
|
+
add_message "status.StatusReply" do
|
12
|
+
optional :code, :string, 1
|
13
|
+
optional :credit_balance, :float, 2
|
14
|
+
optional :credit_expiry, :int64, 3
|
15
|
+
optional :grace_expiry, :int64, 4
|
16
|
+
optional :account_status, :string, 5
|
17
|
+
optional :msisdn, :int64, 6
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
module Status
|
23
|
+
StatusRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("status.StatusRequest").msgclass
|
24
|
+
StatusReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("status.StatusReply").msgclass
|
25
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: status.proto for package 'status'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'status_pb'
|
6
|
+
|
7
|
+
module Status
|
8
|
+
module Status
|
9
|
+
class Service
|
10
|
+
|
11
|
+
include GRPC::GenericService
|
12
|
+
|
13
|
+
self.marshal_class_method = :encode
|
14
|
+
self.unmarshal_class_method = :decode
|
15
|
+
self.service_name = 'status.Status'
|
16
|
+
|
17
|
+
rpc :GetStatus, StatusRequest, StatusReply
|
18
|
+
end
|
19
|
+
|
20
|
+
Stub = Service.rpc_stub_class
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: subscription.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("subscription.proto", :syntax => :proto3) do
|
8
|
+
add_message "subscription.SubscriptionRequest" do
|
9
|
+
optional :phone_number, :string, 1
|
10
|
+
optional :keyword, :string, 2
|
11
|
+
optional :transaction_id, :int64, 3
|
12
|
+
end
|
13
|
+
add_message "subscription.SubscriptionReply" do
|
14
|
+
optional :code, :string, 1
|
15
|
+
optional :credit_balance, :float, 2
|
16
|
+
optional :credit_expiry, :int64, 3
|
17
|
+
optional :grace_expiry, :int64, 4
|
18
|
+
optional :account_Subscription, :string, 5
|
19
|
+
optional :msisdn, :int64, 6
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
module Subscription
|
25
|
+
SubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("subscription.SubscriptionRequest").msgclass
|
26
|
+
SubscriptionReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("subscription.SubscriptionReply").msgclass
|
27
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: subscription.proto for package 'subscription'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'subscription_pb'
|
6
|
+
|
7
|
+
module Subscription
|
8
|
+
module Subscription
|
9
|
+
class Service
|
10
|
+
|
11
|
+
include GRPC::GenericService
|
12
|
+
|
13
|
+
self.marshal_class_method = :encode
|
14
|
+
self.unmarshal_class_method = :decode
|
15
|
+
self.service_name = 'subscription.Subscription'
|
16
|
+
|
17
|
+
rpc :GetSubscription, SubscriptionRequest, SubscriptionReply
|
18
|
+
end
|
19
|
+
|
20
|
+
Stub = Service.rpc_stub_class
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: courier_spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruiyang Zhang
|
@@ -35,8 +35,14 @@ files:
|
|
35
35
|
- lib/balance_pb.rb
|
36
36
|
- lib/balance_services_pb.rb
|
37
37
|
- lib/courier_spec.rb
|
38
|
+
- lib/loan_pb.rb
|
39
|
+
- lib/loan_services_pb.rb
|
38
40
|
- lib/package_pb.rb
|
39
41
|
- lib/package_services_pb.rb
|
42
|
+
- lib/status_pb.rb
|
43
|
+
- lib/status_services_pb.rb
|
44
|
+
- lib/subscription_pb.rb
|
45
|
+
- lib/subscription_services_pb.rb
|
40
46
|
homepage: https://rubygemspec.org/gems/courier_proto
|
41
47
|
licenses:
|
42
48
|
- MIT
|