pokepay_partner_ruby_sdk 0.1.11 → 0.1.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0df7b536381fe94cea6bae221c87207b84efcbde62a2a8dcab3d52d75afcf753
4
- data.tar.gz: cc91f0a961f1833231ad906070d695b4aace35364efc670f3675e5d8db9c2940
3
+ metadata.gz: 29e82aafd1c708679e2c6f7e105ff14ec9e8421d4359bfcf85d7ba2c0d97c23c
4
+ data.tar.gz: c7a2c9ff483d47310743125720676185715911b92c7649f964ac1861e8e3945a
5
5
  SHA512:
6
- metadata.gz: 78a1d7c51afa48c63decb05c583fad6b43ed846cb22d3c8c86c62c3244b4a166079588da3cfb553808426f459949b6f552ecdb2ab84b80e7e42c8c7ca6542cd0
7
- data.tar.gz: 35b7973c40848c9ec93a10d63d19f2144fd2f2d136cc40cebe7c4325808aec4affd718a8cf5df225bb648994279a804588c259586ae2042663a9eaf0c0d4eb44
6
+ metadata.gz: 2216d1f635b7f055a7ad5ab4aaa6bf74f1ad37a6881bbc19c78055ae8eef432131337f08381518b3d76ac8ed41db6815acc8f71815881c25ddc7b8e32e205058
7
+ data.tar.gz: 7c319558191d00a643c9eef445fa1af4534f03d769fec4b2851257ee9100f0335d31bb4e2846f7f2bcfe7c152afbc14357ae8311aa68db15c7723bc188b9820c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pokepay_partner_ruby_sdk (0.1.11)
4
+ pokepay_partner_ruby_sdk (0.1.12)
5
5
  inifile (~> 3.0.0)
6
6
  json (~> 2.3.0)
7
7
  openssl (~> 2.1.2)
