hippospay 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 183e5274c88607d73e897281ed15e3b0f87c344d
4
- data.tar.gz: f21618844de6042390b20b6a3dfd53df495243b5
3
+ metadata.gz: 84c45a8924f1d9889654b951d8da39ffa1ed32c6
4
+ data.tar.gz: 7166abda6ee0f8943e719709b81567fc4263e432
5
5
  SHA512:
6
- metadata.gz: 39cade86904d255cbf455fd53902d04ea7435b374c725cebaace8c9edb39f5d48934b9deaec9815ccd0645f6cafa0e938aad7c3cb83d49b09003d06f685ae20c
7
- data.tar.gz: e297554ee4c29960cfca28baedaa057820a79f746a288d656681755318fc400cc70a02d7cdc9fff1c301ed490f795353d40803ed083fcca079d167cf4f062717
6
+ metadata.gz: 85527122c2c6a9868f3d7c06f8ea661827426db3d756821d7ff8e4cedc775d3c4f3f231ef277ee52b60593fb3d72ecc334982e4229a64b86dc2e193ec2ec7090
7
+ data.tar.gz: 54ff5675ab28dd97468d7a069441779df56dbdf2eee05c8d2afe8f82cc8da7e1bc40febad2c6eb1f18d512d2e1752ef56a14a14572b36214e01d06849ffabc64
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hippospay (0.1.0)
4
+ hippospay (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This gem help you to use [生活圈商户开放平台](https://fubei.gitbooks.io/lifecircleopen-api/content/)
4
4
 
5
+ - get [对账单](https://fubei.gitbooks.io/lifecircleopen-api/content/business/methods/orderReconciliation.html) by date
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -20,7 +22,15 @@ Or install it yourself as:
20
22
 
21
23
  ## Usage
22
24
 
25
+ ```
26
+ require 'hippospay'
27
+ extend Hippospay
28
+ HIPPO_APP_ID = YOURAPPID
29
+ HIPPO_APP_SECRET = YOURAPPSECRET
30
+ get_hippo(day: "9", month: "11", year: "2017")
31
+ ```
23
32
 
33
+ Then you will get data in hash
24
34
 
25
35
  ## Development
26
36
 
@@ -11,8 +11,8 @@ module Hippospay
11
11
  limit = '100'
12
12
  type = '1'
13
13
  api_url = 'https://shq-api.51fubei.com/gateway'
14
- app_id = ENV['hippo_app_id']
15
- app_secret = ENV['hippo_app_secret']
14
+ app_id = HIPPO_APP_ID
15
+ app_secret = HIPPO_APP_SECRET
16
16
  method = 'openapi.payment.order.reconciliation'
17
17
  nonce = (0...32).map { ('a'..'z').to_a[rand(26)] }.join
18
18
  next_page = true
@@ -1,3 +1,3 @@
1
1
  module Hippospay
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hippospay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yang-Hsiang Chang