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/user_device.md
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
# UserDevice
|
2
|
+
UserDeviceはユーザー毎のデバイスを管理します。
|
3
|
+
あるユーザーが使っている端末を区別する必要がある場合に用いられます。
|
4
|
+
これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。
|
5
|
+
|
6
|
+
|
7
|
+
<a name="create-user-device"></a>
|
8
|
+
## CreateUserDevice: ユーザーのデバイス登録
|
9
|
+
ユーザーのデバイスを新規に登録します
|
10
|
+
|
11
|
+
```RUBY
|
12
|
+
response = $client.send(Pokepay::Request::CreateUserDevice.new(
|
13
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_id: ユーザーID
|
14
|
+
metadata: "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}" # ユーザーデバイスのメタデータ
|
15
|
+
))
|
16
|
+
```
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
### Parameters
|
21
|
+
**`user_id`**
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
```json
|
26
|
+
{
|
27
|
+
"type": "string",
|
28
|
+
"format": "uuid"
|
29
|
+
}
|
30
|
+
```
|
31
|
+
|
32
|
+
**`metadata`**
|
33
|
+
|
34
|
+
|
35
|
+
ユーザーのデバイス用の情報をメタデータを保持するために用います。
|
36
|
+
例: 端末の固有情報やブラウザのUser-Agent
|
37
|
+
|
38
|
+
|
39
|
+
```json
|
40
|
+
{
|
41
|
+
"type": "string",
|
42
|
+
"format": "json"
|
43
|
+
}
|
44
|
+
```
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
成功したときは
|
49
|
+
[UserDevice](./responses.md#user-device)
|
50
|
+
を返します
|
51
|
+
|
52
|
+
### Error Responses
|
53
|
+
|status|type|ja|en|
|
54
|
+
|---|---|---|---|
|
55
|
+
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
|
56
|
+
|422|user_not_found||The user is not found|
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
---
|
61
|
+
|
62
|
+
|
63
|
+
<a name="get-user-device"></a>
|
64
|
+
## GetUserDevice: ユーザーのデバイスを取得
|
65
|
+
ユーザーのデバイスの情報を取得します
|
66
|
+
|
67
|
+
```RUBY
|
68
|
+
response = $client.send(Pokepay::Request::GetUserDevice.new(
|
69
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # user_device_id: ユーザーデバイスID
|
70
|
+
))
|
71
|
+
```
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
### Parameters
|
76
|
+
**`user_device_id`**
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
```json
|
81
|
+
{
|
82
|
+
"type": "string",
|
83
|
+
"format": "uuid"
|
84
|
+
}
|
85
|
+
```
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
成功したときは
|
90
|
+
[UserDevice](./responses.md#user-device)
|
91
|
+
を返します
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
---
|
96
|
+
|
97
|
+
|
98
|
+
<a name="activate-user-device"></a>
|
99
|
+
## ActivateUserDevice: デバイスの有効化
|
100
|
+
指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。
|
101
|
+
|
102
|
+
|
103
|
+
```RUBY
|
104
|
+
response = $client.send(Pokepay::Request::ActivateUserDevice.new(
|
105
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # user_device_id: ユーザーデバイスID
|
106
|
+
))
|
107
|
+
```
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
### Parameters
|
112
|
+
**`user_device_id`**
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
```json
|
117
|
+
{
|
118
|
+
"type": "string",
|
119
|
+
"format": "uuid"
|
120
|
+
}
|
121
|
+
```
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
成功したときは
|
126
|
+
[UserDevice](./responses.md#user-device)
|
127
|
+
を返します
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
---
|
132
|
+
|
133
|
+
|
134
|
+
|
data/docs/webhook.md
ADDED
@@ -0,0 +1,231 @@
|
|
1
|
+
# Webhook
|
2
|
+
Webhookは特定のワーカータスクでの処理が完了した事を通知します。
|
3
|
+
WebHookにはURLとタスク名、有効化されているかを設定することが出来ます。
|
4
|
+
通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。
|
5
|
+
|
6
|
+
|
7
|
+
<a name="list-webhooks"></a>
|
8
|
+
## ListWebhooks: 作成したWebhookの一覧を返す
|
9
|
+
|
10
|
+
```RUBY
|
11
|
+
response = $client.send(Pokepay::Request::ListWebhooks.new(
|
12
|
+
page: 1, # ページ番号
|
13
|
+
per_page: 50 # 1ページ分の取得数
|
14
|
+
))
|
15
|
+
```
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
### Parameters
|
20
|
+
**`page`**
|
21
|
+
|
22
|
+
|
23
|
+
取得したいページ番号です。
|
24
|
+
|
25
|
+
```json
|
26
|
+
{
|
27
|
+
"type": "integer",
|
28
|
+
"minimum": 1
|
29
|
+
}
|
30
|
+
```
|
31
|
+
|
32
|
+
**`per_page`**
|
33
|
+
|
34
|
+
|
35
|
+
1ページ分の取得数です。デフォルトでは 50 になっています。
|
36
|
+
|
37
|
+
```json
|
38
|
+
{
|
39
|
+
"type": "integer",
|
40
|
+
"minimum": 1
|
41
|
+
}
|
42
|
+
```
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
成功したときは
|
47
|
+
[PaginatedOrganizationWorkerTaskWebhook](./responses.md#paginated-organization-worker-task-webhook)
|
48
|
+
を返します
|
49
|
+
|
50
|
+
### Error Responses
|
51
|
+
|status|type|ja|en|
|
52
|
+
|---|---|---|---|
|
53
|
+
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
---
|
58
|
+
|
59
|
+
|
60
|
+
<a name="create-webhook"></a>
|
61
|
+
## CreateWebhook: webhookの作成
|
62
|
+
ワーカータスクの処理が終了したことを通知するためのWebhookを登録します
|
63
|
+
このAPIにより指定したタスクの終了時に、指定したURLにPOSTリクエストを送信します。
|
64
|
+
このとき、リクエストボディは `{"task": <タスク名>}` という値になります。
|
65
|
+
|
66
|
+
```RUBY
|
67
|
+
response = $client.send(Pokepay::Request::CreateWebhook.new(
|
68
|
+
"process_user_stats_operation", # task: タスク名
|
69
|
+
"m4tM4" # url: URL
|
70
|
+
))
|
71
|
+
```
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
### Parameters
|
76
|
+
**`task`**
|
77
|
+
|
78
|
+
|
79
|
+
ワーカータスク名を指定します
|
80
|
+
|
81
|
+
```json
|
82
|
+
{
|
83
|
+
"type": "string",
|
84
|
+
"enum": [
|
85
|
+
"bulk_shops",
|
86
|
+
"process_user_stats_operation"
|
87
|
+
]
|
88
|
+
}
|
89
|
+
```
|
90
|
+
|
91
|
+
**`url`**
|
92
|
+
|
93
|
+
|
94
|
+
通知先のURLを指定します
|
95
|
+
|
96
|
+
```json
|
97
|
+
{
|
98
|
+
"type": "string"
|
99
|
+
}
|
100
|
+
```
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
成功したときは
|
105
|
+
[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook)
|
106
|
+
を返します
|
107
|
+
|
108
|
+
### Error Responses
|
109
|
+
|status|type|ja|en|
|
110
|
+
|---|---|---|---|
|
111
|
+
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
|
112
|
+
|409|organization_worker_task_finish_webhook_conflict|そのwebhookは既に登録されています|The webhook is already registered|
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
---
|
117
|
+
|
118
|
+
|
119
|
+
<a name="delete-webhook"></a>
|
120
|
+
## DeleteWebhook: Webhookの削除
|
121
|
+
指定したWebhookを削除します
|
122
|
+
|
123
|
+
```RUBY
|
124
|
+
response = $client.send(Pokepay::Request::DeleteWebhook.new(
|
125
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # webhook_id: Webhook ID
|
126
|
+
))
|
127
|
+
```
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
### Parameters
|
132
|
+
**`webhook_id`**
|
133
|
+
|
134
|
+
|
135
|
+
削除するWebhookのIDです。
|
136
|
+
|
137
|
+
```json
|
138
|
+
{
|
139
|
+
"type": "string",
|
140
|
+
"format": "uuid"
|
141
|
+
}
|
142
|
+
```
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
成功したときは
|
147
|
+
[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook)
|
148
|
+
を返します
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
---
|
153
|
+
|
154
|
+
|
155
|
+
<a name="update-webhook"></a>
|
156
|
+
## UpdateWebhook: Webhookの更新
|
157
|
+
指定したWebhookの内容を更新します
|
158
|
+
|
159
|
+
```RUBY
|
160
|
+
response = $client.send(Pokepay::Request::UpdateWebhook.new(
|
161
|
+
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # webhook_id: Webhook ID
|
162
|
+
url: "rQ7TMW", # URL
|
163
|
+
is_active: true, # 有効/無効
|
164
|
+
task: "bulk_shops" # タスク名
|
165
|
+
))
|
166
|
+
```
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
### Parameters
|
171
|
+
**`webhook_id`**
|
172
|
+
|
173
|
+
|
174
|
+
更新するWebhookのIDです。
|
175
|
+
|
176
|
+
```json
|
177
|
+
{
|
178
|
+
"type": "string",
|
179
|
+
"format": "uuid"
|
180
|
+
}
|
181
|
+
```
|
182
|
+
|
183
|
+
**`url`**
|
184
|
+
|
185
|
+
|
186
|
+
変更するURLを指定します
|
187
|
+
|
188
|
+
```json
|
189
|
+
{
|
190
|
+
"type": "string"
|
191
|
+
}
|
192
|
+
```
|
193
|
+
|
194
|
+
**`is_active`**
|
195
|
+
|
196
|
+
|
197
|
+
trueならWebhookによる通知が有効になり、falseなら無効になります
|
198
|
+
|
199
|
+
```json
|
200
|
+
{
|
201
|
+
"type": "boolean"
|
202
|
+
}
|
203
|
+
```
|
204
|
+
|
205
|
+
**`task`**
|
206
|
+
|
207
|
+
|
208
|
+
指定したタスクが終了したときにWebhookによる通知がされます
|
209
|
+
|
210
|
+
```json
|
211
|
+
{
|
212
|
+
"type": "string",
|
213
|
+
"enum": [
|
214
|
+
"bulk_shops",
|
215
|
+
"process_user_stats_operation"
|
216
|
+
]
|
217
|
+
}
|
218
|
+
```
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
成功したときは
|
223
|
+
[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook)
|
224
|
+
を返します
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
---
|
229
|
+
|
230
|
+
|
231
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/user_device"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class ActivateUserDevice < Request
|
7
|
+
def initialize(user_device_id)
|
8
|
+
@path = "/user-devices" + "/" + user_device_id + "/activate"
|
9
|
+
@method = "POST"
|
10
|
+
@body_params = { }
|
11
|
+
@response_class = Pokepay::Response::UserDevice
|
12
|
+
end
|
13
|
+
attr_reader :response_class
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/bank_registering_info"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class CreateBank < Request
|
7
|
+
def initialize(user_device_id, private_money_id, callback_url, kana, rest_args = {})
|
8
|
+
@path = "/user-devices" + "/" + user_device_id + "/banks"
|
9
|
+
@method = "POST"
|
10
|
+
@body_params = { "private_money_id" => private_money_id,
|
11
|
+
"callback_url" => callback_url,
|
12
|
+
"kana" => kana }.merge(rest_args)
|
13
|
+
@response_class = Pokepay::Response::BankRegisteringInfo
|
14
|
+
end
|
15
|
+
attr_reader :response_class
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/transaction_detail"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class CreateBankTopupTransaction < Request
|
7
|
+
def initialize(user_device_id, private_money_id, amount, bank_id, request_id)
|
8
|
+
@path = "/user-devices" + "/" + user_device_id + "/banks" + "/topup"
|
9
|
+
@method = "POST"
|
10
|
+
@body_params = { "private_money_id" => private_money_id,
|
11
|
+
"amount" => amount,
|
12
|
+
"bank_id" => bank_id,
|
13
|
+
"request_id" => request_id }
|
14
|
+
@response_class = Pokepay::Response::TransactionDetail
|
15
|
+
end
|
16
|
+
attr_reader :response_class
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/coupon_detail"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class CreateCoupon < Request
|
7
|
+
def initialize(private_money_id, name, starts_at, ends_at, issued_shop_id, rest_args = {})
|
8
|
+
@path = "/coupons"
|
9
|
+
@method = "POST"
|
10
|
+
@body_params = { "private_money_id" => private_money_id,
|
11
|
+
"name" => name,
|
12
|
+
"starts_at" => starts_at,
|
13
|
+
"ends_at" => ends_at,
|
14
|
+
"issued_shop_id" => issued_shop_id }.merge(rest_args)
|
15
|
+
@response_class = Pokepay::Response::CouponDetail
|
16
|
+
end
|
17
|
+
attr_reader :response_class
|
18
|
+
end
|
19
|
+
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/external_transaction_detail"
|
4
4
|
|
5
5
|
module Pokepay::Request
|
6
6
|
class CreateExternalTransaction < Request
|
@@ -11,7 +11,7 @@ module Pokepay::Request
|
|
11
11
|
"customer_id" => customer_id,
|
12
12
|
"private_money_id" => private_money_id,
|
13
13
|
"amount" => amount }.merge(rest_args)
|
14
|
-
@response_class = Pokepay::Response::
|
14
|
+
@response_class = Pokepay::Response::ExternalTransactionDetail
|
15
15
|
end
|
16
16
|
attr_reader :response_class
|
17
17
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/transaction_detail"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class CreateTransactionWithCashtray < Request
|
7
|
+
def initialize(cashtray_id, customer_id, rest_args = {})
|
8
|
+
@path = "/transactions" + "/cashtray"
|
9
|
+
@method = "POST"
|
10
|
+
@body_params = { "cashtray_id" => cashtray_id,
|
11
|
+
"customer_id" => customer_id }.merge(rest_args)
|
12
|
+
@response_class = Pokepay::Response::TransactionDetail
|
13
|
+
end
|
14
|
+
attr_reader :response_class
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/user_device"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class CreateUserDevice < Request
|
7
|
+
def initialize(user_id, rest_args = {})
|
8
|
+
@path = "/user-devices"
|
9
|
+
@method = "POST"
|
10
|
+
@body_params = { "user_id" => user_id }.merge(rest_args)
|
11
|
+
@response_class = Pokepay::Response::UserDevice
|
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/organization_worker_task_webhook"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class DeleteWebhook < Request
|
7
|
+
def initialize(webhook_id)
|
8
|
+
@path = "/webhooks" + "/" + webhook_id
|
9
|
+
@method = "DELETE"
|
10
|
+
@body_params = { }
|
11
|
+
@response_class = Pokepay::Response::OrganizationWorkerTaskWebhook
|
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/check"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class GetCheck < Request
|
7
|
+
def initialize(check_id)
|
8
|
+
@path = "/checks" + "/" + check_id
|
9
|
+
@method = "GET"
|
10
|
+
@body_params = { }
|
11
|
+
@response_class = Pokepay::Response::Check
|
12
|
+
end
|
13
|
+
attr_reader :response_class
|
14
|
+
end
|
15
|
+
end
|
@@ -5,7 +5,7 @@ require "pokepay_partner_ruby_sdk/response/coupon_detail"
|
|
5
5
|
module Pokepay::Request
|
6
6
|
class GetCoupon < Request
|
7
7
|
def initialize(coupon_id)
|
8
|
-
@path = "/coupons" + "/" +
|
8
|
+
@path = "/coupons" + "/" + coupon_id
|
9
9
|
@method = "GET"
|
10
10
|
@body_params = { }
|
11
11
|
@response_class = Pokepay::Response::CouponDetail
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/external_transaction_detail"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class GetExternalTransactionByRequestId < Request
|
7
|
+
def initialize(request_id)
|
8
|
+
@path = "/external-transactions" + "/requests" + "/" + request_id
|
9
|
+
@method = "GET"
|
10
|
+
@body_params = { }
|
11
|
+
@response_class = Pokepay::Response::ExternalTransactionDetail
|
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/user_device"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class GetUserDevice < Request
|
7
|
+
def initialize(user_device_id)
|
8
|
+
@path = "/user-devices" + "/" + user_device_id
|
9
|
+
@method = "GET"
|
10
|
+
@body_params = { }
|
11
|
+
@response_class = Pokepay::Response::UserDevice
|
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/banks"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class ListBanks < Request
|
7
|
+
def initialize(user_device_id, rest_args = {})
|
8
|
+
@path = "/user-devices" + "/" + user_device_id + "/banks"
|
9
|
+
@method = "GET"
|
10
|
+
@body_params = { }.merge(rest_args)
|
11
|
+
@response_class = Pokepay::Response::Banks
|
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_checks"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class ListChecks < Request
|
7
|
+
def initialize(rest_args = {})
|
8
|
+
@path = "/checks"
|
9
|
+
@method = "GET"
|
10
|
+
@body_params = { }.merge(rest_args)
|
11
|
+
@response_class = Pokepay::Response::PaginatedChecks
|
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_organizations"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class ListOrganizations < Request
|
7
|
+
def initialize(private_money_id, rest_args = {})
|
8
|
+
@path = "/organizations"
|
9
|
+
@method = "GET"
|
10
|
+
@body_params = { "private_money_id" => private_money_id }.merge(rest_args)
|
11
|
+
@response_class = Pokepay::Response::PaginatedOrganizations
|
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/external_transaction_detail"
|
4
4
|
|
5
5
|
module Pokepay::Request
|
6
6
|
class RefundExternalTransaction < Request
|
@@ -8,7 +8,7 @@ module Pokepay::Request
|
|
8
8
|
@path = "/external-transactions" + "/" + event_id + "/refund"
|
9
9
|
@method = "POST"
|
10
10
|
@body_params = { }.merge(rest_args)
|
11
|
-
@response_class = Pokepay::Response::
|
11
|
+
@response_class = Pokepay::Response::ExternalTransactionDetail
|
12
12
|
end
|
13
13
|
attr_reader :response_class
|
14
14
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/check"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class UpdateCheck < Request
|
7
|
+
def initialize(check_id, rest_args = {})
|
8
|
+
@path = "/checks" + "/" + check_id
|
9
|
+
@method = "PATCH"
|
10
|
+
@body_params = { }.merge(rest_args)
|
11
|
+
@response_class = Pokepay::Response::Check
|
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/coupon_detail"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class UpdateCoupon < Request
|
7
|
+
def initialize(coupon_id, rest_args = {})
|
8
|
+
@path = "/coupons" + "/" + coupon_id
|
9
|
+
@method = "PATCH"
|
10
|
+
@body_params = { }.merge(rest_args)
|
11
|
+
@response_class = Pokepay::Response::CouponDetail
|
12
|
+
end
|
13
|
+
attr_reader :response_class
|
14
|
+
end
|
15
|
+
end
|