ampedxx-wechat-protocal 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alipay_pb.rb +33 -0
- data/lib/alipay_services_pb.rb +22 -0
- data/lib/protocals/alipay.proto +36 -0
- data/lib/protocals/wechat.proto +20 -0
- data/lib/wechat/protocal/version.rb +1 -1
- data/lib/wechat_pb.rb +18 -0
- data/lib/wechat_services_pb.rb +1 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9abc0651668a21012790966c2a3279dc0ad23dc5
|
4
|
+
data.tar.gz: 3f013235a3349be212f81d42973945929e43d02e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0f3d31b7913de41adda6d037720c06d304b19f0a03678c147c632ac96da401d36347562e97af59134c34358f5c2e0375f37a904c08a1148ece408e490fbd904
|
7
|
+
data.tar.gz: bfb3fe9bbccff569502cdb6b68ac10f3317300c621041a9a6ff35a3c40ebb5007819cd7f71b8a94432a1ac4818ce841a7840e6e7426aa3f556a3de6c2c6fc29a
|
data/lib/alipay_pb.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: alipay.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "atyun.GetAlipayUrlRequest" do
|
8
|
+
optional :app_id, :string, 1
|
9
|
+
optional :app_private_key, :string, 2
|
10
|
+
optional :alipay_public_key, :string, 3
|
11
|
+
optional :out_trade_no, :string, 4
|
12
|
+
optional :total_amount, :string, 5
|
13
|
+
optional :subject, :string, 6
|
14
|
+
optional :return_url, :string, 7
|
15
|
+
optional :notify_url, :string, 8
|
16
|
+
optional :qr_pay_mode, :string, 9
|
17
|
+
optional :body, :string, 10
|
18
|
+
end
|
19
|
+
add_message "atyun.GetAlipayReply" do
|
20
|
+
optional :pay_url, :string, 1
|
21
|
+
optional :status, :message, 2, "atyun.AlipayStatus"
|
22
|
+
end
|
23
|
+
add_message "atyun.AlipayStatus" do
|
24
|
+
optional :code, :string, 1
|
25
|
+
optional :message, :string, 2
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
module Atyun
|
30
|
+
GetAlipayUrlRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.GetAlipayUrlRequest").msgclass
|
31
|
+
GetAlipayReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.GetAlipayReply").msgclass
|
32
|
+
AlipayStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.AlipayStatus").msgclass
|
33
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: alipay.proto for package 'atyun'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'alipay_pb'
|
6
|
+
|
7
|
+
module Atyun
|
8
|
+
module Alipay
|
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 = 'atyun.alipay'
|
16
|
+
|
17
|
+
rpc :GetAlipayUrl, GetAlipayUrlRequest, GetAlipayReply
|
18
|
+
end
|
19
|
+
|
20
|
+
Stub = Service.rpc_stub_class
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
option java_multiple_files = true;
|
4
|
+
option java_package = "io.grpc.examples.helloworld";
|
5
|
+
option java_outer_classname = "HelloWorldProto";
|
6
|
+
option objc_class_prefix = "HLW";
|
7
|
+
|
8
|
+
package atyun;
|
9
|
+
|
10
|
+
service alipay {
|
11
|
+
rpc GetAlipayUrl (GetAlipayUrlRequest) returns (GetAlipayReply){
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
message GetAlipayUrlRequest{
|
16
|
+
string app_id = 1;
|
17
|
+
string app_private_key = 2;
|
18
|
+
string alipay_public_key = 3;
|
19
|
+
string out_trade_no = 4;
|
20
|
+
string total_amount = 5;
|
21
|
+
string subject = 6;
|
22
|
+
string return_url = 7;
|
23
|
+
string notify_url = 8;
|
24
|
+
string qr_pay_mode = 9;
|
25
|
+
string body = 10;
|
26
|
+
}
|
27
|
+
|
28
|
+
message GetAlipayReply{
|
29
|
+
string pay_url = 1;
|
30
|
+
AlipayStatus status = 2;
|
31
|
+
}
|
32
|
+
|
33
|
+
message AlipayStatus {
|
34
|
+
string code = 1;
|
35
|
+
string message = 2;
|
36
|
+
}
|
data/lib/protocals/wechat.proto
CHANGED
@@ -43,6 +43,10 @@ service wechat {
|
|
43
43
|
rpc WechatLogin (WechatLoginRequest) returns (WechatLoginReply) {
|
44
44
|
}
|
45
45
|
|
46
|
+
rpc GetWechatPayCodeUrl (WechatPayRequest) returns (WechatPayReply) {
|
47
|
+
|
48
|
+
}
|
49
|
+
|
46
50
|
}
|
47
51
|
|
48
52
|
// The request message containing the user's name.
|
@@ -120,3 +124,19 @@ message WechatLoginReply {
|
|
120
124
|
Status status = 3;
|
121
125
|
}
|
122
126
|
|
127
|
+
message WechatPayRequest {
|
128
|
+
string appid = 1;
|
129
|
+
string mch_id = 2;
|
130
|
+
string body = 3;
|
131
|
+
string out_trade_no = 4;
|
132
|
+
string total_fee = 5;
|
133
|
+
string spbill_create_ip = 6;
|
134
|
+
string notify_url = 7;
|
135
|
+
string trade_type = 8;
|
136
|
+
string product_id = 9;
|
137
|
+
string key = 10;
|
138
|
+
}
|
139
|
+
message WechatPayReply {
|
140
|
+
string code_url = 1;
|
141
|
+
Status status = 2;
|
142
|
+
}
|
data/lib/wechat_pb.rb
CHANGED
@@ -61,6 +61,22 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
61
61
|
optional :image_url, :string, 2
|
62
62
|
optional :status, :message, 3, "atyun.Status"
|
63
63
|
end
|
64
|
+
add_message "atyun.WechatPayRequest" do
|
65
|
+
optional :appid, :string, 1
|
66
|
+
optional :mch_id, :string, 2
|
67
|
+
optional :body, :string, 3
|
68
|
+
optional :out_trade_no, :string, 4
|
69
|
+
optional :total_fee, :string, 5
|
70
|
+
optional :spbill_create_ip, :string, 6
|
71
|
+
optional :notify_url, :string, 7
|
72
|
+
optional :trade_type, :string, 8
|
73
|
+
optional :product_id, :string, 9
|
74
|
+
optional :key, :string, 10
|
75
|
+
end
|
76
|
+
add_message "atyun.WechatPayReply" do
|
77
|
+
optional :code_url, :string, 1
|
78
|
+
optional :status, :message, 2, "atyun.Status"
|
79
|
+
end
|
64
80
|
end
|
65
81
|
|
66
82
|
module Atyun
|
@@ -76,4 +92,6 @@ module Atyun
|
|
76
92
|
WechatOauthReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.WechatOauthReply").msgclass
|
77
93
|
WechatLoginRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.WechatLoginRequest").msgclass
|
78
94
|
WechatLoginReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.WechatLoginReply").msgclass
|
95
|
+
WechatPayRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.WechatPayRequest").msgclass
|
96
|
+
WechatPayReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.WechatPayReply").msgclass
|
79
97
|
end
|
data/lib/wechat_services_pb.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ampedxx-wechat-protocal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- icepoint0
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -69,8 +69,11 @@ files:
|
|
69
69
|
- Rakefile
|
70
70
|
- bin/console
|
71
71
|
- bin/setup
|
72
|
+
- lib/alipay_pb.rb
|
73
|
+
- lib/alipay_services_pb.rb
|
72
74
|
- lib/notification_pb.rb
|
73
75
|
- lib/notification_services_pb.rb
|
76
|
+
- lib/protocals/alipay.proto
|
74
77
|
- lib/protocals/notification.proto
|
75
78
|
- lib/protocals/wechat.proto
|
76
79
|
- lib/wechat/protocal.rb
|