@waffo/waffo-node 2.3.4 → 2.5.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Waffo Node.js SDK
2
2
 
3
- <!-- Synced with waffo-sdk/README.md @ commit ee83ead -->
3
+ <!-- Synced with waffo-sdk/README.md @ commit d483eba -->
4
4
 
5
5
  **English** | [中文](README_CN.md)
6
6
 
@@ -544,9 +544,9 @@ try {
544
544
  notifyUrl: 'https://your-site.com/webhook/subscription',
545
545
  productInfoList: [
546
546
  {
547
- description: 'Yearly Premium Subscription',
548
- periodType: 'YEAR',
549
- periodInterval: '1',
547
+ description: 'Annual Premium Subscription (12 months)',
548
+ periodType: 'MONTHLY',
549
+ periodInterval: '12',
550
550
  amount: '999.00',
551
551
  },
552
552
  ],
package/dist/index.d.mts CHANGED
@@ -187,6 +187,7 @@ interface CreateSubscriptionParams {
187
187
  merchantSubscriptionId: string;
188
188
  currency: string;
189
189
  amount: string;
190
+ userCurrency?: string;
190
191
  notifyUrl: string;
191
192
  productInfo: ProductInfo;
192
193
  userInfo: SubscriptionUserInfo;
@@ -210,6 +211,13 @@ interface CreateSubscriptionParams {
210
211
  * Order expiry time (ISO 8601 format, max 24 characters).
211
212
  */
212
213
  orderExpiredAt?: string;
214
+ addressInfo?: SubscriptionAddressInfo;
215
+ riskData?: SubscriptionRiskData;
216
+ brandInfo?: SubscriptionBrandInfo;
217
+ subscriptionMode?: string;
218
+ acqMerchant?: Record<string, unknown>;
219
+ acqProduct?: Record<string, unknown>;
220
+ acqAgreements?: Record<string, unknown>[];
213
221
  [key: string]: unknown;
214
222
  }
215
223
  /**
@@ -219,6 +227,7 @@ interface CreateSubscriptionData {
219
227
  subscriptionRequest?: string;
220
228
  merchantSubscriptionId?: string;
221
229
  subscriptionId?: string;
230
+ payMethodSubscriptionId?: string;
222
231
  subscriptionStatus?: SubscriptionStatus;
223
232
  subscriptionAction?: string;
224
233
  [key: string]: unknown;
@@ -229,7 +238,19 @@ interface CreateSubscriptionData {
229
238
  interface InquirySubscriptionParams {
230
239
  subscriptionRequest?: string;
231
240
  subscriptionId?: string;
232
- merchantInfo?: SubscriptionMerchantInfo;
241
+ paymentDetails?: 0 | 1 | number;
242
+ [key: string]: unknown;
243
+ }
244
+ /**
245
+ * Subscription payment detail returned when inquiry paymentDetails=1.
246
+ */
247
+ interface SubscriptionPaymentDetail {
248
+ acquiringOrderId?: string;
249
+ orderCurrency?: string;
250
+ orderAmount?: string;
251
+ orderStatus?: string;
252
+ orderUpdatedAt?: string;
253
+ period?: string;
233
254
  [key: string]: unknown;
234
255
  }
235
256
  /**
@@ -246,13 +267,30 @@ interface InquirySubscriptionData {
246
267
  userCurrency?: string;
247
268
  amount?: string;
248
269
  productInfo?: ProductInfo;
270
+ merchantInfo?: SubscriptionMerchantInfo;
271
+ userInfo?: SubscriptionUserInfo;
272
+ paymentInfo?: SubscriptionPaymentInfo;
273
+ requestedAt?: string;
274
+ updatedAt?: string;
275
+ failedReason?: string;
276
+ subscriptionManagementUrl?: string;
277
+ extendInfo?: string;
278
+ paymentDetails?: SubscriptionPaymentDetail[];
279
+ goodsInfo?: {
280
+ goodsId?: string;
281
+ goodsName?: string;
282
+ goodsCategory?: string;
283
+ goodsUrl?: string;
284
+ [key: string]: unknown;
285
+ };
286
+ addressInfo?: SubscriptionAddressInfo;
249
287
  [key: string]: unknown;
250
288
  }
251
289
  /**
252
290
  * Cancel subscription request parameters.
253
291
  */
254
292
  interface CancelSubscriptionParams {
255
- subscriptionId?: string;
293
+ subscriptionId: string;
256
294
  merchantId?: string;
257
295
  requestedAt?: string;
258
296
  [key: string]: unknown;
@@ -264,30 +302,122 @@ interface CancelSubscriptionData {
264
302
  subscriptionRequest?: string;
265
303
  merchantSubscriptionId?: string;
266
304
  subscriptionId?: string;
267
- subscriptionStatus?: SubscriptionStatus;
305
+ orderStatus?: string;
268
306
  [key: string]: unknown;
269
307
  }
270
308
  /**
271
309
  * Manage subscription request parameters.
272
310
  */
273
311
  interface ManageSubscriptionParams {
274
- subscriptionId: string;
275
- merchantId: string;
276
- action: SubscriptionManageAction;
277
- newAmount?: string;
278
- newPeriodType?: PeriodType;
279
- newPeriodValue?: number;
280
- requestedAt?: string;
312
+ subscriptionId?: string;
313
+ subscriptionRequest?: string;
281
314
  [key: string]: unknown;
282
315
  }
283
316
  /**
284
317
  * Manage subscription response data.
285
318
  */
286
319
  interface ManageSubscriptionData {
320
+ subscriptionRequest?: string;
321
+ merchantSubscriptionId?: string;
287
322
  subscriptionId?: string;
323
+ managementUrl?: string;
324
+ expiredAt?: string;
288
325
  subscriptionStatus?: SubscriptionStatus;
289
326
  [key: string]: unknown;
290
327
  }
328
+ /**
329
+ * Scheduled amount item for a specific subscription period.
330
+ */
331
+ interface SubscriptionScheduledAmount {
332
+ /**
333
+ * Period number, for example "1".
334
+ */
335
+ period?: string;
336
+ /**
337
+ * Merchant subscription amount for this period.
338
+ */
339
+ amount?: string;
340
+ [key: string]: unknown;
341
+ }
342
+ /**
343
+ * Product information for subscription update operations.
344
+ */
345
+ interface SubscriptionUpdateProductInfo {
346
+ /**
347
+ * Updated trial period amount. Empty means no trial period.
348
+ */
349
+ trialPeriodAmount?: string;
350
+ /**
351
+ * Scheduled amount list for each period.
352
+ */
353
+ scheduledAmounts?: SubscriptionScheduledAmount[];
354
+ [key: string]: unknown;
355
+ }
356
+ /**
357
+ * Update subscription request parameters.
358
+ */
359
+ interface UpdateSubscriptionParams {
360
+ /**
361
+ * Merchant subscription request ID. Provide subscriptionRequest or subscriptionId.
362
+ */
363
+ subscriptionRequest?: string;
364
+ /**
365
+ * Waffo subscription ID. Provide subscriptionRequest or subscriptionId.
366
+ */
367
+ subscriptionId?: string;
368
+ /**
369
+ * New merchant subscription amount. At least one of amount and
370
+ * productInfo.scheduledAmounts must be provided.
371
+ */
372
+ amount?: string;
373
+ /**
374
+ * Product information containing trial or scheduled amount updates.
375
+ */
376
+ productInfo?: SubscriptionUpdateProductInfo;
377
+ [key: string]: unknown;
378
+ }
379
+ /**
380
+ * Update subscription response data.
381
+ */
382
+ interface UpdateSubscriptionData {
383
+ /**
384
+ * Waffo subscription ID.
385
+ */
386
+ subscriptionId?: string;
387
+ /**
388
+ * Subscription request ID sent from Merchant.
389
+ */
390
+ subscriptionRequest?: string;
391
+ /**
392
+ * Previous trial period amount.
393
+ */
394
+ previousTrialPeriodAmount?: string;
395
+ /**
396
+ * New trial period amount.
397
+ */
398
+ newTrialPeriodAmount?: string;
399
+ /**
400
+ * Previous merchant subscription amount.
401
+ */
402
+ previousAmount?: string;
403
+ /**
404
+ * New merchant subscription amount.
405
+ */
406
+ newAmount?: string;
407
+ /**
408
+ * Previous scheduled amount list for each period.
409
+ */
410
+ previousScheduledAmounts?: SubscriptionScheduledAmount[];
411
+ /**
412
+ * New scheduled amount list for each period.
413
+ */
414
+ newScheduledAmounts?: SubscriptionScheduledAmount[];
415
+ /**
416
+ * The next period number when the new amount takes effect.
417
+ */
418
+ nextEffectivePeriod?: string;
419
+ [key: string]: unknown;
420
+ }
291
421
  /**
292
422
  * Subscription status enum.
293
423
  * Based on openapi.json SubscriptionInquiryResponse.subscriptionStatus.
@@ -362,6 +492,10 @@ interface ProductInfo {
362
492
  * Current billing period number.
363
493
  */
364
494
  currentPeriod?: string;
495
+ /**
496
+ * Scheduled amount list for each period.
497
+ */
498
+ scheduledAmounts?: SubscriptionScheduledAmount[];
365
499
  [key: string]: unknown;
366
500
  }
367
501
  /**
@@ -387,6 +521,48 @@ interface SubscriptionPaymentInfo {
387
521
  payMethodName?: string;
388
522
  [key: string]: unknown;
389
523
  }
524
+ /**
525
+ * Address information for subscription.
526
+ */
527
+ interface SubscriptionAddressInfo {
528
+ shippingAddress?: {
529
+ country?: string;
530
+ state?: string;
531
+ city?: string;
532
+ address1?: string;
533
+ address2?: string;
534
+ postalCode?: string;
535
+ [key: string]: unknown;
536
+ };
537
+ billingAddress?: {
538
+ country?: string;
539
+ state?: string;
540
+ city?: string;
541
+ address1?: string;
542
+ address2?: string;
543
+ postalCode?: string;
544
+ [key: string]: unknown;
545
+ };
546
+ [key: string]: unknown;
547
+ }
548
+ /**
549
+ * Risk data for subscription.
550
+ */
551
+ interface SubscriptionRiskData {
552
+ deviceType?: string;
553
+ deviceId?: string;
554
+ deviceTokenId?: string;
555
+ [key: string]: unknown;
556
+ }
557
+ /**
558
+ * Brand display information for cashier.
559
+ */
560
+ interface SubscriptionBrandInfo {
561
+ cashierLogoUrl?: string;
562
+ cashierDisplayName?: string;
563
+ cashierProductImageUrl?: string;
564
+ [key: string]: unknown;
565
+ }
390
566
  /**
391
567
  * Merchant information for subscription.
392
568
  */
@@ -464,6 +640,10 @@ interface SubscriptionChangeProductInfo {
464
640
  * Trial period interval (max 12 characters).
465
641
  */
466
642
  trialPeriodInterval?: string;
643
+ /**
644
+ * Scheduled amount list for each period.
645
+ */
646
+ scheduledAmounts?: SubscriptionScheduledAmount[];
467
647
  [key: string]: unknown;
468
648
  }
469
649
  /**
@@ -581,6 +761,10 @@ interface SubscriptionChangeParams {
581
761
  userIsFirstPurchase?: string;
582
762
  [key: string]: unknown;
583
763
  };
764
+ /**
765
+ * Brand display information for cashier.
766
+ */
767
+ brandInfo?: SubscriptionBrandInfo;
584
768
  [key: string]: unknown;
585
769
  }
586
770
  /**
@@ -1177,6 +1361,12 @@ interface CreateOrderParams {
1177
1361
  addressInfo?: AddressInfo;
1178
1362
  cardInfo?: CardInfo;
1179
1363
  riskData?: RiskData;
1364
+ paymentTokenData?: PaymentTokenData;
1365
+ brandInfo?: BrandInfo;
1366
+ productDetail?: ProductDetail;
1367
+ acqOrderExtSubscriptionInfo?: AcqOrderExtSubscriptionInfo;
1368
+ channelId?: string;
1369
+ innerCardData?: WaffoTokenCardData;
1180
1370
  userCurrency?: string;
1181
1371
  successRedirectUrl?: string;
1182
1372
  failedRedirectUrl?: string;
@@ -1184,7 +1374,6 @@ interface CreateOrderParams {
1184
1374
  orderRequestedAt?: string;
1185
1375
  orderExpiredAt?: string;
1186
1376
  extendInfo?: string;
1187
- metadata?: string;
1188
1377
  [key: string]: unknown;
1189
1378
  }
1190
1379
  /**
@@ -1200,11 +1389,11 @@ interface CreateOrderData {
1200
1389
  }
1201
1390
  /**
1202
1391
  * Inquiry order request parameters.
1392
+ * Provide paymentRequestId or acquiringOrderId.
1203
1393
  */
1204
1394
  interface InquiryOrderParams {
1205
1395
  paymentRequestId?: string;
1206
1396
  acquiringOrderId?: string;
1207
- merchantInfo?: MerchantInfo;
1208
1397
  [key: string]: unknown;
1209
1398
  }
1210
1399
  /**
@@ -1215,13 +1404,27 @@ interface InquiryOrderData {
1215
1404
  merchantOrderId?: string;
1216
1405
  acquiringOrderId?: string;
1217
1406
  orderStatus?: OrderStatus;
1407
+ orderAction?: string;
1218
1408
  orderCurrency?: string;
1219
1409
  orderAmount?: string;
1220
1410
  finalDealAmount?: string;
1411
+ orderDescription?: string;
1412
+ merchantInfo?: MerchantInfo;
1413
+ userInfo?: UserInfo;
1414
+ goodsInfo?: GoodsInfo;
1415
+ paymentInfo?: PaymentInfo;
1416
+ addressInfo?: AddressInfo;
1417
+ orderRequestedAt?: string;
1418
+ orderExpiredAt?: string;
1419
+ orderUpdatedAt?: string;
1420
+ orderCompletedAt?: string;
1221
1421
  /**
1222
1422
  * Refund expiry time (ISO 8601 format).
1223
1423
  */
1224
1424
  refundExpiryAt?: string;
1425
+ orderFailedReason?: string;
1426
+ extendInfo?: string;
1427
+ userCurrency?: string;
1225
1428
  /**
1226
1429
  * The associated subscription info.
1227
1430
  */
@@ -1238,7 +1441,7 @@ interface InquiryOrderData {
1238
1441
  interface CancelOrderParams {
1239
1442
  paymentRequestId?: string;
1240
1443
  acquiringOrderId?: string;
1241
- merchantInfo?: MerchantInfo;
1444
+ merchantId?: string;
1242
1445
  orderRequestedAt?: string;
1243
1446
  [key: string]: unknown;
1244
1447
  }
@@ -1266,6 +1469,7 @@ interface RefundOrderParams {
1266
1469
  refundNotifyUrl?: string;
1267
1470
  userInfo?: RefundUserInfo;
1268
1471
  extendInfo?: string;
1472
+ refundSource?: string;
1269
1473
  [key: string]: unknown;
1270
1474
  }
1271
1475
  /**
@@ -1279,6 +1483,7 @@ interface RefundOrderData {
1279
1483
  refundAmount?: string;
1280
1484
  refundStatus?: RefundStatus$1;
1281
1485
  remainingRefundAmount?: string;
1486
+ refundSource?: string;
1282
1487
  [key: string]: unknown;
1283
1488
  }
1284
1489
  /**
@@ -1287,8 +1492,9 @@ interface RefundOrderData {
1287
1492
  interface CaptureOrderParams {
1288
1493
  paymentRequestId?: string;
1289
1494
  acquiringOrderId?: string;
1290
- merchantId: string;
1291
- captureAmount?: string;
1495
+ merchantId?: string;
1496
+ captureRequestedAt?: string;
1497
+ captureAmount: string;
1292
1498
  [key: string]: unknown;
1293
1499
  }
1294
1500
  /**
@@ -1337,6 +1543,7 @@ interface PaymentInfo {
1337
1543
  payMethodType?: string;
1338
1544
  payMethodName?: string;
1339
1545
  payMethodProperties?: string;
1546
+ captureMode?: string;
1340
1547
  [key: string]: unknown;
1341
1548
  }
1342
1549
  /**
@@ -1398,6 +1605,49 @@ interface RiskData {
1398
1605
  userIsFirstPurchase?: string;
1399
1606
  [key: string]: unknown;
1400
1607
  }
1608
+ /**
1609
+ * Payment token data.
1610
+ */
1611
+ interface PaymentTokenData {
1612
+ tokenId?: string;
1613
+ [key: string]: unknown;
1614
+ }
1615
+ /**
1616
+ * Brand display information for cashier.
1617
+ */
1618
+ interface BrandInfo {
1619
+ cashierLogoUrl?: string;
1620
+ cashierDisplayName?: string;
1621
+ cashierProductImageUrl?: string;
1622
+ [key: string]: unknown;
1623
+ }
1624
+ /**
1625
+ * Product detail extension payload.
1626
+ */
1627
+ interface ProductDetail {
1628
+ subscriptionInfo?: SubscriptionInfo;
1629
+ [key: string]: unknown;
1630
+ }
1631
+ /**
1632
+ * Subscription extension information for an acquiring order.
1633
+ */
1634
+ interface AcqOrderExtSubscriptionInfo {
1635
+ subscriptionId?: string;
1636
+ periodNo?: number;
1637
+ merchantRequest?: string;
1638
+ subscriptionEvent?: string;
1639
+ [key: string]: unknown;
1640
+ }
1641
+ /**
1642
+ * Tokenized card data used for direct card payment flows.
1643
+ */
1644
+ interface WaffoTokenCardData {
1645
+ cardBinDataList?: Record<string, unknown>[];
1646
+ maskedCardInfo?: string;
1647
+ cardBin?: string;
1648
+ cardExpiry?: string;
1649
+ [key: string]: unknown;
1650
+ }
1401
1651
  /**
1402
1652
  * Refund user information.
1403
1653
  */
@@ -1544,6 +1794,7 @@ declare class SubscriptionResource extends BaseResource {
1544
1794
  private static readonly PATH_INQUIRY;
1545
1795
  private static readonly PATH_CANCEL;
1546
1796
  private static readonly PATH_MANAGE;
1797
+ private static readonly PATH_UPDATE;
1547
1798
  private static readonly PATH_CHANGE;
1548
1799
  private static readonly PATH_CHANGE_INQUIRY;
1549
1800
  /**
@@ -1582,6 +1833,18 @@ declare class SubscriptionResource extends BaseResource {
1582
1833
  * @throws WaffoUnknownStatusError for network errors
1583
1834
  */
1584
1835
  manage(params: ManageSubscriptionParams, options?: RequestOptions): Promise<ApiResponse<ManageSubscriptionData>>;
1836
+ /**
1837
+ * Updates an existing subscription amount or scheduled period amounts.
1838
+ *
1839
+ * Provide either subscriptionRequest or subscriptionId. At least one of amount
1840
+ * or productInfo.scheduledAmounts must be provided.
1841
+ *
1842
+ * @param params - Subscription update parameters
1843
+ * @param options - Optional request options
1844
+ * @returns API response with update result
1845
+ * @throws WaffoUnknownStatusError for network errors
1846
+ */
1847
+ update(params: UpdateSubscriptionParams, options?: RequestOptions): Promise<ApiResponse<UpdateSubscriptionData>>;
1585
1848
  /**
1586
1849
  * Changes (upgrades/downgrades) an existing subscription.
1587
1850
  *
@@ -1663,7 +1926,6 @@ declare class SubscriptionResource extends BaseResource {
1663
1926
  interface InquiryRefundParams {
1664
1927
  refundRequestId?: string;
1665
1928
  acquiringRefundOrderId?: string;
1666
- merchantInfo?: MerchantInfo;
1667
1929
  [key: string]: unknown;
1668
1930
  }
1669
1931
  /**
@@ -1677,13 +1939,20 @@ interface InquiryRefundData {
1677
1939
  acquiringRefundOrderId?: string;
1678
1940
  origPaymentRequestId?: string;
1679
1941
  refundAmount?: string;
1680
- refundCurrency?: string;
1681
1942
  refundStatus?: RefundStatus;
1682
1943
  refundReason?: string;
1683
1944
  refundRequestedAt?: string;
1684
1945
  refundUpdatedAt?: string;
1685
1946
  refundFailedReason?: string;
1686
1947
  extendInfo?: string;
1948
+ userCurrency?: string;
1949
+ finalDealAmount?: string;
1950
+ remainingRefundAmount?: string;
1951
+ merchantUserId?: string;
1952
+ subscriptionInfo?: SubscriptionInfo;
1953
+ userInfo?: RefundUserInfo;
1954
+ refundCompletedAt?: string;
1955
+ refundSource?: string;
1687
1956
  [key: string]: unknown;
1688
1957
  }
1689
1958
  /**
@@ -1740,10 +2009,9 @@ interface InquiryMerchantConfigParams {
1740
2009
  */
1741
2010
  interface InquiryMerchantConfigData {
1742
2011
  merchantId?: string;
1743
- merchantName?: string;
1744
- merchantStatus?: string;
1745
- supportedCurrencies?: string[];
1746
- supportedPayMethods?: PayMethodInfo[];
2012
+ totalDailyLimit?: Record<string, string>;
2013
+ remainingDailyLimit?: Record<string, string>;
2014
+ transactionLimit?: Record<string, string>;
1747
2015
  [key: string]: unknown;
1748
2016
  }
1749
2017
  /**
@@ -2172,4 +2440,4 @@ declare const RsaUtils: {
2172
2440
  generateKeyPair: typeof generateKeyPair;
2173
2441
  };
2174
2442
 
2175
- export { type AddressInfo, ApiResponse, type BaseNotification, type CancelOrderData, type CancelOrderParams, type CancelSubscriptionData, type CancelSubscriptionParams, type CaptureOrderData, type CaptureOrderParams, type CardInfo, type CreateOrderData, type CreateOrderParams, type CreateSubscriptionData, type CreateSubscriptionParams, Environment, EnvironmentBaseUrl, type GoodsInfo, type HttpRequest, type HttpResponse, type HttpTransport, type InquiryMerchantConfigData, type InquiryMerchantConfigParams, type InquiryOrderData, type InquiryOrderParams, type InquiryPayMethodConfigData, type InquiryPayMethodConfigParams, type InquiryRefundData, type InquiryRefundParams, type InquirySubscriptionData, type InquirySubscriptionParams, type ManageSubscriptionData, type ManageSubscriptionParams, MerchantConfigResource, type MerchantInfo, OrderResource, type OrderStatus, PayMethodConfigResource, type PayMethodInfo, type PaymentInfo, type PaymentNotification, type PaymentNotificationResult, type PeriodType, type ProductInfo, type RefundNotification, type RefundNotificationResult, type RefundOrderData, type RefundOrderParams, RefundResource, type RefundStatus$1 as RefundStatus, type RefundUserInfo, type RequestOptions, type RiskData, RsaUtils, type SubscriptionInfo, type SubscriptionManageAction, type SubscriptionMerchantInfo, type SubscriptionNotificationResult, type SubscriptionPaymentInfo, type SubscriptionPeriodChangedNotification, SubscriptionResource, type SubscriptionStatus, type SubscriptionStatusNotification, type SubscriptionUserInfo, type UserInfo, Waffo, type WaffoConfig, WaffoConfigDefaults, WaffoError, WaffoErrorCode, WaffoHttpClient, type WaffoLogger, WaffoUnknownStatusError, WebhookEventType, WebhookHandler, type WebhookResult };
2443
+ export { type AddressInfo, ApiResponse, type BaseNotification, type CancelOrderData, type CancelOrderParams, type CancelSubscriptionData, type CancelSubscriptionParams, type CaptureOrderData, type CaptureOrderParams, type CardInfo, type CreateOrderData, type CreateOrderParams, type CreateSubscriptionData, type CreateSubscriptionParams, Environment, EnvironmentBaseUrl, type GoodsInfo, type HttpRequest, type HttpResponse, type HttpTransport, type InquiryMerchantConfigData, type InquiryMerchantConfigParams, type InquiryOrderData, type InquiryOrderParams, type InquiryPayMethodConfigData, type InquiryPayMethodConfigParams, type InquiryRefundData, type InquiryRefundParams, type InquirySubscriptionData, type InquirySubscriptionParams, type ManageSubscriptionData, type ManageSubscriptionParams, MerchantConfigResource, type MerchantInfo, OrderResource, type OrderStatus, PayMethodConfigResource, type PayMethodInfo, type PaymentInfo, type PaymentNotification, type PaymentNotificationResult, type PeriodType, type ProductInfo, type RefundNotification, type RefundNotificationResult, type RefundOrderData, type RefundOrderParams, RefundResource, type RefundStatus$1 as RefundStatus, type RefundUserInfo, type RequestOptions, type RiskData, RsaUtils, type SubscriptionChangeData, type SubscriptionChangeInquiryData, type SubscriptionChangeInquiryParams, type SubscriptionChangeParams, type SubscriptionChangeProductInfo, type SubscriptionChangeStatus, type SubscriptionInfo, type SubscriptionManageAction, type SubscriptionMerchantInfo, type SubscriptionNotificationResult, type SubscriptionPaymentDetail, type SubscriptionPaymentInfo, type SubscriptionPeriodChangedNotification, SubscriptionResource, type SubscriptionScheduledAmount, type SubscriptionStatus, type SubscriptionStatusNotification, type SubscriptionUpdateProductInfo, type SubscriptionUserInfo, type UpdateSubscriptionData, type UpdateSubscriptionParams, type UserInfo, Waffo, type WaffoConfig, WaffoConfigDefaults, WaffoError, WaffoErrorCode, WaffoHttpClient, type WaffoLogger, WaffoUnknownStatusError, WebhookEventType, WebhookHandler, type WebhookResult };