pokepay_partner_ruby_sdk 0.1.2 → 0.1.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/Gemfile.lock +1 -1
- data/lib/pokepay_partner_ruby_sdk.rb +20 -19
- data/lib/pokepay_partner_ruby_sdk/request/create_organization.rb +2 -1
- data/lib/pokepay_partner_ruby_sdk/request/refund_transaction.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/update_account.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/response/pong.rb +2 -2
- data/lib/pokepay_partner_ruby_sdk/version.rb +1 -1
- data/partner.yaml +1609 -0
- metadata +8 -7
- data/lib/pokepay_partner_ruby_sdk/parameter/product.rb +0 -21
- data/lib/pokepay_partner_ruby_sdk/request/create_cpm_transaction.rb +0 -17
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pokepay_partner_ruby_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pocket Change, Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -116,9 +116,7 @@ files:
|
|
116
116
|
- lib/pokepay_partner_ruby_sdk.rb
|
117
117
|
- lib/pokepay_partner_ruby_sdk/client.rb
|
118
118
|
- lib/pokepay_partner_ruby_sdk/crypto.rb
|
119
|
-
- lib/pokepay_partner_ruby_sdk/parameter/product.rb
|
120
119
|
- lib/pokepay_partner_ruby_sdk/request/create_check.rb
|
121
|
-
- lib/pokepay_partner_ruby_sdk/request/create_cpm_transaction.rb
|
122
120
|
- lib/pokepay_partner_ruby_sdk/request/create_customer_account.rb
|
123
121
|
- lib/pokepay_partner_ruby_sdk/request/create_exchange_transaction.rb
|
124
122
|
- lib/pokepay_partner_ruby_sdk/request/create_organization.rb
|
@@ -135,8 +133,10 @@ files:
|
|
135
133
|
- lib/pokepay_partner_ruby_sdk/request/list_account_balances.rb
|
136
134
|
- lib/pokepay_partner_ruby_sdk/request/list_transactions.rb
|
137
135
|
- lib/pokepay_partner_ruby_sdk/request/list_transfers.rb
|
136
|
+
- lib/pokepay_partner_ruby_sdk/request/refund_transaction.rb
|
138
137
|
- lib/pokepay_partner_ruby_sdk/request/request.rb
|
139
138
|
- lib/pokepay_partner_ruby_sdk/request/send_echo.rb
|
139
|
+
- lib/pokepay_partner_ruby_sdk/request/update_account.rb
|
140
140
|
- lib/pokepay_partner_ruby_sdk/response/account.rb
|
141
141
|
- lib/pokepay_partner_ruby_sdk/response/account_balance.rb
|
142
142
|
- lib/pokepay_partner_ruby_sdk/response/account_detail.rb
|
@@ -167,6 +167,7 @@ files:
|
|
167
167
|
- lib/pokepay_partner_ruby_sdk/response/user.rb
|
168
168
|
- lib/pokepay_partner_ruby_sdk/response/user_transaction.rb
|
169
169
|
- lib/pokepay_partner_ruby_sdk/version.rb
|
170
|
+
- partner.yaml
|
170
171
|
- pokepay_partner_ruby_sdk.gemspec
|
171
172
|
homepage: https://github.com/pokepay/partner_ruby_sdk
|
172
173
|
licenses: []
|
@@ -174,7 +175,7 @@ metadata:
|
|
174
175
|
homepage_uri: https://github.com/pokepay/partner_ruby_sdk
|
175
176
|
source_code_uri: https://github.com/pokepay/partner_ruby_sdk
|
176
177
|
changelog_uri: https://github.com/pokepay/partner_ruby_sdk
|
177
|
-
post_install_message:
|
178
|
+
post_install_message:
|
178
179
|
rdoc_options: []
|
179
180
|
require_paths:
|
180
181
|
- lib
|
@@ -190,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
191
|
version: '0'
|
191
192
|
requirements: []
|
192
193
|
rubygems_version: 3.1.2
|
193
|
-
signing_key:
|
194
|
+
signing_key:
|
194
195
|
specification_version: 4
|
195
196
|
summary: Pokepay Partner API SDK for Ruby
|
196
197
|
test_files: []
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# DO NOT EDIT: File is generated by code generator.
|
2
|
-
|
3
|
-
|
4
|
-
module Pokepay::Response
|
5
|
-
class Product
|
6
|
-
def initialize(row)
|
7
|
-
@jan_code = row["jan_code"]
|
8
|
-
@name = row["name"]
|
9
|
-
@unit_price = row["unit_price"]
|
10
|
-
@price = row["price"]
|
11
|
-
@is_discounted = row["is_discounted"]
|
12
|
-
@other = row["other"]
|
13
|
-
end
|
14
|
-
attr_reader :jan_code
|
15
|
-
attr_reader :name
|
16
|
-
attr_reader :unit_price
|
17
|
-
attr_reader :price
|
18
|
-
attr_reader :is_discounted
|
19
|
-
attr_reader :other
|
20
|
-
end
|
21
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# DO NOT EDIT: File is generated by code generator.
|
2
|
-
|
3
|
-
require "pokepay_partner_ruby_sdk/response/transaction"
|
4
|
-
|
5
|
-
module Pokepay::Request
|
6
|
-
class CreateCpmTransaction < Request
|
7
|
-
def initialize(cpm_token, amount, shop_id, rest_args = {})
|
8
|
-
@path = "/transactions" + "/cpm"
|
9
|
-
@method = "POST"
|
10
|
-
@body_params = { "cpm_token" => cpm_token,
|
11
|
-
"amount" => amount,
|
12
|
-
"shop_id" => shop_id }.merge(rest_args)
|
13
|
-
@response_class = Pokepay::Response::Transaction
|
14
|
-
end
|
15
|
-
attr_reader :response_class
|
16
|
-
end
|
17
|
-
end
|