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.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release-pr.yml +18 -0
  3. data/Gemfile.lock +1 -1
  4. data/docs/README.md +269 -0
  5. data/docs/account.md +159 -0
  6. data/docs/bank_pay.md +235 -0
  7. data/docs/bill.md +365 -0
  8. data/docs/bulk.md +121 -0
  9. data/docs/campaign.md +1749 -0
  10. data/docs/cashtray.md +318 -0
  11. data/docs/check.md +883 -0
  12. data/docs/coupon.md +724 -0
  13. data/docs/customer.md +1042 -0
  14. data/docs/error-response.csv +839 -0
  15. data/docs/event.md +308 -0
  16. data/docs/index.md +1279 -305
  17. data/docs/organization.md +292 -0
  18. data/docs/private_money.md +213 -0
  19. data/docs/responses.md +711 -0
  20. data/docs/shop.md +678 -0
  21. data/docs/transaction.md +2021 -0
  22. data/docs/transfer.md +686 -0
  23. data/docs/user.md +3 -0
  24. data/docs/user_device.md +134 -0
  25. data/docs/webhook.md +231 -0
  26. data/lib/pokepay_partner_ruby_sdk/request/activate_user_device.rb +15 -0
  27. data/lib/pokepay_partner_ruby_sdk/request/create_bank.rb +17 -0
  28. data/lib/pokepay_partner_ruby_sdk/request/create_bank_topup_transaction.rb +18 -0
  29. data/lib/pokepay_partner_ruby_sdk/request/create_coupon.rb +19 -0
  30. data/lib/pokepay_partner_ruby_sdk/request/create_external_transaction.rb +2 -2
  31. data/lib/pokepay_partner_ruby_sdk/request/create_transaction_with_cashtray.rb +16 -0
  32. data/lib/pokepay_partner_ruby_sdk/request/create_user_device.rb +15 -0
  33. data/lib/pokepay_partner_ruby_sdk/request/delete_webhook.rb +15 -0
  34. data/lib/pokepay_partner_ruby_sdk/request/get_check.rb +15 -0
  35. data/lib/pokepay_partner_ruby_sdk/request/get_coupon.rb +1 -1
  36. data/lib/pokepay_partner_ruby_sdk/request/get_external_transaction_by_request_id.rb +15 -0
  37. data/lib/pokepay_partner_ruby_sdk/request/get_user_device.rb +15 -0
  38. data/lib/pokepay_partner_ruby_sdk/request/list_banks.rb +15 -0
  39. data/lib/pokepay_partner_ruby_sdk/request/list_checks.rb +15 -0
  40. data/lib/pokepay_partner_ruby_sdk/request/list_organizations.rb +15 -0
  41. data/lib/pokepay_partner_ruby_sdk/request/refund_external_transaction.rb +2 -2
  42. data/lib/pokepay_partner_ruby_sdk/request/update_check.rb +15 -0
  43. data/lib/pokepay_partner_ruby_sdk/request/update_coupon.rb +15 -0
  44. data/lib/pokepay_partner_ruby_sdk/response/bank.rb +28 -0
  45. data/lib/pokepay_partner_ruby_sdk/response/bank_registering_info.rb +13 -0
  46. data/lib/pokepay_partner_ruby_sdk/response/banks.rb +13 -0
  47. data/lib/pokepay_partner_ruby_sdk/response/campaign.rb +6 -0
  48. data/lib/pokepay_partner_ruby_sdk/response/check.rb +2 -0
  49. data/lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb +34 -0
  50. data/lib/pokepay_partner_ruby_sdk/response/organization_summary.rb +4 -0
  51. data/lib/pokepay_partner_ruby_sdk/response/paginated_checks.rb +16 -0
  52. data/lib/pokepay_partner_ruby_sdk/response/paginated_organizations.rb +16 -0
  53. data/lib/pokepay_partner_ruby_sdk/response/private_money_summary.rb +4 -0
  54. data/lib/pokepay_partner_ruby_sdk/response/product.rb +2 -0
  55. data/lib/pokepay_partner_ruby_sdk/response/user_device.rb +18 -0
  56. data/lib/pokepay_partner_ruby_sdk/version.rb +1 -1
  57. data/lib/pokepay_partner_ruby_sdk.rb +26 -4
  58. data/partner.yaml +1578 -216
  59. metadata +46 -2
