@readyfor/api-client-readyfor-api 1.168.0 → 1.170.0

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.
@@ -872,6 +872,32 @@ export interface components {
872
872
  id: number;
873
873
  label: string;
874
874
  };
875
+ /**
876
+ * Contributions_Common_ExpiredProjectError
877
+ * @description 403: プロジェクトの募集が終了している時(ExpiredProject)
878
+ * handlerCode は FE で特定の画面へ遷移するための共通コード。募集終了は 1102
879
+ * 全 API 共通の 403(CSRF トークン不正など)も同じ形で別の handlerCode を返すため、enum にしない
880
+ *
881
+ * @example {
882
+ * "errorMessage": "errorMessage",
883
+ * "handlerCode": 1102
884
+ * }
885
+ */
886
+ Contributions_Common_ExpiredProjectError: {
887
+ errorMessage: string;
888
+ /** @example 1102 */
889
+ handlerCode: number;
890
+ };
891
+ /**
892
+ * ErrorMessageNotFound
893
+ * @description 404 - NotFound
894
+ * @example {
895
+ * "errorMessage": "errorMessage"
896
+ * }
897
+ */
898
+ ErrorMessageNotFound: {
899
+ errorMessage: string;
900
+ };
875
901
  /**
876
902
  * @example {
877
903
  * "ads": {
@@ -1415,16 +1441,6 @@ export interface components {
1415
1441
  ErrorMessageUnauthenticated: {
1416
1442
  errorMessage: string;
1417
1443
  };
1418
- /**
1419
- * ErrorMessageNotFound
1420
- * @description 404 - NotFound
1421
- * @example {
1422
- * "errorMessage": "errorMessage"
1423
- * }
1424
- */
1425
- ErrorMessageNotFound: {
1426
- errorMessage: string;
1427
- };
1428
1444
  /**
1429
1445
  * @example {
1430
1446
  * "hasDefaultPaymentMethod": true,
@@ -1759,6 +1775,52 @@ export interface components {
1759
1775
  */
1760
1776
  subscribeEmailMagazine: 0 | 1 | null;
1761
1777
  };
1778
+ /**
1779
+ * Contributions_Common_PaymentInfoErrors
1780
+ * @description 422: 決済代行がエラーを返した時、短期間に連続して決済に失敗した時(PaymentAbuseError)
1781
+ * PaymentAbuseError は exec_contribution と recurring/change_payment_info だけで返す
1782
+ * 入力項目ごとのバリデーションエラーとは形が異なる
1783
+ *
1784
+ * @example {
1785
+ * "paymentInfo": [
1786
+ * {
1787
+ * "propertyName": "propertyName",
1788
+ * "errorMessage": "errorMessage"
1789
+ * },
1790
+ * {
1791
+ * "propertyName": "propertyName",
1792
+ * "errorMessage": "errorMessage"
1793
+ * }
1794
+ * ]
1795
+ * }
1796
+ */
1797
+ Contributions_Common_PaymentInfoErrors: {
1798
+ paymentInfo: components["schemas"]["Common_ValidError"][];
1799
+ };
1800
+ /**
1801
+ * @description 400系,500系エラー用の共通オブジェクト
1802
+ * エラーメッセージを返すだけのシンプルな構造
1803
+ *
1804
+ * @example {
1805
+ * "error": "error"
1806
+ * }
1807
+ */
1808
+ Common_Error: {
1809
+ error: string;
1810
+ };
1811
+ /**
1812
+ * Contributions_Common_ErrorMessage
1813
+ * @description 支援導線の API が返す、エラーメッセージだけを持つエラー
1814
+ * - 422: 再決済の期限を過ぎた時(ExpiredSteadyCrowdfundingOrder)。recurring/retry_contribution だけで返す
1815
+ * - 504: 決済代行への通信がタイムアウトした時(TimeoutError)。exec_contribution だけで返す
1816
+ *
1817
+ * @example {
1818
+ * "errorMessage": "errorMessage"
1819
+ * }
1820
+ */
1821
+ Contributions_Common_ErrorMessage: {
1822
+ errorMessage: string;
1823
+ };
1762
1824
  /**
1763
1825
  * @example {
1764
1826
  * "result": true,
@@ -2139,17 +2201,6 @@ export interface components {
2139
2201
  */
