pokepay_partner_ruby_sdk 0.1.4 โ 0.1.5
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/Gemfile.lock +1 -1
- data/docs/index.md +548 -209
- data/lib/pokepay_partner_ruby_sdk.rb +8 -0
- data/lib/pokepay_partner_ruby_sdk/request/create_transfer_transaction.rb +18 -0
- data/lib/pokepay_partner_ruby_sdk/request/list_bills.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/list_shops.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/request/list_user_accounts.rb +15 -0
- data/lib/pokepay_partner_ruby_sdk/response/bill.rb +24 -0
- data/lib/pokepay_partner_ruby_sdk/response/paginated_accounts.rb +16 -0
- data/lib/pokepay_partner_ruby_sdk/response/paginated_bills.rb +16 -0
- data/lib/pokepay_partner_ruby_sdk/response/paginated_shops.rb +16 -0
- data/lib/pokepay_partner_ruby_sdk/version.rb +1 -1
- data/partner.yaml +361 -3
- metadata +10 -2
@@ -8,21 +8,25 @@ require "pokepay_partner_ruby_sdk/response/response"
|
|
8
8
|
require "pokepay_partner_ruby_sdk/request/get_ping"
|
9
9
|
require "pokepay_partner_ruby_sdk/request/send_echo"
|
10
10
|
require "pokepay_partner_ruby_sdk/request/get_user"
|
11
|
+
require "pokepay_partner_ruby_sdk/request/list_user_accounts"
|
11
12
|
require "pokepay_partner_ruby_sdk/request/get_account"
|
12
13
|
require "pokepay_partner_ruby_sdk/request/update_account"
|
13
14
|
require "pokepay_partner_ruby_sdk/request/list_account_balances"
|
14
15
|
require "pokepay_partner_ruby_sdk/request/create_customer_account"
|
16
|
+
require "pokepay_partner_ruby_sdk/request/list_bills"
|
15
17
|
require "pokepay_partner_ruby_sdk/request/create_check"
|
16
18
|
require "pokepay_partner_ruby_sdk/request/list_transactions"
|
17
19
|
require "pokepay_partner_ruby_sdk/request/create_transaction"
|
18
20
|
require "pokepay_partner_ruby_sdk/request/create_topup_transaction"
|
19
21
|
require "pokepay_partner_ruby_sdk/request/create_topup_transaction_with_check"
|
20
22
|
require "pokepay_partner_ruby_sdk/request/create_payment_transaction"
|
23
|
+
require "pokepay_partner_ruby_sdk/request/create_transfer_transaction"
|
21
24
|
require "pokepay_partner_ruby_sdk/request/create_exchange_transaction"
|
22
25
|
require "pokepay_partner_ruby_sdk/request/get_transaction"
|
23
26
|
require "pokepay_partner_ruby_sdk/request/refund_transaction"
|
24
27
|
require "pokepay_partner_ruby_sdk/request/list_transfers"
|
25
28
|
require "pokepay_partner_ruby_sdk/request/create_organization"
|
29
|
+
require "pokepay_partner_ruby_sdk/request/list_shops"
|
26
30
|
require "pokepay_partner_ruby_sdk/request/create_shop"
|
27
31
|
require "pokepay_partner_ruby_sdk/request/get_private_money_organization_summaries"
|
28
32
|
require "pokepay_partner_ruby_sdk/response/pong"
|
@@ -33,6 +37,7 @@ require "pokepay_partner_ruby_sdk/response/account"
|
|
33
37
|
require "pokepay_partner_ruby_sdk/response/account_with_user"
|
34
38
|
require "pokepay_partner_ruby_sdk/response/account_detail"
|
35
39
|
require "pokepay_partner_ruby_sdk/response/account_balance"
|
40
|
+
require "pokepay_partner_ruby_sdk/response/bill"
|
36
41
|
require "pokepay_partner_ruby_sdk/response/check"
|
37
42
|
require "pokepay_partner_ruby_sdk/response/user"
|
38
43
|
require "pokepay_partner_ruby_sdk/response/private_money"
|
@@ -46,7 +51,10 @@ require "pokepay_partner_ruby_sdk/response/private_money_organization_summary"
|
|
46
51
|
require "pokepay_partner_ruby_sdk/response/paginated_private_money_organization_summaries"
|
47
52
|
require "pokepay_partner_ruby_sdk/response/paginated_transaction"
|
48
53
|
require "pokepay_partner_ruby_sdk/response/paginated_transfers"
|
54
|
+
require "pokepay_partner_ruby_sdk/response/paginated_accounts"
|
49
55
|
require "pokepay_partner_ruby_sdk/response/paginated_account_balance"
|
56
|
+
require "pokepay_partner_ruby_sdk/response/paginated_shops"
|
57
|
+
require "pokepay_partner_ruby_sdk/response/paginated_bills"
|
50
58
|
require "pokepay_partner_ruby_sdk/response/bad_request"
|
51
59
|
require "pokepay_partner_ruby_sdk/response/partner_client_not_found"
|
52
60
|
require "pokepay_partner_ruby_sdk/response/partner_decryption_failed"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/transaction"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class CreateTransferTransaction < Request
|
7
|
+
def initialize(sender_id, receiver_id, private_money_id, amount, rest_args = {})
|
8
|
+
@path = "/transactions" + "/transfer"
|
9
|
+
@method = "POST"
|
10
|
+
@body_params = { "sender_id" => sender_id,
|
11
|
+
"receiver_id" => receiver_id,
|
12
|
+
"private_money_id" => private_money_id,
|
13
|
+
"amount" => amount }.merge(rest_args)
|
14
|
+
@response_class = Pokepay::Response::Transaction
|
15
|
+
end
|
16
|
+
attr_reader :response_class
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/paginated_bills"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class ListBills < Request
|
7
|
+
def initialize(rest_args = {})
|
8
|
+
@path = "/bills"
|
9
|
+
@method = "GET"
|
10
|
+
@body_params = { }.merge(rest_args)
|
11
|
+
@response_class = Pokepay::Response::PaginatedBills
|
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_shops"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class ListShops < Request
|
7
|
+
def initialize(rest_args = {})
|
8
|
+
@path = "/shops"
|
9
|
+
@method = "GET"
|
10
|
+
@body_params = { }.merge(rest_args)
|
11
|
+
@response_class = Pokepay::Response::PaginatedShops
|
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_accounts"
|
4
|
+
|
5
|
+
module Pokepay::Request
|
6
|
+
class ListUserAccounts < Request
|
7
|
+
def initialize(user_id)
|
8
|
+
@path = "/users" + "/" + user_id + "/accounts"
|
9
|
+
@method = "GET"
|
10
|
+
@body_params = { }
|
11
|
+
@response_class = Pokepay::Response::PaginatedAccounts
|
12
|
+
end
|
13
|
+
attr_reader :response_class
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/account_with_user"
|
4
|
+
|
5
|
+
module Pokepay::Response
|
6
|
+
class Bill
|
7
|
+
def initialize(row)
|
8
|
+
@id = row["id"]
|
9
|
+
@amount = row["amount"]
|
10
|
+
@max_amount = row["max_amount"]
|
11
|
+
@min_amount = row["min_amount"]
|
12
|
+
@description = row["description"]
|
13
|
+
@account = AccountWithUser.new(row["account"])
|
14
|
+
@is_disabled = row["is_disabled"]
|
15
|
+
end
|
16
|
+
attr_reader :id
|
17
|
+
attr_reader :amount
|
18
|
+
attr_reader :max_amount
|
19
|
+
attr_reader :min_amount
|
20
|
+
attr_reader :description
|
21
|
+
attr_reader :account
|
22
|
+
attr_reader :is_disabled
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/pagination"
|
4
|
+
|
5
|
+
module Pokepay::Response
|
6
|
+
class PaginatedAccounts
|
7
|
+
def initialize(row)
|
8
|
+
@rows = row["rows"]
|
9
|
+
@count = row["count"]
|
10
|
+
@pagination = Pagination.new(row["pagination"])
|
11
|
+
end
|
12
|
+
attr_reader :rows
|
13
|
+
attr_reader :count
|
14
|
+
attr_reader :pagination
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/pagination"
|
4
|
+
|
5
|
+
module Pokepay::Response
|
6
|
+
class PaginatedBills
|
7
|
+
def initialize(row)
|
8
|
+
@rows = row["rows"]
|
9
|
+
@count = row["count"]
|
10
|
+
@pagination = Pagination.new(row["pagination"])
|
11
|
+
end
|
12
|
+
attr_reader :rows
|
13
|
+
attr_reader :count
|
14
|
+
attr_reader :pagination
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# DO NOT EDIT: File is generated by code generator.
|
2
|
+
|
3
|
+
require "pokepay_partner_ruby_sdk/response/pagination"
|
4
|
+
|
5
|
+
module Pokepay::Response
|
6
|
+
class PaginatedShops
|
7
|
+
def initialize(row)
|
8
|
+
@rows = row["rows"]
|
9
|
+
@count = row["count"]
|
10
|
+
@pagination = Pagination.new(row["pagination"])
|
11
|
+
end
|
12
|
+
attr_reader :rows
|
13
|
+
attr_reader :count
|
14
|
+
attr_reader :pagination
|
15
|
+
end
|
16
|
+
end
|
data/partner.yaml
CHANGED
@@ -130,6 +130,41 @@ components:
|
|
130
130
|
point_amount:
|
131
131
|
type: number
|
132
132
|
format: decimal
|
133
|
+
Bill:
|
134
|
+
x-pokepay-schema-type: "response"
|
135
|
+
properties:
|
136
|
+
id:
|
137
|
+
type: string
|
138
|
+
format: uuid
|
139
|
+
summary: ๆฏๆใQRใณใผใใฎID
|
140
|
+
amount:
|
141
|
+
type: number
|
142
|
+
format: decimal
|
143
|
+
nullable: true
|
144
|
+
summary: ๆฏๆใ้ก
|
145
|
+
description: ๆฏๆใ้กใๆฏๆใ้กๆชๆๅฎใฎๅ ดๅใฏๆฏๆใๆใซไปปๆ้้กใๅ
ฅๅใงใใพใใ
|
146
|
+
max_amount:
|
147
|
+
type: number
|
148
|
+
format: decimal
|
149
|
+
nullable: true
|
150
|
+
summary: ๆฏๆใ้กใ็ฏๅฒๆๅฎใใๅ ดๅใฎไธ้
|
151
|
+
description: ๆฏๆใ้กใซไปปๆ้้กใๅ
ฅๅใใ้ใฎไธ้ใงใใ
|
152
|
+
min_amount:
|
153
|
+
type: number
|
154
|
+
format: decimal
|
155
|
+
nullable: true
|
156
|
+
summary: ๆฏๆใ้กใ็ฏๅฒๆๅฎใใๅ ดๅใฎไธ้
|
157
|
+
description: ๆฏๆใ้กใซไปปๆ้้กใๅ
ฅๅใใ้ใฎไธ้ใงใใ
|
158
|
+
description:
|
159
|
+
type: string
|
160
|
+
summary: ๆฏๆใQRใณใผใใฎ่ชฌๆๆ(ใขใใชไธใงๅๅผใฎ่ชฌๆๆใจใใฆ่กจ็คบใใใ)
|
161
|
+
account:
|
162
|
+
$ref: '#/components/schemas/AccountWithUser'
|
163
|
+
summary: ๆฏๆใQRใณใผใ็บ่กใฆใฉใฌใใ
|
164
|
+
description: ๆฏๆใQRใณใผใใ็บ่กใใๅบ่ใฎใฆใฉใฌใใใงใใใฆใผใถใใใใผใฎๆ
ๅ ฑใๅซใฟใพใใ
|
165
|
+
is_disabled:
|
166
|
+
type: boolean
|
167
|
+
summary: ็กๅนๅใใใฆใใใใฉใใ
|
133
168
|
Check:
|
134
169
|
x-pokepay-schema-type: "response"
|
135
170
|
properties:
|
@@ -293,6 +328,43 @@ components:
|
|
293
328
|
description:
|
294
329
|
type: string
|
295
330
|
summary: 'ๅๅผ่ชฌๆๆ'
|
331
|
+
ShopWithMetadata:
|
332
|
+
x-poepay-schema-type: "response"
|
333
|
+
properties:
|
334
|
+
id:
|
335
|
+
type: string
|
336
|
+
format: uuid
|
337
|
+
summary: ๅบ่ID
|
338
|
+
name:
|
339
|
+
type: string
|
340
|
+
summary: ๅบ่ๅ
|
341
|
+
organization_code:
|
342
|
+
type: string
|
343
|
+
maxLength: 256
|
344
|
+
summary: ็ต็นใณใผใ
|
345
|
+
postal_code:
|
346
|
+
type: string
|
347
|
+
nullable: true
|
348
|
+
summary: 'ๅบ่ใฎ้ตไพฟ็ชๅท'
|
349
|
+
address:
|
350
|
+
type: string
|
351
|
+
nullable: true
|
352
|
+
summary: 'ๅบ่ใฎไฝๆ'
|
353
|
+
tel:
|
354
|
+
type: string
|
355
|
+
nullable: true
|
356
|
+
summary: 'ๅบ่ใฎ้ป่ฉฑ็ชๅท'
|
357
|
+
email:
|
358
|
+
type: string
|
359
|
+
nullable: true
|
360
|
+
format: email
|
361
|
+
maxLength: 256
|
362
|
+
summary: 'ๅบ่ใฎใกใผใซใขใใฌใน'
|
363
|
+
external_id:
|
364
|
+
type: string
|
365
|
+
nullable: true
|
366
|
+
maxLength: 36
|
367
|
+
summary: 'ๅบ่ใฎๅค้จID'
|
296
368
|
UserTransaction:
|
297
369
|
x-pokepay-schema-type: "response"
|
298
370
|
properties:
|
@@ -441,6 +513,18 @@ components:
|
|
441
513
|
minimum: 0
|
442
514
|
pagination:
|
443
515
|
$ref: '#/components/schemas/Pagination'
|
516
|
+
PaginatedAccounts:
|
517
|
+
x-pokepay-schema-type: "response"
|
518
|
+
properties:
|
519
|
+
rows:
|
520
|
+
type: array
|
521
|
+
items:
|
522
|
+
$ref: '#/components/schemas/Account'
|
523
|
+
count:
|
524
|
+
type: integer
|
525
|
+
minimum: 0
|
526
|
+
pagination:
|
527
|
+
$ref: '#/components/schemas/Pagination'
|
444
528
|
PaginatedAccountBalance:
|
445
529
|
x-pokepay-schema-type: "response"
|
446
530
|
properties:
|
@@ -453,6 +537,30 @@ components:
|
|
453
537
|
minimum: 0
|
454
538
|
pagination:
|
455
539
|
$ref: '#/components/schemas/Pagination'
|
540
|
+
PaginatedShops:
|
541
|
+
x-pokepay-schema-type: "response"
|
542
|
+
properties:
|
543
|
+
rows:
|
544
|
+
type: array
|
545
|
+
items:
|
546
|
+
$ref: '#/components/schemas/ShopWithMetadata'
|
547
|
+
count:
|
548
|
+
type: integer
|
549
|
+
minimum: 0
|
550
|
+
pagination:
|
551
|
+
$ref: '#/components/schemas/Pagination'
|
552
|
+
PaginatedBills:
|
553
|
+
x-pokepay-schema-type: "response"
|
554
|
+
properties:
|
555
|
+
rows:
|
556
|
+
type: array
|
557
|
+
items:
|
558
|
+
$ref: '#/components/schemas/Bill'
|
559
|
+
count:
|
560
|
+
type: integer
|
561
|
+
minimum: 0
|
562
|
+
pagination:
|
563
|
+
$ref: '#/components/schemas/Pagination'
|
456
564
|
|
457
565
|
BadRequest:
|
458
566
|
x-pokepay-schema-type: "response"
|
@@ -630,6 +738,37 @@ paths:
|
|
630
738
|
application/json:
|
631
739
|
schema:
|
632
740
|
$ref: '#/components/schemas/AdminUserWithShopsAndPrivateMoneys'
|
741
|
+
/users/{user_id}/accounts:
|
742
|
+
get:
|
743
|
+
summary: 'ใจใณใใฆใผใถใผใๅบ่ใฆใผใถใผใฎใฆใฉใฌใใไธ่ฆงใ่กจ็คบใใ'
|
744
|
+
description: ใฆใผใถใผIDใๆๅฎใใฆใใฎใฆใผใถใผใฎใฆใฉใฌใใไธ่ฆงใๅๅพใใพใใ
|
745
|
+
x-pokepay-operator-name: "ListUserAccounts"
|
746
|
+
x-pokepay-allow-server-side: true
|
747
|
+
parameters:
|
748
|
+
- in: path
|
749
|
+
name: user_id
|
750
|
+
required: true
|
751
|
+
schema:
|
752
|
+
type: string
|
753
|
+
format: uuid
|
754
|
+
summary: 'ใฆใผใถใผID'
|
755
|
+
description: |-
|
756
|
+
ใฆใผใถใผIDใงใใ
|
757
|
+
|
758
|
+
ๆๅฎใใใฆใผใถใผIDใฎใฆใฉใฌใใไธ่ฆงใๅๅพใใพใใใใผใใใผใญใผใจ็ดใฅใ็ต็นใ็บ่กใใฆใใใใใผใฎใฆใฉใฌใใใฎใฟใ่กจ็คบใใใพใใ
|
759
|
+
responses:
|
760
|
+
'200':
|
761
|
+
description: OK
|
762
|
+
content:
|
763
|
+
application/json:
|
764
|
+
schema:
|
765
|
+
$ref: '#/components/schemas/PaginatedAccounts'
|
766
|
+
'400':
|
767
|
+
$ref: '#/components/responses/BadRequest'
|
768
|
+
'403':
|
769
|
+
$ref: '#/components/responses/Forbidden'
|
770
|
+
'404':
|
771
|
+
$ref: '#/components/responses/NotFound'
|
633
772
|
/accounts/{account_id}:
|
634
773
|
get:
|
635
774
|
summary: 'ใจใณใใฆใผใถใผใฎใฆใฉใฌใใๆ
ๅ ฑใ่กจ็คบใใ'
|
@@ -794,6 +933,103 @@ paths:
|
|
794
933
|
$ref: '#/components/responses/Forbidden'
|
795
934
|
'422':
|
796
935
|
$ref: '#/components/responses/UnprocessableEntity'
|
936
|
+
/bills:
|
937
|
+
get:
|
938
|
+
summary: 'ๆฏๆใQRใณใผใไธ่ฆงใ่กจ็คบใใ'
|
939
|
+
description: ๆฏๆใQRใณใผใไธ่ฆงใ่กจ็คบใใพใใ
|
940
|
+
x-pokepay-operator-name: "ListBills"
|
941
|
+
x-pokepay-allow-server-side: true
|
942
|
+
requestBody:
|
943
|
+
required: true
|
944
|
+
content:
|
945
|
+
application/json:
|
946
|
+
schema:
|
947
|
+
properties:
|
948
|
+
page:
|
949
|
+
type: integer
|
950
|
+
minimum: 1
|
951
|
+
summary: 'ใใผใธ็ชๅท'
|
952
|
+
description: ๅๅพใใใใใผใธ็ชๅทใงใใ
|
953
|
+
per_page:
|
954
|
+
type: integer
|
955
|
+
minimum: 1
|
956
|
+
summary: '1ใใผใธใฎ่กจ็คบๆฐ'
|
957
|
+
description: 1ใใผใธใซ่กจ็คบใใๆฏๆใQRใณใผใใฎๆฐใงใใ
|
958
|
+
bill_id:
|
959
|
+
type: string
|
960
|
+
summary: 'ๆฏๆใQRใณใผใใฎID'
|
961
|
+
description: ๆฏๆใQRใณใผใใฎIDใๆๅฎใใฆๆค็ดขใใพใใIDใฏ้จๅไธ่ดใงๆค็ดขใงใใพใใ
|
962
|
+
private_money_id:
|
963
|
+
type: string
|
964
|
+
format: uuid
|
965
|
+
summary: 'ใใใผID'
|
966
|
+
description: ๆฏๆใQRใณใผใใฎ้้ๅ
ใฆใฉใฌใใใฎใใใผIDใงใใฃใซใฟใผใใพใใ
|
967
|
+
organization_code:
|
968
|
+
type: string
|
969
|
+
pattern: '^[a-zA-Z0-9-]*$'
|
970
|
+
maxLength: 32
|
971
|
+
summary: '็ต็นใณใผใ'
|
972
|
+
description: ๆฏๆใQRใณใผใใฎ้้ๅ
ๅบ่ใๆๅฑใใ็ต็นใฎ็ต็นใณใผใใงใใฃใซใฟใผใใพใใ
|
973
|
+
description:
|
974
|
+
type: string
|
975
|
+
maxLength: 200
|
976
|
+
summary: 'ๅๅผ่ชฌๆๆ'
|
977
|
+
description: ๆฏๆใQRใณใผใใ่ชญใฟๅใใใจใงไฝใใใๅๅผใฎ่ชฌๆๆใจใใฆใขใใชใชใฉใซ่กจ็คบใใใพใใ
|
978
|
+
example: 'test bill'
|
979
|
+
created_from:
|
980
|
+
type: string
|
981
|
+
format: date-time
|
982
|
+
summary: 'ไฝๆๆฅๆ(่ตท็น)'
|
983
|
+
description: |-
|
984
|
+
ๆฏๆใQRใณใผใใฎไฝๆๆฅๆใงใใฃใซใฟใผใใพใใ
|
985
|
+
|
986
|
+
ใใไปฅ้ใซไฝๆใใใๆฏๆใQRใณใผใใฎใฟไธ่ฆงใซ่กจ็คบใใใพใใ
|
987
|
+
created_to:
|
988
|
+
type: string
|
989
|
+
format: date-time
|
990
|
+
summary: 'ไฝๆๆฅๆ(็ต็น)'
|
991
|
+
description: |-
|
992
|
+
ๆฏๆใQRใณใผใใฎไฝๆๆฅๆใงใใฃใซใฟใผใใพใใ
|
993
|
+
|
994
|
+
ใใไปฅๅใซไฝๆใใใๆฏๆใQRใณใผใใฎใฟไธ่ฆงใซ่กจ็คบใใใพใใ
|
995
|
+
shop_name:
|
996
|
+
type: string
|
997
|
+
maxLength: 256
|
998
|
+
summary: 'ๅบ่ๅ'
|
999
|
+
description: ๆฏๆใQRใณใผใใไฝๆใใๅบ่ๅใงใใฃใซใฟใผใใพใใ
|
1000
|
+
example: 'bill test shop1'
|
1001
|
+
shop_id:
|
1002
|
+
type: string
|
1003
|
+
format: uuid
|
1004
|
+
summary: 'ๅบ่ID'
|
1005
|
+
description: ๆฏๆใQRใณใผใใไฝๆใใๅบ่IDใงใใฃใซใฟใผใใพใใ
|
1006
|
+
lower_limit_amount:
|
1007
|
+
type: number
|
1008
|
+
minimum: 0
|
1009
|
+
format: decimal
|
1010
|
+
summary: '้้กใฎ็ฏๅฒใซใใใใฃใซใฟ(ไธ้)'
|
1011
|
+
description: ๆฏๆใQRใณใผใใฎ้้กใฎไธ้ใๆๅฎใใฆใใฃใซใฟใผใใพใใ
|
1012
|
+
upper_limit_amount:
|
1013
|
+
type: number
|
1014
|
+
minimum: 0
|
1015
|
+
format: decimal
|
1016
|
+
summary: '้้กใฎ็ฏๅฒใซใใใใฃใซใฟ(ไธ้)'
|
1017
|
+
description: ๆฏๆใQRใณใผใใฎ้้กใฎไธ้ใๆๅฎใใฆใใฃใซใฟใผใใพใใ
|
1018
|
+
is_disabled:
|
1019
|
+
type: boolean
|
1020
|
+
summary: 'ๆฏๆใQRใณใผใใ็กๅนๅใใใฆใใใใฉใใ'
|
1021
|
+
description: ๆฏๆใQRใณใผใใ็กๅนๅใใใฆใใใใฉใใใ่กจใใพใใใใใฉใซใๅคใฏๅฝ(ๆๅน)ใงใใ
|
1022
|
+
responses:
|
1023
|
+
'200':
|
1024
|
+
description: OK
|
1025
|
+
content:
|
1026
|
+
application/json:
|
1027
|
+
schema:
|
1028
|
+
$ref: '#/components/schemas/PaginatedBills'
|
1029
|
+
'400':
|
1030
|
+
$ref: '#/components/responses/BadRequest'
|
1031
|
+
'403':
|
1032
|
+
$ref: '#/components/responses/Forbidden'
|
797
1033
|
/checks:
|
798
1034
|
post:
|
799
1035
|
summary: 'ใใฃใผใธQRใณใผใใฎ็บ่ก'
|
@@ -1066,7 +1302,7 @@ paths:
|
|
1066
1302
|
format: uuid
|
1067
1303
|
summary: 'ๅบ่ID'
|
1068
1304
|
description: |-
|
1069
|
-
|
1305
|
+
ๅบ่IDใงใใ
|
1070
1306
|
|
1071
1307
|
้้ๅ
ใฎๅบ่ใๆๅฎใใพใใ
|
1072
1308
|
customer_id:
|
@@ -1181,7 +1417,9 @@ paths:
|
|
1181
1417
|
/transactions/payment:
|
1182
1418
|
post:
|
1183
1419
|
summary: 'ๆฏๆใใใ'
|
1184
|
-
description:
|
1420
|
+
description: |
|
1421
|
+
ๆฏๆๅๅผใไฝๆใใพใใ
|
1422
|
+
ๆฏๆใๆใซใฏใใจใณใใฆใผใถใผใฎๆฎ้ซใฎใใกใใใคใณใๆฎ้ซใใๅชๅ
็ใซๆถ่ฒปใใใพใใ
|
1185
1423
|
x-pokepay-operator-name: "CreatePaymentTransaction"
|
1186
1424
|
x-pokepay-allow-server-side: true
|
1187
1425
|
requestBody:
|
@@ -1196,7 +1434,7 @@ paths:
|
|
1196
1434
|
format: uuid
|
1197
1435
|
summary: 'ๅบ่ID'
|
1198
1436
|
description: |-
|
1199
|
-
|
1437
|
+
ๅบ่IDใงใใ
|
1200
1438
|
|
1201
1439
|
้้ๅ
ใฎๅบ่ใๆๅฎใใพใใ
|
1202
1440
|
customer_id:
|
@@ -1245,6 +1483,75 @@ paths:
|
|
1245
1483
|
$ref: '#/components/responses/Forbidden'
|
1246
1484
|
'422':
|
1247
1485
|
$ref: '#/components/responses/UnprocessableEntity'
|
1486
|
+
/transactions/transfer:
|
1487
|
+
post:
|
1488
|
+
summary: 'ๅไบบ้้้'
|
1489
|
+
description: |
|
1490
|
+
ใจใณใใฆใผใถใผ้ใงใฎ้้ๅๅผ(ๅไบบ้้้)ใไฝๆใใพใใ
|
1491
|
+
ๅไบบ้้้ใง้ใใใฎใฏใใใผใฎใฟใงใใใคใณใใ้ใใใจใฏใงใใพใใใ้้ๅ
ใฎใใใผๆฎ้ซใฎใใกใๆๅนๆ้ใๆใ้ ใใใฎใใ้ ใซ้้ใใใพใใ
|
1492
|
+
x-pokepay-operator-name: "CreateTransferTransaction"
|
1493
|
+
x-pokepay-allow-server-side: true
|
1494
|
+
requestBody:
|
1495
|
+
required: true
|
1496
|
+
content:
|
1497
|
+
application/json:
|
1498
|
+
schema:
|
1499
|
+
required: ["private_money_id", "sender_id", "receiver_id", "amount"]
|
1500
|
+
properties:
|
1501
|
+
sender_id:
|
1502
|
+
type: string
|
1503
|
+
format: uuid
|
1504
|
+
summary: '้้ๅ
ใฆใผใถใผID'
|
1505
|
+
description: |-
|
1506
|
+
ใจใณใใฆใผใถใผIDใงใใ
|
1507
|
+
|
1508
|
+
้้ๅ
ใฎใจใณใใฆใผใถใผ(้ใไธป)ใๆๅฎใใพใใ
|
1509
|
+
receiver_id:
|
1510
|
+
type: string
|
1511
|
+
format: uuid
|
1512
|
+
summary: 'ๅๅใฆใผใถใผID'
|
1513
|
+
description: |-
|
1514
|
+
ใจใณใใฆใผใถใผIDใงใใ
|
1515
|
+
|
1516
|
+
้้ๅ
ใฎใจใณใใฆใผใถใผ(ๅใๅใไบบ)ใๆๅฎใใพใใ
|
1517
|
+
private_money_id:
|
1518
|
+
type: string
|
1519
|
+
format: uuid
|
1520
|
+
summary: 'ใใใผID'
|
1521
|
+
description: |-
|
1522
|
+
ใใใผIDใงใใ
|
1523
|
+
|
1524
|
+
ใใใผใๆๅฎใใพใใ
|
1525
|
+
amount:
|
1526
|
+
type: number
|
1527
|
+
minimum: 0
|
1528
|
+
summary: '้้้ก'
|
1529
|
+
description: |-
|
1530
|
+
ใใใผ้กใงใใ
|
1531
|
+
|
1532
|
+
้้ใใใใใผ้กใๆๅฎใใพใใ
|
1533
|
+
description:
|
1534
|
+
type: string
|
1535
|
+
maxLength: 200
|
1536
|
+
summary: 'ๅๅผๅฑฅๆญดใซ่กจ็คบใใ่ชฌๆๆ'
|
1537
|
+
description: |-
|
1538
|
+
ๅๅผ่ชฌๆๆใงใใ
|
1539
|
+
|
1540
|
+
ไปปๆๅ
ฅๅใงใๅๅผๅฑฅๆญดใซ่กจ็คบใใใ่ชฌๆๆใงใใ
|
1541
|
+
example: ใใ็ผใ(ๅฐๅ)
|
1542
|
+
responses:
|
1543
|
+
'200':
|
1544
|
+
description: OK
|
1545
|
+
content:
|
1546
|
+
application/json:
|
1547
|
+
schema:
|
1548
|
+
$ref: '#/components/schemas/Transaction'
|
1549
|
+
'400':
|
1550
|
+
$ref: '#/components/responses/BadRequest'
|
1551
|
+
'403':
|
1552
|
+
$ref: '#/components/responses/Forbidden'
|
1553
|
+
'422':
|
1554
|
+
$ref: '#/components/responses/UnprocessableEntity'
|
1248
1555
|
/transactions/exchange:
|
1249
1556
|
post:
|
1250
1557
|
x-pokepay-allow-server-side: true
|
@@ -1496,6 +1803,57 @@ paths:
|
|
1496
1803
|
schema:
|
1497
1804
|
$ref: '#/components/schemas/Organization'
|
1498
1805
|
/shops:
|
1806
|
+
get:
|
1807
|
+
summary: 'ๅบ่ไธ่ฆงใๅๅพใใ'
|
1808
|
+
x-pokepay-operator-name: "ListShops"
|
1809
|
+
x-pokepay-allow-server-side: true
|
1810
|
+
requestBody:
|
1811
|
+
required: true
|
1812
|
+
content:
|
1813
|
+
application/json:
|
1814
|
+
schema:
|
1815
|
+
properties:
|
1816
|
+
organization_code:
|
1817
|
+
type: string
|
1818
|
+
pattern: '^[a-zA-Z0-9-]*$'
|
1819
|
+
maxLength: 32
|
1820
|
+
summary: '็ต็นใณใผใ'
|
1821
|
+
description: |
|
1822
|
+
ใใฎใใฉใกใผใฟใๆธกใใจใใฎ็ต็นใฎๅบ่ใฎใฟใ่ฟใใใ็็ฅใใใจๅ ็ๅบใๅซใๅบ่ใ่ฟใใใพใใ
|
1823
|
+
example: 'pocketchange'
|
1824
|
+
private_money_id:
|
1825
|
+
type: string
|
1826
|
+
format: uuid
|
1827
|
+
summary: 'ใใใผID'
|
1828
|
+
description: |
|
1829
|
+
ใใฎใใฉใกใผใฟใๆธกใใจใใฎใใใผใฎใฆใฉใฌใใใๆใคๅบ่ใฎใฟใ่ฟใใใพใใ
|
1830
|
+
page:
|
1831
|
+
type: integer
|
1832
|
+
minimum: 1
|
1833
|
+
summary: 'ใใผใธ็ชๅท'
|
1834
|
+
description: ๅๅพใใใใใผใธ็ชๅทใงใใ
|
1835
|
+
example: 1
|
1836
|
+
per_page:
|
1837
|
+
type: integer
|
1838
|
+
minimum: 1
|
1839
|
+
summary: '1ใใผใธๅใฎๅๅผๆฐ'
|
1840
|
+
description: 1ใใผใธๅใฎๅๅผๆฐใงใใ
|
1841
|
+
example: 50
|
1842
|
+
responses:
|
1843
|
+
'200':
|
1844
|
+
description: OK
|
1845
|
+
content:
|
1846
|
+
application/json:
|
1847
|
+
schema:
|
1848
|
+
$ref: '#/components/schemas/PaginatedShops'
|
1849
|
+
'400':
|
1850
|
+
$ref: '#/components/responses/BadRequest'
|
1851
|
+
'403':
|
1852
|
+
$ref: '#/components/responses/Forbidden'
|
1853
|
+
'404':
|
1854
|
+
$ref: '#/components/responses/NotFound'
|
1855
|
+
'422':
|
1856
|
+
$ref: '#/components/responses/UnprocessableEntity'
|
1499
1857
|
post:
|
1500
1858
|
summary: 'ๆฐ่ฆๅบ่ใ่ฟฝๅ ใใ'
|
1501
1859
|
x-pokepay-operator-name: "CreateShop"
|