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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97b2060ab5e183b785165d1b264014b19349c298
4
- data.tar.gz: e6c23df9559ae9e468c536f7c3117ebf91f3b077
3
+ metadata.gz: 9abc0651668a21012790966c2a3279dc0ad23dc5
4
+ data.tar.gz: 3f013235a3349be212f81d42973945929e43d02e
5
5
  SHA512:
6
- metadata.gz: c7b088e89030bb7f6d484eefc41be5bd4cd4df76c149c15270adf8a6f8aa73b1b789f29e6a716ea061b0b17bca7821e2d0d0e6b28ff6225f130dfb35e52a7491
7
- data.tar.gz: 9ce2b31111ea91aeaf4bc1c92742b4897a3654a3d8d0f4af81b80554a8fd3335ddb06f9fa9da11d14dbb8efeb81a18ea73dce546ee705cd77d6c029dc0823a1c
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
+ }
@@ -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
+ }
@@ -1,5 +1,5 @@
1
1
  module Wechat
2
2
  module Protocal
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
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
@@ -40,6 +40,7 @@ module Atyun
40
40
  rpc :WechatOauth, WechatOauthRequest, WechatOauthReply
41
41
  # wechat login
42
42
  rpc :WechatLogin, WechatLoginRequest, WechatLoginReply
43
+ rpc :GetWechatPayCodeUrl, WechatPayRequest, WechatPayReply
43
44
  end
44
45
 
45
46
  Stub = Service.rpc_stub_class
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.3
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-06-13 00:00:00.000000000 Z
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