pokepay_partner_ruby_sdk 0.3.2 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- 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/shop.md
ADDED
@@ -0,0 +1,678 @@
|
|
1
|
+
# Shop
|
2
|
+
|
3
|
+
<a name="list-shops"></a>
|
4
|
+
## ListShops: 店舗一覧を取得する
|
5
|
+
|
6
|
+
```RUBY
|
7
|
+
response = $client.send(Pokepay::Request::ListShops.new(
|
8
|
+
organization_code: "pocketchange", # 組織コード
|
9
|
+
private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID
|
10
|
+
name: "oxスーパー三田店", # 店舗名
|
11
|
+
postal_code: "341-4166", # 店舗の郵便番号
|
12
|
+
address: "東京都港区芝...", # 店舗の住所
|
13
|
+
tel: "04032440-9862", # 店舗の電話番号
|
14
|
+
email: "L3FlnAD82Q@rpYa.com", # 店舗のメールアドレス
|
15
|
+
external_id: "uslNraOesyAi", # 店舗の外部ID
|
16
|
+
with_disabled: true, # 無効な店舗を含める
|
17
|
+
page: 1, # ページ番号
|
18
|
+
per_page: 50 # 1ページ分の取引数
|
19
|
+
))
|
20
|
+
```
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
### Parameters
|
25
|
+
**`organization_code`**
|
26
|
+
|
27
|
+
|
28
|
+
このパラメータを渡すとその組織の店舗のみが返され、省略すると加盟店も含む店舗が返されます。
|
29
|
+
|
30
|
+
|
31
|
+
```json
|
32
|
+
{
|
33
|
+
"type": "string",
|
34
|
+
"maxLength": 32,
|
35
|
+
"pattern": "^[a-zA-Z0-9-]*$"
|
36
|
+
}
|
37
|
+
```
|
38
|
+
|
39
|
+
**`private_money_id`**
|
40
|
+
|
41
|
+
|
42
|
+
このパラメータを渡すとそのマネーのウォレットを持つ店舗のみが返されます。
|
43
|
+
|
44
|
+
|
45
|
+
```json
|
46
|
+
{
|
47
|
+
"type": "string",
|
48
|
+
"format": "uuid"
|
49
|
+
}
|
50
|
+
```
|
51
|
+
|
52
|
+
**`name`**
|
53
|
+
|
54
|
+
|
55
|
+
このパラメータを渡すとその名前の店舗のみが返されます。
|
56
|
+
|
57
|
+
|
58
|
+
```json
|
59
|
+
{
|
60
|
+
"type": "string",
|
61
|
+
"minLength": 1,
|
62
|
+
"maxLength": 256
|
63
|
+
}
|
64
|
+
```
|
65
|
+
|
66
|
+
**`postal_code`**
|
67
|
+
|
68
|
+
|
69
|
+
このパラメータを渡すとその郵便番号が登録された店舗のみが返されます。
|
70
|
+
|
71
|
+
|
72
|
+
```json
|
73
|
+
{
|
74
|
+
"type": "string",
|
75
|
+
"pattern": "^[0-9]{3}-?[0-9]{4}$"
|
76
|
+
}
|
77
|
+
```
|
78
|
+
|
79
|
+
**`address`**
|
80
|
+
|
81
|
+
|
82
|
+
このパラメータを渡すとその住所が登録された店舗のみが返されます。
|
83
|
+
|
84
|
+
|
85
|
+
```json
|
86
|
+
{
|
87
|
+
"type": "string",
|
88
|
+
"maxLength": 256
|
89
|
+
}
|
90
|
+
```
|
91
|
+
|
92
|
+
**`tel`**
|
93
|
+
|
94
|
+
|
95
|
+
このパラメータを渡すとその電話番号が登録された店舗のみが返されます。
|
96
|
+
|
97
|
+
|
98
|
+
```json
|
99
|
+
{
|
100
|
+
"type": "string",
|
101
|
+
"pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$"
|
102
|
+
}
|
103
|
+
```
|
104
|
+
|
105
|
+
**`email`**
|
106
|
+
|
107
|
+
|
108
|
+
このパラメータを渡すとそのメールアドレスが登録された店舗のみが返されます。
|
109
|
+
|
110
|
+
|
111
|
+
```json
|
112
|
+
{
|
113
|
+
"type": "string",
|
114
|
+
"format": "email",
|
115
|
+
"maxLength": 256
|
116
|
+
}
|
117
|
+
```
|
118
|
+
|
119
|
+
**`external_id`**
|
120
|
+
|
121
|
+
|
122
|
+
このパラメータを渡すとその外部IDが登録された店舗のみが返されます。
|
123
|
+
|
124
|
+
|
125
|
+
```json
|
126
|
+
{
|
127
|
+
"type": "string",
|
128
|
+
"maxLength": 36
|
129
|
+
}
|
130
|
+
```
|
131
|
+
|
132
|
+
**`with_disabled`**
|
133
|
+
|
134
|
+
|
135
|
+
このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。
|
136
|
+
|
137
|
+
|
138
|
+
```json
|
139
|
+
{
|
140
|
+
"type": "boolean"
|
141
|
+
}
|
142
|
+
```
|
143
|
+
|
144
|
+
**`page`**
|
145
|
+
|
146
|
+
|
147
|
+
取得したいページ番号です。
|
148
|
+
|
149
|
+
```json
|
150
|
+
{
|
151
|
+
"type": "integer",
|
152
|
+
"minimum": 1
|
153
|
+
}
|
154
|
+
```
|
155
|
+
|
156
|
+
**`per_page`**
|
157
|
+
|
158
|
+
|
159
|
+
1ページ分の取引数です。
|
160
|
+
|
161
|
+
```json
|
162
|
+
{
|
163
|
+
"type": "integer",
|
164
|
+
"minimum": 1
|
165
|
+
}
|
166
|
+
```
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
成功したときは
|
171
|
+
[PaginatedShops](./responses.md#paginated-shops)
|
172
|
+
を返します
|
173
|
+
|
174
|
+
### Error Responses
|
175
|
+
|status|type|ja|en|
|
176
|
+
|---|---|---|---|
|
177
|
+
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
|
178
|
+
|422|private_money_not_found||Private money not found|
|
179
|
+
|422|organization_not_found||Organization not found|
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
---
|
184
|
+
|
185
|
+
|
186
|
+
<a name="create-shop"></a>
|
187
|
+
## CreateShop: 【廃止】新規店舗を追加する
|
188
|
+
新規店舗を追加します。このAPIは廃止予定です。以降は `CreateShopV2` を使用してください。
|
189
|
+
|
190
|
+
```RUBY
|
191
|
+
response = $client.send(Pokepay::Request::CreateShop.new(
|
192
|
+
"oxスーパー三田店", # shop_name: 店舗名
|
193
|
+
shop_postal_code: "171-0997", # 店舗の郵便番号
|
194
|
+
shop_address: "東京都港区芝...", # 店舗の住所
|
195
|
+
shop_tel: "036-4341-7488", # 店舗の電話番号
|
196
|
+
shop_email: "Fx3P67yxFm@xWAZ.com", # 店舗のメールアドレス
|
197
|
+
shop_external_id: "SoiVrIFnb7w6ZClkoqVajv", # 店舗の外部ID
|
198
|
+
organization_code: "ox-supermarket" # 組織コード
|
199
|
+
))
|
200
|
+
```
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
### Parameters
|
205
|
+
**`shop_name`**
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
```json
|
210
|
+
{
|
211
|
+
"type": "string",
|
212
|
+
"minLength": 1,
|
213
|
+
"maxLength": 256
|
214
|
+
}
|
215
|
+
```
|
216
|
+
|
217
|
+
**`shop_postal_code`**
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
```json
|
222
|
+
{
|
223
|
+
"type": "string",
|
224
|
+
"pattern": "^[0-9]{3}-?[0-9]{4}$"
|
225
|
+
}
|
226
|
+
```
|
227
|
+
|
228
|
+
**`shop_address`**
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
```json
|
233
|
+
{
|
234
|
+
"type": "string",
|
235
|
+
"maxLength": 256
|
236
|
+
}
|
237
|
+
```
|
238
|
+
|
239
|
+
**`shop_tel`**
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
```json
|
244
|
+
{
|
245
|
+
"type": "string",
|
246
|
+
"pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$"
|
247
|
+
}
|
248
|
+
```
|
249
|
+
|
250
|
+
**`shop_email`**
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
```json
|
255
|
+
{
|
256
|
+
"type": "string",
|
257
|
+
"format": "email",
|
258
|
+
"maxLength": 256
|
259
|
+
}
|
260
|
+
```
|
261
|
+
|
262
|
+
**`shop_external_id`**
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
```json
|
267
|
+
{
|
268
|
+
"type": "string",
|
269
|
+
"maxLength": 36
|
270
|
+
}
|
271
|
+
```
|
272
|
+
|
273
|
+
**`organization_code`**
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
```json
|
278
|
+
{
|
279
|
+
"type": "string",
|
280
|
+
"maxLength": 32,
|
281
|
+
"pattern": "^[a-zA-Z0-9-]*$"
|
282
|
+
}
|
283
|
+
```
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
成功したときは
|
288
|
+
[User](./responses.md#user)
|
289
|
+
を返します
|
290
|
+
|
291
|
+
### Error Responses
|
292
|
+
|status|type|ja|en|
|
293
|
+
|---|---|---|---|
|
294
|
+
|403|NULL|NULL|NULL|
|
295
|
+
|409|email_conflict|このメールアドレスは既に使われています|The E-mail address is already registered|
|
296
|
+
|409|shop_name_conflict||The shop name is already used|
|
297
|
+
|422|organization_not_member_organization||The specified organization is not a member organization of the organization accessing this API|
|
298
|
+
|422|organization_not_found||Organization not found|
|
299
|
+
|422|unavailable_private_money||Given private money(s) is/are not available|
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
---
|
304
|
+
|
305
|
+
|
306
|
+
<a name="create-shop-v2"></a>
|
307
|
+
## CreateShopV2: 新規店舗を追加する
|
308
|
+
|
309
|
+
```RUBY
|
310
|
+
response = $client.send(Pokepay::Request::CreateShopV2.new(
|
311
|
+
"oxスーパー三田店", # name: 店舗名
|
312
|
+
postal_code: "575-3795", # 店舗の郵便番号
|
313
|
+
address: "東京都港区芝...", # 店舗の住所
|
314
|
+
tel: "0705771-0721", # 店舗の電話番号
|
315
|
+
email: "wSB8bfxMId@7hFK.com", # 店舗のメールアドレス
|
316
|
+
external_id: "RGvYa7", # 店舗の外部ID
|
317
|
+
organization_code: "ox-supermarket", # 組織コード
|
318
|
+
private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗で有効にするマネーIDの配列
|
319
|
+
can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"] # 店舗でチャージ可能にするマネーIDの配列
|
320
|
+
))
|
321
|
+
```
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
### Parameters
|
326
|
+
**`name`**
|
327
|
+
|
328
|
+
|
329
|
+
店舗名です。
|
330
|
+
|
331
|
+
同一組織内に同名の店舗があった場合は`name_conflict`エラーが返ります。
|
332
|
+
|
333
|
+
```json
|
334
|
+
{
|
335
|
+
"type": "string",
|
336
|
+
"minLength": 1,
|
337
|
+
"maxLength": 256
|
338
|
+
}
|
339
|
+
```
|
340
|
+
|
341
|
+
**`postal_code`**
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
```json
|
346
|
+
{
|
347
|
+
"type": "string",
|
348
|
+
"pattern": "^[0-9]{3}-?[0-9]{4}$"
|
349
|
+
}
|
350
|
+
```
|
351
|
+
|
352
|
+
**`address`**
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
```json
|
357
|
+
{
|
358
|
+
"type": "string",
|
359
|
+
"maxLength": 256
|
360
|
+
}
|
361
|
+
```
|
362
|
+
|
363
|
+
**`tel`**
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
```json
|
368
|
+
{
|
369
|
+
"type": "string",
|
370
|
+
"pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$"
|
371
|
+
}
|
372
|
+
```
|
373
|
+
|
374
|
+
**`email`**
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
```json
|
379
|
+
{
|
380
|
+
"type": "string",
|
381
|
+
"format": "email",
|
382
|
+
"maxLength": 256
|
383
|
+
}
|
384
|
+
```
|
385
|
+
|
386
|
+
**`external_id`**
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
```json
|
391
|
+
{
|
392
|
+
"type": "string",
|
393
|
+
"maxLength": 36
|
394
|
+
}
|
395
|
+
```
|
396
|
+
|
397
|
+
**`organization_code`**
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
```json
|
402
|
+
{
|
403
|
+
"type": "string",
|
404
|
+
"maxLength": 32,
|
405
|
+
"pattern": "^[a-zA-Z0-9-]*$"
|
406
|
+
}
|
407
|
+
```
|
408
|
+
|
409
|
+
**`private_money_ids`**
|
410
|
+
|
411
|
+
|
412
|
+
店舗で有効にするマネーIDの配列を指定します。
|
413
|
+
|
414
|
+
店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。
|
415
|
+
このパラメータを省略したときは、店舗が所属する組織が発行または加盟している全てのマネーのウォレットができます。
|
416
|
+
|
417
|
+
```json
|
418
|
+
{
|
419
|
+
"type": "array",
|
420
|
+
"minItems": 1,
|
421
|
+
"items": {
|
422
|
+
"type": "string",
|
423
|
+
"format": "uuid"
|
424
|
+
}
|
425
|
+
}
|
426
|
+
```
|
427
|
+
|
428
|
+
**`can_topup_private_money_ids`**
|
429
|
+
|
430
|
+
|
431
|
+
店舗でチャージ可能にするマネーIDの配列を指定します。
|
432
|
+
|
433
|
+
このパラメータは発行体のみが指定でき、自身が発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。
|
434
|
+
省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。
|
435
|
+
|
436
|
+
```json
|
437
|
+
{
|
438
|
+
"type": "array",
|
439
|
+
"minItems": 0,
|
440
|
+
"items": {
|
441
|
+
"type": "string",
|
442
|
+
"format": "uuid"
|
443
|
+
}
|
444
|
+
}
|
445
|
+
```
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
成功したときは
|
450
|
+
[ShopWithAccounts](./responses.md#shop-with-accounts)
|
451
|
+
を返します
|
452
|
+
|
453
|
+
### Error Responses
|
454
|
+
|status|type|ja|en|
|
455
|
+
|---|---|---|---|
|
456
|
+
|400|invalid_parameters|項目が無効です|Invalid parameters|
|
457
|
+
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
|
458
|
+
|409|shop_name_conflict||The shop name is already used|
|
459
|
+
|422|organization_not_found||Organization not found|
|
460
|
+
|422|unpermitted_private_money|このマネーは使えません|This money is not available|
|
461
|
+
|422|unavailable_private_money||Given private money(s) is/are not available|
|
462
|
+
|422|organization_not_member_organization||The specified organization is not a member organization of the organization accessing this API|
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
---
|
467
|
+
|
468
|
+
|
469
|
+
<a name="get-shop"></a>
|
470
|
+
## GetShop: 店舗情報を表示する
|
471
|
+
店舗情報を表示します。
|
472
|
+
|
473
|
+
権限に関わらず自組織の店舗情報は表示可能です。それに加え、発行体は自組織の発行しているマネーの加盟店組織の店舗情報を表示できます。
|
474
|
+
|
475
|
+
```RUBY
|
476
|
+
response = $client.send(Pokepay::Request::GetShop.new(
|
477
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # shop_id: 店舗ユーザーID
|
478
|
+
))
|
479
|
+
```
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
### Parameters
|
484
|
+
**`shop_id`**
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
```json
|
489
|
+
{
|
490
|
+
"type": "string",
|
491
|
+
"format": "uuid"
|
492
|
+
}
|
493
|
+
```
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
成功したときは
|
498
|
+
[ShopWithAccounts](./responses.md#shop-with-accounts)
|
499
|
+
を返します
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
---
|
504
|
+
|
505
|
+
|
506
|
+
<a name="update-shop"></a>
|
507
|
+
## UpdateShop: 店舗情報を更新する
|
508
|
+
店舗情報を更新します。bodyパラメーターは全て省略可能で、指定したもののみ更新されます。
|
509
|
+
|
510
|
+
```RUBY
|
511
|
+
response = $client.send(Pokepay::Request::UpdateShop.new(
|
512
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ユーザーID
|
513
|
+
name: "oxスーパー三田店", # 店舗名
|
514
|
+
postal_code: "204-1399", # 店舗の郵便番号
|
515
|
+
address: "東京都港区芝...", # 店舗の住所
|
516
|
+
tel: "008833-5983", # 店舗の電話番号
|
517
|
+
email: "AVKuKRC5FL@AIRi.com", # 店舗のメールアドレス
|
518
|
+
external_id: "GKuI8CNBTqLCZ99AjVbK3l31", # 店舗の外部ID
|
519
|
+
private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗で有効にするマネーIDの配列
|
520
|
+
can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗でチャージ可能にするマネーIDの配列
|
521
|
+
status: "disabled" # 店舗の状態
|
522
|
+
))
|
523
|
+
```
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
### Parameters
|
528
|
+
**`shop_id`**
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
```json
|
533
|
+
{
|
534
|
+
"type": "string",
|
535
|
+
"format": "uuid"
|
536
|
+
}
|
537
|
+
```
|
538
|
+
|
539
|
+
**`name`**
|
540
|
+
|
541
|
+
|
542
|
+
店舗名です。
|
543
|
+
|
544
|
+
同一組織内に同名の店舗があった場合は`shop_name_conflict`エラーが返ります。
|
545
|
+
|
546
|
+
```json
|
547
|
+
{
|
548
|
+
"type": "string",
|
549
|
+
"minLength": 1,
|
550
|
+
"maxLength": 256
|
551
|
+
}
|
552
|
+
```
|
553
|
+
|
554
|
+
**`postal_code`**
|
555
|
+
|
556
|
+
|
557
|
+
店舗住所の郵便番号(7桁の数字)です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。
|
558
|
+
|
559
|
+
```json
|
560
|
+
{
|
561
|
+
"type": "string",
|
562
|
+
"pattern": "^[0-9]{3}-?[0-9]{4}$"
|
563
|
+
}
|
564
|
+
```
|
565
|
+
|
566
|
+
**`address`**
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
```json
|
571
|
+
{
|
572
|
+
"type": "string",
|
573
|
+
"maxLength": 256
|
574
|
+
}
|
575
|
+
```
|
576
|
+
|
577
|
+
**`tel`**
|
578
|
+
|
579
|
+
|
580
|
+
店舗の電話番号です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。
|
581
|
+
|
582
|
+
```json
|
583
|
+
{
|
584
|
+
"type": "string",
|
585
|
+
"pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$"
|
586
|
+
}
|
587
|
+
```
|
588
|
+
|
589
|
+
**`email`**
|
590
|
+
|
591
|
+
|
592
|
+
店舗の連絡先メールアドレスです。明示的に空の値を設定するにはNULLを指定します。
|
593
|
+
|
594
|
+
```json
|
595
|
+
{
|
596
|
+
"type": "string",
|
597
|
+
"format": "email",
|
598
|
+
"maxLength": 256
|
599
|
+
}
|
600
|
+
```
|
601
|
+
|
602
|
+
**`external_id`**
|
603
|
+
|
604
|
+
|
605
|
+
店舗の外部IDです(最大36文字)。明示的に空の値を設定するにはNULLを指定します。
|
606
|
+
|
607
|
+
```json
|
608
|
+
{
|
609
|
+
"type": "string",
|
610
|
+
"maxLength": 36
|
611
|
+
}
|
612
|
+
```
|
613
|
+
|
614
|
+
**`private_money_ids`**
|
615
|
+
|
616
|
+
|
617
|
+
店舗で有効にするマネーIDの配列を指定します。
|
618
|
+
|
619
|
+
店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。
|
620
|
+
店舗が既にウォレットを持っている場合に、ここでそのウォレットのマネーIDを指定しないで更新すると、そのマネーのウォレットは凍結(無効化)されます。
|
621
|
+
|
622
|
+
```json
|
623
|
+
{
|
624
|
+
"type": "array",
|
625
|
+
"minItems": 0,
|
626
|
+
"items": {
|
627
|
+
"type": "string",
|
628
|
+
"format": "uuid"
|
629
|
+
}
|
630
|
+
}
|
631
|
+
```
|
632
|
+
|
633
|
+
**`can_topup_private_money_ids`**
|
634
|
+
|
635
|
+
|
636
|
+
店舗でチャージ可能にするマネーIDの配列を指定します。
|
637
|
+
|
638
|
+
このパラメータは発行体のみが指定でき、発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。
|
639
|
+
省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。
|
640
|
+
|
641
|
+
```json
|
642
|
+
{
|
643
|
+
"type": "array",
|
644
|
+
"minItems": 0,
|
645
|
+
"items": {
|
646
|
+
"type": "string",
|
647
|
+
"format": "uuid"
|
648
|
+
}
|
649
|
+
}
|
650
|
+
```
|
651
|
+
|
652
|
+
**`status`**
|
653
|
+
|
654
|
+
|
655
|
+
店舗の状態です。activeを指定すると有効となり、disabledを指定するとリスト表示から除外されます。
|
656
|
+
|
657
|
+
```json
|
658
|
+
{
|
659
|
+
"type": "string",
|
660
|
+
"enum": [
|
661
|
+
"active",
|
662
|
+
"disabled"
|
663
|
+
]
|
664
|
+
}
|
665
|
+
```
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
成功したときは
|
670
|
+
[ShopWithAccounts](./responses.md#shop-with-accounts)
|
671
|
+
を返します
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
---
|
676
|
+
|
677
|
+
|
678
|
+
|