pokepay_partner_ruby_sdk 0.1.10 → 0.1.14
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 +3 -1
- data/docs/index.md +430 -87
- data/lib/pokepay_partner_ruby_sdk/request/get_customer_accounts.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/get_shop_accounts.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/list_user_accounts.rb +2 -2
- data/lib/pokepay_partner_ruby_sdk/request/refund_transaction.rb +2 -2
- data/lib/pokepay_partner_ruby_sdk/response/account_detail.rb +3 -0
- data/lib/pokepay_partner_ruby_sdk/response/paginated_account_details.rb +16 -0
- data/lib/pokepay_partner_ruby_sdk/response/paginated_account_with_users.rb +16 -0
- data/lib/pokepay_partner_ruby_sdk/version.rb +1 -1
- data/lib/pokepay_partner_ruby_sdk.rb +4 -0
- data/partner.yaml +275 -9
- metadata +6 -2
@@ -0,0 +1,15 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/paginated_account_with_users"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class GetCustomerAccounts < Request
|
7
|
+
def initialize(private_money_id, rest_args = {})
|
8
|
+
@path = "/accounts" + "/customers"
|
9
|
+
@method = "GET"
|
10
|
+
@body_params = { "private_money_id" => private_money_id }.merge(rest_args)
|
11
|
+
@response_class = Pokepay::Response::PaginatedAccountWithUsers
|
12
|
+
end
|
13
|
+
attr_reader :response_class
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/paginated_account_with_users"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class GetShopAccounts < Request
|
7
|
+
def initialize(private_money_id, rest_args = {})
|
8
|
+
@path = "/accounts" + "/shops"
|
9
|
+
@method = "GET"
|
10
|
+
@body_params = { "private_money_id" => private_money_id }.merge(rest_args)
|
11
|
+
@response_class = Pokepay::Response::PaginatedAccountWithUsers
|
12
|
+
end
|
13
|
+
attr_reader :response_class
|
14
|
+
end
|
15
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# DO NOT EDIT: File is generated by code generator.
|
2
2
|
|
3
|
-
require "pokepay_partner_ruby_sdk/response/
|
3
|
+
require "pokepay_partner_ruby_sdk/response/paginated_account_details"
|
4
4
|
|
5
5
|
module Pokepay::Request
|
6
6
|
class ListUserAccounts < Request
|
@@ -8,7 +8,7 @@ module Pokepay::Request
|
|
8
8
|
@path = "/users" + "/" + user_id + "/accounts"
|
9
9
|
@method = "GET"
|
10
10
|
@body_params = { }
|
11
|
-
@response_class = Pokepay::Response::
|
11
|
+
@response_class = Pokepay::Response::PaginatedAccountDetails
|
12
12
|
end
|
13
13
|
attr_reader :response_class
|
14
14
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# DO NOT EDIT: File is generated by code generator.
|
2
2
|
|
3
|
-
require "pokepay_partner_ruby_sdk/response/
|
3
|
+
require "pokepay_partner_ruby_sdk/response/transaction"
|
4
4
|
|
5
5
|
module Pokepay::Request
|
6
6
|
class RefundTransaction < Request
|
@@ -8,7 +8,7 @@ module Pokepay::Request
|
|
8
8
|
@path = "/transactions" + "/" + transaction_id + "/refund"
|
9
9
|
@method = "POST"
|
10
10
|
@body_params = { }.merge(rest_args)
|
11
|
-
@response_class = Pokepay::Response::
|
11
|
+
@response_class = Pokepay::Response::Transaction
|
12
12
|
end
|
13
13
|
attr_reader :response_class
|
14
14
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# DO NOT EDIT: File is generated by code generator.
|
2
2
|
|
3
3
|
require "pokepay_partner_ruby_sdk/response/private_money"
|
4
|
+
require "pokepay_partner_ruby_sdk/response/user"
|
4
5
|
|
5
6
|
module Pokepay::Response
|
6
7
|
class AccountDetail
|
@@ -12,6 +13,7 @@ module Pokepay::Response
|
|
12
13
|
@money_balance = row["money_balance"]
|
13
14
|
@point_balance = row["point_balance"]
|
14
15
|
@private_money = PrivateMoney.new(row["private_money"])
|
16
|
+
@user = User.new(row["user"])
|
15
17
|
end
|
16
18
|
attr_reader :id
|
17
19
|
attr_reader :name
|
@@ -20,5 +22,6 @@ module Pokepay::Response
|
|
20
22
|
attr_reader :money_balance
|
21
23
|
attr_reader :point_balance
|
22
24
|
attr_reader :private_money
|
25
|
+
attr_reader :user
|
23
26
|
end
|
24
27
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/pagination"
|
4
|
+
|
5
|
+
module Pokepay::Response
|
6
|
+
class PaginatedAccountDetails
|
7
|
+
def initialize(row)
|
8
|
+
@rows = row["rows"]
|
9
|
+
@count = row["count"]
|
10
|
+
@pagination = Pagination.new(row["pagination"])
|
11
|
+
end
|
12
|
+
attr_reader :rows
|
13
|
+
attr_reader :count
|
14
|
+
attr_reader :pagination
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/pagination"
|
4
|
+
|
5
|
+
module Pokepay::Response
|
6
|
+
class PaginatedAccountWithUsers
|
7
|
+
def initialize(row)
|
8
|
+
@rows = row["rows"]
|
9
|
+
@count = row["count"]
|
10
|
+
@pagination = Pagination.new(row["pagination"])
|
11
|
+
end
|
12
|
+
attr_reader :rows
|
13
|
+
attr_reader :count
|
14
|
+
attr_reader :pagination
|
15
|
+
end
|
16
|
+
end
|
@@ -13,7 +13,9 @@ require "pokepay_partner_ruby_sdk/request/get_account"
|
|
13
13
|
require "pokepay_partner_ruby_sdk/request/update_account"
|
14
14
|
require "pokepay_partner_ruby_sdk/request/list_account_balances"
|
15
15
|
require "pokepay_partner_ruby_sdk/request/list_account_expired_balances"
|
16
|
+
require "pokepay_partner_ruby_sdk/request/get_customer_accounts"
|
16
17
|
require "pokepay_partner_ruby_sdk/request/create_customer_account"
|
18
|
+
require "pokepay_partner_ruby_sdk/request/get_shop_accounts"
|
17
19
|
require "pokepay_partner_ruby_sdk/request/list_bills"
|
18
20
|
require "pokepay_partner_ruby_sdk/request/create_bill"
|
19
21
|
require "pokepay_partner_ruby_sdk/request/update_bill"
|
@@ -73,6 +75,8 @@ require "pokepay_partner_ruby_sdk/response/paginated_private_money_organization_
|
|
73
75
|
require "pokepay_partner_ruby_sdk/response/paginated_transaction"
|
74
76
|
require "pokepay_partner_ruby_sdk/response/paginated_transfers"
|
75
77
|
require "pokepay_partner_ruby_sdk/response/paginated_accounts"
|
78
|
+
require "pokepay_partner_ruby_sdk/response/paginated_account_with_users"
|
79
|
+
require "pokepay_partner_ruby_sdk/response/paginated_account_details"
|
76
80
|
require "pokepay_partner_ruby_sdk/response/paginated_account_balance"
|
77
81
|
require "pokepay_partner_ruby_sdk/response/paginated_shops"
|
78
82
|
require "pokepay_partner_ruby_sdk/response/paginated_bills"
|
data/partner.yaml
CHANGED
@@ -145,6 +145,8 @@ components:
|
|
145
145
|
format: decimal
|
146
146
|
private_money:
|
147
147
|
$ref: '#/components/schemas/PrivateMoney'
|
148
|
+
user:
|
149
|
+
$ref: '#/components/schemas/User'
|
148
150
|
ShopAccount:
|
149
151
|
x-pokepay-schema-type: "response"
|
150
152
|
properties:
|
@@ -674,7 +676,7 @@ components:
|
|
674
676
|
format: date-time
|
675
677
|
type:
|
676
678
|
type: string
|
677
|
-
enum: [topup, payment, refund-topup, refund-payment, transfer, exchange-inflow, exchange-outflow]
|
679
|
+
enum: [topup, payment, refund-topup, refund-payment, transfer, exchange-inflow, exchange-outflow, campaign-topup, refund-campaign, use-coupon, refund-coupon]
|
678
680
|
description:
|
679
681
|
type: string
|
680
682
|
transaction_id:
|
@@ -757,6 +759,30 @@ components:
|
|
757
759
|
minimum: 0
|
758
760
|
pagination:
|
759
761
|
$ref: '#/components/schemas/Pagination'
|
762
|
+
PaginatedAccountWithUsers:
|
763
|
+
x-pokepay-schema-type: "response"
|
764
|
+
properties:
|
765
|
+
rows:
|
766
|
+
type: array
|
767
|
+
items:
|
768
|
+
$ref: '#/components/schemas/AccountWithUser'
|
769
|
+
count:
|
770
|
+
type: integer
|
771
|
+
minimum: 0
|
772
|
+
pagination:
|
773
|
+
$ref: '#/components/schemas/Pagination'
|
774
|
+
PaginatedAccountDetails:
|
775
|
+
x-pokepay-schema-type: "response"
|
776
|
+
properties:
|
777
|
+
rows:
|
778
|
+
type: array
|
779
|
+
items:
|
780
|
+
$ref: '#/components/schemas/AccountDetail'
|
781
|
+
count:
|
782
|
+
type: integer
|
783
|
+
minimum: 0
|
784
|
+
pagination:
|
785
|
+
$ref: '#/components/schemas/Pagination'
|
760
786
|
PaginatedAccountBalance:
|
761
787
|
x-pokepay-schema-type: "response"
|
762
788
|
properties:
|
@@ -903,6 +929,20 @@ components:
|
|
903
929
|
message:
|
904
930
|
type: string
|
905
931
|
|
932
|
+
PrivateMoneyNotAvailable:
|
933
|
+
properties:
|
934
|
+
type:
|
935
|
+
type: string
|
936
|
+
pattern: '^unpermitted_private_money$'
|
937
|
+
message:
|
938
|
+
type: string
|
939
|
+
example: 'This money is not available'
|
940
|
+
object:
|
941
|
+
type: array
|
942
|
+
items:
|
943
|
+
type: string
|
944
|
+
format: uuid
|
945
|
+
|
906
946
|
responses:
|
907
947
|
BadRequest:
|
908
948
|
description: Bad Request
|
@@ -1008,7 +1048,7 @@ paths:
|
|
1008
1048
|
content:
|
1009
1049
|
application/json:
|
1010
1050
|
schema:
|
1011
|
-
$ref: '#/components/schemas/
|
1051
|
+
$ref: '#/components/schemas/PaginatedAccountDetails'
|
1012
1052
|
'400':
|
1013
1053
|
$ref: '#/components/responses/BadRequest'
|
1014
1054
|
'403':
|
@@ -1219,6 +1259,80 @@ paths:
|
|
1219
1259
|
'404':
|
1220
1260
|
$ref: '#/components/responses/NotFound'
|
1221
1261
|
/accounts/customers:
|
1262
|
+
get:
|
1263
|
+
tags:
|
1264
|
+
- Customer
|
1265
|
+
summary: 'エンドユーザーのウォレット一覧を表示する'
|
1266
|
+
description: マネーを指定してエンドユーザーのウォレット一覧を取得します。
|
1267
|
+
x-pokepay-operator-name: "GetCustomerAccounts"
|
1268
|
+
x-pokepay-allow-server-side: true
|
1269
|
+
requestBody:
|
1270
|
+
required: true
|
1271
|
+
content:
|
1272
|
+
application/json:
|
1273
|
+
schema:
|
1274
|
+
required: ["private_money_id"]
|
1275
|
+
properties:
|
1276
|
+
private_money_id:
|
1277
|
+
title: 'マネーID'
|
1278
|
+
description: |-
|
1279
|
+
マネーIDです。
|
1280
|
+
|
1281
|
+
一覧するウォレットのマネーを指定します。このパラメータは必須です。
|
1282
|
+
type: string
|
1283
|
+
format: uuid
|
1284
|
+
page:
|
1285
|
+
type: integer
|
1286
|
+
minimum: 1
|
1287
|
+
title: 'ページ番号'
|
1288
|
+
description: 取得したいページ番号です。デフォルト値は1です。
|
1289
|
+
per_page:
|
1290
|
+
type: integer
|
1291
|
+
minimum: 1
|
1292
|
+
title: '1ページ分のウォレット数'
|
1293
|
+
description: 1ページ分のウォレット数です。デフォルト値は30です。
|
1294
|
+
created_at_from:
|
1295
|
+
type: string
|
1296
|
+
format: date-time
|
1297
|
+
title: 'ウォレット作成日によるフィルター(開始時点)'
|
1298
|
+
description: ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。
|
1299
|
+
created_at_to:
|
1300
|
+
type: string
|
1301
|
+
format: date-time
|
1302
|
+
title: 'ウォレット作成日によるフィルター(終了時点)'
|
1303
|
+
description: ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。
|
1304
|
+
is_suspended:
|
1305
|
+
type: boolean
|
1306
|
+
title: 'ウォレットが凍結状態かどうかでフィルターする'
|
1307
|
+
description: このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。
|
1308
|
+
external_id:
|
1309
|
+
type: string
|
1310
|
+
maxLength: 50
|
1311
|
+
title: '外部ID'
|
1312
|
+
description: 外部IDでのフィルタリングです。デフォルトでは未指定です。
|
1313
|
+
tel:
|
1314
|
+
type: string
|
1315
|
+
pattern: '^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$'
|
1316
|
+
title: 'エンドユーザーの電話番号'
|
1317
|
+
description: エンドユーザーの電話番号でのフィルタリングです。デフォルトでは未指定です。
|
1318
|
+
email:
|
1319
|
+
type: string
|
1320
|
+
format: email
|
1321
|
+
title: 'エンドユーザーのメールアドレス'
|
1322
|
+
description: エンドユーザーのメールアドレスでのフィルタリングです。デフォルトでは未指定です。
|
1323
|
+
responses:
|
1324
|
+
'200':
|
1325
|
+
description: OK
|
1326
|
+
content:
|
1327
|
+
application/json:
|
1328
|
+
schema:
|
1329
|
+
$ref: '#/components/schemas/PaginatedAccountWithUsers'
|
1330
|
+
'400':
|
1331
|
+
$ref: '#/components/responses/BadRequest'
|
1332
|
+
'403':
|
1333
|
+
$ref: '#/components/responses/Forbidden'
|
1334
|
+
'422':
|
1335
|
+
$ref: '#/components/responses/UnprocessableEntity'
|
1222
1336
|
post:
|
1223
1337
|
tags:
|
1224
1338
|
- Customer
|
@@ -1256,6 +1370,12 @@ paths:
|
|
1256
1370
|
type: string
|
1257
1371
|
maxLength: 256
|
1258
1372
|
example: ポケペイ太郎のアカウント
|
1373
|
+
external_id:
|
1374
|
+
title: '外部ID'
|
1375
|
+
description: |-
|
1376
|
+
PAPIクライアントシステムから利用するPokepayユーザーのIDです。デフォルトでは未指定です。
|
1377
|
+
type: string
|
1378
|
+
maxLength: 50
|
1259
1379
|
responses:
|
1260
1380
|
'200':
|
1261
1381
|
description: OK
|
@@ -1269,6 +1389,66 @@ paths:
|
|
1269
1389
|
$ref: '#/components/responses/Forbidden'
|
1270
1390
|
'422':
|
1271
1391
|
$ref: '#/components/responses/UnprocessableEntity'
|
1392
|
+
/accounts/shops:
|
1393
|
+
get:
|
1394
|
+
tags:
|
1395
|
+
- Customer
|
1396
|
+
summary: '店舗ユーザーのウォレット一覧を表示する'
|
1397
|
+
description: マネーを指定して店舗ユーザーのウォレット一覧を取得します。
|
1398
|
+
x-pokepay-operator-name: "GetShopAccounts"
|
1399
|
+
x-pokepay-allow-server-side: true
|
1400
|
+
requestBody:
|
1401
|
+
required: true
|
1402
|
+
content:
|
1403
|
+
application/json:
|
1404
|
+
schema:
|
1405
|
+
required: ["private_money_id"]
|
1406
|
+
properties:
|
1407
|
+
private_money_id:
|
1408
|
+
title: 'マネーID'
|
1409
|
+
description: |-
|
1410
|
+
マネーIDです。
|
1411
|
+
|
1412
|
+
一覧するウォレットのマネーを指定します。このパラメータは必須です。
|
1413
|
+
type: string
|
1414
|
+
format: uuid
|
1415
|
+
page:
|
1416
|
+
type: integer
|
1417
|
+
minimum: 1
|
1418
|
+
title: 'ページ番号'
|
1419
|
+
description: 取得したいページ番号です。デフォルト値は1です。
|
1420
|
+
per_page:
|
1421
|
+
type: integer
|
1422
|
+
minimum: 1
|
1423
|
+
title: '1ページ分のウォレット数'
|
1424
|
+
description: 1ページ分のウォレット数です。デフォルト値は30です。
|
1425
|
+
created_at_from:
|
1426
|
+
type: string
|
1427
|
+
format: date-time
|
1428
|
+
title: 'ウォレット作成日によるフィルター(開始時点)'
|
1429
|
+
description: ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。
|
1430
|
+
created_at_to:
|
1431
|
+
type: string
|
1432
|
+
format: date-time
|
1433
|
+
title: 'ウォレット作成日によるフィルター(終了時点)'
|
1434
|
+
description: ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。
|
1435
|
+
is_suspended:
|
1436
|
+
type: boolean
|
1437
|
+
title: 'ウォレットが凍結状態かどうかでフィルターする'
|
1438
|
+
description: このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。
|
1439
|
+
responses:
|
1440
|
+
'200':
|
1441
|
+
description: OK
|
1442
|
+
content:
|
1443
|
+
application/json:
|
1444
|
+
schema:
|
1445
|
+
$ref: '#/components/schemas/PaginatedAccountWithUsers'
|
1446
|
+
'400':
|
1447
|
+
$ref: '#/components/responses/BadRequest'
|
1448
|
+
'403':
|
1449
|
+
$ref: '#/components/responses/Forbidden'
|
1450
|
+
'422':
|
1451
|
+
$ref: '#/components/responses/UnprocessableEntity'
|
1272
1452
|
/bills:
|
1273
1453
|
get:
|
1274
1454
|
tags:
|
@@ -1675,6 +1855,15 @@ paths:
|
|
1675
1855
|
items:
|
1676
1856
|
type: string
|
1677
1857
|
enum: [topup, payment, exchange_outflow, exchange_inflow]
|
1858
|
+
description:
|
1859
|
+
type: string
|
1860
|
+
maxLength: 200
|
1861
|
+
title: '取引説明文'
|
1862
|
+
description: |-
|
1863
|
+
取引を指定の取引説明文でフィルターします。
|
1864
|
+
|
1865
|
+
取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。
|
1866
|
+
example: 店頭QRコードによる支払い
|
1678
1867
|
responses:
|
1679
1868
|
'200':
|
1680
1869
|
description: OK
|
@@ -1819,6 +2008,17 @@ paths:
|
|
1819
2008
|
|
1820
2009
|
任意入力で、取引履歴に表示される説明文です。
|
1821
2010
|
example: 初夏のチャージキャンペーン
|
2011
|
+
request_id:
|
2012
|
+
type: string
|
2013
|
+
format: uuid
|
2014
|
+
title: 'リクエストID'
|
2015
|
+
description: |-
|
2016
|
+
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
|
2017
|
+
|
2018
|
+
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
|
2019
|
+
|
2020
|
+
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
|
2021
|
+
example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2'
|
1822
2022
|
responses:
|
1823
2023
|
'200':
|
1824
2024
|
description: OK
|
@@ -1939,6 +2139,17 @@ paths:
|
|
1939
2139
|
|
1940
2140
|
任意入力で、取引履歴に表示される説明文です。
|
1941
2141
|
example: たい焼き(小倉)
|
2142
|
+
request_id:
|
2143
|
+
type: string
|
2144
|
+
format: uuid
|
2145
|
+
title: 'リクエストID'
|
2146
|
+
description: |-
|
2147
|
+
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
|
2148
|
+
|
2149
|
+
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
|
2150
|
+
|
2151
|
+
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
|
2152
|
+
example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2'
|
1942
2153
|
responses:
|
1943
2154
|
'200':
|
1944
2155
|
description: OK
|
@@ -2010,6 +2221,17 @@ paths:
|
|
2010
2221
|
|
2011
2222
|
任意入力で、取引履歴に表示される説明文です。
|
2012
2223
|
example: たい焼き(小倉)
|
2224
|
+
request_id:
|
2225
|
+
type: string
|
2226
|
+
format: uuid
|
2227
|
+
title: 'リクエストID'
|
2228
|
+
description: |-
|
2229
|
+
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
|
2230
|
+
|
2231
|
+
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
|
2232
|
+
|
2233
|
+
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
|
2234
|
+
example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2'
|
2013
2235
|
responses:
|
2014
2236
|
'200':
|
2015
2237
|
description: OK
|
@@ -2050,6 +2272,17 @@ paths:
|
|
2050
2272
|
description:
|
2051
2273
|
type: string
|
2052
2274
|
maxLength: 200
|
2275
|
+
request_id:
|
2276
|
+
type: string
|
2277
|
+
format: uuid
|
2278
|
+
title: 'リクエストID'
|
2279
|
+
description: |-
|
2280
|
+
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
|
2281
|
+
|
2282
|
+
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
|
2283
|
+
|
2284
|
+
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
|
2285
|
+
example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2'
|
2053
2286
|
responses:
|
2054
2287
|
'200':
|
2055
2288
|
description: OK
|
@@ -2171,8 +2404,9 @@ paths:
|
|
2171
2404
|
post:
|
2172
2405
|
tags:
|
2173
2406
|
- Transaction
|
2174
|
-
summary: 返金する
|
2175
|
-
x-pokepay-operator-name: RefundTransaction
|
2407
|
+
summary: '返金する'
|
2408
|
+
x-pokepay-operator-name: "RefundTransaction"
|
2409
|
+
x-pokepay-allow-server-side: true
|
2176
2410
|
parameters:
|
2177
2411
|
- in: path
|
2178
2412
|
name: transaction_id
|
@@ -2198,11 +2432,9 @@ paths:
|
|
2198
2432
|
content:
|
2199
2433
|
application/json:
|
2200
2434
|
schema:
|
2201
|
-
$ref: '#/components/schemas/
|
2435
|
+
$ref: '#/components/schemas/Transaction'
|
2202
2436
|
'403':
|
2203
2437
|
$ref: '#/components/responses/Forbidden'
|
2204
|
-
'404':
|
2205
|
-
$ref: '#/components/responses/NotFound'
|
2206
2438
|
'422':
|
2207
2439
|
$ref: '#/components/responses/UnprocessableEntity'
|
2208
2440
|
/transfers:
|
@@ -2256,9 +2488,37 @@ paths:
|
|
2256
2488
|
enum: [topup, payment, transfer, exchange]
|
2257
2489
|
transfer_types:
|
2258
2490
|
type: array
|
2491
|
+
description: |-
|
2492
|
+
取引明細の種類でフィルターします。
|
2493
|
+
|
2494
|
+
以下の種類を指定できます。
|
2495
|
+
|
2496
|
+
1. topup
|
2497
|
+
店舗からエンドユーザーへの送金取引(チャージ)、またはそのキャンセル取引
|
2498
|
+
|
2499
|
+
2. payment
|
2500
|
+
エンドユーザーから店舗への送金取引(支払い)、またはそのキャンセル取引
|
2501
|
+
|
2502
|
+
3. exchange
|
2503
|
+
他マネーへの流出/流入
|
2504
|
+
|
2505
|
+
4. campaign
|
2506
|
+
取引に対するポイント還元キャンペーンによるポイント付与、またはそのキャンセル取引
|
2507
|
+
|
2508
|
+
5. coupon
|
2509
|
+
クーポンによる値引き処理、またはそのキャンセル取引
|
2259
2510
|
items:
|
2260
2511
|
type: string
|
2261
|
-
enum: [topup, payment, exchange, transfer]
|
2512
|
+
enum: [topup, payment, exchange, transfer, coupon, campaign]
|
2513
|
+
description:
|
2514
|
+
type: string
|
2515
|
+
maxLength: 200
|
2516
|
+
title: '取引詳細説明文'
|
2517
|
+
description: |-
|
2518
|
+
取引詳細を指定の取引詳細説明文でフィルターします。
|
2519
|
+
|
2520
|
+
取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。
|
2521
|
+
example: 店頭QRコードによる支払い
|
2262
2522
|
responses:
|
2263
2523
|
'200':
|
2264
2524
|
description: OK
|
@@ -2604,7 +2864,13 @@ paths:
|
|
2604
2864
|
'409':
|
2605
2865
|
$ref: '#/components/responses/Conflict'
|
2606
2866
|
'422':
|
2607
|
-
|
2867
|
+
description:
|
2868
|
+
content:
|
2869
|
+
application/json:
|
2870
|
+
schema:
|
2871
|
+
oneOf:
|
2872
|
+
- $ref: '#/components/schemas/PrivateMoneyNotAvailable'
|
2873
|
+
- $ref: '#/components/schemas/UnprocessableEntity'
|
2608
2874
|
/shops/{shop_id}:
|
2609
2875
|
get:
|
2610
2876
|
tags:
|
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.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pocket Change, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -134,10 +134,12 @@ files:
|
|
134
134
|
- lib/pokepay_partner_ruby_sdk/request/get_account.rb
|
135
135
|
- lib/pokepay_partner_ruby_sdk/request/get_bulk_transaction.rb
|
136
136
|
- lib/pokepay_partner_ruby_sdk/request/get_cashtray.rb
|
137
|
+
- lib/pokepay_partner_ruby_sdk/request/get_customer_accounts.rb
|
137
138
|
- lib/pokepay_partner_ruby_sdk/request/get_ping.rb
|
138
139
|
- lib/pokepay_partner_ruby_sdk/request/get_private_money_organization_summaries.rb
|
139
140
|
- lib/pokepay_partner_ruby_sdk/request/get_private_moneys.rb
|
140
141
|
- lib/pokepay_partner_ruby_sdk/request/get_shop.rb
|
142
|
+
- lib/pokepay_partner_ruby_sdk/request/get_shop_accounts.rb
|
141
143
|
- lib/pokepay_partner_ruby_sdk/request/get_transaction.rb
|
142
144
|
- lib/pokepay_partner_ruby_sdk/request/get_user.rb
|
143
145
|
- lib/pokepay_partner_ruby_sdk/request/list_account_balances.rb
|
@@ -173,6 +175,8 @@ files:
|
|
173
175
|
- lib/pokepay_partner_ruby_sdk/response/organization.rb
|
174
176
|
- lib/pokepay_partner_ruby_sdk/response/organization_summary.rb
|
175
177
|
- lib/pokepay_partner_ruby_sdk/response/paginated_account_balance.rb
|
178
|
+
- lib/pokepay_partner_ruby_sdk/response/paginated_account_details.rb
|
179
|
+
- lib/pokepay_partner_ruby_sdk/response/paginated_account_with_users.rb
|
176
180
|
- lib/pokepay_partner_ruby_sdk/response/paginated_accounts.rb
|
177
181
|
- lib/pokepay_partner_ruby_sdk/response/paginated_bills.rb
|
178
182
|
- lib/pokepay_partner_ruby_sdk/response/paginated_private_money_organization_summaries.rb
|