data/docs/bill.md ADDED
@@ -0,0 +1,365 @@
1
+ # Bill
2
+ 支払いQRコード
3
+
4
+ <a name="list-bills"></a>
5
+ ## ListBills: 支払いQRコード一覧を表示する
6
+ 支払いQRコード一覧を表示します。
7
+
8
+ ```RUBY
9
+ response = $client.send(Pokepay::Request::ListBills.new(
10
+ page: 6224, # ページ番号
11
+ per_page: 8406, # 1ページの表示数
12
+ bill_id: "0zGq4PpZBc", # 支払いQRコードのID
13
+ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID
14
+ organization_code: "V-ld6at5-L7-g-FnGpUsttbam6-RlUA", # 組織コード
15
+ description: "test bill", # 取引説明文
16
+ created_from: "2023-04-03T07:59:20.000000Z", # 作成日時(起点)
17
+ created_to: "2020-07-16T05:37:27.000000Z", # 作成日時(終点)
18
+ shop_name: "bill test shop1", # 店舗名
19
+ shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID
20
+ lower_limit_amount: 2765, # 金額の範囲によるフィルタ(下限)
21
+ upper_limit_amount: 5851, # 金額の範囲によるフィルタ(上限)
22
+ is_disabled: true # 支払いQRコードが無効化されているかどうか
23
+ ))
24
+ ```
25
+
26
+
27
+
28
+ ### Parameters
29
+ **`page`**
30
+
31
+
32
+ 取得したいページ番号です。
33
+
34
+ ```json
35
+ {
36
+ "type": "integer",
37
+ "minimum": 1
38
+ }
39
+ ```
40
+
41
+ **`per_page`**
42
+
43
+
44
+ 1ページに表示する支払いQRコードの数です。
45
+
46
+ ```json
47
+ {
48
+ "type": "integer",
49
+ "minimum": 1
50
+ }
51
+ ```
52
+
53
+ **`bill_id`**
54
+
55
+
56
+ 支払いQRコードのIDを指定して検索します。IDは前方一致で検索されます。
57
+
58
+ ```json
59
+ {
60
+ "type": "string"
61
+ }
62
+ ```
63
+
64
+ **`private_money_id`**
65
+
66
+
67
+ 支払いQRコードの送金元ウォレットのマネーIDでフィルターします。
68
+
69
+ ```json
70
+ {
71
+ "type": "string",
72
+ "format": "uuid"
73
+ }
74
+ ```
75
+
76
+ **`organization_code`**
77
+
78
+
79
+ 支払いQRコードの送金元店舗が所属する組織の組織コードでフィルターします。
80
+
81
+ ```json
82
+ {
83
+ "type": "string",
84
+ "maxLength": 32,
85
+ "pattern": "^[a-zA-Z0-9-]*$"
86
+ }
87
+ ```
88
+
89
+ **`description`**
90
+
91
+
92
+ 支払いQRコードを読み取ることで作られた取引の説明文としてアプリなどに表示されます。
93
+
94
+ ```json
95
+ {
96
+ "type": "string",
97
+ "maxLength": 200
98
+ }
99
+ ```
100
+
101
+ **`created_from`**
102
+
103
+
104
+ 支払いQRコードの作成日時でフィルターします。
105
+
106
+ これ以降に作成された支払いQRコードのみ一覧に表示されます。
107
+
108
+ ```json
109
+ {
110
+ "type": "string",
111
+ "format": "date-time"
112
+ }
113
+ ```
114
+
115
+ **`created_to`**
116
+
117
+
118
+ 支払いQRコードの作成日時でフィルターします。
119
+
120
+ これ以前に作成された支払いQRコードのみ一覧に表示されます。
121
+
122
+ ```json
123
+ {
124
+ "type": "string",
125
+ "format": "date-time"
126
+ }
127
+ ```
128
+
129
+ **`shop_name`**
130
+
131
+
132
+ 支払いQRコードを作成した店舗名でフィルターします。店舗名は部分一致で検索されます。
133
+
134
+ ```json
135
+ {
136
+ "type": "string",
137
+ "maxLength": 256
138
+ }
139
+ ```
140
+
141
+ **`shop_id`**
142
+
143
+
144
+ 支払いQRコードを作成した店舗IDでフィルターします。
145
+
146
+ ```json
147
+ {
148
+ "type": "string",
149
+ "format": "uuid"
150
+ }
151
+ ```
152
+
153
+ **`lower_limit_amount`**
154
+
155
+
156
+ 支払いQRコードの金額の下限を指定してフィルターします。
157
+
158
+ ```json
159
+ {
160
+ "type": "integer",
161
+ "format": "decimal",
162
+ "minimum": 0
163
+ }
164
+ ```
165
+
166
+ **`upper_limit_amount`**
167
+
168
+
169
+ 支払いQRコードの金額の上限を指定してフィルターします。
170
+
171
+ ```json
172
+ {
173
+ "type": "integer",
174
+ "format": "decimal",
175
+ "minimum": 0
176
+ }
177
+ ```
178
+
179
+ **`is_disabled`**
180
+
181
+
182
+ 支払いQRコードが無効化されているかどうかを表します。デフォルト値は偽(有効)です。
183
+
184
+ ```json
185
+ {
186
+ "type": "boolean"
187
+ }
188
+ ```
189
+
190
+
191
+
192
+ 成功したときは
193
+ [PaginatedBills](./responses.md#paginated-bills)
194
+ を返します
195
+
196
+ ### Error Responses
197
+ |status|type|ja|en|
198
+ |---|---|---|---|
199
+ |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
200
+
201
+
202
+
203
+ ---
204
+
205
+
206
+ <a name="create-bill"></a>
207
+ ## CreateBill: 支払いQRコードの発行
208
+ 支払いQRコードの内容を更新します。支払い先の店舗ユーザーは指定したマネーのウォレットを持っている必要があります。
209
+
210
+ ```RUBY
211
+ response = $client.send(Pokepay::Request::CreateBill.new(
212
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: 支払いマネーのマネーID
213
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 支払い先(受け取り人)の店舗ID
214
+ amount: 8753.0, # 支払い額
215
+ description: "test bill" # 説明文(アプリ上で取引の説明文として表示される)
216
+ ))
217
+ ```
218
+
219
+
220
+
221
+ ### Parameters
222
+ **`amount`**
223
+
224
+
225
+ 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。
226
+
227
+ ```json
228
+ {
229
+ "type": "number",
230
+ "format": "decimal",
231
+ "minimum": 0
232
+ }
233
+ ```
234
+
235
+ **`private_money_id`**
236
+
237
+
238
+
239
+ ```json
240
+ {
241
+ "type": "string",
242
+ "format": "uuid"
243
+ }
244
+ ```
245
+
246
+ **`shop_id`**
247
+
248
+
249
+
250
+ ```json
251
+ {
252
+ "type": "string",
253
+ "format": "uuid"
254
+ }
255
+ ```
256
+
257
+ **`description`**
258
+
259
+
260
+
261
+ ```json
262
+ {
263
+ "type": "string",
264
+ "maxLength": 200
265
+ }
266
+ ```
267
+
268
+
269
+
270
+ 成功したときは
271
+ [Bill](./responses.md#bill)
272
+ を返します
273
+
274
+ ### Error Responses
275
+ |status|type|ja|en|
276
+ |---|---|---|---|
277
+ |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
278
+ |422|shop_account_not_found||The shop account is not found|
279
+ |422|private_money_not_found||Private money not found|
280
+ |422|shop_user_not_found|店舗が見つかりません|The shop user is not found|
281
+ |422|account_closed|アカウントは退会しています|The account is closed|
282
+ |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed|
283
+ |422|account_suspended|アカウントは停止されています|The account is suspended|
284
+
285
+
286
+
287
+ ---
288
+
289
+
290
+ <a name="update-bill"></a>
291
+ ## UpdateBill: 支払いQRコードの更新
292
+ 支払いQRコードの内容を更新します。パラメータは全て省略可能で、指定したもののみ更新されます。
293
+
294
+ ```RUBY
295
+ response = $client.send(Pokepay::Request::UpdateBill.new(
296
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # bill_id: 支払いQRコードのID
297
+ amount: 3844.0, # 支払い額
298
+ description: "test bill", # 説明文
299
+ is_disabled: false # 無効化されているかどうか
300
+ ))
301
+ ```
302
+
303
+
304
+
305
+ ### Parameters
306
+ **`bill_id`**
307
+
308
+
309
+ 更新対象の支払いQRコードのIDです。
310
+
311
+ ```json
312
+ {
313
+ "type": "string",
314
+ "format": "uuid"
315
+ }
316
+ ```
317
+
318
+ **`amount`**
319
+
320
+
321
+ 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。
322
+
323
+ ```json
324
+ {
325
+ "type": "number",
326
+ "format": "decimal",
327
+ "minimum": 0
328
+ }
329
+ ```
330
+
331
+ **`description`**
332
+
333
+
334
+ 支払いQRコードの詳細説明文です。アプリ上で取引の説明文として表示されます。
335
+
336
+ ```json
337
+ {
338
+ "type": "string",
339
+ "maxLength": 200
340
+ }
341
+ ```
342
+
343
+ **`is_disabled`**
344
+
345
+
346
+ 支払いQRコードが無効化されているかどうかを指定します。真にすると無効化され、偽にすると有効化します。
347
+
348
+ ```json
349
+ {
350
+ "type": "boolean"
351
+ }
352
+ ```
353
+
354
+
355
+
356
+ 成功したときは
357
+ [Bill](./responses.md#bill)
358
+ を返します
359
+
360
+
361
+
362
+ ---
363
+
364
+
365
+
data/docs/bulk.md ADDED
@@ -0,0 +1,121 @@
1
+ # Bulk
2
+
3
+ <a name="bulk-create-transaction"></a>
4
+ ## BulkCreateTransaction: CSVファイル一括取引
5
+ CSVファイルから一括取引をします。
6
+
7
+ ```RUBY
8
+ response = $client.send(Pokepay::Request::BulkCreateTransaction.new(
9
+ "vOJkxhc8IPvtQD4QxNm6tX", # name: 一括取引タスク名
10
+ "3Guvbo", # content: 取引する情報のCSV
11
+ "2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIs", # request_id: リクエストID
12
+ description: "Pc2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEG", # 一括取引の説明
13
+ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # マネーID
14
+ ))
15
+ ```
16
+
17
+
18
+
19
+ ### Parameters
20
+ **`name`**
21
+
22
+
23
+ 一括取引タスクの管理用の名前です。
24
+
25
+ ```json
26
+ {
27
+ "type": "string",
28
+ "maxLength": 32
29
+ }
30
+ ```
31
+
32
+ **`description`**
33
+
34
+
35
+ 一括取引タスクの管理用の説明文です。
36
+
37
+ ```json
38
+ {
39
+ "type": "string",
40
+ "maxLength": 128
41
+ }
42
+ ```
43
+
44
+ **`content`**
45
+
46
+
47
+ 一括取引する情報を書いたCSVの文字列です。
48
+ 1行目はヘッダ行で、2行目以降の各行にカンマ区切りの取引データを含みます。
49
+ カラムは以下の7つです。任意のカラムには空文字を指定します。
50
+
51
+ - `type`: 取引種別
52
+ - 必須。'topup' または 'payment'
53
+ - `sender_id`: 送金ユーザーID
54
+ - 必須。UUID
55
+ - `receiver_id`: 受取ユーザーID
56
+ - 必須。UUID
57
+ - `private_money_id`: マネーID
58
+ - 必須。UUID
59
+ - `money_amount`: マネー額
60
+ - 任意。ただし `point_amount` といずれかが必須。0以上の数字
61
+ - `point_amount`: ポイント額
62
+ - 任意。ただし `money_amount` といずれかが必須。0以上の数字
63
+ - `description`: 取引の説明文
64
+ - 任意。200文字以内。取引履歴に表示される文章
65
+ - `bear_account_id`: ポイント負担ウォレットID
66
+ - `point_amount` があるときは必須。UUID
67
+ - `point_expires_at`: ポイントの有効期限
68
+ - 任意。指定がないときはマネーに設定された有効期限を適用
69
+
70
+ ```json
71
+ {
72
+ "type": "string"
73
+ }
74
+ ```
75
+
76
+ **`request_id`**
77
+
78
+
79
+ 重複したリクエストを判断するためのユニークID。ランダムな36字の文字列を生成して渡してください。
80
+
81
+ ```json
82
+ {
83
+ "type": "string",
84
+ "minLength": 36,
85
+ "maxLength": 36
86
+ }
87
+ ```
88
+
89
+ **`private_money_id`**
90
+
91
+
92
+ マネーIDです。 マネーを指定します。
93
+
94
+ ```json
95
+ {
96
+ "type": "string",
97
+ "format": "uuid"
98
+ }
99
+ ```
100
+
101
+
102
+
103
+ 成功したときは
104
+ [BulkTransaction](./responses.md#bulk-transaction)
105
+ を返します
106
+
107
+ ### Error Responses
108
+ |status|type|ja|en|
109
+ |---|---|---|---|
110
+ |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
111
+ |403|organization_not_issuer|発行体以外に許可されていない操作です|Unpermitted operation except for issuer organizations.|
112
+ |409|NULL|NULL|NULL|
113
+ |422|private_money_not_found||Private money not found|
114
+ |422|bulk_transaction_invalid_csv_format|入力されたCSVデータに誤りがあります|Invalid csv format|
115
+
116
+
117
+
118
+ ---
119
+
120
+
121
+