data/docs/index.md CHANGED
@@ -149,6 +149,7 @@ response.body
149
149
  - [CreateTransferTransaction](#create-transfer-transaction): 個人間送金
150
150
  - [CreateExchangeTransaction](#create-exchange-transaction):
151
151
  - [GetTransaction](#get-transaction): 取引情報を取得する
152
+ - [RefundTransaction](#refund-transaction): 返金する
152
153
  - [ListTransfers](#list-transfers):
153
154
  - [CreateTopupTransactionWithCheck](#create-topup-transaction-with-check): チャージQRコードを読み取ることでチャージする
154
155
  - [ListBills](#list-bills): 支払いQRコード一覧を表示する
@@ -181,8 +182,8 @@ response.body
181
182
  取引一覧を返します。
182
183
  ```ruby
183
184
  response = $client.send(Pokepay::Request::ListTransactions.new(
184
- from: "2018-03-23T13:18:22.000000+09:00", # 開始日時
185
- to: "2021-07-09T00:39:57.000000+09:00", # 終了日時
185
+ from: "2019-11-15T06:49:18.000000+09:00", # 開始日時
186
+ to: "2017-11-14T20:55:11.000000+09:00", # 終了日時
186
187
  page: 1, # ページ番号
187
188
  per_page: 50, # 1ページ分の取引数
188
189
  shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID
@@ -192,7 +193,7 @@ response = $client.send(Pokepay::Request::ListTransactions.new(
192
193
  transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 取引ID
193
194
  organization_code: "pocketchange", # 組織コード
194
195
  private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID
195
- is_modified: true, # キャンセルフラグ
196
+ is_modified: false, # キャンセルフラグ
196
197
  types: ["topup", "payment"], # 取引種別 (複数指定可)、チャージ=topup、支払い=payment
197
198
  description: "店頭QRコードによる支払い" # 取引説明文
198
199
  ))
@@ -389,10 +390,10 @@ response = $client.send(Pokepay::Request::CreateTransaction.new(
389
390
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
390
391
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
391
392
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
392
- money_amount: 7618,
393
- point_amount: 7525,
394
- point_expires_at: "2023-08-25T23:56:49.000000+09:00", # ポイント有効期限
395
- description: "Y4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRS"
393
+ money_amount: 2372,
394
+ point_amount: 450,
395
+ point_expires_at: "2023-01-18T09:59:31.000000+09:00", # ポイント有効期限
396
+ description: "WPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJB"
396
397
  ))
397
398
  ```
398
399
 
@@ -418,9 +419,9 @@ response = $client.send(Pokepay::Request::CreateTopupTransaction.new(
418
419
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーのID
419
420
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
420
421
  bear_point_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント支払時の負担店舗ID
421
- money_amount: 4950, # マネー額
422
- point_amount: 8112, # ポイント額
423
- point_expires_at: "2021-01-08T04:46:28.000000+09:00", # ポイント有効期限
422
+ money_amount: 8235, # マネー額
423
+ point_amount: 2326, # ポイント額
424
+ point_expires_at: "2024-09-08T13:01:58.000000+09:00", # ポイント有効期限
424
425
  description: "初夏のチャージキャンペーン" # 取引履歴に表示する説明文
425
426
  ))
426
427
  ```
@@ -532,7 +533,7 @@ response = $client.send(Pokepay::Request::CreatePaymentTransaction.new(
532
533
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID
533
534
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーID
534
535
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
535
- 4421, # amount: 支払い額
536
+ 6084, # amount: 支払い額
536
537
  description: "たい焼き(小倉)" # 取引履歴に表示する説明文
537
538
  ))
538
539
  ```
@@ -609,7 +610,7 @@ response = $client.send(Pokepay::Request::CreateTransferTransaction.new(
609
610
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # sender_id: 送金元ユーザーID
610
611
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # receiver_id: 受取ユーザーID
611
612
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
612
- 5572, # amount: 送金額
613
+ 9336, # amount: 送金額
613
614
  description: "たい焼き(小倉)" # 取引履歴に表示する説明文
614
615
  ))
615
616
  ```
@@ -683,8 +684,8 @@ response = $client.send(Pokepay::Request::CreateExchangeTransaction.new(
683
684
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
684
685
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
685
686
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
686
- 2336,
687
- description: "w10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT86"
687
+ 7953,
688
+ description: "WoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0Y"
688
689
  ))
689
690
  ```
690
691
  成功したときは[Transaction](#transaction)オブジェクトを返します
@@ -711,27 +712,70 @@ response = $client.send(Pokepay::Request::GetTransaction.new(
711
712
 
712
713
  ---
713
714
  成功したときは[Transaction](#transaction)オブジェクトを返します
715
+ <a name="refund-transaction"></a>
716
+ #### 返金する
717
+ ```ruby
718
+ response = $client.send(Pokepay::Request::RefundTransaction.new(
719
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # transaction_id: 取引ID
720
+ description: "返品対応のため" # 取引履歴に表示する返金事由
721
+ ))
722
+ ```
723
+ 成功したときは[Transaction](#transaction)オブジェクトを返します
714
724
  <a name="list-transfers"></a>
715
725
  ####
716
726
  ```ruby
717
727
  response = $client.send(Pokepay::Request::ListTransfers.new(
718
- from: "2018-07-06T01:18:47.000000+09:00",
719
- to: "2018-05-01T15:56:14.000000+09:00",
720
- page: 7002,
721
- per_page: 8147,
728
+ from: "2021-03-24T05:27:59.000000+09:00",
729
+ to: "2025-05-30T13:08:03.000000+09:00",
730
+ page: 2222,
731
+ per_page: 5540,
722
732
  shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
723
- shop_name: "CqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1f",
733
+ shop_name: "8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rj",
724
734
  customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
725
- customer_name: "QetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAu",
735
+ customer_name: "28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kus",
726
736
  transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
727
737
  private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
728
738
  is_modified: true,
729
- transaction_types: ["exchange", "payment", "transfer", "topup"],
730
- transfer_types: ["topup", "transfer"],
739
+ transaction_types: ["exchange", "transfer", "topup"],
740
+ transfer_types: ["transfer"], # 取引明細の種類でフィルターします。
731
741
  description: "店頭QRコードによる支払い" # 取引詳細説明文
732
742
  ))
733
743
  ```
734
744
 
745
+ ---
746
+ `transfer_types`
747
+ ```json
748
+ {
749
+ "type": "array",
750
+ "items": {
751
+ "type": "string",
752
+ "enum": {
753
+ "topup": "payment",
754
+ "exchange": "transfer",
755
+ "coupon": "campaign"
756
+ }
757
+ }
758
+ }
759
+ ```
760
+ 取引明細の種類でフィルターします。
761
+
762
+ 以下の種類を指定できます。
763
+
764
+ 1. topup
765
+ 店舗からエンドユーザーへの送金取引(チャージ)、またはそのキャンセル取引
766
+
767
+ 2. payment
768
+ エンドユーザーから店舗への送金取引(支払い)、またはそのキャンセル取引
769
+
770
+ 3. exchange
771
+ 他マネーへの流出/流入
772
+
773
+ 4. campaign
774
+ 取引に対するポイント還元キャンペーンによるポイント付与、またはそのキャンセル取引
775
+
776
+ 5. coupon
777
+ クーポンによる値引き処理、またはそのキャンセル取引
778
+
735
779
  ---
736
780
  `description`
737
781
  ```json
@@ -801,18 +845,18 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な
801
845
  支払いQRコード一覧を表示します。
802
846
  ```ruby
803
847
  response = $client.send(Pokepay::Request::ListBills.new(
804
- page: 59, # ページ番号
805
- per_page: 5729, # 1ページの表示数
806
- bill_id: "cjpDc", # 支払いQRコードのID
848
+ page: 4039, # ページ番号
849
+ per_page: 6790, # 1ページの表示数
850
+ bill_id: "HNP", # 支払いQRコードのID
807
851
  private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID
808
- organization_code: "lZ4-35-cw-jqbxQoX9vZ-pMg8z5-", # 組織コード
852
+ organization_code: "-v-7TmsnnC4-N1Sa1H", # 組織コード
809
853
  description: "test bill", # 取引説明文
810
- created_from: "2022-08-24T20:55:10.000000+09:00", # 作成日時(起点)
811
- created_to: "2017-10-17T12:55:14.000000+09:00", # 作成日時(終点)
854
+ created_from: "2018-10-12T16:21:05.000000+09:00", # 作成日時(起点)
855
+ created_to: "2021-01-23T14:16:21.000000+09:00", # 作成日時(終点)
812
856
  shop_name: "bill test shop1", # 店舗名
813
857
  shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID
814
- lower_limit_amount: 1024, # 金額の範囲によるフィルタ(下限)
815
- upper_limit_amount: 3342, # 金額の範囲によるフィルタ(上限)
858
+ lower_limit_amount: 9962, # 金額の範囲によるフィルタ(下限)
859
+ upper_limit_amount: 7245, # 金額の範囲によるフィルタ(上限)
816
860
  is_disabled: false # 支払いQRコードが無効化されているかどうか
817
861
  ))
818
862
  ```
@@ -957,7 +1001,7 @@ response = $client.send(Pokepay::Request::ListBills.new(
957
1001
  response = $client.send(Pokepay::Request::CreateBill.new(
958
1002
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: 支払いマネーのマネーID
959
1003
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 支払い先(受け取り人)の店舗ID
960
- amount: 7131, # 支払い額
1004
+ amount: 1206, # 支払い額
961
1005
  description: "test bill" # 説明文(アプリ上で取引の説明文として表示される)
962
1006
  ))
963
1007
  ```
@@ -981,9 +1025,9 @@ response = $client.send(Pokepay::Request::CreateBill.new(
981
1025
  ```ruby
982
1026
  response = $client.send(Pokepay::Request::UpdateBill.new(
983
1027
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # bill_id: 支払いQRコードのID
984
- amount: 6026, # 支払い額
1028
+ amount: 2363, # 支払い額
985
1029
  description: "test bill", # 説明文
986
- is_disabled: true # 無効化されているかどうか
1030
+ is_disabled: false # 無効化されているかどうか
987
1031
  ))
988
1032
  ```
989
1033
 
@@ -1046,9 +1090,9 @@ Cashtrayを作成します。
1046
1090
  response = $client.send(Pokepay::Request::CreateCashtray.new(
1047
1091
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
1048
1092
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ユーザーID
1049
- 2980, # amount: 金額
1093
+ 2185, # amount: 金額
1050
1094
  description: "たい焼き(小倉)", # 取引履歴に表示する説明文
1051
- expires_in: 673 # 失効時間(秒)
1095
+ expires_in: 4327 # 失効時間(秒)
1052
1096
  ))
1053
1097
  ```
1054
1098
 
@@ -1209,9 +1253,9 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可
1209
1253
  ```ruby
1210
1254
  response = $client.send(Pokepay::Request::UpdateCashtray.new(
1211
1255
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # cashtray_id: CashtrayのID
1212
- amount: 7982, # 金額
1256
+ amount: 3700, # 金額
1213
1257
  description: "たい焼き(小倉)", # 取引履歴に表示する説明文
1214
- expires_in: 6739 # 失効時間(秒)
1258
+ expires_in: 8713 # 失効時間(秒)
1215
1259
  ))
1216
1260
  ```
1217
1261
 
@@ -1286,7 +1330,7 @@ response = $client.send(Pokepay::Request::GetAccount.new(
1286
1330
  ```ruby
1287
1331
  response = $client.send(Pokepay::Request::UpdateAccount.new(
1288
1332
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID
1289
- is_suspended: true # ウォレットが凍結されているかどうか
1333
+ is_suspended: false # ウォレットが凍結されているかどうか
1290
1334
  ))
1291
1335
  ```
1292
1336
 
@@ -1317,11 +1361,11 @@ response = $client.send(Pokepay::Request::UpdateAccount.new(
1317
1361
  ```ruby
1318
1362
  response = $client.send(Pokepay::Request::ListAccountBalances.new(
1319
1363
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID
1320
- page: 1825, # ページ番号
1321
- per_page: 1938, # 1ページ分の取引数
1322
- expires_at_from: "2024-10-20T12:50:56.000000+09:00", # 有効期限の期間によるフィルター(開始時点)
1323
- expires_at_to: "2023-10-13T12:55:10.000000+09:00", # 有効期限の期間によるフィルター(終了時点)
1324
- direction: "desc" # 有効期限によるソート順序
1364
+ page: 7958, # ページ番号
1365
+ per_page: 233, # 1ページ分の取引数
1366
+ expires_at_from: "2023-04-12T23:21:21.000000+09:00", # 有効期限の期間によるフィルター(開始時点)
1367
+ expires_at_to: "2024-10-10T05:42:51.000000+09:00", # 有効期限の期間によるフィルター(終了時点)
1368
+ direction: "asc" # 有効期限によるソート順序
1325
1369
  ))
1326
1370
  ```
1327
1371
 
@@ -1395,10 +1439,10 @@ response = $client.send(Pokepay::Request::ListAccountBalances.new(
1395
1439
  ```ruby
1396
1440
  response = $client.send(Pokepay::Request::ListAccountExpiredBalances.new(
1397
1441
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID
1398
- page: 1574, # ページ番号
1399
- per_page: 565, # 1ページ分の取引数
1400
- expires_at_from: "2024-07-16T03:15:02.000000+09:00", # 有効期限の期間によるフィルター(開始時点)
1401
- expires_at_to: "2020-04-13T18:19:06.000000+09:00", # 有効期限の期間によるフィルター(終了時点)
1442
+ page: 7656, # ページ番号
1443
+ per_page: 4892, # 1ページ分の取引数
1444
+ expires_at_from: "2020-01-19T11:53:20.000000+09:00", # 有効期限の期間によるフィルター(開始時点)
1445
+ expires_at_to: "2021-08-17T13:01:31.000000+09:00", # 有効期限の期間によるフィルター(終了時点)
1402
1446
  direction: "desc" # 有効期限によるソート順序
1403
1447
  ))
1404
1448
  ```
@@ -1473,10 +1517,10 @@ response = $client.send(Pokepay::Request::ListAccountExpiredBalances.new(
1473
1517
  ```ruby
1474
1518
  response = $client.send(Pokepay::Request::GetCustomerAccounts.new(
1475
1519
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
1476
- page: 7367, # ページ番号
1477
- per_page: 2729, # 1ページ分のウォレット数
1478
- created_at_from: "2023-05-31T00:35:38.000000+09:00", # ウォレット作成日によるフィルター(開始時点)
1479
- created_at_to: "2020-09-03T19:56:38.000000+09:00", # ウォレット作成日によるフィルター(終了時点)
1520
+ page: 6897, # ページ番号
1521
+ per_page: 7778, # 1ページ分のウォレット数
1522
+ created_at_from: "2024-10-01T15:15:39.000000+09:00", # ウォレット作成日によるフィルター(開始時点)
1523
+ created_at_to: "2016-09-16T11:22:10.000000+09:00", # ウォレット作成日によるフィルター(終了時点)
1480
1524
  is_suspended: true # ウォレットが凍結状態かどうかでフィルターする
1481
1525
  ))
1482
1526
  ```
@@ -1593,11 +1637,11 @@ response = $client.send(Pokepay::Request::CreateCustomerAccount.new(
1593
1637
  ```ruby
1594
1638
  response = $client.send(Pokepay::Request::GetShopAccounts.new(
1595
1639
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
1596
- page: 9407, # ページ番号
1597
- per_page: 8985, # 1ページ分のウォレット数
1598
- created_at_from: "2025-01-28T18:22:53.000000+09:00", # ウォレット作成日によるフィルター(開始時点)
1599
- created_at_to: "2019-06-08T22:34:01.000000+09:00", # ウォレット作成日によるフィルター(終了時点)
1600
- is_suspended: true # ウォレットが凍結状態かどうかでフィルターする
1640
+ page: 4421, # ページ番号
1641
+ per_page: 9305, # 1ページ分のウォレット数
1642
+ created_at_from: "2023-06-03T12:27:49.000000+09:00", # ウォレット作成日によるフィルター(開始時点)
1643
+ created_at_to: "2016-01-17T12:47:37.000000+09:00", # ウォレット作成日によるフィルター(終了時点)
1644
+ is_suspended: false # ウォレットが凍結状態かどうかでフィルターする
1601
1645
  ))
1602
1646
  ```
1603
1647
 
@@ -1670,10 +1714,10 @@ response = $client.send(Pokepay::Request::ListCustomerTransactions.new(
1670
1714
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
1671
1715
  sender_customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 送金エンドユーザーID
1672
1716
  receiver_customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 受取エンドユーザーID
1673
- type: "4", # 取引種別、チャージ=topup、支払い=payment、個人間送金=transfer
1717
+ type: "yMo26iq", # 取引種別、チャージ=topup、支払い=payment、個人間送金=transfer
1674
1718
  is_modified: false, # キャンセル済みかどうか
1675
- from: "2018-07-21T00:36:24.000000+09:00", # 開始日時
1676
- to: "2020-07-01T13:28:22.000000+09:00", # 終了日時
1719
+ from: "2019-06-30T23:11:41.000000+09:00", # 開始日時
1720
+ to: "2024-04-19T00:57:24.000000+09:00", # 終了日時
1677
1721
  page: 1, # ページ番号
1678
1722
  per_page: 50 # 1ページ分の取引数
1679
1723
  ))
@@ -1798,11 +1842,11 @@ response = $client.send(Pokepay::Request::ListShops.new(
1798
1842
  organization_code: "pocketchange", # 組織コード
1799
1843
  private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID
1800
1844
  name: "oxスーパー三田店", # 店舗名
1801
- postal_code: "431-5371", # 店舗の郵便番号
1845
+ postal_code: "9061434", # 店舗の郵便番号
1802
1846
  address: "東京都港区芝...", # 店舗の住所
1803
- tel: "079852808", # 店舗の電話番号
1804
- email: "RgnqYnUlh4@JbOr.com", # 店舗のメールアドレス
1805
- external_id: "j5jFwrAdcz57ZO", # 店舗の外部ID
1847
+ tel: "036-858434", # 店舗の電話番号
1848
+ email: "x6Ov6eGwjQ@Cqxd.com", # 店舗のメールアドレス
1849
+ external_id: "tQnDY", # 店舗の外部ID
1806
1850
  page: 1, # ページ番号
1807
1851
  per_page: 50 # 1ページ分の取引数
1808
1852
  ))
@@ -1927,11 +1971,11 @@ response = $client.send(Pokepay::Request::ListShops.new(
1927
1971
  ```ruby
1928
1972
  response = $client.send(Pokepay::Request::CreateShop.new(
1929
1973
  "oxスーパー三田店", # shop_name: 店舗名
1930
- shop_postal_code: "7934204", # 店舗の郵便番号
1974
+ shop_postal_code: "4391483", # 店舗の郵便番号
1931
1975
  shop_address: "東京都港区芝...", # 店舗の住所
1932
- shop_tel: "024-611-002", # 店舗の電話番号
1933
- shop_email: "Ono1AcjM96@oftC.com", # 店舗のメールアドレス
1934
- shop_external_id: "hiSDgXKvV", # 店舗の外部ID
1976
+ shop_tel: "088152-979", # 店舗の電話番号
1977
+ shop_email: "CsXRcUZY47@cpIh.com", # 店舗のメールアドレス
1978
+ shop_external_id: "03BvqB7CzLjYHoO28zEE65UlKtMCe12", # 店舗の外部ID
1935
1979
  organization_code: "ox-supermarket" # 組織コード
1936
1980
  ))
1937
1981
  ```
@@ -1941,14 +1985,14 @@ response = $client.send(Pokepay::Request::CreateShop.new(
1941
1985
  ```ruby
1942
1986
  response = $client.send(Pokepay::Request::CreateShopV2.new(
1943
1987
  "oxスーパー三田店", # name: 店舗名
1944
- postal_code: "950-0366", # 店舗の郵便番号
1988
+ postal_code: "891-6024", # 店舗の郵便番号
1945
1989
  address: "東京都港区芝...", # 店舗の住所
1946
- tel: "0443-379", # 店舗の電話番号
1947
- email: "Mo26iqol80@j1t4.com", # 店舗のメールアドレス
1948
- external_id: "lpnoezO", # 店舗の外部ID
1990
+ tel: "0224-585", # 店舗の電話番号
1991
+ email: "WnFZLX87qt@edPz.com", # 店舗のメールアドレス
1992
+ external_id: "8NdiYCurcmVOPZzwMWHgQ0V", # 店舗の外部ID
1949
1993
  organization_code: "ox-supermarket", # 組織コード
1950
- private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗で有効にするマネーIDの配列
1951
- can_topup_private_money_ids: [] # 店舗でチャージ可能にするマネーIDの配列
1994
+ private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗で有効にするマネーIDの配列
1995
+ can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"] # 店舗でチャージ可能にするマネーIDの配列
1952
1996
  ))
1953
1997
  ```
1954
1998
 
@@ -2019,13 +2063,13 @@ response = $client.send(Pokepay::Request::GetShop.new(
2019
2063
  response = $client.send(Pokepay::Request::UpdateShop.new(
2020
2064
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ユーザーID
2021
2065
  name: "oxスーパー三田店", # 店舗名
2022
- postal_code: "3489665", # 店舗の郵便番号
2066
+ postal_code: "486-3690", # 店舗の郵便番号
2023
2067
  address: "東京都港区芝...", # 店舗の住所
2024
- tel: "01-3271-444", # 店舗の電話番号
2025
- email: "QnDY4S9N4H@hJ5r.com", # 店舗のメールアドレス
2026
- external_id: "CsXRcUZY47cpIh03B", # 店舗の外部ID
2068
+ tel: "02-924308", # 店舗の電話番号
2069
+ email: "TSynCfTiWL@EN2p.com", # 店舗のメールアドレス
2070
+ external_id: "E", # 店舗の外部ID
2027
2071
  private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗で有効にするマネーIDの配列
2028
- can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"] # 店舗でチャージ可能にするマネーIDの配列
2072
+ can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"] # 店舗でチャージ可能にするマネーIDの配列
2029
2073
  ))
2030
2074
  ```
2031
2075
 
@@ -2175,8 +2219,8 @@ response = $client.send(Pokepay::Request::GetPrivateMoneys.new(
2175
2219
  ```ruby
2176
2220
  response = $client.send(Pokepay::Request::GetPrivateMoneyOrganizationSummaries.new(
2177
2221
  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
2178
- from: "2019-05-24T22:23:13.000000+09:00", # 開始日時(toと同時に指定する必要有)
2179
- to: "2023-11-28T06:04:04.000000+09:00", # 終了日時(fromと同時に指定する必要有)
2222
+ from: "2016-09-20T16:43:03.000000+09:00", # 開始日時(toと同時に指定する必要有)
2223
+ to: "2019-10-20T11:06:22.000000+09:00", # 終了日時(fromと同時に指定する必要有)
2180
2224
  page: 1, # ページ番号
2181
2225
  per_page: 50 # 1ページ分の取引数
2182
2226
  ))
@@ -2190,10 +2234,10 @@ response = $client.send(Pokepay::Request::GetPrivateMoneyOrganizationSummaries.n
2190
2234
  CSVファイルから一括取引をします。
2191
2235
  ```ruby
2192
2236
  response = $client.send(Pokepay::Request::BulkCreateTransaction.new(
2193
- "YHoO28zEE65", # name: 一括取引タスク名
2194
- "UlKt", # content: 取引する情報のCSV
2195
- "MCe12MUV2dxrA2428zEWnFZLX87qtedPzV8N", # request_id: リクエストID
2196
- description: "diYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9r" # 一括取引の説明
2237
+ "B8PVJkE9NzaeTptZ5kX9rLpagdWQ", # name: 一括取引タスク名
2238
+ "E", # content: 取引する情報のCSV
2239
+ "nTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuOD", # request_id: リクエストID
2240
+ description: "mm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCeb" # 一括取引の説明
2197
2241
  ))
2198
2242
  ```
2199
2243
 
@@ -1,6 +1,6 @@
1
1
  # DO NOT EDIT: File is generated by code generator.
2
2
 
3
- require "pokepay_partner_ruby_sdk/response/transfer"
3
+ require "pokepay_partner_ruby_sdk/response/transaction"
4
4
 
5
5
  module Pokepay::Request
6
6
  class RefundTransaction < Request
@@ -8,7 +8,7 @@ module Pokepay::Request
8
8
  @path = "/transactions" + "/" + transaction_id + "/refund"
9
9
  @method = "POST"
10
10
  @body_params = { }.merge(rest_args)
11
- @response_class = Pokepay::Response::Transfer
11
+ @response_class = Pokepay::Response::Transaction
12
12
  end
13
13
  attr_reader :response_class
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module Pokepay
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
data/partner.yaml CHANGED
@@ -674,7 +674,7 @@ components:
674
674
  format: date-time
675
675
  type:
676
676
  type: string
677
- enum: [topup, payment, refund-topup, refund-payment, transfer, exchange-inflow, exchange-outflow]
677
+ enum: [topup, payment, refund-topup, refund-payment, transfer, exchange-inflow, exchange-outflow, campaign-topup, refund-campaign, use-coupon, refund-coupon]
678
678
  description:
679
679
  type: string
680
680
  transaction_id:
@@ -2311,8 +2311,9 @@ paths:
2311
2311
  post:
2312
2312
  tags:
2313
2313
  - Transaction
2314
- summary: 返金する
2315
- x-pokepay-operator-name: RefundTransaction
2314
+ summary: '返金する'
2315
+ x-pokepay-operator-name: "RefundTransaction"
2316
+ x-pokepay-allow-server-side: true
2316
2317
  parameters:
2317
2318
  - in: path
2318
2319
  name: transaction_id
@@ -2338,11 +2339,9 @@ paths:
2338
2339
  content:
2339
2340
  application/json:
2340
2341
  schema:
2341
- $ref: '#/components/schemas/Transfer'
2342
+ $ref: '#/components/schemas/Transaction'
2342
2343
  '403':
2343
2344
  $ref: '#/components/responses/Forbidden'
2344
- '404':
2345
- $ref: '#/components/responses/NotFound'
2346
2345
  '422':
2347
2346
  $ref: '#/components/responses/UnprocessableEntity'
2348
2347
  /transfers:
@@ -2396,9 +2395,28 @@ paths:
2396
2395
  enum: [topup, payment, transfer, exchange]
2397
2396
  transfer_types:
2398
2397
  type: array
2398
+ description: |-
2399
+ 取引明細の種類でフィルターします。
2400
+
2401
+ 以下の種類を指定できます。
2402
+
2403
+ 1. topup
2404
+ 店舗からエンドユーザーへの送金取引(チャージ)、またはそのキャンセル取引
2405
+
2406
+ 2. payment
2407
+ エンドユーザーから店舗への送金取引(支払い)、またはそのキャンセル取引
2408
+
2409
+ 3. exchange
2410
+ 他マネーへの流出/流入
2411
+
2412
+ 4. campaign
2413
+ 取引に対するポイント還元キャンペーンによるポイント付与、またはそのキャンセル取引
2414
+
2415
+ 5. coupon
2416
+ クーポンによる値引き処理、またはそのキャンセル取引
2399
2417
  items:
2400
2418
  type: string
2401
- enum: [topup, payment, exchange, transfer]
2419
+ enum: [topup, payment, exchange, transfer, coupon, campaign]
2402
2420
  description:
2403
2421
  type: string
2404
2422
  maxLength: 200
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pokepay_partner_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pocket Change, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-21 00:00:00.000000000 Z
11
+ date: 2021-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler