pokepay_partner_ruby_sdk 0.3.2 → 0.3.6
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/.github/workflows/release-pr.yml +18 -0
- data/Gemfile.lock +1 -1
- data/docs/README.md +269 -0
- data/docs/account.md +159 -0
- data/docs/bank_pay.md +235 -0
- data/docs/bill.md +365 -0
- data/docs/bulk.md +121 -0
- data/docs/campaign.md +1749 -0
- data/docs/cashtray.md +318 -0
- data/docs/check.md +883 -0
- data/docs/coupon.md +724 -0
- data/docs/customer.md +1042 -0
- data/docs/error-response.csv +839 -0
- data/docs/event.md +308 -0
- data/docs/index.md +1279 -305
- data/docs/organization.md +292 -0
- data/docs/private_money.md +213 -0
- data/docs/responses.md +711 -0
- data/docs/shop.md +678 -0
- data/docs/transaction.md +2021 -0
- data/docs/transfer.md +686 -0
- data/docs/user.md +3 -0
- data/docs/user_device.md +134 -0
- data/docs/webhook.md +231 -0
- data/lib/pokepay_partner_ruby_sdk/request/activate_user_device.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/create_bank.rb +17 -0
- data/lib/pokepay_partner_ruby_sdk/request/create_bank_topup_transaction.rb +18 -0
- data/lib/pokepay_partner_ruby_sdk/request/create_coupon.rb +19 -0
- data/lib/pokepay_partner_ruby_sdk/request/create_external_transaction.rb +2 -2
- data/lib/pokepay_partner_ruby_sdk/request/create_transaction_with_cashtray.rb +16 -0
- data/lib/pokepay_partner_ruby_sdk/request/create_user_device.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/delete_webhook.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/get_check.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/get_coupon.rb +1 -1
- data/lib/pokepay_partner_ruby_sdk/request/get_external_transaction_by_request_id.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/get_user_device.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/list_banks.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/list_checks.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/list_organizations.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/refund_external_transaction.rb +2 -2
- data/lib/pokepay_partner_ruby_sdk/request/update_check.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/update_coupon.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/response/bank.rb +28 -0
- data/lib/pokepay_partner_ruby_sdk/response/bank_registering_info.rb +13 -0
- data/lib/pokepay_partner_ruby_sdk/response/banks.rb +13 -0
- data/lib/pokepay_partner_ruby_sdk/response/campaign.rb +6 -0
- data/lib/pokepay_partner_ruby_sdk/response/check.rb +2 -0
- data/lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb +34 -0
- data/lib/pokepay_partner_ruby_sdk/response/organization_summary.rb +4 -0
- data/lib/pokepay_partner_ruby_sdk/response/paginated_checks.rb +16 -0
- data/lib/pokepay_partner_ruby_sdk/response/paginated_organizations.rb +16 -0
- data/lib/pokepay_partner_ruby_sdk/response/private_money_summary.rb +4 -0
- data/lib/pokepay_partner_ruby_sdk/response/product.rb +2 -0
- data/lib/pokepay_partner_ruby_sdk/response/user_device.rb +18 -0
- data/lib/pokepay_partner_ruby_sdk/version.rb +1 -1
- data/lib/pokepay_partner_ruby_sdk.rb +26 -4
- data/partner.yaml +1578 -216
- metadata +46 -2
data/docs/customer.md
ADDED
@@ -0,0 +1,1042 @@
|
|
1
|
+
# Customer
|
2
|
+
|
3
|
+
<a name="delete-account"></a>
|
4
|
+
## DeleteAccount: ウォレットを退会する
|
5
|
+
ウォレットを退会します。一度ウォレットを退会した後は、そのウォレットを再び利用可能な状態に戻すことは出来ません。
|
6
|
+
|
7
|
+
```RUBY
|
8
|
+
response = $client.send(Pokepay::Request::DeleteAccount.new(
|
9
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID
|
10
|
+
cashback: true # 返金有無
|
11
|
+
))
|
12
|
+
```
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
### Parameters
|
17
|
+
**`account_id`**
|
18
|
+
|
19
|
+
|
20
|
+
ウォレットIDです。
|
21
|
+
|
22
|
+
指定したウォレットIDのウォレットを退会します。
|
23
|
+
|
24
|
+
```json
|
25
|
+
{
|
26
|
+
"type": "string",
|
27
|
+
"format": "uuid"
|
28
|
+
}
|
29
|
+
```
|
30
|
+
|
31
|
+
**`cashback`**
|
32
|
+
|
33
|
+
|
34
|
+
退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。
|
35
|
+
|
36
|
+
```json
|
37
|
+
{
|
38
|
+
"type": "boolean"
|
39
|
+
}
|
40
|
+
```
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
成功したときは
|
45
|
+
[AccountDeleted](./responses.md#account-deleted)
|
46
|
+
を返します
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
---
|
51
|
+
|
52
|
+
|
53
|
+
<a name="get-account"></a>
|
54
|
+
## GetAccount: ウォレット情報を表示する
|
55
|
+
ウォレットを取得します。
|
56
|
+
|
57
|
+
```RUBY
|
58
|
+
response = $client.send(Pokepay::Request::GetAccount.new(
|
59
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # account_id: ウォレットID
|
60
|
+
))
|
61
|
+
```
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
### Parameters
|
66
|
+
**`account_id`**
|
67
|
+
|
68
|
+
|
69
|
+
ウォレットIDです。
|
70
|
+
|
71
|
+
フィルターとして使われ、指定したウォレットIDのウォレットを取得します。
|
72
|
+
|
73
|
+
```json
|
74
|
+
{
|
75
|
+
"type": "string",
|
76
|
+
"format": "uuid"
|
77
|
+
}
|
78
|
+
```
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
成功したときは
|
83
|
+
[AccountDetail](./responses.md#account-detail)
|
84
|
+
を返します
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
---
|
89
|
+
|
90
|
+
|
91
|
+
<a name="update-account"></a>
|
92
|
+
## UpdateAccount: ウォレット情報を更新する
|
93
|
+
ウォレットの状態を更新します。
|
94
|
+
以下の項目が変更できます。
|
95
|
+
|
96
|
+
- ウォレットの凍結/凍結解除の切り替え(エンドユーザー、店舗ユーザー共通)
|
97
|
+
- 店舗でチャージ可能かどうか(店舗ユーザのみ)
|
98
|
+
|
99
|
+
エンドユーザーのウォレット情報更新には UpdateCustomerAccount が使用できます。
|
100
|
+
|
101
|
+
```RUBY
|
102
|
+
response = $client.send(Pokepay::Request::UpdateAccount.new(
|
103
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID
|
104
|
+
is_suspended: true, # ウォレットが凍結されているかどうか
|
105
|
+
status: "suspended", # ウォレット状態
|
106
|
+
can_transfer_topup: false # チャージ可能かどうか
|
107
|
+
))
|
108
|
+
```
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
### Parameters
|
113
|
+
**`account_id`**
|
114
|
+
|
115
|
+
|
116
|
+
ウォレットIDです。
|
117
|
+
|
118
|
+
指定したウォレットIDのウォレットの状態を更新します。
|
119
|
+
|
120
|
+
```json
|
121
|
+
{
|
122
|
+
"type": "string",
|
123
|
+
"format": "uuid"
|
124
|
+
}
|
125
|
+
```
|
126
|
+
|
127
|
+
**`is_suspended`**
|
128
|
+
|
129
|
+
|
130
|
+
ウォレットの凍結状態です。真にするとウォレットが凍結され、そのウォレットでは新規取引ができなくなります。偽にすると凍結解除されます。
|
131
|
+
|
132
|
+
```json
|
133
|
+
{
|
134
|
+
"type": "boolean"
|
135
|
+
}
|
136
|
+
```
|
137
|
+
|
138
|
+
**`status`**
|
139
|
+
|
140
|
+
|
141
|
+
ウォレットの状態です。
|
142
|
+
|
143
|
+
```json
|
144
|
+
{
|
145
|
+
"type": "string",
|
146
|
+
"enum": [
|
147
|
+
"active",
|
148
|
+
"suspended",
|
149
|
+
"pre-closed"
|
150
|
+
]
|
151
|
+
}
|
152
|
+
```
|
153
|
+
|
154
|
+
**`can_transfer_topup`**
|
155
|
+
|
156
|
+
|
157
|
+
店舗ユーザーがエンドユーザーにチャージ可能かどうかです。真にするとチャージ可能となり、偽にするとチャージ不可能となります。
|
158
|
+
|
159
|
+
```json
|
160
|
+
{
|
161
|
+
"type": "boolean"
|
162
|
+
}
|
163
|
+
```
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
成功したときは
|
168
|
+
[AccountDetail](./responses.md#account-detail)
|
169
|
+
を返します
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
---
|
174
|
+
|
175
|
+
|
176
|
+
<a name="list-account-balances"></a>
|
177
|
+
## ListAccountBalances: エンドユーザーの残高内訳を表示する
|
178
|
+
エンドユーザーのウォレット毎の残高を有効期限別のリストとして取得します。
|
179
|
+
|
180
|
+
```RUBY
|
181
|
+
response = $client.send(Pokepay::Request::ListAccountBalances.new(
|
182
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID
|
183
|
+
page: 2551, # ページ番号
|
184
|
+
per_page: 6034, # 1ページ分の取引数
|
185
|
+
expires_at_from: "2020-03-19T11:40:52.000000Z", # 有効期限の期間によるフィルター(開始時点)
|
186
|
+
expires_at_to: "2021-04-16T05:15:38.000000Z", # 有効期限の期間によるフィルター(終了時点)
|
187
|
+
direction: "desc" # 有効期限によるソート順序
|
188
|
+
))
|
189
|
+
```
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
### Parameters
|
194
|
+
**`account_id`**
|
195
|
+
|
196
|
+
|
197
|
+
ウォレットIDです。
|
198
|
+
|
199
|
+
フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。
|
200
|
+
|
201
|
+
```json
|
202
|
+
{
|
203
|
+
"type": "string",
|
204
|
+
"format": "uuid"
|
205
|
+
}
|
206
|
+
```
|
207
|
+
|
208
|
+
**`page`**
|
209
|
+
|
210
|
+
|
211
|
+
取得したいページ番号です。デフォルト値は1です。
|
212
|
+
|
213
|
+
```json
|
214
|
+
{
|
215
|
+
"type": "integer",
|
216
|
+
"minimum": 1
|
217
|
+
}
|
218
|
+
```
|
219
|
+
|
220
|
+
**`per_page`**
|
221
|
+
|
222
|
+
|
223
|
+
1ページ分のウォレット残高数です。デフォルト値は30です。
|
224
|
+
|
225
|
+
```json
|
226
|
+
{
|
227
|
+
"type": "integer",
|
228
|
+
"minimum": 1
|
229
|
+
}
|
230
|
+
```
|
231
|
+
|
232
|
+
**`expires_at_from`**
|
233
|
+
|
234
|
+
|
235
|
+
有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。
|
236
|
+
|
237
|
+
```json
|
238
|
+
{
|
239
|
+
"type": "string",
|
240
|
+
"format": "date-time"
|
241
|
+
}
|
242
|
+
```
|
243
|
+
|
244
|
+
**`expires_at_to`**
|
245
|
+
|
246
|
+
|
247
|
+
有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。
|
248
|
+
|
249
|
+
```json
|
250
|
+
{
|
251
|
+
"type": "string",
|
252
|
+
"format": "date-time"
|
253
|
+
}
|
254
|
+
```
|
255
|
+
|
256
|
+
**`direction`**
|
257
|
+
|
258
|
+
|
259
|
+
有効期限によるソートの順序を指定します。デフォルト値はasc (昇順)です。
|
260
|
+
|
261
|
+
```json
|
262
|
+
{
|
263
|
+
"type": "string",
|
264
|
+
"enum": [
|
265
|
+
"asc",
|
266
|
+
"desc"
|
267
|
+
]
|
268
|
+
}
|
269
|
+
```
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
成功したときは
|
274
|
+
[PaginatedAccountBalance](./responses.md#paginated-account-balance)
|
275
|
+
を返します
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
---
|
280
|
+
|
281
|
+
|
282
|
+
<a name="list-account-expired-balances"></a>
|
283
|
+
## ListAccountExpiredBalances: エンドユーザーの失効済みの残高内訳を表示する
|
284
|
+
エンドユーザーのウォレット毎の失効済みの残高を有効期限別のリストとして取得します。
|
285
|
+
|
286
|
+
```RUBY
|
287
|
+
response = $client.send(Pokepay::Request::ListAccountExpiredBalances.new(
|
288
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID
|
289
|
+
page: 2650, # ページ番号
|
290
|
+
per_page: 5536, # 1ページ分の取引数
|
291
|
+
expires_at_from: "2020-01-02T20:37:11.000000Z", # 有効期限の期間によるフィルター(開始時点)
|
292
|
+
expires_at_to: "2022-05-20T13:22:30.000000Z", # 有効期限の期間によるフィルター(終了時点)
|
293
|
+
direction: "desc" # 有効期限によるソート順序
|
294
|
+
))
|
295
|
+
```
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
### Parameters
|
300
|
+
**`account_id`**
|
301
|
+
|
302
|
+
|
303
|
+
ウォレットIDです。
|
304
|
+
|
305
|
+
フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。
|
306
|
+
|
307
|
+
```json
|
308
|
+
{
|
309
|
+
"type": "string",
|
310
|
+
"format": "uuid"
|
311
|
+
}
|
312
|
+
```
|
313
|
+
|
314
|
+
**`page`**
|
315
|
+
|
316
|
+
|
317
|
+
取得したいページ番号です。デフォルト値は1です。
|
318
|
+
|
319
|
+
```json
|
320
|
+
{
|
321
|
+
"type": "integer",
|
322
|
+
"minimum": 1
|
323
|
+
}
|
324
|
+
```
|
325
|
+
|
326
|
+
**`per_page`**
|
327
|
+
|
328
|
+
|
329
|
+
1ページ分のウォレット残高数です。デフォルト値は30です。
|
330
|
+
|
331
|
+
```json
|
332
|
+
{
|
333
|
+
"type": "integer",
|
334
|
+
"minimum": 1
|
335
|
+
}
|
336
|
+
```
|
337
|
+
|
338
|
+
**`expires_at_from`**
|
339
|
+
|
340
|
+
|
341
|
+
有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。
|
342
|
+
|
343
|
+
```json
|
344
|
+
{
|
345
|
+
"type": "string",
|
346
|
+
"format": "date-time"
|
347
|
+
}
|
348
|
+
```
|
349
|
+
|
350
|
+
**`expires_at_to`**
|
351
|
+
|
352
|
+
|
353
|
+
有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。
|
354
|
+
|
355
|
+
```json
|
356
|
+
{
|
357
|
+
"type": "string",
|
358
|
+
"format": "date-time"
|
359
|
+
}
|
360
|
+
```
|
361
|
+
|
362
|
+
**`direction`**
|
363
|
+
|
364
|
+
|
365
|
+
有効期限によるソートの順序を指定します。デフォルト値はdesc (降順)です。
|
366
|
+
|
367
|
+
```json
|
368
|
+
{
|
369
|
+
"type": "string",
|
370
|
+
"enum": [
|
371
|
+
"asc",
|
372
|
+
"desc"
|
373
|
+
]
|
374
|
+
}
|
375
|
+
```
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
成功したときは
|
380
|
+
[PaginatedAccountBalance](./responses.md#paginated-account-balance)
|
381
|
+
を返します
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
---
|
386
|
+
|
387
|
+
|
388
|
+
<a name="update-customer-account"></a>
|
389
|
+
## UpdateCustomerAccount: エンドユーザーのウォレット情報を更新する
|
390
|
+
エンドユーザーのウォレットの状態を更新します。
|
391
|
+
|
392
|
+
```RUBY
|
393
|
+
response = $client.send(Pokepay::Request::UpdateCustomerAccount.new(
|
394
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID
|
395
|
+
status: "suspended", # ウォレット状態
|
396
|
+
account_name: "tEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5", # アカウント名
|
397
|
+
external_id: "P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEd", # 外部ID
|
398
|
+
metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" # ウォレットに付加するメタデータ
|
399
|
+
))
|
400
|
+
```
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
### Parameters
|
405
|
+
**`account_id`**
|
406
|
+
|
407
|
+
|
408
|
+
ウォレットIDです。
|
409
|
+
|
410
|
+
指定したウォレットIDのウォレットの状態を更新します。
|
411
|
+
|
412
|
+
```json
|
413
|
+
{
|
414
|
+
"type": "string",
|
415
|
+
"format": "uuid"
|
416
|
+
}
|
417
|
+
```
|
418
|
+
|
419
|
+
**`status`**
|
420
|
+
|
421
|
+
|
422
|
+
ウォレットの状態です。
|
423
|
+
|
424
|
+
```json
|
425
|
+
{
|
426
|
+
"type": "string",
|
427
|
+
"enum": [
|
428
|
+
"active",
|
429
|
+
"suspended",
|
430
|
+
"pre-closed"
|
431
|
+
]
|
432
|
+
}
|
433
|
+
```
|
434
|
+
|
435
|
+
**`account_name`**
|
436
|
+
|
437
|
+
|
438
|
+
変更するウォレット名です。
|
439
|
+
|
440
|
+
```json
|
441
|
+
{
|
442
|
+
"type": "string",
|
443
|
+
"maxLength": 256
|
444
|
+
}
|
445
|
+
```
|
446
|
+
|
447
|
+
**`external_id`**
|
448
|
+
|
449
|
+
|
450
|
+
変更する外部IDです。
|
451
|
+
|
452
|
+
```json
|
453
|
+
{
|
454
|
+
"type": "string",
|
455
|
+
"maxLength": 50
|
456
|
+
}
|
457
|
+
```
|
458
|
+
|
459
|
+
**`metadata`**
|
460
|
+
|
461
|
+
|
462
|
+
ウォレットに付加するメタデータをJSON文字列で指定します。
|
463
|
+
指定できるJSON文字列には以下のような制約があります。
|
464
|
+
- フラットな構造のJSONを文字列化したものであること。
|
465
|
+
- keyは最大32文字の文字列(同じkeyを複数指定することはできません)
|
466
|
+
- valueには128文字以下の文字列が指定できます
|
467
|
+
|
468
|
+
更新時に指定した内容でメタデータ全体が置き換えられることに注意してください。
|
469
|
+
例えば、元々のメタデータが以下だったときに、
|
470
|
+
|
471
|
+
'{"key1":"foo","key2":"bar"}'
|
472
|
+
|
473
|
+
更新APIで以下のように更新するとします。
|
474
|
+
|
475
|
+
'{"key1":"baz"}'
|
476
|
+
|
477
|
+
このときkey1はfooからbazに更新され、key2に対するデータは消去されます。
|
478
|
+
|
479
|
+
```json
|
480
|
+
{
|
481
|
+
"type": "string",
|
482
|
+
"format": "json"
|
483
|
+
}
|
484
|
+
```
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
成功したときは
|
489
|
+
[AccountWithUser](./responses.md#account-with-user)
|
490
|
+
を返します
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
---
|
495
|
+
|
496
|
+
|
497
|
+
<a name="get-customer-accounts"></a>
|
498
|
+
## GetCustomerAccounts: エンドユーザーのウォレット一覧を表示する
|
499
|
+
マネーを指定してエンドユーザーのウォレット一覧を取得します。
|
500
|
+
|
501
|
+
```RUBY
|
502
|
+
response = $client.send(Pokepay::Request::GetCustomerAccounts.new(
|
503
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
|
504
|
+
page: 5126, # ページ番号
|
505
|
+
per_page: 7269, # 1ページ分のウォレット数
|
506
|
+
created_at_from: "2023-11-24T20:16:17.000000Z", # ウォレット作成日によるフィルター(開始時点)
|
507
|
+
created_at_to: "2022-04-02T23:46:10.000000Z", # ウォレット作成日によるフィルター(終了時点)
|
508
|
+
is_suspended: true, # ウォレットが凍結状態かどうかでフィルターする
|
509
|
+
status: "suspended", # ウォレット状態
|
510
|
+
external_id: "an5HyW6Uan9MoYMbeeBKUXD", # 外部ID
|
511
|
+
tel: "00-43077938", # エンドユーザーの電話番号
|
512
|
+
email: "5W6XuTL0vl@Idvd.com" # エンドユーザーのメールアドレス
|
513
|
+
))
|
514
|
+
```
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
### Parameters
|
519
|
+
**`private_money_id`**
|
520
|
+
|
521
|
+
|
522
|
+
マネーIDです。
|
523
|
+
|
524
|
+
一覧するウォレットのマネーを指定します。このパラメータは必須です。
|
525
|
+
|
526
|
+
```json
|
527
|
+
{
|
528
|
+
"type": "string",
|
529
|
+
"format": "uuid"
|
530
|
+
}
|
531
|
+
```
|
532
|
+
|
533
|
+
**`page`**
|
534
|
+
|
535
|
+
|
536
|
+
取得したいページ番号です。デフォルト値は1です。
|
537
|
+
|
538
|
+
```json
|
539
|
+
{
|
540
|
+
"type": "integer",
|
541
|
+
"minimum": 1
|
542
|
+
}
|
543
|
+
```
|
544
|
+
|
545
|
+
**`per_page`**
|
546
|
+
|
547
|
+
|
548
|
+
1ページ分のウォレット数です。デフォルト値は30です。
|
549
|
+
|
550
|
+
```json
|
551
|
+
{
|
552
|
+
"type": "integer",
|
553
|
+
"minimum": 1
|
554
|
+
}
|
555
|
+
```
|
556
|
+
|
557
|
+
**`created_at_from`**
|
558
|
+
|
559
|
+
|
560
|
+
ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。
|
561
|
+
|
562
|
+
```json
|
563
|
+
{
|
564
|
+
"type": "string",
|
565
|
+
"format": "date-time"
|
566
|
+
}
|
567
|
+
```
|
568
|
+
|
569
|
+
**`created_at_to`**
|
570
|
+
|
571
|
+
|
572
|
+
ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。
|
573
|
+
|
574
|
+
```json
|
575
|
+
{
|
576
|
+
"type": "string",
|
577
|
+
"format": "date-time"
|
578
|
+
}
|
579
|
+
```
|
580
|
+
|
581
|
+
**`is_suspended`**
|
582
|
+
|
583
|
+
|
584
|
+
このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。
|
585
|
+
|
586
|
+
```json
|
587
|
+
{
|
588
|
+
"type": "boolean"
|
589
|
+
}
|
590
|
+
```
|
591
|
+
|
592
|
+
**`status`**
|
593
|
+
|
594
|
+
|
595
|
+
このパラメータが指定されている場合、ウォレットの状態で結果がフィルターされます。デフォルトでは未指定です。
|
596
|
+
|
597
|
+
```json
|
598
|
+
{
|
599
|
+
"type": "string",
|
600
|
+
"enum": [
|
601
|
+
"active",
|
602
|
+
"suspended",
|
603
|
+
"pre-closed"
|
604
|
+
]
|
605
|
+
}
|
606
|
+
```
|
607
|
+
|
608
|
+
**`external_id`**
|
609
|
+
|
610
|
+
|
611
|
+
外部IDでのフィルタリングです。デフォルトでは未指定です。
|
612
|
+
|
613
|
+
```json
|
614
|
+
{
|
615
|
+
"type": "string",
|
616
|
+
"maxLength": 50
|
617
|
+
}
|
618
|
+
```
|
619
|
+
|
620
|
+
**`tel`**
|
621
|
+
|
622
|
+
|
623
|
+
エンドユーザーの電話番号でのフィルタリングです。デフォルトでは未指定です。
|
624
|
+
|
625
|
+
```json
|
626
|
+
{
|
627
|
+
"type": "string",
|
628
|
+
"pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$"
|
629
|
+
}
|
630
|
+
```
|
631
|
+
|
632
|
+
**`email`**
|
633
|
+
|
634
|
+
|
635
|
+
エンドユーザーのメールアドレスでのフィルタリングです。デフォルトでは未指定です。
|
636
|
+
|
637
|
+
```json
|
638
|
+
{
|
639
|
+
"type": "string",
|
640
|
+
"format": "email"
|
641
|
+
}
|
642
|
+
```
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
成功したときは
|
647
|
+
[PaginatedAccountWithUsers](./responses.md#paginated-account-with-users)
|
648
|
+
を返します
|
649
|
+
|
650
|
+
### Error Responses
|
651
|
+
|status|type|ja|en|
|
652
|
+
|---|---|---|---|
|
653
|
+
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
|
654
|
+
|422|private_money_not_found||Private money not found|
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
---
|
659
|
+
|
660
|
+
|
661
|
+
<a name="create-customer-account"></a>
|
662
|
+
## CreateCustomerAccount: 新規エンドユーザーをウォレットと共に追加する
|
663
|
+
指定したマネーのウォレットを作成し、同時にそのウォレットを保有するユーザも新規に作成します。
|
664
|
+
このAPIにより作成されたユーザは認証情報を持たないため、モバイルSDKやポケペイ標準アプリからはログインすることはできません。
|
665
|
+
Partner APIのみから操作可能な特殊なユーザになります。
|
666
|
+
システム全体をPartner APIのみで構成する場合にのみ使用してください。
|
667
|
+
|
668
|
+
```RUBY
|
669
|
+
response = $client.send(Pokepay::Request::CreateCustomerAccount.new(
|
670
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
|
671
|
+
user_name: "ポケペイ太郎", # ユーザー名
|
672
|
+
account_name: "ポケペイ太郎のアカウント", # アカウント名
|
673
|
+
external_id: "Mbz7wUi6BX" # 外部ID
|
674
|
+
))
|
675
|
+
```
|
676
|
+
|
677
|
+
|
678
|
+
|
679
|
+
### Parameters
|
680
|
+
**`private_money_id`**
|
681
|
+
|
682
|
+
|
683
|
+
マネーIDです。
|
684
|
+
|
685
|
+
これによって作成するウォレットのマネーを指定します。
|
686
|
+
|
687
|
+
```json
|
688
|
+
{
|
689
|
+
"type": "string",
|
690
|
+
"format": "uuid"
|
691
|
+
}
|
692
|
+
```
|
693
|
+
|
694
|
+
**`user_name`**
|
695
|
+
|
696
|
+
|
697
|
+
ウォレットと共に作成するユーザ名です。省略した場合は空文字となります。
|
698
|
+
|
699
|
+
```json
|
700
|
+
{
|
701
|
+
"type": "string",
|
702
|
+
"maxLength": 256
|
703
|
+
}
|
704
|
+
```
|
705
|
+
|
706
|
+
**`account_name`**
|
707
|
+
|
708
|
+
|
709
|
+
作成するウォレット名です。省略した場合は空文字となります。
|
710
|
+
|
711
|
+
```json
|
712
|
+
{
|
713
|
+
"type": "string",
|
714
|
+
"maxLength": 256
|
715
|
+
}
|
716
|
+
```
|
717
|
+
|
718
|
+
**`external_id`**
|
719
|
+
|
720
|
+
|
721
|
+
PAPIクライアントシステムから利用するPokepayユーザーのIDです。デフォルトでは未指定です。
|
722
|
+
|
723
|
+
```json
|
724
|
+
{
|
725
|
+
"type": "string",
|
726
|
+
"maxLength": 50
|
727
|
+
}
|
728
|
+
```
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
成功したときは
|
733
|
+
[AccountWithUser](./responses.md#account-with-user)
|
734
|
+
を返します
|
735
|
+
|
736
|
+
### Error Responses
|
737
|
+
|status|type|ja|en|
|
738
|
+
|---|---|---|---|
|
739
|
+
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
|
740
|
+
|422|user_not_found||The user is not found|
|
741
|
+
|422|private_money_not_found||Private money not found|
|
742
|
+
|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format|
|
743
|
+
|422|user_attributes_external_id_not_match|ユーザー属性情報の外部IDが一致しません|Not match external id of user attributes|
|
744
|
+
|422|user_attributes_not_found|ユーザー属性情報が存在しません|Not found the user attrubtes|
|
745
|
+
|422|account_closed|アカウントは退会しています|The account is closed|
|
746
|
+
|422|account_can_not_create|このマネーに新規アカウントを作る事は出来ません|Can not create an account with this money|
|
747
|
+
|
748
|
+
|
749
|
+
|
750
|
+
---
|
751
|
+
|
752
|
+
|
753
|
+
<a name="get-shop-accounts"></a>
|
754
|
+
## GetShopAccounts: 店舗ユーザーのウォレット一覧を表示する
|
755
|
+
マネーを指定して店舗ユーザーのウォレット一覧を取得します。
|
756
|
+
|
757
|
+
```RUBY
|
758
|
+
response = $client.send(Pokepay::Request::GetShopAccounts.new(
|
759
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
|
760
|
+
page: 5675, # ページ番号
|
761
|
+
per_page: 5616, # 1ページ分のウォレット数
|
762
|
+
created_at_from: "2023-07-03T03:04:43.000000Z", # ウォレット作成日によるフィルター(開始時点)
|
763
|
+
created_at_to: "2021-06-30T21:36:21.000000Z", # ウォレット作成日によるフィルター(終了時点)
|
764
|
+
is_suspended: true # ウォレットが凍結状態かどうかでフィルターする
|
765
|
+
))
|
766
|
+
```
|
767
|
+
|
768
|
+
|
769
|
+
|
770
|
+
### Parameters
|
771
|
+
**`private_money_id`**
|
772
|
+
|
773
|
+
|
774
|
+
マネーIDです。
|
775
|
+
|
776
|
+
一覧するウォレットのマネーを指定します。このパラメータは必須です。
|
777
|
+
|
778
|
+
```json
|
779
|
+
{
|
780
|
+
"type": "string",
|
781
|
+
"format": "uuid"
|
782
|
+
}
|
783
|
+
```
|
784
|
+
|
785
|
+
**`page`**
|
786
|
+
|
787
|
+
|
788
|
+
取得したいページ番号です。デフォルト値は1です。
|
789
|
+
|
790
|
+
```json
|
791
|
+
{
|
792
|
+
"type": "integer",
|
793
|
+
"minimum": 1
|
794
|
+
}
|
795
|
+
```
|
796
|
+
|
797
|
+
**`per_page`**
|
798
|
+
|
799
|
+
|
800
|
+
1ページ分のウォレット数です。デフォルト値は30です。
|
801
|
+
|
802
|
+
```json
|
803
|
+
{
|
804
|
+
"type": "integer",
|
805
|
+
"minimum": 1
|
806
|
+
}
|
807
|
+
```
|
808
|
+
|
809
|
+
**`created_at_from`**
|
810
|
+
|
811
|
+
|
812
|
+
ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。
|
813
|
+
|
814
|
+
```json
|
815
|
+
{
|
816
|
+
"type": "string",
|
817
|
+
"format": "date-time"
|
818
|
+
}
|
819
|
+
```
|
820
|
+
|
821
|
+
**`created_at_to`**
|
822
|
+
|
823
|
+
|
824
|
+
ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。
|
825
|
+
|
826
|
+
```json
|
827
|
+
{
|
828
|
+
"type": "string",
|
829
|
+
"format": "date-time"
|
830
|
+
}
|
831
|
+
```
|
832
|
+
|
833
|
+
**`is_suspended`**
|
834
|
+
|
835
|
+
|
836
|
+
このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。
|
837
|
+
|
838
|
+
```json
|
839
|
+
{
|
840
|
+
"type": "boolean"
|
841
|
+
}
|
842
|
+
```
|
843
|
+
|
844
|
+
|
845
|
+
|
846
|
+
成功したときは
|
847
|
+
[PaginatedAccountWithUsers](./responses.md#paginated-account-with-users)
|
848
|
+
を返します
|
849
|
+
|
850
|
+
### Error Responses
|
851
|
+
|status|type|ja|en|
|
852
|
+
|---|---|---|---|
|
853
|
+
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
|
854
|
+
|422|private_money_not_found||Private money not found|
|
855
|
+
|
856
|
+
|
857
|
+
|
858
|
+
---
|
859
|
+
|
860
|
+
|
861
|
+
<a name="list-customer-transactions"></a>
|
862
|
+
## ListCustomerTransactions: 取引履歴を取得する
|
863
|
+
取引一覧を返します。
|
864
|
+
|
865
|
+
```RUBY
|
866
|
+
response = $client.send(Pokepay::Request::ListCustomerTransactions.new(
|
867
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
|
868
|
+
sender_customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 送金エンドユーザーID
|
869
|
+
receiver_customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 受取エンドユーザーID
|
870
|
+
type: "topup", # 取引種別
|
871
|
+
is_modified: true, # キャンセル済みかどうか
|
872
|
+
from: "2021-04-20T18:50:28.000000Z", # 開始日時
|
873
|
+
to: "2023-12-17T07:40:02.000000Z", # 終了日時
|
874
|
+
page: 1, # ページ番号
|
875
|
+
per_page: 50 # 1ページ分の取引数
|
876
|
+
))
|
877
|
+
```
|
878
|
+
|
879
|
+
|
880
|
+
|
881
|
+
### Parameters
|
882
|
+
**`private_money_id`**
|
883
|
+
|
884
|
+
|
885
|
+
マネーIDです。
|
886
|
+
フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。
|
887
|
+
|
888
|
+
```json
|
889
|
+
{
|
890
|
+
"type": "string",
|
891
|
+
"format": "uuid"
|
892
|
+
}
|
893
|
+
```
|
894
|
+
|
895
|
+
**`sender_customer_id`**
|
896
|
+
|
897
|
+
|
898
|
+
送金ユーザーIDです。
|
899
|
+
|
900
|
+
フィルターとして使われ、指定された送金ユーザーでの取引のみ一覧に表示されます。
|
901
|
+
|
902
|
+
```json
|
903
|
+
{
|
904
|
+
"type": "string",
|
905
|
+
"format": "uuid"
|
906
|
+
}
|
907
|
+
```
|
908
|
+
|
909
|
+
**`receiver_customer_id`**
|
910
|
+
|
911
|
+
|
912
|
+
受取ユーザーIDです。
|
913
|
+
|
914
|
+
フィルターとして使われ、指定された受取ユーザーでの取引のみ一覧に表示されます。
|
915
|
+
|
916
|
+
```json
|
917
|
+
{
|
918
|
+
"type": "string",
|
919
|
+
"format": "uuid"
|
920
|
+
}
|
921
|
+
```
|
922
|
+
|
923
|
+
**`type`**
|
924
|
+
|
925
|
+
|
926
|
+
取引の種類でフィルターします。
|
927
|
+
|
928
|
+
以下の種類を指定できます。
|
929
|
+
|
930
|
+
1. topup
|
931
|
+
店舗からエンドユーザーへの送金取引(チャージ)
|
932
|
+
2. payment
|
933
|
+
エンドユーザーから店舗への送金取引(支払い)
|
934
|
+
3. exchange
|
935
|
+
他マネーへの流出(outflow)/他マネーからの流入(inflow)
|
936
|
+
4. transfer
|
937
|
+
個人間送金
|
938
|
+
5. cashback
|
939
|
+
ウォレット退会時返金
|
940
|
+
6. expire
|
941
|
+
ウォレット退会時失効
|
942
|
+
|
943
|
+
```json
|
944
|
+
{
|
945
|
+
"type": "string",
|
946
|
+
"enum": [
|
947
|
+
"topup",
|
948
|
+
"payment",
|
949
|
+
"exchange",
|
950
|
+
"transfer",
|
951
|
+
"cashback",
|
952
|
+
"expire"
|
953
|
+
]
|
954
|
+
}
|
955
|
+
```
|
956
|
+
|
957
|
+
**`is_modified`**
|
958
|
+
|
959
|
+
|
960
|
+
キャンセル済みかどうかを判定するフラグです。
|
961
|
+
|
962
|
+
これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。
|
963
|
+
falseを指定するとキャンセルされていない取引のみ一覧に表示されます
|
964
|
+
何も指定しなければキャンセルの有無にかかわらず一覧に表示されます。
|
965
|
+
|
966
|
+
```json
|
967
|
+
{
|
968
|
+
"type": "boolean"
|
969
|
+
}
|
970
|
+
```
|
971
|
+
|
972
|
+
**`from`**
|
973
|
+
|
974
|
+
|
975
|
+
抽出期間の開始日時です。
|
976
|
+
|
977
|
+
フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。
|
978
|
+
|
979
|
+
```json
|
980
|
+
{
|
981
|
+
"type": "string",
|
982
|
+
"format": "date-time"
|
983
|
+
}
|
984
|
+
```
|
985
|
+
|
986
|
+
**`to`**
|
987
|
+
|
988
|
+
|
989
|
+
抽出期間の終了日時です。
|
990
|
+
|
991
|
+
フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。
|
992
|
+
|
993
|
+
```json
|
994
|
+
{
|
995
|
+
"type": "string",
|
996
|
+
"format": "date-time"
|
997
|
+
}
|
998
|
+
```
|
999
|
+
|
1000
|
+
**`page`**
|
1001
|
+
|
1002
|
+
|
1003
|
+
取得したいページ番号です。
|
1004
|
+
|
1005
|
+
```json
|
1006
|
+
{
|
1007
|
+
"type": "integer",
|
1008
|
+
"minimum": 1
|
1009
|
+
}
|
1010
|
+
```
|
1011
|
+
|
1012
|
+
**`per_page`**
|
1013
|
+
|
1014
|
+
|
1015
|
+
1ページ分の取引数です。
|
1016
|
+
|
1017
|
+
```json
|
1018
|
+
{
|
1019
|
+
"type": "integer",
|
1020
|
+
"minimum": 1
|
1021
|
+
}
|
1022
|
+
```
|
1023
|
+
|
1024
|
+
|
1025
|
+
|
1026
|
+
成功したときは
|
1027
|
+
[PaginatedTransaction](./responses.md#paginated-transaction)
|
1028
|
+
を返します
|
1029
|
+
|
1030
|
+
### Error Responses
|
1031
|
+
|status|type|ja|en|
|
1032
|
+
|---|---|---|---|
|
1033
|
+
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
|
1034
|
+
|422|customer_user_not_found||The customer user is not found|
|
1035
|
+
|422|private_money_not_found||Private money not found|
|
1036
|
+
|
1037
|
+
|
1038
|
+
|
1039
|
+
---
|
1040
|
+
|
1041
|
+
|
1042
|
+
|