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/responses.md
ADDED
@@ -0,0 +1,711 @@
|
|
1
|
+
# Responses
|
2
|
+
<a name="account-with-user"></a>
|
3
|
+
## AccountWithUser
|
4
|
+
* `id (string)`:
|
5
|
+
* `name (string)`:
|
6
|
+
* `is_suspended (boolean)`:
|
7
|
+
* `status (string)`:
|
8
|
+
* `private_money (PrivateMoney)`:
|
9
|
+
* `user (User)`:
|
10
|
+
|
11
|
+
`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。
|
12
|
+
|
13
|
+
`user`は [User](#user) オブジェクトを返します。
|
14
|
+
|
15
|
+
<a name="account-detail"></a>
|
16
|
+
## AccountDetail
|
17
|
+
* `id (string)`:
|
18
|
+
* `name (string)`:
|
19
|
+
* `is_suspended (boolean)`:
|
20
|
+
* `status (string)`:
|
21
|
+
* `balance (double)`:
|
22
|
+
* `money_balance (double)`:
|
23
|
+
* `point_balance (double)`:
|
24
|
+
* `point_debt (double)`:
|
25
|
+
* `private_money (PrivateMoney)`:
|
26
|
+
* `user (User)`:
|
27
|
+
* `external_id (string)`:
|
28
|
+
|
29
|
+
`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。
|
30
|
+
|
31
|
+
`user`は [User](#user) オブジェクトを返します。
|
32
|
+
|
33
|
+
<a name="account-deleted"></a>
|
34
|
+
## AccountDeleted
|
35
|
+
|
36
|
+
<a name="bill"></a>
|
37
|
+
## Bill
|
38
|
+
* `id (string)`: 支払いQRコードのID
|
39
|
+
* `amount (double)`: 支払い額
|
40
|
+
* `max_amount (double)`: 支払い額を範囲指定した場合の上限
|
41
|
+
* `min_amount (double)`: 支払い額を範囲指定した場合の下限
|
42
|
+
* `description (string)`: 支払いQRコードの説明文(アプリ上で取引の説明文として表示される)
|
43
|
+
* `account (AccountWithUser)`: 支払いQRコード発行ウォレット
|
44
|
+
* `is_disabled (boolean)`: 無効化されているかどうか
|
45
|
+
* `token (string)`: 支払いQRコードを解析したときに出てくるURL
|
46
|
+
|
47
|
+
`account`は [AccountWithUser](#account-with-user) オブジェクトを返します。
|
48
|
+
|
49
|
+
<a name="check"></a>
|
50
|
+
## Check
|
51
|
+
* `id (string)`: チャージQRコードのID
|
52
|
+
* `created_at (string)`: チャージQRコードの作成日時
|
53
|
+
* `amount (double)`: チャージマネー額 (deprecated)
|
54
|
+
* `money_amount (double)`: チャージマネー額
|
55
|
+
* `point_amount (double)`: チャージポイント額
|
56
|
+
* `description (string)`: チャージQRコードの説明文(アプリ上で取引の説明文として表示される)
|
57
|
+
* `user (User)`: 送金元ユーザ情報
|
58
|
+
* `is_onetime (boolean)`: 使用回数が一回限りかどうか
|
59
|
+
* `is_disabled (boolean)`: 無効化されているかどうか
|
60
|
+
* `expires_at (string)`: チャージQRコード自体の失効日時
|
61
|
+
* `last_used_at (string)`:
|
62
|
+
* `private_money (PrivateMoney)`: 対象マネー情報
|
63
|
+
* `usage_limit (integer)`: 一回限りでない場合の最大読み取り回数
|
64
|
+
* `usage_count (double)`: 一回限りでない場合の現在までに読み取られた回数
|
65
|
+
* `point_expires_at (string)`: ポイント有効期限(絶対日数指定)
|
66
|
+
* `point_expires_in_days (integer)`: ポイント有効期限(相対日数指定)
|
67
|
+
* `token (string)`: チャージQRコードを解析したときに出てくるURL
|
68
|
+
|
69
|
+
`user`は [User](#user) オブジェクトを返します。
|
70
|
+
|
71
|
+
`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。
|
72
|
+
|
73
|
+
<a name="paginated-checks"></a>
|
74
|
+
## PaginatedChecks
|
75
|
+
* `rows (array of Checks)`:
|
76
|
+
* `count (integer)`:
|
77
|
+
* `pagination (Pagination)`:
|
78
|
+
|
79
|
+
`rows`は [Check](#check) オブジェクトの配列を返します。
|
80
|
+
|
81
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
82
|
+
|
83
|
+
<a name="cpm-token"></a>
|
84
|
+
## CpmToken
|
85
|
+
* `cpm_token (string)`:
|
86
|
+
* `account (AccountDetail)`:
|
87
|
+
* `transaction (Transaction)`:
|
88
|
+
* `event (ExternalTransaction)`:
|
89
|
+
* `scopes (array of strings)`: 許可された取引種別
|
90
|
+
* `expires_at (string)`: CPMトークンの失効日時
|
91
|
+
* `metadata (string)`: エンドユーザー側メタデータ
|
92
|
+
|
93
|
+
`account`は [AccountDetail](#account-detail) オブジェクトを返します。
|
94
|
+
|
95
|
+
`transaction`は [Transaction](#transaction) オブジェクトを返します。
|
96
|
+
|
97
|
+
`event`は [ExternalTransaction](#external-transaction) オブジェクトを返します。
|
98
|
+
|
99
|
+
<a name="cashtray"></a>
|
100
|
+
## Cashtray
|
101
|
+
* `id (string)`: Cashtray自体のIDです。
|
102
|
+
* `amount (double)`: 取引金額
|
103
|
+
* `description (string)`: Cashtrayの説明文
|
104
|
+
* `account (AccountWithUser)`: 発行店舗のウォレット
|
105
|
+
* `expires_at (string)`: Cashtrayの失効日時
|
106
|
+
* `canceled_at (string)`: Cashtrayの無効化日時。NULLの場合は無効化されていません
|
107
|
+
* `token (string)`: CashtrayのQRコードを解析したときに出てくるURL
|
108
|
+
|
109
|
+
`account`は [AccountWithUser](#account-with-user) オブジェクトを返します。
|
110
|
+
|
111
|
+
<a name="cashtray-with-result"></a>
|
112
|
+
## CashtrayWithResult
|
113
|
+
* `id (string)`: CashtrayのID
|
114
|
+
* `amount (double)`: 取引金額
|
115
|
+
* `description (string)`: Cashtrayの説明文(アプリ上で取引の説明文として表示される)
|
116
|
+
* `account (AccountWithUser)`: 発行店舗のウォレット
|
117
|
+
* `expires_at (string)`: Cashtrayの失効日時
|
118
|
+
* `canceled_at (string)`: Cashtrayの無効化日時。NULLの場合は無効化されていません
|
119
|
+
* `token (string)`: CashtrayのQRコードを解析したときに出てくるURL
|
120
|
+
* `attempt (CashtrayAttempt)`: Cashtray読み取り結果
|
121
|
+
* `transaction (Transaction)`: 取引結果
|
122
|
+
|
123
|
+
`account`は [AccountWithUser](#account-with-user) オブジェクトを返します。
|
124
|
+
|
125
|
+
`attempt`は [CashtrayAttempt](#cashtray-attempt) オブジェクトを返します。
|
126
|
+
|
127
|
+
`transaction`は [Transaction](#transaction) オブジェクトを返します。
|
128
|
+
|
129
|
+
<a name="user"></a>
|
130
|
+
## User
|
131
|
+
* `id (string)`: ユーザー (または店舗) ID
|
132
|
+
* `name (string)`: ユーザー (または店舗) 名
|
133
|
+
* `is_merchant (boolean)`: 店舗ユーザーかどうか
|
134
|
+
|
135
|
+
<a name="organization"></a>
|
136
|
+
## Organization
|
137
|
+
* `code (string)`: 組織コード
|
138
|
+
* `name (string)`: 組織名
|
139
|
+
|
140
|
+
<a name="transaction-detail"></a>
|
141
|
+
## TransactionDetail
|
142
|
+
* `id (string)`: 取引ID
|
143
|
+
* `type (string)`: 取引種別
|
144
|
+
* `is_modified (boolean)`: 返金された取引かどうか
|
145
|
+
* `sender (User)`: 送金者情報
|
146
|
+
* `sender_account (Account)`: 送金ウォレット情報
|
147
|
+
* `receiver (User)`: 受取者情報
|
148
|
+
* `receiver_account (Account)`: 受取ウォレット情報
|
149
|
+
* `amount (double)`: 取引総額 (マネー額 + ポイント額)
|
150
|
+
* `money_amount (double)`: 取引マネー額
|
151
|
+
* `point_amount (double)`: 取引ポイント額(キャンペーン付与ポイント合算)
|
152
|
+
* `raw_point_amount (double)`: 取引ポイント額
|
153
|
+
* `campaign_point_amount (double)`: キャンペーンによるポイント付与額
|
154
|
+
* `done_at (string)`: 取引日時
|
155
|
+
* `description (string)`: 取引説明文
|
156
|
+
* `transfers (array of Transfers)`:
|
157
|
+
|
158
|
+
`receiver`と`sender`は [User](#user) オブジェクトを返します。
|
159
|
+
|
160
|
+
`receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。
|
161
|
+
|
162
|
+
`transfers`は [Transfer](#transfer) オブジェクトの配列を返します。
|
163
|
+
|
164
|
+
<a name="shop-with-accounts"></a>
|
165
|
+
## ShopWithAccounts
|
166
|
+
* `id (string)`: 店舗ID
|
167
|
+
* `name (string)`: 店舗名
|
168
|
+
* `organization_code (string)`: 組織コード
|
169
|
+
* `status (string)`: 店舗の状態
|
170
|
+
* `postal_code (string)`: 店舗の郵便番号
|
171
|
+
* `address (string)`: 店舗の住所
|
172
|
+
* `tel (string)`: 店舗の電話番号
|
173
|
+
* `email (string)`: 店舗のメールアドレス
|
174
|
+
* `external_id (string)`: 店舗の外部ID
|
175
|
+
* `accounts (array of ShopAccounts)`:
|
176
|
+
|
177
|
+
`accounts`は [ShopAccount](#shop-account) オブジェクトの配列を返します。
|
178
|
+
|
179
|
+
<a name="bulk-transaction"></a>
|
180
|
+
## BulkTransaction
|
181
|
+
* `id (string)`:
|
182
|
+
* `request_id (string)`: リクエストID
|
183
|
+
* `name (string)`: バルク取引管理用の名前
|
184
|
+
* `description (string)`: バルク取引管理用の説明文
|
185
|
+
* `status (string)`: バルク取引の状態
|
186
|
+
* `error (string)`: バルク取引のエラー種別
|
187
|
+
* `error_lineno (integer)`: バルク取引のエラーが発生した行番号
|
188
|
+
* `submitted_at (string)`: バルク取引が登録された日時
|
189
|
+
* `updated_at (string)`: バルク取引が更新された日時
|
190
|
+
|
191
|
+
<a name="paginated-bulk-transaction-job"></a>
|
192
|
+
## PaginatedBulkTransactionJob
|
193
|
+
* `rows (array of BulkTransactionJobs)`:
|
194
|
+
* `count (integer)`:
|
195
|
+
* `pagination (Pagination)`:
|
196
|
+
|
197
|
+
`rows`は [BulkTransactionJob](#bulk-transaction-job) オブジェクトの配列を返します。
|
198
|
+
|
199
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
200
|
+
|
201
|
+
<a name="external-transaction-detail"></a>
|
202
|
+
## ExternalTransactionDetail
|
203
|
+
* `id (string)`: ポケペイ外部取引ID
|
204
|
+
* `is_modified (boolean)`: 返金された取引かどうか
|
205
|
+
* `sender (User)`: 送金者情報
|
206
|
+
* `sender_account (Account)`: 送金ウォレット情報
|
207
|
+
* `receiver (User)`: 受取者情報
|
208
|
+
* `receiver_account (Account)`: 受取ウォレット情報
|
209
|
+
* `amount (double)`: 決済額
|
210
|
+
* `done_at (string)`: 取引日時
|
211
|
+
* `description (string)`: 取引説明文
|
212
|
+
* `transaction (TransactionDetail)`: 関連ポケペイ取引詳細
|
213
|
+
|
214
|
+
`receiver`と`sender`は [User](#user) オブジェクトを返します。
|
215
|
+
|
216
|
+
`receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。
|
217
|
+
|
218
|
+
`transaction`は [TransactionDetail](#transaction-detail) オブジェクトを返します。
|
219
|
+
|
220
|
+
<a name="paginated-private-money-organization-summaries"></a>
|
221
|
+
## PaginatedPrivateMoneyOrganizationSummaries
|
222
|
+
* `rows (array of PrivateMoneyOrganizationSummaries)`:
|
223
|
+
* `count (integer)`:
|
224
|
+
* `pagination (Pagination)`:
|
225
|
+
|
226
|
+
`rows`は [PrivateMoneyOrganizationSummary](#private-money-organization-summary) オブジェクトの配列を返します。
|
227
|
+
|
228
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
229
|
+
|
230
|
+
<a name="private-money-summary"></a>
|
231
|
+
## PrivateMoneySummary
|
232
|
+
* `topup_amount (double)`:
|
233
|
+
* `refunded_topup_amount (double)`:
|
234
|
+
* `payment_amount (double)`:
|
235
|
+
* `refunded_payment_amount (double)`:
|
236
|
+
* `added_point_amount (double)`:
|
237
|
+
* `topup_point_amount (double)`:
|
238
|
+
* `campaign_point_amount (double)`:
|
239
|
+
* `refunded_added_point_amount (double)`:
|
240
|
+
* `exchange_inflow_amount (double)`:
|
241
|
+
* `exchange_outflow_amount (double)`:
|
242
|
+
* `transaction_count (integer)`:
|
243
|
+
|
244
|
+
<a name="user-stats-operation"></a>
|
245
|
+
## UserStatsOperation
|
246
|
+
* `id (string)`: 集計処理ID
|
247
|
+
* `from (string)`: 集計期間の開始時刻
|
248
|
+
* `to (string)`: 集計期間の終了時刻
|
249
|
+
* `status (string)`: 集計処理の実行ステータス
|
250
|
+
* `error_reason (string)`: エラーとなった理由
|
251
|
+
* `done_at (string)`: 集計処理の完了時刻
|
252
|
+
* `file_url (string)`: 集計結果のCSVのダウンロードURL
|
253
|
+
* `requested_at (string)`: 集計リクエストを行った時刻
|
254
|
+
|
255
|
+
<a name="user-device"></a>
|
256
|
+
## UserDevice
|
257
|
+
* `id (string)`: デバイスID
|
258
|
+
* `user (User)`: デバイスを使用するユーザ
|
259
|
+
* `is_active (boolean)`: デバイスが有効か
|
260
|
+
* `metadata (string)`: デバイスのメタデータ
|
261
|
+
|
262
|
+
`user`は [User](#user) オブジェクトを返します。
|
263
|
+
|
264
|
+
<a name="bank-registering-info"></a>
|
265
|
+
## BankRegisteringInfo
|
266
|
+
* `redirect_url (string)`:
|
267
|
+
* `paytree_customer_number (string)`:
|
268
|
+
|
269
|
+
<a name="banks"></a>
|
270
|
+
## Banks
|
271
|
+
* `rows (array of Banks)`:
|
272
|
+
* `count (integer)`:
|
273
|
+
|
274
|
+
`rows`は [Bank](#bank) オブジェクトの配列を返します。
|
275
|
+
|
276
|
+
<a name="paginated-transaction"></a>
|
277
|
+
## PaginatedTransaction
|
278
|
+
* `rows (array of Transactions)`:
|
279
|
+
* `count (integer)`:
|
280
|
+
* `pagination (Pagination)`:
|
281
|
+
|
282
|
+
`rows`は [Transaction](#transaction) オブジェクトの配列を返します。
|
283
|
+
|
284
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
285
|
+
|
286
|
+
<a name="paginated-transaction-v2"></a>
|
287
|
+
## PaginatedTransactionV2
|
288
|
+
* `rows (array of Transactions)`:
|
289
|
+
* `per_page (integer)`:
|
290
|
+
* `count (integer)`:
|
291
|
+
* `next_page_cursor_id (string)`:
|
292
|
+
* `prev_page_cursor_id (string)`:
|
293
|
+
|
294
|
+
`rows`は [Transaction](#transaction) オブジェクトの配列を返します。
|
295
|
+
|
296
|
+
<a name="paginated-transfers"></a>
|
297
|
+
## PaginatedTransfers
|
298
|
+
* `rows (array of Transfers)`:
|
299
|
+
* `count (integer)`:
|
300
|
+
* `pagination (Pagination)`:
|
301
|
+
|
302
|
+
`rows`は [Transfer](#transfer) オブジェクトの配列を返します。
|
303
|
+
|
304
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
305
|
+
|
306
|
+
<a name="paginated-transfers-v2"></a>
|
307
|
+
## PaginatedTransfersV2
|
308
|
+
* `rows (array of Transfers)`:
|
309
|
+
* `per_page (integer)`:
|
310
|
+
* `count (integer)`:
|
311
|
+
* `next_page_cursor_id (string)`:
|
312
|
+
* `prev_page_cursor_id (string)`:
|
313
|
+
|
314
|
+
`rows`は [Transfer](#transfer) オブジェクトの配列を返します。
|
315
|
+
|
316
|
+
<a name="paginated-account-with-users"></a>
|
317
|
+
## PaginatedAccountWithUsers
|
318
|
+
* `rows (array of AccountWithUsers)`:
|
319
|
+
* `count (integer)`:
|
320
|
+
* `pagination (Pagination)`:
|
321
|
+
|
322
|
+
`rows`は [AccountWithUser](#account-with-user) オブジェクトの配列を返します。
|
323
|
+
|
324
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
325
|
+
|
326
|
+
<a name="paginated-account-details"></a>
|
327
|
+
## PaginatedAccountDetails
|
328
|
+
* `rows (array of AccountDetails)`:
|
329
|
+
* `count (integer)`:
|
330
|
+
* `pagination (Pagination)`:
|
331
|
+
|
332
|
+
`rows`は [AccountDetail](#account-detail) オブジェクトの配列を返します。
|
333
|
+
|
334
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
335
|
+
|
336
|
+
<a name="paginated-account-balance"></a>
|
337
|
+
## PaginatedAccountBalance
|
338
|
+
* `rows (array of AccountBalances)`:
|
339
|
+
* `count (integer)`:
|
340
|
+
* `pagination (Pagination)`:
|
341
|
+
|
342
|
+
`rows`は [AccountBalance](#account-balance) オブジェクトの配列を返します。
|
343
|
+
|
344
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
345
|
+
|
346
|
+
<a name="paginated-shops"></a>
|
347
|
+
## PaginatedShops
|
348
|
+
* `rows (array of ShopWithMetadatas)`:
|
349
|
+
* `count (integer)`:
|
350
|
+
* `pagination (Pagination)`:
|
351
|
+
|
352
|
+
`rows`は [ShopWithMetadata](#shop-with-metadata) オブジェクトの配列を返します。
|
353
|
+
|
354
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
355
|
+
|
356
|
+
<a name="paginated-bills"></a>
|
357
|
+
## PaginatedBills
|
358
|
+
* `rows (array of Bills)`:
|
359
|
+
* `count (integer)`:
|
360
|
+
* `pagination (Pagination)`:
|
361
|
+
|
362
|
+
`rows`は [Bill](#bill) オブジェクトの配列を返します。
|
363
|
+
|
364
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
365
|
+
|
366
|
+
<a name="paginated-private-moneys"></a>
|
367
|
+
## PaginatedPrivateMoneys
|
368
|
+
* `rows (array of PrivateMoneys)`:
|
369
|
+
* `count (integer)`:
|
370
|
+
* `pagination (Pagination)`:
|
371
|
+
|
372
|
+
`rows`は [PrivateMoney](#private-money) オブジェクトの配列を返します。
|
373
|
+
|
374
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
375
|
+
|
376
|
+
<a name="campaign"></a>
|
377
|
+
## Campaign
|
378
|
+
* `id (string)`: キャンペーンID
|
379
|
+
* `name (string)`: キャペーン名
|
380
|
+
* `applicable_shops (array of Users)`: キャンペーン適用対象の店舗リスト
|
381
|
+
* `is_exclusive (boolean)`: キャンペーンの重複を許すかどうかのフラグ
|
382
|
+
* `starts_at (string)`: キャンペーン開始日時
|
383
|
+
* `ends_at (string)`: キャンペーン終了日時
|
384
|
+
* `point_expires_at (string)`: キャンペーンによって付与されるポイントの失効日時
|
385
|
+
* `point_expires_in_days (integer)`: キャンペーンによって付与されるポイントの有効期限(相対指定、単位は日)
|
386
|
+
* `priority (integer)`: キャンペーンの優先順位
|
387
|
+
* `description (string)`: キャンペーン説明文
|
388
|
+
* `bear_point_shop (User)`: ポイントを負担する店舗
|
389
|
+
* `private_money (PrivateMoney)`: キャンペーンを適用するマネー
|
390
|
+
* `dest_private_money (PrivateMoney)`: ポイントを付与するマネー
|
391
|
+
* `max_total_point_amount (integer)`: 一人当たりの累計ポイント上限
|
392
|
+
* `point_calculation_rule (string)`: ポイント計算ルール (banklisp表記)
|
393
|
+
* `point_calculation_rule_object (string)`: ポイント計算ルール (JSON文字列による表記)
|
394
|
+
* `status (string)`: キャンペーンの現在の状態
|
395
|
+
* `budget_caps_amount (integer)`: キャンペーンの予算上限額
|
396
|
+
* `budget_current_amount (integer)`: キャンペーンの付与合計額
|
397
|
+
* `budget_current_time (string)`: キャンペーンの付与集計日時
|
398
|
+
|
399
|
+
`applicable-shops`は [User](#user) オブジェクトの配列を返します。
|
400
|
+
|
401
|
+
`bear_point_shop`は [User](#user) オブジェクトを返します。
|
402
|
+
|
403
|
+
`dest_private_money`と`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。
|
404
|
+
|
405
|
+
<a name="paginated-campaigns"></a>
|
406
|
+
## PaginatedCampaigns
|
407
|
+
* `rows (array of Campaigns)`:
|
408
|
+
* `count (integer)`:
|
409
|
+
* `pagination (Pagination)`:
|
410
|
+
|
411
|
+
`rows`は [Campaign](#campaign) オブジェクトの配列を返します。
|
412
|
+
|
413
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
414
|
+
|
415
|
+
<a name="account-transfer-summary"></a>
|
416
|
+
## AccountTransferSummary
|
417
|
+
* `summaries (array of AccountTransferSummaryElements)`:
|
418
|
+
|
419
|
+
`summaries`は [AccountTransferSummaryElement](#account-transfer-summary-element) オブジェクトの配列を返します。
|
420
|
+
|
421
|
+
<a name="organization-worker-task-webhook"></a>
|
422
|
+
## OrganizationWorkerTaskWebhook
|
423
|
+
* `id (string)`:
|
424
|
+
* `organization_code (string)`:
|
425
|
+
* `task (string)`:
|
426
|
+
* `url (string)`:
|
427
|
+
* `content_type (string)`:
|
428
|
+
* `is_active (boolean)`:
|
429
|
+
|
430
|
+
<a name="paginated-organization-worker-task-webhook"></a>
|
431
|
+
## PaginatedOrganizationWorkerTaskWebhook
|
432
|
+
* `rows (array of OrganizationWorkerTaskWebhooks)`:
|
433
|
+
* `count (integer)`:
|
434
|
+
* `pagination (Pagination)`:
|
435
|
+
|
436
|
+
`rows`は [OrganizationWorkerTaskWebhook](#organization-worker-task-webhook) オブジェクトの配列を返します。
|
437
|
+
|
438
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
439
|
+
|
440
|
+
<a name="coupon-detail"></a>
|
441
|
+
## CouponDetail
|
442
|
+
* `id (string)`: クーポンID
|
443
|
+
* `name (string)`: クーポン名
|
444
|
+
* `issued_shop (User)`: クーポン発行店舗
|
445
|
+
* `description (string)`: クーポンの説明文
|
446
|
+
* `discount_amount (integer)`: クーポンによる値引き額(絶対値指定)
|
447
|
+
* `discount_percentage (double)`: クーポンによる値引き率
|
448
|
+
* `discount_upper_limit (integer)`: クーポンによる値引き上限(値引き率が指定された場合の値引き上限額)
|
449
|
+
* `starts_at (string)`: クーポンの利用可能期間(開始日時)
|
450
|
+
* `ends_at (string)`: クーポンの利用可能期間(終了日時)
|
451
|
+
* `display_starts_at (string)`: クーポンの掲載期間(開始日時)
|
452
|
+
* `display_ends_at (string)`: クーポンの掲載期間(終了日時)
|
453
|
+
* `usage_limit (integer)`: ユーザごとの利用可能回数(NULLの場合は無制限)
|
454
|
+
* `min_amount (integer)`: クーポン適用可能な最小取引額
|
455
|
+
* `is_shop_specified (boolean)`: 特定店舗限定のクーポンかどうか
|
456
|
+
* `is_hidden (boolean)`: クーポン一覧に掲載されるかどうか
|
457
|
+
* `is_public (boolean)`: アプリ配信なしで受け取れるかどうか
|
458
|
+
* `code (string)`: クーポン受け取りコード
|
459
|
+
* `is_disabled (boolean)`: 無効化フラグ
|
460
|
+
* `token (string)`: クーポンを特定するためのトークン
|
461
|
+
* `coupon_image (string)`: クーポン画像のURL
|
462
|
+
* `available_shops (array of Users)`: 利用可能店舗リスト
|
463
|
+
* `private_money (PrivateMoney)`: クーポンのマネー
|
464
|
+
|
465
|
+
`issued_shop`は [User](#user) オブジェクトを返します。
|
466
|
+
|
467
|
+
`available-shops`は [User](#user) オブジェクトの配列を返します。
|
468
|
+
|
469
|
+
`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。
|
470
|
+
|
471
|
+
<a name="paginated-coupons"></a>
|
472
|
+
## PaginatedCoupons
|
473
|
+
* `rows (array of Coupons)`:
|
474
|
+
* `count (integer)`:
|
475
|
+
* `pagination (Pagination)`:
|
476
|
+
|
477
|
+
`rows`は [Coupon](#coupon) オブジェクトの配列を返します。
|
478
|
+
|
479
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
480
|
+
|
481
|
+
<a name="paginated-organizations"></a>
|
482
|
+
## PaginatedOrganizations
|
483
|
+
* `rows (array of Organizations)`:
|
484
|
+
* `count (integer)`:
|
485
|
+
* `pagination (Pagination)`:
|
486
|
+
|
487
|
+
`rows`は [Organization](#organization) オブジェクトの配列を返します。
|
488
|
+
|
489
|
+
`pagination`は [Pagination](#pagination) オブジェクトを返します。
|
490
|
+
|
491
|
+
<a name="private-money"></a>
|
492
|
+
## PrivateMoney
|
493
|
+
* `id (string)`: マネーID
|
494
|
+
* `name (string)`: マネー名
|
495
|
+
* `unit (string)`: マネー単位 (例: 円)
|
496
|
+
* `is_exclusive (boolean)`: 会員制のマネーかどうか
|
497
|
+
* `description (string)`: マネー説明文
|
498
|
+
* `oneline_message (string)`: マネーの要約
|
499
|
+
* `organization (Organization)`: マネーを発行した組織
|
500
|
+
* `max_balance (double)`: ウォレットの上限金額
|
501
|
+
* `transfer_limit (double)`: マネーの取引上限額
|
502
|
+
* `money_topup_transfer_limit (double)`: マネーチャージ取引上限額
|
503
|
+
* `type (string)`: マネー種別 (自家型=own, 第三者型=third-party)
|
504
|
+
* `expiration_type (string)`: 有効期限種別 (チャージ日起算=static, 最終利用日起算=last-update, 最終チャージ日起算=last-topup-update)
|
505
|
+
* `enable_topup_by_member (boolean)`: (deprecated)
|
506
|
+
* `display_money_and_point (string)`:
|
507
|
+
|
508
|
+
`organization`は [Organization](#organization) オブジェクトを返します。
|
509
|
+
|
510
|
+
<a name="pagination"></a>
|
511
|
+
## Pagination
|
512
|
+
* `current (integer)`:
|
513
|
+
* `per_page (integer)`:
|
514
|
+
* `max_page (integer)`:
|
515
|
+
* `has_prev (boolean)`:
|
516
|
+
* `has_next (boolean)`:
|
517
|
+
|
518
|
+
<a name="transaction"></a>
|
519
|
+
## Transaction
|
520
|
+
* `id (string)`: 取引ID
|
521
|
+
* `type (string)`: 取引種別
|
522
|
+
* `is_modified (boolean)`: 返金された取引かどうか
|
523
|
+
* `sender (User)`: 送金者情報
|
524
|
+
* `sender_account (Account)`: 送金ウォレット情報
|
525
|
+
* `receiver (User)`: 受取者情報
|
526
|
+
* `receiver_account (Account)`: 受取ウォレット情報
|
527
|
+
* `amount (double)`: 取引総額 (マネー額 + ポイント額)
|
528
|
+
* `money_amount (double)`: 取引マネー額
|
529
|
+
* `point_amount (double)`: 取引ポイント額(キャンペーン付与ポイント合算)
|
530
|
+
* `raw_point_amount (double)`: 取引ポイント額
|
531
|
+
* `campaign_point_amount (double)`: キャンペーンによるポイント付与額
|
532
|
+
* `done_at (string)`: 取引日時
|
533
|
+
* `description (string)`: 取引説明文
|
534
|
+
|
535
|
+
`receiver`と`sender`は [User](#user) オブジェクトを返します。
|
536
|
+
|
537
|
+
`receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。
|
538
|
+
|
539
|
+
<a name="external-transaction"></a>
|
540
|
+
## ExternalTransaction
|
541
|
+
* `id (string)`: ポケペイ外部取引ID
|
542
|
+
* `is_modified (boolean)`: 返金された取引かどうか
|
543
|
+
* `sender (User)`: 送金者情報
|
544
|
+
* `sender_account (Account)`: 送金ウォレット情報
|
545
|
+
* `receiver (User)`: 受取者情報
|
546
|
+
* `receiver_account (Account)`: 受取ウォレット情報
|
547
|
+
* `amount (double)`: 決済額
|
548
|
+
* `done_at (string)`: 取引日時
|
549
|
+
* `description (string)`: 取引説明文
|
550
|
+
|
551
|
+
`receiver`と`sender`は [User](#user) オブジェクトを返します。
|
552
|
+
|
553
|
+
`receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。
|
554
|
+
|
555
|
+
<a name="cashtray-attempt"></a>
|
556
|
+
## CashtrayAttempt
|
557
|
+
* `account (AccountWithUser)`: エンドユーザーのウォレット
|
558
|
+
* `status_code (double)`: ステータスコード
|
559
|
+
* `error_type (string)`: エラー型
|
560
|
+
* `error_message (string)`: エラーメッセージ
|
561
|
+
* `created_at (string)`: Cashtray読み取り記録の作成日時
|
562
|
+
|
563
|
+
`account`は [AccountWithUser](#account-with-user) オブジェクトを返します。
|
564
|
+
|
565
|
+
<a name="account"></a>
|
566
|
+
## Account
|
567
|
+
* `id (string)`: ウォレットID
|
568
|
+
* `name (string)`: ウォレット名
|
569
|
+
* `is_suspended (boolean)`: ウォレットが凍結されているかどうか
|
570
|
+
* `status (string)`:
|
571
|
+
* `private_money (PrivateMoney)`: 設定マネー情報
|
572
|
+
|
573
|
+
`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。
|
574
|
+
|
575
|
+
<a name="transfer"></a>
|
576
|
+
## Transfer
|
577
|
+
* `id (string)`:
|
578
|
+
* `sender_account (AccountWithoutPrivateMoneyDetail)`:
|
579
|
+
* `receiver_account (AccountWithoutPrivateMoneyDetail)`:
|
580
|
+
* `amount (double)`:
|
581
|
+
* `money_amount (double)`:
|
582
|
+
* `point_amount (double)`:
|
583
|
+
* `done_at (string)`:
|
584
|
+
* `type (string)`:
|
585
|
+
* `description (string)`:
|
586
|
+
* `transaction_id (string)`:
|
587
|
+
|
588
|
+
`receiver_account`と`sender_account`は [AccountWithoutPrivateMoneyDetail](#account-without-private-money-detail) オブジェクトを返します。
|
589
|
+
|
590
|
+
<a name="shop-account"></a>
|
591
|
+
## ShopAccount
|
592
|
+
* `id (string)`: ウォレットID
|
593
|
+
* `name (string)`: ウォレット名
|
594
|
+
* `is_suspended (boolean)`: ウォレットが凍結されているかどうか
|
595
|
+
* `can_transfer_topup (boolean)`: チャージ可能かどうか
|
596
|
+
* `private_money (PrivateMoney)`: 設定マネー情報
|
597
|
+
|
598
|
+
`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。
|
599
|
+
|
600
|
+
<a name="bulk-transaction-job"></a>
|
601
|
+
## BulkTransactionJob
|
602
|
+
* `id (integer)`:
|
603
|
+
* `bulk_transaction (BulkTransaction)`:
|
604
|
+
* `type (string)`: 取引種別
|
605
|
+
* `sender_account_id (string)`:
|
606
|
+
* `receiver_account_id (string)`:
|
607
|
+
* `money_amount (double)`:
|
608
|
+
* `point_amount (double)`:
|
609
|
+
* `description (string)`: バルク取引ジョブ管理用の説明文
|
610
|
+
* `bear_point_account_id (string)`:
|
611
|
+
* `point_expires_at (string)`: ポイント有効期限
|
612
|
+
* `status (string)`: バルク取引ジョブの状態
|
613
|
+
* `error (string)`: バルク取引のエラー種別
|
614
|
+
* `lineno (integer)`: バルク取引のエラーが発生した行番号
|
615
|
+
* `transaction_id (string)`:
|
616
|
+
* `created_at (string)`: バルク取引ジョブが登録された日時
|
617
|
+
* `updated_at (string)`: バルク取引ジョブが更新された日時
|
618
|
+
|
619
|
+
`bulk_transaction`は [BulkTransaction](#bulk-transaction) オブジェクトを返します。
|
620
|
+
|
621
|
+
<a name="private-money-organization-summary"></a>
|
622
|
+
## PrivateMoneyOrganizationSummary
|
623
|
+
* `organization_code (string)`:
|
624
|
+
* `topup (OrganizationSummary)`:
|
625
|
+
* `payment (OrganizationSummary)`:
|
626
|
+
|
627
|
+
`payment`と`topup`は [OrganizationSummary](#organization-summary) オブジェクトを返します。
|
628
|
+
|
629
|
+
<a name="bank"></a>
|
630
|
+
## Bank
|
631
|
+
* `id (string)`:
|
632
|
+
* `private_money (PrivateMoney)`:
|
633
|
+
* `bank_name (string)`:
|
634
|
+
* `bank_code (string)`:
|
635
|
+
* `branch_number (string)`:
|
636
|
+
* `branch_name (string)`:
|
637
|
+
* `deposit_type (string)`:
|
638
|
+
* `masked_account_number (string)`:
|
639
|
+
* `account_name (string)`:
|
640
|
+
|
641
|
+
`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。
|
642
|
+
|
643
|
+
<a name="account-balance"></a>
|
644
|
+
## AccountBalance
|
645
|
+
* `expires_at (string)`:
|
646
|
+
* `money_amount (double)`:
|
647
|
+
* `point_amount (double)`:
|
648
|
+
|
649
|
+
<a name="shop-with-metadata"></a>
|
650
|
+
## ShopWithMetadata
|
651
|
+
* `id (string)`: 店舗ID
|
652
|
+
* `name (string)`: 店舗名
|
653
|
+
* `organization_code (string)`: 組織コード
|
654
|
+
* `status (string)`: 店舗の状態
|
655
|
+
* `postal_code (string)`: 店舗の郵便番号
|
656
|
+
* `address (string)`: 店舗の住所
|
657
|
+
* `tel (string)`: 店舗の電話番号
|
658
|
+
* `email (string)`: 店舗のメールアドレス
|
659
|
+
* `external_id (string)`: 店舗の外部ID
|
660
|
+
|
661
|
+
<a name="account-transfer-summary-element"></a>
|
662
|
+
## AccountTransferSummaryElement
|
663
|
+
* `transfer_type (string)`:
|
664
|
+
* `money_amount (double)`:
|
665
|
+
* `point_amount (double)`:
|
666
|
+
* `count (double)`:
|
667
|
+
|
668
|
+
<a name="coupon"></a>
|
669
|
+
## Coupon
|
670
|
+
* `id (string)`: クーポンID
|
671
|
+
* `name (string)`: クーポン名
|
672
|
+
* `issued_shop (User)`: クーポン発行店舗
|
673
|
+
* `description (string)`: クーポンの説明文
|
674
|
+
* `discount_amount (integer)`: クーポンによる値引き額(絶対値指定)
|
675
|
+
* `discount_percentage (double)`: クーポンによる値引き率
|
676
|
+
* `discount_upper_limit (integer)`: クーポンによる値引き上限(値引き率が指定された場合の値引き上限額)
|
677
|
+
* `starts_at (string)`: クーポンの利用可能期間(開始日時)
|
678
|
+
* `ends_at (string)`: クーポンの利用可能期間(終了日時)
|
679
|
+
* `display_starts_at (string)`: クーポンの掲載期間(開始日時)
|
680
|
+
* `display_ends_at (string)`: クーポンの掲載期間(終了日時)
|
681
|
+
* `usage_limit (integer)`: ユーザごとの利用可能回数(NULLの場合は無制限)
|
682
|
+
* `min_amount (integer)`: クーポン適用可能な最小取引額
|
683
|
+
* `is_shop_specified (boolean)`: 特定店舗限定のクーポンかどうか
|
684
|
+
* `is_hidden (boolean)`: クーポン一覧に掲載されるかどうか
|
685
|
+
* `is_public (boolean)`: アプリ配信なしで受け取れるかどうか
|
686
|
+
* `code (string)`: クーポン受け取りコード
|
687
|
+
* `is_disabled (boolean)`: 無効化フラグ
|
688
|
+
* `token (string)`: クーポンを特定するためのトークン
|
689
|
+
|
690
|
+
`issued_shop`は [User](#user) オブジェクトを返します。
|
691
|
+
|
692
|
+
<a name="account-without-private-money-detail"></a>
|
693
|
+
## AccountWithoutPrivateMoneyDetail
|
694
|
+
* `id (string)`:
|
695
|
+
* `name (string)`:
|
696
|
+
* `is_suspended (boolean)`:
|
697
|
+
* `status (string)`:
|
698
|
+
* `private_money_id (string)`:
|
699
|
+
* `user (User)`:
|
700
|
+
|
701
|
+
`user`は [User](#user) オブジェクトを返します。
|
702
|
+
|
703
|
+
<a name="organization-summary"></a>
|
704
|
+
## OrganizationSummary
|
705
|
+
* `count (integer)`:
|
706
|
+
* `money_amount (double)`:
|
707
|
+
* `money_count (integer)`:
|
708
|
+
* `point_amount (double)`:
|
709
|
+
* `raw_point_amount (double)`:
|
710
|
+
* `campaign_point_amount (double)`:
|
711
|
+
* `point_count (integer)`:
|