@waffo/waffo-node 2.3.3 → 2.4.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/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,8 @@ 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;
213
216
  [key: string]: unknown;
214
217
  }
215
218
  /**
@@ -219,6 +222,7 @@ interface CreateSubscriptionData {
219
222
  subscriptionRequest?: string;
220
223
  merchantSubscriptionId?: string;
221
224
  subscriptionId?: string;
225
+ payMethodSubscriptionId?: string;
222
226
  subscriptionStatus?: SubscriptionStatus;
223
227
  subscriptionAction?: string;
224
228
  [key: string]: unknown;
@@ -229,7 +233,7 @@ interface CreateSubscriptionData {
229
233
  interface InquirySubscriptionParams {
230
234
  subscriptionRequest?: string;
231
235
  subscriptionId?: string;
232
- merchantInfo?: SubscriptionMerchantInfo;
236
+ paymentDetails?: boolean;
233
237
  [key: string]: unknown;
234
238
  }
235
239
  /**
@@ -246,6 +250,23 @@ interface InquirySubscriptionData {
246
250
  userCurrency?: string;
247
251
  amount?: string;
248
252
  productInfo?: ProductInfo;
253
+ merchantInfo?: SubscriptionMerchantInfo;
254
+ userInfo?: SubscriptionUserInfo;
255
+ paymentInfo?: SubscriptionPaymentInfo;
256
+ requestedAt?: string;
257
+ updatedAt?: string;
258
+ failedReason?: string;
259
+ subscriptionManagementUrl?: string;
260
+ extendInfo?: string;
261
+ paymentDetails?: unknown;
262
+ goodsInfo?: {
263
+ goodsId?: string;
264
+ goodsName?: string;
265
+ goodsCategory?: string;
266
+ goodsUrl?: string;
267
+ [key: string]: unknown;
268
+ };
269
+ addressInfo?: SubscriptionAddressInfo;
249
270
  [key: string]: unknown;
250
271
  }
251
272
  /**
@@ -264,27 +285,26 @@ interface CancelSubscriptionData {
264
285
  subscriptionRequest?: string;
265
286
  merchantSubscriptionId?: string;
266
287
  subscriptionId?: string;
267
- subscriptionStatus?: SubscriptionStatus;
288
+ orderStatus?: string;
268
289
  [key: string]: unknown;
269
290
  }
270
291
  /**
271
292
  * Manage subscription request parameters.
272
293
  */
273
294
  interface ManageSubscriptionParams {
274
- subscriptionId: string;
275
- merchantId: string;
276
- action: SubscriptionManageAction;
277
- newAmount?: string;
278
- newPeriodType?: PeriodType;
279
- newPeriodValue?: number;
280
- requestedAt?: string;
295
+ subscriptionId?: string;
296
+ subscriptionRequest?: string;
281
297
  [key: string]: unknown;
282
298
  }
283
299
  /**
284
300
  * Manage subscription response data.
285
301
  */
286
302
  interface ManageSubscriptionData {
303
+ subscriptionRequest?: string;
304
+ merchantSubscriptionId?: string;
287
305
  subscriptionId?: string;
306
+ managementUrl?: string;
307
+ expiredAt?: string;
288
308
  subscriptionStatus?: SubscriptionStatus;
289
309
  [key: string]: unknown;
290
310
  }
@@ -387,6 +407,39 @@ interface SubscriptionPaymentInfo {
387
407
  payMethodName?: string;
388
408
  [key: string]: unknown;
389
409
  }
410
+ /**
411
+ * Address information for subscription.
412
+ */
413
+ interface SubscriptionAddressInfo {
414
+ shippingAddress?: {
415
+ country?: string;
416
+ state?: string;
417
+ city?: string;
418
+ address1?: string;
419
+ address2?: string;
420
+ postalCode?: string;
421
+ [key: string]: unknown;
422
+ };
423
+ billingAddress?: {
424
+ country?: string;
425
+ state?: string;
426
+ city?: string;
427
+ address1?: string;
428
+ address2?: string;
429
+ postalCode?: string;
430
+ [key: string]: unknown;
431
+ };
432
+ [key: string]: unknown;
433
+ }
434
+ /**
435
+ * Risk data for subscription.
436
+ */
437
+ interface SubscriptionRiskData {
438
+ deviceType?: string;
439
+ deviceId?: string;
440
+ deviceTokenId?: string;
441
+ [key: string]: unknown;
442
+ }
390
443
  /**
391
444
  * Merchant information for subscription.
392
445
  */
