pingpp 2.2.3 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pingpp.rb +4 -0
- data/lib/pingpp/profit_transaction.rb +14 -0
- data/lib/pingpp/split_profit.rb +15 -0
- data/lib/pingpp/split_receiver.rb +16 -0
- data/lib/pingpp/sub_bank.rb +18 -0
- data/lib/pingpp/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e8818c3ba7daf72bc5f2d28e48de7bb3bcb8b8a
|
4
|
+
data.tar.gz: 98f92bbb59416422f36c3c7fc9a24a54c478fd70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd9c4348496a6568beee08fee8e175010cab2a265b0642e56d053db72d89328137fec928d7481ff0176c4dcea14a15c6054838f0e25cb0d4bd526824f1fbdfee
|
7
|
+
data.tar.gz: d1470145e4887b87c1e9521f59ffa928cef570fff05eb6e0c0e1e430a3f8fe1e9c315343aedec8fc5645f6dcf87ed6ee3f8122667eb951036f8cdf806dfe9947
|
data/lib/pingpp.rb
CHANGED
@@ -59,6 +59,10 @@ require 'pingpp/royalty_template'
|
|
59
59
|
require 'pingpp/balance_settlement'
|
60
60
|
require 'pingpp/card_info'
|
61
61
|
require 'pingpp/agreement'
|
62
|
+
require 'pingpp/sub_bank'
|
63
|
+
require 'pingpp/split_receiver'
|
64
|
+
require 'pingpp/split_profit'
|
65
|
+
require 'pingpp/profit_transaction'
|
62
66
|
|
63
67
|
# Errors
|
64
68
|
require 'pingpp/errors/pingpp_error'
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Pingpp
|
2
|
+
class SplitProfit < APIResource
|
3
|
+
extend Pingpp::APIOperations::Create
|
4
|
+
extend Pingpp::APIOperations::List
|
5
|
+
|
6
|
+
def self.object_name
|
7
|
+
'split_profit'
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.resource_url(opts={})
|
11
|
+
'/v1/split_profits'
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Pingpp
|
2
|
+
class SplitReceiver < APIResource
|
3
|
+
extend Pingpp::APIOperations::Create
|
4
|
+
extend Pingpp::APIOperations::List
|
5
|
+
include Pingpp::APIOperations::Delete
|
6
|
+
|
7
|
+
def self.object_name
|
8
|
+
'split_receiver'
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.resource_url(opts={})
|
12
|
+
'/v1/split_receivers'
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Pingpp
|
2
|
+
class SubBank < APIResource
|
3
|
+
extend Pingpp::APIOperations::List
|
4
|
+
|
5
|
+
def self.object_name
|
6
|
+
'sub_bank'
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.resource_url(opts={})
|
10
|
+
'/v1/sub_banks'
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.query(params={}, opts={})
|
14
|
+
list(params, opts)
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
data/lib/pingpp/version.rb
CHANGED
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.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xufeng Weng
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- lib/pingpp/list_object.rb
|
74
74
|
- lib/pingpp/order.rb
|
75
75
|
- lib/pingpp/pingpp_object.rb
|
76
|
+
- lib/pingpp/profit_transaction.rb
|
76
77
|
- lib/pingpp/recharge.rb
|
77
78
|
- lib/pingpp/red_envelope.rb
|
78
79
|
- lib/pingpp/refund.rb
|
@@ -83,8 +84,11 @@ files:
|
|
83
84
|
- lib/pingpp/settle_account.rb
|
84
85
|
- lib/pingpp/singleton_api_resource.rb
|
85
86
|
- lib/pingpp/singleton_app_based_resource.rb
|
87
|
+
- lib/pingpp/split_profit.rb
|
88
|
+
- lib/pingpp/split_receiver.rb
|
86
89
|
- lib/pingpp/sub_app.rb
|
87
90
|
- lib/pingpp/sub_app_based_resource.rb
|
91
|
+
- lib/pingpp/sub_bank.rb
|
88
92
|
- lib/pingpp/transfer.rb
|
89
93
|
- lib/pingpp/user.rb
|
90
94
|
- lib/pingpp/user_based_resource.rb
|