2140
2202
  birthYear: number | null;
2141
2203
  };
2142
- /**
2143
- * @description 400系,500系エラー用の共通オブジェクト
2144
- * エラーメッセージを返すだけのシンプルな構造
2145
- *
2146
- * @example {
2147
- * "error": "error"
2148
- * }
2149
- */
2150
- Common_Error: {
2151
- error: string;
2152
- };
2153
2204
  /**
2154
2205
  * @example {
2155
2206
  * "projects": [
@@ -5201,6 +5252,9 @@ export interface components {
5201
5252
  /** @description 残り在庫数 */
5202
5253
  stockCount: number;
5203
5254
  };
5255
+ Contributions_ExecContribution_422_response: components["schemas"]["Contributions_ExecContribution_ValidErrors"] | components["schemas"]["Contributions_Common_PaymentInfoErrors"];
5256
+ Contributions_Recurring_ChangePaymentInfo_422_response: components["schemas"]["Contributions_Recurring_ChangePaymentInfo_ValidErrors"] | components["schemas"]["Contributions_Common_PaymentInfoErrors"];
5257
+ Contributions_Recurring_RetryContribution_422_response: components["schemas"]["Contributions_Recurring_RetryContribution_ValidErrors"] | components["schemas"]["Contributions_Common_PaymentInfoErrors"] | components["schemas"]["Contributions_Common_ErrorMessage"];
5204
5258
  FundraisingSteadyCrowdfundingProjectOrderS_OrderId_200_response: components["schemas"]["GetFundraisingSteadyCrowdfundingProjectMonthlyOrdersOrderId"] | components["schemas"]["GetFundraisingSteadyCrowdfundingProjectOnetimeOrdersOrderId"] | components["schemas"]["GetFundraisingSteadyCrowdfundingProjectYearlyOrdersOrderId"];
5205
5259
  /**
5206
5260
  * @description 支援者システム利用料。非適用プロジェクトの場合は null
@@ -5393,6 +5447,18 @@ export interface operations {
5393
5447
  "application/json": components["schemas"]["Contributions_ProjectInfo"];
5394
5448
  };
5395
5449
  };
5450
+ /** @description Forbidden */
5451
+ 403: {
5452
+ content: {
5453
+ "application/json": components["schemas"]["Contributions_Common_ExpiredProjectError"];
5454
+ };
5455
+ };
5456
+ /** @description Not Found */
5457
+ 404: {
5458
+ content: {
5459
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
5460
+ };
5461
+ };
5396
5462
  };
5397
5463
  };
5398
5464
  /**
@@ -5425,6 +5491,18 @@ export interface operations {
5425
5491
  "application/json": components["schemas"]["Contributions_UserInfo"];
5426
5492
  };
5427
5493
  };
5494
+ /** @description Forbidden */
5495
+ 403: {
5496
+ content: {
5497
+ "application/json": components["schemas"]["Contributions_Common_ExpiredProjectError"];
5498
+ };
5499
+ };
5500
+ /** @description Not Found */
5501
+ 404: {
5502
+ content: {
5503
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
5504
+ };
5505
+ };
5428
5506
  };
5429
5507
  };
5430
5508
  /**
@@ -5486,6 +5564,18 @@ export interface operations {
5486
5564
  "application/json": components["schemas"]["Contributions_PaymentInfo"];
5487
5565
  };
5488
5566
  };
5567
+ /** @description Forbidden */
5568
+ 403: {
5569
+ content: {
5570
+ "application/json": components["schemas"]["Contributions_Common_ExpiredProjectError"];
5571
+ };
5572
+ };
5573
+ /** @description Not Found */
5574
+ 404: {
5575
+ content: {
5576
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
5577
+ };
5578
+ };
5489
5579
  };
5490
5580
  };
