pokepay_partner_ruby_sdk 0.1.4 โ†’ 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Pokepay
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -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
- ใƒžใƒใƒผๅบ—่ˆ—IDใงใ™ใ€‚
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
- ใƒžใƒใƒผๅบ—่ˆ—IDใงใ™ใ€‚
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"