wx_pay 0.7.0 → 0.7.1

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: 5f1fa18da6fbee23d0040b4419218f8ed372294a
4
- data.tar.gz: 6fec3b8fe44e279515f49cfcbe5abb3920cb8843
3
+ metadata.gz: 2889c7c63f867890b44ccc84346b0a70fecd6e01
4
+ data.tar.gz: b29dbcf70425ab41baa544676e2b356af1e07b4d
5
5
  SHA512:
6
- metadata.gz: aa69a33a878cdd6ea804d0ea3dd300e89d66daff5bb242dfccd6f0ca70744e3899bb4156ce23cfcf1ea1b8803b30bba7dce8a282496895794123e49215a98a55
7
- data.tar.gz: 1b5e803acf0463c8d6e0b4c5e64786300a2662895b5c5633a8a28c05d5225447efdacfd0312ea9ac7dbe47a6aa4a53402fc869fcb09e141d2172f39ed0f57173
6
+ metadata.gz: be61b6c9e360b21b5d1d399507845b387843f24d6c235acc62459ce5f3ad54797304fb0c81a0f955c64ed33d27ada41c453db6fa5384edd980ab9372a68e58b5
7
+ data.tar.gz: 7ef54888d1a249ad4d72ebd2ea376c94a1195b9c44fb509307a6d42f475c79e7b1625152c5e160456bf7e5d39e3c6d235e7e655bc1857fec24642d92e9d68500
@@ -5,7 +5,7 @@ module WxPay
5
5
  module Service
6
6
  GATEWAY_URL = 'https://api.mch.weixin.qq.com'
7
7
 
8
- INVOKE_UNIFIEDORDER_REQUIRED_FIELDS = %i(body out_trade_no total_fee spbill_create_ip notify_url trade_type)
8
+ INVOKE_UNIFIEDORDER_REQUIRED_FIELDS = [:body, :out_trade_no, :total_fee, :spbill_create_ip, :notify_url, :trade_type]
9
9
  def self.invoke_unifiedorder(params, options = {})
10
10
  params = {
11
11
  appid: options.delete(:appid) || WxPay.appid,
@@ -23,7 +23,7 @@ module WxPay
23
23
  r
24
24
  end
25
25
 
26
- INVOKE_CLOSEORDER_REQUIRED_FIELDS = %i(out_trade_no)
26
+ INVOKE_CLOSEORDER_REQUIRED_FIELDS = [:out_trade_no]
27
27
  def self.invoke_closeorder(params, options = {})
28
28
  params = {
29
29
  appid: options.delete(:appid) || WxPay.appid,
@@ -41,7 +41,7 @@ module WxPay
41
41
  r
42
42
  end
43
43
 
44
- GENERATE_APP_PAY_REQ_REQUIRED_FIELDS = %i(prepayid noncestr)
44
+ GENERATE_APP_PAY_REQ_REQUIRED_FIELDS = [:prepayid, :noncestr]
45
45
  def self.generate_app_pay_req(params, options = {})
46
46
  params = {
47
47
  appid: options.delete(:appid) || WxPay.appid,
@@ -58,7 +58,7 @@ module WxPay
58
58
  params
59
59
  end
60
60
 
61
- GENERATE_JS_PAY_REQ_REQUIRED_FIELDS = %i(appId nonceStr package)
61
+ GENERATE_JS_PAY_REQ_REQUIRED_FIELDS = [:appid, :noncestr, :package]
62
62
  def self.generate_js_pay_req(params, options = {})
63
63
  params = {
64
64
  appId: options.delete(:appid) || WxPay.appid,
@@ -73,7 +73,7 @@ module WxPay
73
73
  params
74
74
  end
75
75
 
76
- INVOKE_REFUND_REQUIRED_FIELDS = %i(out_refund_no total_fee refund_fee op_user_id)
76
+ INVOKE_REFUND_REQUIRED_FIELDS = [:out_refund_no, :total_fee, :refund_fee, :op_user_id]
77
77
  def self.invoke_refund(params, options = {})
78
78
  params = {
79
79
  appid: options.delete(:appid) || WxPay.appid,
@@ -98,7 +98,7 @@ module WxPay
98
98
  r
99
99
  end
100
100
 
101
- INVOKE_TRANSFER_REQUIRED_FIELDS = %i(partner_trade_no openid check_name amount desc spbill_create_ip)
101
+ INVOKE_TRANSFER_REQUIRED_FIELDS = [:partner_trade_no, :openid, :check_name, :amount, :desc, :spbill_create_ip]
102
102
  def self.invoke_transfer(params, options = {})
103
103
  params = {
104
104
  mch_appid: options.delete(:appid) || WxPay.appid,
@@ -121,7 +121,7 @@ module WxPay
121
121
  r
122
122
  end
123
123
 
124
- INVOKE_REVERSE_REQUIRED_FIELDS = %i(out_trade_no)
124
+ INVOKE_REVERSE_REQUIRED_FIELDS = [:out_trade_no]
125
125
  def self.invoke_reverse(params, options = {})
126
126
  params = {
127
127
  appid: options.delete(:appid) || WxPay.appid,
@@ -144,7 +144,7 @@ module WxPay
144
144
  r
145
145
  end
146
146
 
147
- INVOKE_MICROPAY_REQUIRED_FIELDS = %i(body out_trade_no total_fee spbill_create_ip auth_code)
147
+ INVOKE_MICROPAY_REQUIRED_FIELDS = [:body, :out_trade_no, :total_fee, :spbill_create_ip, :auth_code]
148
148
  def self.invoke_micropay(params, options = {})
149
149
  params = {
150
150
  appid: options.delete(:appid) || WxPay.appid,
@@ -167,7 +167,7 @@ module WxPay
167
167
  r
168
168
  end
169
169
 
170
- ORDER_QUERY_REQUIRED_FIELDS = %i(out_trade_no)
170
+ ORDER_QUERY_REQUIRED_FIELDS = [:out_trade_no]
171
171
  def self.order_query(params, options = {})
172
172
  params = {
173
173
  appid: options.delete(:appid) || WxPay.appid,
@@ -1,3 +1,3 @@
1
1
  module WxPay
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wx_pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jasl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-30 00:00:00.000000000 Z
11
+ date: 2016-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client