5491
5581
  /**
@@ -5525,6 +5615,18 @@ export interface operations {
5525
5615
  "application/json": components["schemas"]["Contributions_CheckOwnerFriend"];
5526
5616
  };
5527
5617
  };
5618
+ /** @description Forbidden */
5619
+ 403: {
5620
+ content: {
5621
+ "application/json": components["schemas"]["Contributions_Common_ExpiredProjectError"];
5622
+ };
5623
+ };
5624
+ /** @description Not Found */
5625
+ 404: {
5626
+ content: {
5627
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
5628
+ };
5629
+ };
5528
5630
  };
5529
5631
  };
5530
5632
  /**
@@ -5563,6 +5665,18 @@ export interface operations {
5563
5665
  "application/json": components["schemas"]["Contributions_CheckOrderStatus"];
5564
5666
  };
5565
5667
  };
5668
+ /** @description Forbidden */
5669
+ 403: {
5670
+ content: {
5671
+ "application/json": components["schemas"]["Contributions_Common_ExpiredProjectError"];
5672
+ };
5673
+ };
5674
+ /** @description Not Found */
5675
+ 404: {
5676
+ content: {
5677
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
5678
+ };
5679
+ };
5566
5680
  };
5567
5681
  };
5568
5682
  /**
@@ -5588,6 +5702,18 @@ export interface operations {
5588
5702
  "application/json": components["schemas"]["Contributions_ValidPaymentInfo"];
5589
5703
  };
5590
5704
  };
5705
+ /** @description Forbidden */
5706
+ 403: {
5707
+ content: {
5708
+ "application/json": components["schemas"]["Contributions_Common_ExpiredProjectError"];
5709
+ };
5710
+ };
5711
+ /** @description Not Found */
5712
+ 404: {
5713
+ content: {
5714
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
5715
+ };
5716
+ };
5591
5717
  /** @description Validation Error */
5592
5718
  422: {
5593
5719
  content: {
@@ -5669,6 +5795,18 @@ export interface operations {
5669
5795
  "application/json": components["schemas"]["Contributions_ValidUserDelivery"];
5670
5796
  };
5671
5797
  };
5798
+ /** @description Forbidden */
5799
+ 403: {
5800
+ content: {
5801
+ "application/json": components["schemas"]["Contributions_Common_ExpiredProjectError"];
5802
+ };
5803
+ };
5804
+ /** @description Not Found */
5805
+ 404: {
5806
+ content: {
5807
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
5808
+ };
5809
+ };
5672
5810
  /** @description Validation Error */
5673
5811
  422: {
5674
5812
  content: {
@@ -5707,10 +5845,40 @@ export interface operations {
5707
5845
  "application/json": components["schemas"]["Contributions_ExecContribution"];
5708
5846
  };
5709
5847
  };
5710
- /** @description Validation Error */
5848
+ /** @description Forbidden */
5849
+ 403: {
5850
+ content: {
5851
+ "application/json": components["schemas"]["Contributions_Common_ExpiredProjectError"];
5852
+ };
5853
+ };
5854
+ /** @description Not Found */
5855
+ 404: {
5856
+ content: {
5857
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
5858
+ };
5859
+ };
5860
+ /** @description Validation Error / Payment Error */
5711
5861
  422: {
5712
5862
  content: {
5713
- "application/json": components["schemas"]["Contributions_ExecContribution_ValidErrors"];
5863
+ "application/json": components["schemas"]["Contributions_ExecContribution_422_response"];
5864
+ };
5865
+ };
5866
+ /** @description Too Many Requests */
5867
+ 429: {
5868
+ content: {
5869
+ "application/json": components["schemas"]["Common_Error"];
5870
+ };
5871
+ };
5872
+ /** @description Internal Server Error */
5873
+ 500: {
5874
+ content: {
5875
+ "application/json": components["schemas"]["Common_Error"];
5876
+ };
5877
+ };
5878
+ /** @description Gateway Timeout */
5879
+ 504: {
5880
+ content: {
5881
+ "application/json": components["schemas"]["Contributions_Common_ErrorMessage"];
5714
5882
  };
5715
5883
  };
5716
5884
  };
@@ -5738,6 +5906,12 @@ export interface operations {
5738
5906
  "application/json": components["schemas"]["Contributions_3d_Secure_ExecContribution"];
5739
5907
  };
5740
5908
  };
