pingpp 2.0.1 → 2.0.2

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: b394d556c07f0ed085b7054630765cdd21ed1586
4
- data.tar.gz: 1c6216e43230ae3b24166a62e763ecf78b04562d
3
+ metadata.gz: 3fe47cb3d9656a06cd75af463fa11a40c38b1aaf
4
+ data.tar.gz: 17204a1389c54cd00fb3aebf7216a660192cd777
5
5
  SHA512:
6
- metadata.gz: 7d777f659ad41685c3c0868e4cfea99ec2cd2683c76714287686b12bb65c372da6cc86e6c6e7e8858a062ae53a07150161d337e2eda704fc6b4f3fb12265f31d
7
- data.tar.gz: 7a2afc8d42f61189a221c6426a23112c3a7abd96a2469e762676f2efb95582c17ddf747be8f860d5cf0ae3aa4480eb98c2ed9793687e7076f198a4924f282915
6
+ metadata.gz: 757513d00c5be6b187f0172c97f93e0425ee578d8ebd7e014e630f6b6f6e94a58b3e6d0897ccf6cd6998a816fb1913f4c6f321b3aa2d69404a95b9d11df1fc1c
7
+ data.tar.gz: 9f08c412831f8c9e2041bc4fb85e7fbbb90fc576c3ab4e3e8e727ef407075c409a976ded86381149ce75e56cd00f6427cbaa394f37193d297586e849d5e1d7f4
data/lib/pingpp.rb CHANGED
@@ -9,9 +9,6 @@ require 'json'
9
9
  # Version
10
10
  require 'pingpp/version'
11
11
 
12
- # Channel constants
13
- require 'pingpp/channel'
14
-
15
12
  # API operations
16
13
  require 'pingpp/api_operations/create'
17
14
  require 'pingpp/api_operations/update'
@@ -27,6 +24,7 @@ require 'pingpp/list_object'
27
24
  require 'pingpp/certificate_blacklist'
28
25
  require 'pingpp/charge'
29
26
  require 'pingpp/refund'
27
+ require 'pingpp/red_envelope'
30
28
 
31
29
  # Errors
32
30
  require 'pingpp/errors/pingpp_error'
@@ -0,0 +1,11 @@
1
+ module Pingpp
2
+ class RedEnvelope < APIResource
3
+ include Pingpp::APIOperations::List
4
+ include Pingpp::APIOperations::Create
5
+
6
+ def self.url
7
+ '/v1/red_envelopes'
8
+ end
9
+
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Pingpp
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pingpp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xufeng Weng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-04 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -142,7 +142,6 @@ files:
142
142
  - lib/pingpp/api_operations/update.rb
143
143
  - lib/pingpp/api_resource.rb
144
144
  - lib/pingpp/certificate_blacklist.rb
145
- - lib/pingpp/channel.rb
146
145
  - lib/pingpp/charge.rb
147
146
  - lib/pingpp/errors/api_connection_error.rb
148
147
  - lib/pingpp/errors/api_error.rb
@@ -151,6 +150,7 @@ files:
151
150
  - lib/pingpp/errors/pingpp_error.rb
152
151
  - lib/pingpp/list_object.rb
153
152
  - lib/pingpp/pingpp_object.rb
153
+ - lib/pingpp/red_envelope.rb
154
154
  - lib/pingpp/refund.rb
155
155
  - lib/pingpp/singleton_api_resource.rb
156
156
  - lib/pingpp/util.rb
@@ -1,15 +0,0 @@
1
- module Pingpp
2
- class Channel
3
- ALIPAY = "alipay"
4
- WECHAT = "wx"
5
- WX = "wx" # Alias of WECHAT
6
- UPMP = "upmp"
7
- ALIPAY_WAP = "alipay_wap"
8
- UPMP_WAP = "upmp_wap"
9
- WX_PUB = "wx_pub"
10
- BFB = "bfb"
11
- BFB_WAP = "bfb_wap"
12
- UPACP = "upacp"
13
- UPACP_WAP = "upacp_wap"
14
- end
15
- end