@@ -1177,6 +1230,7 @@ interface CreateOrderParams {
1177
1230
  addressInfo?: AddressInfo;
1178
1231
  cardInfo?: CardInfo;
1179
1232
  riskData?: RiskData;
1233
+ paymentTokenData?: PaymentTokenData;
1180
1234
  userCurrency?: string;
1181
1235
  successRedirectUrl?: string;
1182
1236
  failedRedirectUrl?: string;
@@ -1184,7 +1238,6 @@ interface CreateOrderParams {
1184
1238
  orderRequestedAt?: string;
1185
1239
  orderExpiredAt?: string;
1186
1240
  extendInfo?: string;
1187
- metadata?: string;
1188
1241
  [key: string]: unknown;
1189
1242
  }
1190
1243
  /**
@@ -1200,11 +1253,11 @@ interface CreateOrderData {
1200
1253
  }
1201
1254
  /**
1202
1255
  * Inquiry order request parameters.
1256
+ * Provide paymentRequestId or acquiringOrderId.
1203
1257
  */
1204
1258
  interface InquiryOrderParams {
1205
1259
  paymentRequestId?: string;
1206
1260
  acquiringOrderId?: string;
1207
- merchantInfo?: MerchantInfo;
1208
1261
  [key: string]: unknown;
1209
1262
  }
1210
1263
  /**
@@ -1215,13 +1268,27 @@ interface InquiryOrderData {
1215
1268
  merchantOrderId?: string;
1216
1269
  acquiringOrderId?: string;
1217
1270
  orderStatus?: OrderStatus;
1271
+ orderAction?: string;
1218
1272
  orderCurrency?: string;
1219
1273
  orderAmount?: string;
1220
1274
  finalDealAmount?: string;
1275
+ orderDescription?: string;
1276
+ merchantInfo?: MerchantInfo;
1277
+ userInfo?: UserInfo;
1278
+ goodsInfo?: GoodsInfo;
1279
+ paymentInfo?: PaymentInfo;
1280
+ addressInfo?: AddressInfo;
1281
+ orderRequestedAt?: string;
1282
+ orderExpiredAt?: string;
1283
+ orderUpdatedAt?: string;
1284
+ orderCompletedAt?: string;
1221
1285
  /**
1222
1286
  * Refund expiry time (ISO 8601 format).
1223
1287
  */
1224
1288
  refundExpiryAt?: string;
1289
+ orderFailedReason?: string;
1290
+ extendInfo?: string;
1291
+ userCurrency?: string;
1225
1292
  /**
1226
1293
  * The associated subscription info.
1227
1294
  */
@@ -1238,7 +1305,7 @@ interface InquiryOrderData {
1238
1305
  interface CancelOrderParams {
1239
1306
  paymentRequestId?: string;
1240
1307
  acquiringOrderId?: string;
1241
- merchantInfo?: MerchantInfo;
1308
+ merchantId?: string;
1242
1309
  orderRequestedAt?: string;
1243
1310
  [key: string]: unknown;
1244
1311
  }
@@ -1262,10 +1329,11 @@ interface RefundOrderParams {
1262
1329
  merchantRefundOrderId?: string;
1263
1330
  refundAmount: string;
1264
1331
  refundReason: string;
1265
- requestedAt: string;
1332
+ requestedAt?: string;
1266
1333
  refundNotifyUrl?: string;
1267
1334
  userInfo?: RefundUserInfo;
1268
1335
  extendInfo?: string;
1336
+ refundSource?: string;
1269
1337
  [key: string]: unknown;
1270
1338
  }
1271
1339
  /**
@@ -1279,6 +1347,7 @@ interface RefundOrderData {
1279
1347
  refundAmount?: string;
1280
1348
  refundStatus?: RefundStatus$1;
1281
1349
  remainingRefundAmount?: string;
1350
+ refundSource?: string;
1282
1351
  [key: string]: unknown;
1283
1352
  }
1284
1353
  /**
@@ -1288,6 +1357,7 @@ interface CaptureOrderParams {
1288
1357
  paymentRequestId?: string;
1289
1358
  acquiringOrderId?: string;
1290
1359
  merchantId: string;
1360
+ captureRequestedAt?: string;
1291
1361
  captureAmount?: string;
1292
1362
  [key: string]: unknown;
1293
1363
  }
@@ -1337,6 +1407,7 @@ interface PaymentInfo {
1337
1407
  payMethodType?: string;
1338
1408
  payMethodName?: string;
1339
1409
  payMethodProperties?: string;
1410
+ captureMode?: string;
1340
1411
  [key: string]: unknown;
1341
1412
  }
1342
1413
  /**
@@ -1398,6 +1469,13 @@ interface RiskData {
1398
1469
  userIsFirstPurchase?: string;
1399
1470
  [key: string]: unknown;
1400
1471
  }
1472
+ /**
1473
+ * Payment token data.
1474
+ */
1475
+ interface PaymentTokenData {
1476
+ tokenId?: string;
1477
+ [key: string]: unknown;
1478
+ }
1401
1479
  /**
1402
1480
  * Refund user information.
1403
1481
  */
@@ -1663,7 +1741,6 @@ declare class SubscriptionResource extends BaseResource {
1663
1741
  interface InquiryRefundParams {
1664
1742
  refundRequestId?: string;
1665
1743
  acquiringRefundOrderId?: string;
1666
- merchantInfo?: MerchantInfo;
1667
1744
  [key: string]: unknown;
1668
1745
  }
1669
1746
  /**
@@ -1677,13 +1754,18 @@ interface InquiryRefundData {
1677
1754
  acquiringRefundOrderId?: string;
1678
1755
  origPaymentRequestId?: string;
1679
1756
  refundAmount?: string;
1680
- refundCurrency?: string;
1681
1757
  refundStatus?: RefundStatus;
1682
1758
  refundReason?: string;
1683
1759
  refundRequestedAt?: string;
1684
1760
  refundUpdatedAt?: string;
1685
1761
  refundFailedReason?: string;
1686
1762
  extendInfo?: string;
1763
+ userCurrency?: string;
1764
+ finalDealAmount?: string;
1765
+ remainingRefundAmount?: string;
1766
+ userInfo?: RefundUserInfo;
1767
+ refundCompletedAt?: string;
1768
+ refundSource?: string;
1687
1769
  [key: string]: unknown;
1688
1770
  }
1689
1771
  /**
@@ -1740,10 +1822,9 @@ interface InquiryMerchantConfigParams {
1740
1822
  */
1741
1823
  interface InquiryMerchantConfigData {
1742
1824
  merchantId?: string;
1743
- merchantName?: string;
1744
- merchantStatus?: string;
1745
- supportedCurrencies?: string[];
1746
- supportedPayMethods?: PayMethodInfo[];
1825
+ totalDailyLimit?: Record<string, string>;
1826
+ remainingDailyLimit?: Record<string, string>;
1827
+ transactionLimit?: Record<string, string>;
1747
1828
  [key: string]: unknown;
1748
1829
  }
1749
1830
  /**
package/dist/index.d.ts 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,8 @@ 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;
213
216
  [key: string]: unknown;
214
217
  }
215
218
  /**
@@ -219,6 +222,7 @@ interface CreateSubscriptionData {
219
222
  subscriptionRequest?: string;
220
223
  merchantSubscriptionId?: string;
221
224
  subscriptionId?: string;
225
+ payMethodSubscriptionId?: string;
222
226
  subscriptionStatus?: SubscriptionStatus;
223
227
  subscriptionAction?: string;
224
228
  [key: string]: unknown;
@@ -229,7 +233,7 @@ interface CreateSubscriptionData {
229
233
  interface InquirySubscriptionParams {
230
234
  subscriptionRequest?: string;
231
235
  subscriptionId?: string;
232
- merchantInfo?: SubscriptionMerchantInfo;
236
+ paymentDetails?: boolean;
233
237
  [key: string]: unknown;
234
238
  }
235
239
  /**
@@ -246,6 +250,23 @@ interface InquirySubscriptionData {
246
250
  userCurrency?: string;
247
251
  amount?: string;
248
252
  productInfo?: ProductInfo;
253
+ merchantInfo?: SubscriptionMerchantInfo;
254
+ userInfo?: SubscriptionUserInfo;
255
+ paymentInfo?: SubscriptionPaymentInfo;
256
+ requestedAt?: string;
257
+ updatedAt?: string;
258
+ failedReason?: string;
259
+ subscriptionManagementUrl?: string;
260
+ extendInfo?: string;
261
+ paymentDetails?: unknown;
262
+ goodsInfo?: {
263
+ goodsId?: string;
264
+ goodsName?: string;
265
+ goodsCategory?: string;
266
+ goodsUrl?: string;
267
+ [key: string]: unknown;
268
+ };
269
+ addressInfo?: SubscriptionAddressInfo;
249
270
  [key: string]: unknown;
250
271
  }
251
272
  /**
@@ -264,27 +285,26 @@ interface CancelSubscriptionData {
264
285
  subscriptionRequest?: string;
265
286
  merchantSubscriptionId?: string;
266
287
  subscriptionId?: string;
267
- subscriptionStatus?: SubscriptionStatus;
288
+ orderStatus?: string;
268
289
  [key: string]: unknown;
269
290
  }
270
291
  /**
271
292
  * Manage subscription request parameters.
272
293
  */
273
294
  interface ManageSubscriptionParams {
274
- subscriptionId: string;
275
- merchantId: string;
276
- action: SubscriptionManageAction;
277
- newAmount?: string;
278
- newPeriodType?: PeriodType;
279
- newPeriodValue?: number;
280
- requestedAt?: string;
295
+ subscriptionId?: string;
296
+ subscriptionRequest?: string;
281
297
  [key: string]: unknown;
282
298
  }
283
299
  /**
284
300
  * Manage subscription response data.
285
301
  */
286
302
  interface ManageSubscriptionData {
303
+ subscriptionRequest?: string;
304
+ merchantSubscriptionId?: string;
287
305
  subscriptionId?: string;
306
+ managementUrl?: string;
307
+ expiredAt?: string;
288
308
  subscriptionStatus?: SubscriptionStatus;
289
309
  [key: string]: unknown;
290
310
  }
@@ -387,6 +407,39 @@ interface SubscriptionPaymentInfo {
387
407
  payMethodName?: string;
388
408
  [key: string]: unknown;
389
409
  }
410
+ /**
411
+ * Address information for subscription.
412
+ */
413
+ interface SubscriptionAddressInfo {
414
+ shippingAddress?: {
415
+ country?: string;
416
+ state?: string;
417
+ city?: string;
418
+ address1?: string;
419
+ address2?: string;
420
+ postalCode?: string;
421
+ [key: string]: unknown;
422
+ };
423
+ billingAddress?: {
424
+ country?: string;
425
+ state?: string;
426
+ city?: string;
427
+ address1?: string;
428
+ address2?: string;
429
+ postalCode?: string;
430
+ [key: string]: unknown;
431
+ };
432
+ [key: string]: unknown;
433
+ }
434
+ /**
435
+ * Risk data for subscription.
436
+ */
437
+ interface SubscriptionRiskData {
438
+ deviceType?: string;
439
+ deviceId?: string;
440
+ deviceTokenId?: string;
441
+ [key: string]: unknown;
442
+ }
390
443
  /**
391
444
  * Merchant information for subscription.
392
445
  */
@@ -1177,6 +1230,7 @@ interface CreateOrderParams {
1177
1230
  addressInfo?: AddressInfo;
1178
1231
  cardInfo?: CardInfo;
1179
1232
  riskData?: RiskData;
1233
+ paymentTokenData?: PaymentTokenData;
1180
1234
  userCurrency?: string;
1181
1235
  successRedirectUrl?: string;
1182
1236
  failedRedirectUrl?: string;
@@ -1184,7 +1238,6 @@ interface CreateOrderParams {
1184
1238
  orderRequestedAt?: string;
1185
1239
  orderExpiredAt?: string;
1186
1240
  extendInfo?: string;
1187
- metadata?: string;
1188
1241
  [key: string]: unknown;
1189
1242
  }
1190
1243
  /**
@@ -1200,11 +1253,11 @@ interface CreateOrderData {
1200
1253
  }
1201
1254
  /**
1202
1255
  * Inquiry order request parameters.
1256
+ * Provide paymentRequestId or acquiringOrderId.
1203
1257
  */
1204
1258
  interface InquiryOrderParams {
1205
1259
  paymentRequestId?: string;
1206
1260
  acquiringOrderId?: string;
1207
- merchantInfo?: MerchantInfo;
1208
1261
  [key: string]: unknown;
1209
1262
  }
1210
1263
  /**
@@ -1215,13 +1268,27 @@ interface InquiryOrderData {
1215
1268
  merchantOrderId?: string;
1216
1269
  acquiringOrderId?: string;
1217
1270
  orderStatus?: OrderStatus;
1271
+ orderAction?: string;
1218
1272
  orderCurrency?: string;
1219
1273
  orderAmount?: string;
1220
1274
  finalDealAmount?: string;
1275
+ orderDescription?: string;
1276
+ merchantInfo?: MerchantInfo;
1277
+ userInfo?: UserInfo;
1278
+ goodsInfo?: GoodsInfo;
1279
+ paymentInfo?: PaymentInfo;
1280
+ addressInfo?: AddressInfo;
1281
+ orderRequestedAt?: string;
1282
+ orderExpiredAt?: string;
1283
+ orderUpdatedAt?: string;
1284
+ orderCompletedAt?: string;
1221
1285
  /**
1222
1286
  * Refund expiry time (ISO 8601 format).
1223
1287
  */
1224
1288
  refundExpiryAt?: string;
1289
+ orderFailedReason?: string;
1290
+ extendInfo?: string;
1291
+ userCurrency?: string;
1225
1292
  /**
1226
1293
  * The associated subscription info.
1227
1294
  */
@@ -1238,7 +1305,7 @@ interface InquiryOrderData {
1238
1305
  interface CancelOrderParams {
1239
1306
  paymentRequestId?: string;
1240
1307
  acquiringOrderId?: string;
1241
- merchantInfo?: MerchantInfo;
1308
+ merchantId?: string;
1242
1309
  orderRequestedAt?: string;
1243
1310
  [key: string]: unknown;
1244
1311
  }
@@ -1262,10 +1329,11 @@ interface RefundOrderParams {
1262
1329
  merchantRefundOrderId?: string;
1263
1330
  refundAmount: string;
1264
1331
  refundReason: string;
1265
- requestedAt: string;
1332
+ requestedAt?: string;
1266
1333
  refundNotifyUrl?: string;
1267
1334
  userInfo?: RefundUserInfo;
1268
1335
  extendInfo?: string;
1336
+ refundSource?: string;
1269
1337
  [key: string]: unknown;
1270
1338
  }
1271
1339
  /**
@@ -1279,6 +1347,7 @@ interface RefundOrderData {
1279
1347
  refundAmount?: string;
1280
1348
  refundStatus?: RefundStatus$1;
1281
1349
  remainingRefundAmount?: string;
1350
+ refundSource?: string;
1282
1351
  [key: string]: unknown;
1283
1352
  }
1284
1353
  /**
@@ -1288,6 +1357,7 @@ interface CaptureOrderParams {
1288
1357
  paymentRequestId?: string;
1289
1358
  acquiringOrderId?: string;
1290
1359
  merchantId: string;
1360
+ captureRequestedAt?: string;
1291
1361
  captureAmount?: string;
1292
1362
  [key: string]: unknown;
1293
1363
  }
@@ -1337,6 +1407,7 @@ interface PaymentInfo {
1337
1407
  payMethodType?: string;
1338
1408
  payMethodName?: string;
1339
1409
  payMethodProperties?: string;
1410
+ captureMode?: string;
1340
1411
  [key: string]: unknown;
1341
1412
  }
1342
1413
  /**
@@ -1398,6 +1469,13 @@ interface RiskData {
1398
1469
  userIsFirstPurchase?: string;
1399
1470
  [key: string]: unknown;
1400
1471
  }
1472
+ /**
1473
+ * Payment token data.
1474
+ */
1475
+ interface PaymentTokenData {
1476
+ tokenId?: string;
1477
+ [key: string]: unknown;
1478
+ }
1401
1479
  /**
1402
1480
  * Refund user information.
1403
1481
  */
@@ -1663,7 +1741,6 @@ declare class SubscriptionResource extends BaseResource {
1663
1741
  interface InquiryRefundParams {
1664
1742
  refundRequestId?: string;
1665
1743
  acquiringRefundOrderId?: string;
1666
- merchantInfo?: MerchantInfo;
1667
1744
  [key: string]: unknown;
1668
1745
  }
1669
1746
  /**
@@ -1677,13 +1754,18 @@ interface InquiryRefundData {
1677
1754
  acquiringRefundOrderId?: string;
1678
1755
  origPaymentRequestId?: string;
1679
1756
  refundAmount?: string;
1680
- refundCurrency?: string;
1681
1757
  refundStatus?: RefundStatus;
1682
1758
  refundReason?: string;
1683
1759
  refundRequestedAt?: string;
1684
1760
  refundUpdatedAt?: string;
1685
1761
  refundFailedReason?: string;
1686
1762
  extendInfo?: string;
1763
+ userCurrency?: string;
1764
+ finalDealAmount?: string;
1765
+ remainingRefundAmount?: string;
1766
+ userInfo?: RefundUserInfo;
1767
+ refundCompletedAt?: string;
1768
+ refundSource?: string;
1687
1769
  [key: string]: unknown;
1688
1770
  }
1689
1771
  /**
@@ -1740,10 +1822,9 @@ interface InquiryMerchantConfigParams {
1740
1822
  */
1741
1823
  interface InquiryMerchantConfigData {
1742
1824
  merchantId?: string;
1743
- merchantName?: string;
1744
- merchantStatus?: string;
1745
- supportedCurrencies?: string[];
1746
- supportedPayMethods?: PayMethodInfo[];
1825
+ totalDailyLimit?: Record<string, string>;
1826
+ remainingDailyLimit?: Record<string, string>;
1827
+ transactionLimit?: Record<string, string>;
1747
1828
  [key: string]: unknown;
1748
1829
  }
1749
1830
  /**
package/dist/index.js CHANGED
@@ -463,7 +463,7 @@ var HEADER_SDK_VERSION = "x-sdk-version";
463
463
  var HEADER_CONTENT_TYPE = "content-type";
464
464
  var CONTENT_TYPE_JSON = "application/json";
465
465
  var API_VERSION = "1.0.0";
466
- var SDK_VERSION = "waffo-node/2.3.3";
466
+ var SDK_VERSION = "waffo-node/2.4.0";
467
467
  var WaffoHttpClient = class {
468
468
  baseUrl;
469
469
  apiKey;
@@ -884,6 +884,9 @@ var OrderResource = class _OrderResource extends BaseResource {
884
884
  * @throws WaffoUnknownStatusError for network errors
885
885
  */
886
886
  async refund(params, options) {
887
+ if (!params.requestedAt) {
888
+ params.requestedAt = getCurrentTimestamp();
889
+ }
887
890
  return this.httpClient.post(
888
891
  this.getPath(_OrderResource.PATH_REFUND),
889
892
  params,
@@ -1209,7 +1212,7 @@ var Waffo = class _Waffo {
1209
1212
  */
1210
1213
  merchantConfig() {
1211
1214
  if (!this._merchantConfig) {
1212
- this._merchantConfig = new MerchantConfigResource(this.httpClient, "/merchant/config");
1215
+ this._merchantConfig = new MerchantConfigResource(this.httpClient, "/merchantconfig");
1213
1216
  }
1214
1217
  return this._merchantConfig;
1215
1218
  }
@@ -1220,7 +1223,7 @@ var Waffo = class _Waffo {
1220
1223
  */
1221
1224
  payMethodConfig() {
1222
1225
  if (!this._payMethodConfig) {
1223
- this._payMethodConfig = new PayMethodConfigResource(this.httpClient, "/paymethod/config");
1226
+ this._payMethodConfig = new PayMethodConfigResource(this.httpClient, "/paymethodconfig");
1224
1227
  }
1225
1228
  return this._payMethodConfig;
1226
1229
  }