5909
+ /** @description Not Found */
5910
+ 404: {
5911
+ content: {
5912
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
5913
+ };
5914
+ };
5741
5915
  /** @description Validation Error */
5742
5916
  422: {
5743
5917
  content: {
@@ -6010,10 +6184,16 @@ export interface operations {
6010
6184
  "application/json": components["schemas"]["Contributions_Recurring_ChangePaymentInfo"];
6011
6185
  };
6012
6186
  };
6013
- /** @description Validation Error */
6187
+ /** @description Not Found */
6188
+ 404: {
6189
+ content: {
6190
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
6191
+ };
6192
+ };
6193
+ /** @description Validation Error / Payment Error */
6014
6194
  422: {
6015
6195
  content: {
6016
- "application/json": components["schemas"]["Contributions_Recurring_ChangePaymentInfo_ValidErrors"];
6196
+ "application/json": components["schemas"]["Contributions_Recurring_ChangePaymentInfo_422_response"];
6017
6197
  };
6018
6198
  };
6019
6199
  };
@@ -6043,6 +6223,18 @@ export interface operations {
6043
6223
  "application/json": components["schemas"]["Contributions_Recurring_CancelContribution"];
6044
6224
  };
6045
6225
  };
6226
+ /** @description Not Found */
6227
+ 404: {
6228
+ content: {
6229
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
6230
+ };
6231
+ };
6232
+ /** @description Payment Error */
6233
+ 422: {
6234
+ content: {
6235
+ "application/json": components["schemas"]["Contributions_Common_PaymentInfoErrors"];
6236
+ };
6237
+ };
6046
6238
  };
6047
6239
  };
6048
6240
  /**
@@ -6072,6 +6264,12 @@ export interface operations {
6072
6264
  "application/json": components["schemas"]["Contributions_Recurring_UpdateUserDelivery"];
6073
6265
  };
6074
6266
  };
6267
+ /** @description Not Found */
6268
+ 404: {
6269
+ content: {
6270
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
6271
+ };
6272
+ };
6075
6273
  /** @description Validation Error */
6076
6274
  422: {
6077
6275
  content: {
@@ -6105,10 +6303,16 @@ export interface operations {
6105
6303
  "application/json": components["schemas"]["Contributions_Recurring_RetryContribution"];
6106
6304
  };
6107
6305
  };
6108
- /** @description Validation Error */
6306
+ /** @description Not Found */
6307
+ 404: {
6308
+ content: {
6309
+ "application/json": components["schemas"]["ErrorMessageNotFound"];
6310
+ };
6311
+ };
6312
+ /** @description Validation Error / Payment Error */
6109
6313
  422: {
6110
6314
  content: {
6111
- "application/json": components["schemas"]["Contributions_Recurring_RetryContribution_ValidErrors"];
6315
+ "application/json": components["schemas"]["Contributions_Recurring_RetryContribution_422_response"];
6112
6316
  };
6113
6317
  };
6114
6318
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-readyfor-api",
3
- "version": "1.168.0",
3
+ "version": "1.170.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -36,7 +36,7 @@
36
36
  "swr": "2.5.1",
37
37
  "use-sync-external-store": "1.7.0",
38
38
  "zod": "^4.3.6",
39
- "@readyfor/api-client-base": "1.168.0"
39
+ "@readyfor/api-client-base": "1.170.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "qs": "^6",
@@ -44,7 +44,7 @@
44
44
  "swr": "^2.2.5",
45
45
  "use-sync-external-store": "^1.2.2",
46
46
  "zod": "^4",
47
- "@readyfor/api-client-base": "1.168.0"
47
+ "@readyfor/api-client-base": "1.170.0"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "react": {