@paddle/paddle-node-sdk 2.7.2 → 2.8.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.
Files changed (201) hide show
  1. package/README.md +1935 -70
  2. package/dist/cjs/entities/discount/discount.js +1 -0
  3. package/dist/cjs/entities/discount-group/discount-group-collection.js +11 -0
  4. package/dist/cjs/entities/discount-group/discount-group.js +15 -0
  5. package/dist/cjs/entities/discount-group/index.js +18 -0
  6. package/dist/cjs/entities/index.js +1 -0
  7. package/dist/cjs/entities/payment-method/payment-method.js +3 -0
  8. package/dist/cjs/entities/shared/index.js +2 -0
  9. package/dist/cjs/entities/shared/korean-market-underlying-details.js +9 -0
  10. package/dist/cjs/entities/shared/payment-method-details.js +4 -0
  11. package/dist/cjs/entities/shared/payment-method-underlying-details.js +12 -0
  12. package/dist/cjs/enums/api-key/api-key-permission.js +2 -0
  13. package/dist/cjs/enums/api-key/api-key-status.js +2 -0
  14. package/dist/cjs/enums/api-key/index.js +18 -0
  15. package/dist/cjs/enums/discount/discount-mode.js +2 -0
  16. package/dist/cjs/enums/discount/index.js +1 -0
  17. package/dist/cjs/enums/index.js +1 -0
  18. package/dist/cjs/enums/shared/index.js +1 -0
  19. package/dist/cjs/enums/shared/korean-market-underlying-payment-method-type.js +2 -0
  20. package/dist/cjs/notifications/entities/api-key/api-key-notification.js +19 -0
  21. package/dist/cjs/notifications/entities/api-key/index.js +17 -0
  22. package/dist/cjs/notifications/entities/discount/discount-notification.js +1 -0
  23. package/dist/cjs/notifications/entities/discount-group/discount-group-notification.js +17 -0
  24. package/dist/cjs/notifications/entities/discount-group/index.js +17 -0
  25. package/dist/cjs/notifications/entities/index.js +2 -0
  26. package/dist/cjs/notifications/entities/shared/index.js +2 -0
  27. package/dist/cjs/notifications/entities/shared/korean-market-underlying-details-notification.js +9 -0
  28. package/dist/cjs/notifications/entities/shared/payment-method-details-notification.js +4 -0
  29. package/dist/cjs/notifications/entities/shared/payment-method-underlying-details-notification.js +12 -0
  30. package/dist/cjs/notifications/events/api-key/api-key-created-event.js +14 -0
  31. package/dist/cjs/notifications/events/api-key/api-key-expired-event.js +14 -0
  32. package/dist/cjs/notifications/events/api-key/api-key-expiring-event.js +14 -0
  33. package/dist/cjs/notifications/events/api-key/api-key-revoked-event.js +14 -0
  34. package/dist/cjs/notifications/events/api-key/api-key-updated-event.js +14 -0
  35. package/dist/cjs/notifications/events/api-key/index.js +21 -0
  36. package/dist/cjs/notifications/events/discount-group/discount-group-created-event.js +14 -0
  37. package/dist/cjs/notifications/events/discount-group/index.js +17 -0
  38. package/dist/cjs/notifications/events/index.js +2 -0
  39. package/dist/cjs/notifications/helpers/types.js +6 -0
  40. package/dist/cjs/notifications/helpers/webhooks.js +12 -0
  41. package/dist/cjs/notifications/types/api-key/api-key-notification-response.js +2 -0
  42. package/dist/cjs/notifications/types/api-key/index.js +17 -0
  43. package/dist/cjs/notifications/types/discount-group/discount-group-notification-response.js +2 -0
  44. package/dist/cjs/notifications/types/discount-group/index.js +17 -0
  45. package/dist/cjs/notifications/types/index.js +2 -0
  46. package/dist/cjs/notifications/types/shared/index.js +2 -0
  47. package/dist/cjs/notifications/types/shared/korean-market-underlying-details-notification.js +2 -0
  48. package/dist/cjs/notifications/types/shared/payment-method-underlying-details-notification.js +2 -0
  49. package/dist/cjs/paddle.js +1 -0
  50. package/dist/cjs/resources/businesses/index.js +2 -2
  51. package/dist/cjs/resources/discount-groups/index.js +47 -0
  52. package/dist/cjs/resources/discount-groups/operations/create-discount-group-request-body.js +2 -0
  53. package/dist/cjs/resources/discount-groups/operations/index.js +18 -0
  54. package/dist/cjs/resources/discount-groups/operations/list-discount-group-query-parameters.js +2 -0
  55. package/dist/cjs/resources/index.js +1 -0
  56. package/dist/cjs/types/discount-group/discount-group-response.js +2 -0
  57. package/dist/cjs/types/discount-group/index.js +17 -0
  58. package/dist/cjs/types/index.js +1 -0
  59. package/dist/cjs/types/shared/index.js +2 -0
  60. package/dist/cjs/types/shared/korean-market-underlying-details.js +2 -0
  61. package/dist/cjs/types/shared/payment-method-underlying-details.js +2 -0
  62. package/dist/cjs/version.js +1 -1
  63. package/dist/esm/entities/discount/discount.js +1 -0
  64. package/dist/esm/entities/discount-group/discount-group-collection.js +7 -0
  65. package/dist/esm/entities/discount-group/discount-group.js +11 -0
  66. package/dist/esm/entities/discount-group/index.js +2 -0
  67. package/dist/esm/entities/index.js +1 -0
  68. package/dist/esm/entities/payment-method/payment-method.js +4 -1
  69. package/dist/esm/entities/shared/index.js +2 -0
  70. package/dist/esm/entities/shared/korean-market-underlying-details.js +5 -0
  71. package/dist/esm/entities/shared/payment-method-details.js +4 -0
  72. package/dist/esm/entities/shared/payment-method-underlying-details.js +8 -0
  73. package/dist/esm/enums/api-key/api-key-permission.js +1 -0
  74. package/dist/esm/enums/api-key/api-key-status.js +1 -0
  75. package/dist/esm/enums/api-key/index.js +2 -0
  76. package/dist/esm/enums/discount/discount-mode.js +1 -0
  77. package/dist/esm/enums/discount/index.js +1 -0
  78. package/dist/esm/enums/index.js +1 -0
  79. package/dist/esm/enums/shared/index.js +1 -0
  80. package/dist/esm/enums/shared/korean-market-underlying-payment-method-type.js +1 -0
  81. package/dist/esm/notifications/entities/api-key/api-key-notification.js +15 -0
  82. package/dist/esm/notifications/entities/api-key/index.js +1 -0
  83. package/dist/esm/notifications/entities/discount/discount-notification.js +1 -0
  84. package/dist/esm/notifications/entities/discount-group/discount-group-notification.js +13 -0
  85. package/dist/esm/notifications/entities/discount-group/index.js +1 -0
  86. package/dist/esm/notifications/entities/index.js +2 -0
  87. package/dist/esm/notifications/entities/shared/index.js +2 -0
  88. package/dist/esm/notifications/entities/shared/korean-market-underlying-details-notification.js +5 -0
  89. package/dist/esm/notifications/entities/shared/payment-method-details-notification.js +4 -0
  90. package/dist/esm/notifications/entities/shared/payment-method-underlying-details-notification.js +8 -0
  91. package/dist/esm/notifications/events/api-key/api-key-created-event.js +10 -0
  92. package/dist/esm/notifications/events/api-key/api-key-expired-event.js +10 -0
  93. package/dist/esm/notifications/events/api-key/api-key-expiring-event.js +10 -0
  94. package/dist/esm/notifications/events/api-key/api-key-revoked-event.js +10 -0
  95. package/dist/esm/notifications/events/api-key/api-key-updated-event.js +10 -0
  96. package/dist/esm/notifications/events/api-key/index.js +5 -0
  97. package/dist/esm/notifications/events/discount-group/discount-group-created-event.js +10 -0
  98. package/dist/esm/notifications/events/discount-group/index.js +1 -0
  99. package/dist/esm/notifications/events/index.js +2 -0
  100. package/dist/esm/notifications/helpers/types.js +6 -0
  101. package/dist/esm/notifications/helpers/webhooks.js +13 -1
  102. package/dist/esm/notifications/types/api-key/api-key-notification-response.js +1 -0
  103. package/dist/esm/notifications/types/api-key/index.js +1 -0
  104. package/dist/esm/notifications/types/discount-group/discount-group-notification-response.js +1 -0
  105. package/dist/esm/notifications/types/discount-group/index.js +1 -0
  106. package/dist/esm/notifications/types/index.js +2 -0
  107. package/dist/esm/notifications/types/shared/index.js +2 -0
  108. package/dist/esm/notifications/types/shared/korean-market-underlying-details-notification.js +1 -0
  109. package/dist/esm/notifications/types/shared/payment-method-underlying-details-notification.js +1 -0
  110. package/dist/esm/paddle.js +2 -1
  111. package/dist/esm/resources/businesses/index.js +2 -2
  112. package/dist/esm/resources/discount-groups/index.js +29 -0
  113. package/dist/esm/resources/discount-groups/operations/create-discount-group-request-body.js +1 -0
  114. package/dist/esm/resources/discount-groups/operations/index.js +2 -0
  115. package/dist/esm/resources/discount-groups/operations/list-discount-group-query-parameters.js +1 -0
  116. package/dist/esm/resources/index.js +1 -0
  117. package/dist/esm/types/discount-group/discount-group-response.js +1 -0
  118. package/dist/esm/types/discount-group/index.js +1 -0
  119. package/dist/esm/types/index.js +1 -0
  120. package/dist/esm/types/shared/index.js +2 -0
  121. package/dist/esm/types/shared/korean-market-underlying-details.js +1 -0
  122. package/dist/esm/types/shared/payment-method-underlying-details.js +1 -0
  123. package/dist/esm/version.js +1 -1
  124. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  125. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  126. package/dist/tsconfig.types.tsbuildinfo +1 -1
  127. package/dist/types/entities/discount/discount.d.ts +2 -1
  128. package/dist/types/entities/discount-group/discount-group-collection.d.ts +6 -0
  129. package/dist/types/entities/discount-group/discount-group.d.ts +12 -0
  130. package/dist/types/entities/discount-group/index.d.ts +2 -0
  131. package/dist/types/entities/index.d.ts +1 -0
  132. package/dist/types/entities/payment-method/payment-method.d.ts +2 -1
  133. package/dist/types/entities/shared/index.d.ts +2 -0
  134. package/dist/types/entities/shared/korean-market-underlying-details.d.ts +6 -0
  135. package/dist/types/entities/shared/payment-method-details.d.ts +2 -0
  136. package/dist/types/entities/shared/payment-method-underlying-details.d.ts +6 -0
  137. package/dist/types/enums/adjustment/adjustment-action.d.ts +1 -1
  138. package/dist/types/enums/api-key/api-key-permission.d.ts +1 -0
  139. package/dist/types/enums/api-key/api-key-status.d.ts +1 -0
  140. package/dist/types/enums/api-key/index.d.ts +2 -0
  141. package/dist/types/enums/discount/discount-mode.d.ts +1 -0
  142. package/dist/types/enums/discount/index.d.ts +1 -0
  143. package/dist/types/enums/index.d.ts +1 -0
  144. package/dist/types/enums/report/report-type.d.ts +1 -1
  145. package/dist/types/enums/shared/available-payment-methods.d.ts +1 -1
  146. package/dist/types/enums/shared/index.d.ts +1 -0
  147. package/dist/types/enums/shared/korean-market-underlying-payment-method-type.d.ts +1 -0
  148. package/dist/types/enums/shared/payment-type.d.ts +1 -1
  149. package/dist/types/notifications/entities/api-key/api-key-notification.d.ts +15 -0
  150. package/dist/types/notifications/entities/api-key/index.d.ts +1 -0
  151. package/dist/types/notifications/entities/discount/discount-notification.d.ts +2 -1
  152. package/dist/types/notifications/entities/discount-group/discount-group-notification.d.ts +12 -0
  153. package/dist/types/notifications/entities/discount-group/index.d.ts +1 -0
  154. package/dist/types/notifications/entities/index.d.ts +2 -0
  155. package/dist/types/notifications/entities/payment-method/payment-method-deleted-notification.d.ts +1 -1
  156. package/dist/types/notifications/entities/shared/index.d.ts +2 -0
  157. package/dist/types/notifications/entities/shared/korean-market-underlying-details-notification.d.ts +6 -0
  158. package/dist/types/notifications/entities/shared/payment-method-details-notification.d.ts +2 -0
  159. package/dist/types/notifications/entities/shared/payment-method-underlying-details-notification.d.ts +6 -0
  160. package/dist/types/notifications/events/api-key/api-key-created-event.d.ts +10 -0
  161. package/dist/types/notifications/events/api-key/api-key-expired-event.d.ts +10 -0
  162. package/dist/types/notifications/events/api-key/api-key-expiring-event.d.ts +10 -0
  163. package/dist/types/notifications/events/api-key/api-key-revoked-event.d.ts +10 -0
  164. package/dist/types/notifications/events/api-key/api-key-updated-event.d.ts +10 -0
  165. package/dist/types/notifications/events/api-key/index.d.ts +5 -0
  166. package/dist/types/notifications/events/discount-group/discount-group-created-event.d.ts +10 -0
  167. package/dist/types/notifications/events/discount-group/index.d.ts +1 -0
  168. package/dist/types/notifications/events/index.d.ts +2 -0
  169. package/dist/types/notifications/helpers/types.d.ts +9 -3
  170. package/dist/types/notifications/types/api-key/api-key-notification-response.d.ts +13 -0
  171. package/dist/types/notifications/types/api-key/index.d.ts +1 -0
  172. package/dist/types/notifications/types/discount/discount-notification-response.d.ts +2 -1
  173. package/dist/types/notifications/types/discount-group/discount-group-notification-response.d.ts +10 -0
  174. package/dist/types/notifications/types/discount-group/index.d.ts +1 -0
  175. package/dist/types/notifications/types/index.d.ts +2 -0
  176. package/dist/types/notifications/types/shared/index.d.ts +2 -0
  177. package/dist/types/notifications/types/shared/korean-market-underlying-details-notification.d.ts +4 -0
  178. package/dist/types/notifications/types/shared/payment-method-details.d.ts +3 -1
  179. package/dist/types/notifications/types/shared/payment-method-underlying-details-notification.d.ts +4 -0
  180. package/dist/types/paddle.d.ts +2 -1
  181. package/dist/types/resources/businesses/index.d.ts +1 -1
  182. package/dist/types/resources/discount-groups/index.d.ts +8 -0
  183. package/dist/types/resources/discount-groups/operations/create-discount-group-request-body.d.ts +3 -0
  184. package/dist/types/resources/discount-groups/operations/index.d.ts +2 -0
  185. package/dist/types/resources/discount-groups/operations/list-discount-group-query-parameters.d.ts +6 -0
  186. package/dist/types/resources/discounts/operations/create-discount-request-body.d.ts +2 -1
  187. package/dist/types/resources/discounts/operations/list-discount-query-parameters.d.ts +2 -1
  188. package/dist/types/resources/discounts/operations/update-discount-request-body.d.ts +2 -1
  189. package/dist/types/resources/index.d.ts +1 -0
  190. package/dist/types/types/discount/discount-response.d.ts +2 -1
  191. package/dist/types/types/discount-group/discount-group-response.d.ts +10 -0
  192. package/dist/types/types/discount-group/index.d.ts +1 -0
  193. package/dist/types/types/events/events-response.d.ts +20 -2
  194. package/dist/types/types/index.d.ts +1 -0
  195. package/dist/types/types/payment-method/payment-method.d.ts +4 -2
  196. package/dist/types/types/shared/index.d.ts +2 -0
  197. package/dist/types/types/shared/korean-market-underlying-details.d.ts +4 -0
  198. package/dist/types/types/shared/payment-method-details.d.ts +3 -1
  199. package/dist/types/types/shared/payment-method-underlying-details.d.ts +4 -0
  200. package/dist/types/version.d.ts +1 -1
  201. package/package.json +5 -5
@@ -10,6 +10,7 @@ class Discount {
10
10
  this.description = discount.description;
11
11
  this.enabledForCheckout = discount.enabled_for_checkout;
12
12
  this.code = discount.code ? discount.code : null;
13
+ this.mode = discount.mode;
13
14
  this.type = discount.type;
14
15
  this.amount = discount.amount;
15
16
  this.currencyCode = discount.currency_code ? discount.currency_code : null;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DiscountGroupCollection = void 0;
4
+ const index_js_1 = require("../../internal/base/index.js");
5
+ const discount_group_js_1 = require("./discount-group.js");
6
+ class DiscountGroupCollection extends index_js_1.Collection {
7
+ fromJson(data) {
8
+ return new discount_group_js_1.DiscountGroup(data);
9
+ }
10
+ }
11
+ exports.DiscountGroupCollection = DiscountGroupCollection;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DiscountGroup = void 0;
4
+ const index_js_1 = require("../index.js");
5
+ class DiscountGroup {
6
+ constructor(discountGroupResponse) {
7
+ this.id = discountGroupResponse.id;
8
+ this.name = discountGroupResponse.name;
9
+ this.status = discountGroupResponse.status;
10
+ this.createdAt = discountGroupResponse.created_at;
11
+ this.updatedAt = discountGroupResponse.updated_at;
12
+ this.importMeta = discountGroupResponse.import_meta ? new index_js_1.ImportMeta(discountGroupResponse.import_meta) : null;
13
+ }
14
+ }
15
+ exports.DiscountGroup = DiscountGroup;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./discount-group.js"), exports);
18
+ __exportStar(require("./discount-group-collection.js"), exports);
@@ -25,6 +25,7 @@ __exportStar(require("./business/index.js"), exports);
25
25
  __exportStar(require("./subscription/index.js"), exports);
26
26
  __exportStar(require("./address/index.js"), exports);
27
27
  __exportStar(require("./discount/index.js"), exports);
28
+ __exportStar(require("./discount-group/index.js"), exports);
28
29
  __exportStar(require("./events/index.js"), exports);
29
30
  __exportStar(require("./payment-method/index.js"), exports);
30
31
  __exportStar(require("./payout/index.js"), exports);
@@ -10,6 +10,9 @@ class PaymentMethod {
10
10
  this.type = paymentMethodResponse.type;
11
11
  this.card = paymentMethodResponse.card ? new index_js_1.PaymentCard(paymentMethodResponse.card) : null;
12
12
  this.paypal = paymentMethodResponse.paypal ? new index_js_1.PayPal(paymentMethodResponse.paypal) : null;
13
+ this.underlyingDetails = paymentMethodResponse.underlying_details
14
+ ? new index_js_1.PaymentMethodUnderlyingDetails(paymentMethodResponse.underlying_details)
15
+ : null;
13
16
  this.origin = paymentMethodResponse.origin;
14
17
  this.savedAt = paymentMethodResponse.saved_at;
15
18
  this.updatedAt = paymentMethodResponse.updated_at;
@@ -37,3 +37,5 @@ __exportStar(require("./payout-totals-adjustment.js"), exports);
37
37
  __exportStar(require("./import-meta.js"), exports);
38
38
  __exportStar(require("./simulation-event-request.js"), exports);
39
39
  __exportStar(require("./simulation-event-response.js"), exports);
40
+ __exportStar(require("./payment-method-underlying-details.js"), exports);
41
+ __exportStar(require("./korean-market-underlying-details.js"), exports);
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KoreanMarketUnderlyingDetails = void 0;
4
+ class KoreanMarketUnderlyingDetails {
5
+ constructor(koreanMarketUnderlyingDetails) {
6
+ this.type = koreanMarketUnderlyingDetails.type;
7
+ }
8
+ }
9
+ exports.KoreanMarketUnderlyingDetails = KoreanMarketUnderlyingDetails;
@@ -2,10 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PaymentMethodDetails = void 0;
4
4
  const payment_card_js_1 = require("./payment-card.js");
5
+ const payment_method_underlying_details_js_1 = require("./payment-method-underlying-details.js");
5
6
  class PaymentMethodDetails {
6
7
  constructor(paymentMethodDetails) {
7
8
  this.type = paymentMethodDetails.type;
8
9
  this.card = paymentMethodDetails.card ? new payment_card_js_1.PaymentCard(paymentMethodDetails.card) : null;
10
+ this.underlyingDetails = paymentMethodDetails.underlying_details
11
+ ? new payment_method_underlying_details_js_1.PaymentMethodUnderlyingDetails(paymentMethodDetails.underlying_details)
12
+ : null;
9
13
  }
10
14
  }
11
15
  exports.PaymentMethodDetails = PaymentMethodDetails;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentMethodUnderlyingDetails = void 0;
4
+ const korean_market_underlying_details_js_1 = require("./korean-market-underlying-details.js");
5
+ class PaymentMethodUnderlyingDetails {
6
+ constructor(paymentMethodUnderlyingDetails) {
7
+ this.koreaLocal = paymentMethodUnderlyingDetails.korea_local
8
+ ? new korean_market_underlying_details_js_1.KoreanMarketUnderlyingDetails(paymentMethodUnderlyingDetails.korea_local)
9
+ : null;
10
+ }
11
+ }
12
+ exports.PaymentMethodUnderlyingDetails = PaymentMethodUnderlyingDetails;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api-key-status.js"), exports);
18
+ __exportStar(require("./api-key-permission.js"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./discount-status.js"), exports);
18
18
  __exportStar(require("./discount-type.js"), exports);
19
+ __exportStar(require("./discount-mode.js"), exports);
@@ -28,3 +28,4 @@ __exportStar(require("./simulation-type/index.js"), exports);
28
28
  __exportStar(require("./simulation/index.js"), exports);
29
29
  __exportStar(require("./simulation-run/index.js"), exports);
30
30
  __exportStar(require("./simulation-run-event/index.js"), exports);
31
+ __exportStar(require("./api-key/index.js"), exports);
@@ -30,3 +30,4 @@ __exportStar(require("./payment-type.js"), exports);
30
30
  __exportStar(require("./catalog-type.js"), exports);
31
31
  __exportStar(require("./available-payment-methods.js"), exports);
32
32
  __exportStar(require("./disposition.js"), exports);
33
+ __exportStar(require("./korean-market-underlying-payment-method-type.js"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiKeyNotification = void 0;
4
+ class ApiKeyNotification {
5
+ constructor(apiKey) {
6
+ var _a, _b, _c;
7
+ this.id = apiKey.id;
8
+ this.name = apiKey.name;
9
+ this.description = (_a = apiKey.description) !== null && _a !== void 0 ? _a : null;
10
+ this.key = apiKey.key;
11
+ this.status = apiKey.status;
12
+ this.permissions = apiKey.permissions;
13
+ this.expiresAt = (_b = apiKey.expires_at) !== null && _b !== void 0 ? _b : null;
14
+ this.lastUsedAt = (_c = apiKey.last_used_at) !== null && _c !== void 0 ? _c : null;
15
+ this.createdAt = apiKey.created_at;
16
+ this.updatedAt = apiKey.updated_at;
17
+ }
18
+ }
19
+ exports.ApiKeyNotification = ApiKeyNotification;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api-key-notification.js"), exports);
@@ -10,6 +10,7 @@ class DiscountNotification {
10
10
  this.description = discount.description;
11
11
  this.enabledForCheckout = discount.enabled_for_checkout;
12
12
  this.code = discount.code ? discount.code : null;
13
+ this.mode = discount.mode ? discount.mode : null;
13
14
  this.type = discount.type;
14
15
  this.amount = discount.amount;
15
16
  this.currencyCode = discount.currency_code ? discount.currency_code : null;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DiscountGroupNotification = void 0;
4
+ const index_js_1 = require("../shared/index.js");
5
+ class DiscountGroupNotification {
6
+ constructor(discountGroupResponse) {
7
+ this.id = discountGroupResponse.id;
8
+ this.name = discountGroupResponse.name;
9
+ this.status = discountGroupResponse.status;
10
+ this.createdAt = discountGroupResponse.created_at;
11
+ this.updatedAt = discountGroupResponse.updated_at;
12
+ this.importMeta = discountGroupResponse.import_meta
13
+ ? new index_js_1.ImportMetaNotification(discountGroupResponse.import_meta)
14
+ : null;
15
+ }
16
+ }
17
+ exports.DiscountGroupNotification = DiscountGroupNotification;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./discount-group-notification.js"), exports);
@@ -23,7 +23,9 @@ __exportStar(require("./business/index.js"), exports);
23
23
  __exportStar(require("./subscription/index.js"), exports);
24
24
  __exportStar(require("./address/index.js"), exports);
25
25
  __exportStar(require("./discount/index.js"), exports);
26
+ __exportStar(require("./discount-group/index.js"), exports);
26
27
  __exportStar(require("./payment-method/index.js"), exports);
27
28
  __exportStar(require("./payout/index.js"), exports);
28
29
  __exportStar(require("./report/index.js"), exports);
29
30
  __exportStar(require("./shared/index.js"), exports);
31
+ __exportStar(require("./api-key/index.js"), exports);
@@ -34,3 +34,5 @@ __exportStar(require("./transaction-checkout-notification.js"), exports);
34
34
  __exportStar(require("./total-adjustments-notification.js"), exports);
35
35
  __exportStar(require("./payout-totals-adjustment-notification.js"), exports);
36
36
  __exportStar(require("./import-meta-notification.js"), exports);
37
+ __exportStar(require("./korean-market-underlying-details-notification.js"), exports);
38
+ __exportStar(require("./payment-method-underlying-details-notification.js"), exports);
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KoreanMarketUnderlyingDetailsNotification = void 0;
4
+ class KoreanMarketUnderlyingDetailsNotification {
5
+ constructor(koreanMarketUnderlyingDetails) {
6
+ this.type = koreanMarketUnderlyingDetails.type;
7
+ }
8
+ }
9
+ exports.KoreanMarketUnderlyingDetailsNotification = KoreanMarketUnderlyingDetailsNotification;
@@ -2,10 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PaymentMethodDetailsNotification = void 0;
4
4
  const payment_card_notification_js_1 = require("./payment-card-notification.js");
5
+ const payment_method_underlying_details_notification_js_1 = require("./payment-method-underlying-details-notification.js");
5
6
  class PaymentMethodDetailsNotification {
6
7
  constructor(paymentMethodDetails) {
7
8
  this.type = paymentMethodDetails.type;
8
9
  this.card = paymentMethodDetails.card ? new payment_card_notification_js_1.PaymentCardNotification(paymentMethodDetails.card) : null;
10
+ this.underlyingDetails = paymentMethodDetails.underlying_details
11
+ ? new payment_method_underlying_details_notification_js_1.PaymentMethodUnderlyingDetailsNotification(paymentMethodDetails.underlying_details)
12
+ : null;
9
13
  }
10
14
  }
11
15
  exports.PaymentMethodDetailsNotification = PaymentMethodDetailsNotification;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentMethodUnderlyingDetailsNotification = void 0;
4
+ const korean_market_underlying_details_notification_js_1 = require("./korean-market-underlying-details-notification.js");
5
+ class PaymentMethodUnderlyingDetailsNotification {
6
+ constructor(paymentMethodUnderlyingDetails) {
7
+ this.koreaLocal = paymentMethodUnderlyingDetails.korea_local
8
+ ? new korean_market_underlying_details_notification_js_1.KoreanMarketUnderlyingDetailsNotification(paymentMethodUnderlyingDetails.korea_local)
9
+ : null;
10
+ }
11
+ }
12
+ exports.PaymentMethodUnderlyingDetailsNotification = PaymentMethodUnderlyingDetailsNotification;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiKeyCreatedEvent = void 0;
4
+ const event_js_1 = require("../../../entities/events/event.js");
5
+ const index_js_1 = require("../../helpers/index.js");
6
+ const index_js_2 = require("../../entities/index.js");
7
+ class ApiKeyCreatedEvent extends event_js_1.Event {
8
+ constructor(response) {
9
+ super(response);
10
+ this.eventType = index_js_1.EventName.ApiKeyCreated;
11
+ this.data = new index_js_2.ApiKeyNotification(response.data);
12
+ }
13
+ }
14
+ exports.ApiKeyCreatedEvent = ApiKeyCreatedEvent;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiKeyExpiredEvent = void 0;
4
+ const event_js_1 = require("../../../entities/events/event.js");
5
+ const index_js_1 = require("../../helpers/index.js");
6
+ const index_js_2 = require("../../entities/index.js");
7
+ class ApiKeyExpiredEvent extends event_js_1.Event {
8
+ constructor(response) {
9
+ super(response);
10
+ this.eventType = index_js_1.EventName.ApiKeyExpired;
11
+ this.data = new index_js_2.ApiKeyNotification(response.data);
12
+ }
13
+ }
14
+ exports.ApiKeyExpiredEvent = ApiKeyExpiredEvent;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiKeyExpiringEvent = void 0;
4
+ const event_js_1 = require("../../../entities/events/event.js");
5
+ const index_js_1 = require("../../helpers/index.js");
6
+ const index_js_2 = require("../../entities/index.js");
7
+ class ApiKeyExpiringEvent extends event_js_1.Event {
8
+ constructor(response) {
9
+ super(response);
10
+ this.eventType = index_js_1.EventName.ApiKeyExpiring;
11
+ this.data = new index_js_2.ApiKeyNotification(response.data);
12
+ }
13
+ }
14
+ exports.ApiKeyExpiringEvent = ApiKeyExpiringEvent;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiKeyRevokedEvent = void 0;
4
+ const event_js_1 = require("../../../entities/events/event.js");
5
+ const index_js_1 = require("../../helpers/index.js");
6
+ const index_js_2 = require("../../entities/index.js");
7
+ class ApiKeyRevokedEvent extends event_js_1.Event {
8
+ constructor(response) {
9
+ super(response);
10
+ this.eventType = index_js_1.EventName.ApiKeyRevoked;
11
+ this.data = new index_js_2.ApiKeyNotification(response.data);
12
+ }
13
+ }
14
+ exports.ApiKeyRevokedEvent = ApiKeyRevokedEvent;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiKeyUpdatedEvent = void 0;
4
+ const event_js_1 = require("../../../entities/events/event.js");
5
+ const index_js_1 = require("../../helpers/index.js");
6
+ const index_js_2 = require("../../entities/index.js");
7
+ class ApiKeyUpdatedEvent extends event_js_1.Event {
8
+ constructor(response) {
9
+ super(response);
10
+ this.eventType = index_js_1.EventName.ApiKeyUpdated;
11
+ this.data = new index_js_2.ApiKeyNotification(response.data);
12
+ }
13
+ }
14
+ exports.ApiKeyUpdatedEvent = ApiKeyUpdatedEvent;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api-key-created-event.js"), exports);
18
+ __exportStar(require("./api-key-expired-event.js"), exports);
19
+ __exportStar(require("./api-key-expiring-event.js"), exports);
20
+ __exportStar(require("./api-key-revoked-event.js"), exports);
21
+ __exportStar(require("./api-key-updated-event.js"), exports);
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DiscountGroupCreatedEvent = void 0;
4
+ const event_js_1 = require("../../../entities/events/event.js");
5
+ const index_js_1 = require("../../helpers/index.js");
6
+ const index_js_2 = require("../../entities/index.js");
7
+ class DiscountGroupCreatedEvent extends event_js_1.Event {
8
+ constructor(response) {
9
+ super(response);
10
+ this.eventType = index_js_1.EventName.DiscountGroupCreated;
11
+ this.data = new index_js_2.DiscountGroupNotification(response.data);
12
+ }
13
+ }
14
+ exports.DiscountGroupCreatedEvent = DiscountGroupCreatedEvent;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./discount-group-created-event.js"), exports);
@@ -19,6 +19,7 @@ __exportStar(require("./adjustment/index.js"), exports);
19
19
  __exportStar(require("./business/index.js"), exports);
20
20
  __exportStar(require("./customer/index.js"), exports);
21
21
  __exportStar(require("./discount/index.js"), exports);
22
+ __exportStar(require("./discount-group/index.js"), exports);
22
23
  __exportStar(require("./generic/index.js"), exports);
23
24
  __exportStar(require("./payment-method/index.js"), exports);
24
25
  __exportStar(require("./payout/index.js"), exports);
@@ -27,3 +28,4 @@ __exportStar(require("./product/index.js"), exports);
27
28
  __exportStar(require("./subscription/index.js"), exports);
28
29
  __exportStar(require("./transaction/index.js"), exports);
29
30
  __exportStar(require("./report/index.js"), exports);
31
+ __exportStar(require("./api-key/index.js"), exports);
@@ -8,6 +8,11 @@ var EventName;
8
8
  EventName["AddressImported"] = "address.imported";
9
9
  EventName["AdjustmentCreated"] = "adjustment.created";
10
10
  EventName["AdjustmentUpdated"] = "adjustment.updated";
11
+ EventName["ApiKeyCreated"] = "api_key.created";
12
+ EventName["ApiKeyUpdated"] = "api_key.updated";
13
+ EventName["ApiKeyExpiring"] = "api_key.expiring";
14
+ EventName["ApiKeyExpired"] = "api_key.expired";
15
+ EventName["ApiKeyRevoked"] = "api_key.revoked";
11
16
  EventName["BusinessCreated"] = "business.created";
12
17
  EventName["BusinessImported"] = "business.imported";
13
18
  EventName["BusinessUpdated"] = "business.updated";
@@ -17,6 +22,7 @@ var EventName;
17
22
  EventName["DiscountCreated"] = "discount.created";
18
23
  EventName["DiscountUpdated"] = "discount.updated";
19
24
  EventName["DiscountImported"] = "discount.imported";
25
+ EventName["DiscountGroupCreated"] = "discount_group.created";
20
26
  EventName["PaymentMethodDeleted"] = "payment_method.deleted";
21
27
  EventName["PaymentMethodSaved"] = "payment_method.saved";
22
28
  EventName["PayoutCreated"] = "payout.created";
@@ -44,6 +44,16 @@ class Webhooks {
44
44
  return new index_js_1.AdjustmentCreatedEvent(data);
45
45
  case types_js_1.EventName.AdjustmentUpdated:
46
46
  return new index_js_1.AdjustmentUpdatedEvent(data);
47
+ case types_js_1.EventName.ApiKeyCreated:
48
+ return new index_js_1.ApiKeyCreatedEvent(data);
49
+ case types_js_1.EventName.ApiKeyExpired:
50
+ return new index_js_1.ApiKeyExpiredEvent(data);
51
+ case types_js_1.EventName.ApiKeyExpiring:
52
+ return new index_js_1.ApiKeyExpiringEvent(data);
53
+ case types_js_1.EventName.ApiKeyRevoked:
54
+ return new index_js_1.ApiKeyRevokedEvent(data);
55
+ case types_js_1.EventName.ApiKeyUpdated:
56
+ return new index_js_1.ApiKeyUpdatedEvent(data);
47
57
  case types_js_1.EventName.BusinessCreated:
48
58
  return new index_js_1.BusinessCreatedEvent(data);
49
59
  case types_js_1.EventName.BusinessUpdated:
@@ -62,6 +72,8 @@ class Webhooks {
62
72
  return new index_js_1.DiscountImportedEvent(data);
63
73
  case types_js_1.EventName.DiscountUpdated:
64
74
  return new index_js_1.DiscountUpdatedEvent(data);
75
+ case types_js_1.EventName.DiscountGroupCreated:
76
+ return new index_js_1.DiscountGroupCreatedEvent(data);
65
77
  case types_js_1.EventName.PaymentMethodDeleted:
66
78
  return new index_js_1.PaymentMethodDeletedEvent(data);
67
79
  case types_js_1.EventName.PaymentMethodSaved:
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api-key-notification-response.js"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./discount-group-notification-response.js"), exports);
@@ -23,7 +23,9 @@ __exportStar(require("./business/index.js"), exports);
23
23
  __exportStar(require("./subscription/index.js"), exports);
24
24
  __exportStar(require("./address/index.js"), exports);
25
25
  __exportStar(require("./discount/index.js"), exports);
26
+ __exportStar(require("./discount-group/index.js"), exports);
26
27
  __exportStar(require("./payment-method/index.js"), exports);
27
28
  __exportStar(require("./payout/index.js"), exports);
28
29
  __exportStar(require("./report/index.js"), exports);
29
30
  __exportStar(require("./shared/index.js"), exports);
31
+ __exportStar(require("./api-key/index.js"), exports);
@@ -36,3 +36,5 @@ __exportStar(require("./transaction-checkout-notification.js"), exports);
36
36
  __exportStar(require("./total-adjustments-notification-response.js"), exports);
37
37
  __exportStar(require("./payout-totals-adjustment-notification-response.js"), exports);
38
38
  __exportStar(require("./import-meta-notification-response.js"), exports);
39
+ __exportStar(require("./korean-market-underlying-details-notification.js"), exports);
40
+ __exportStar(require("./payment-method-underlying-details-notification.js"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -22,6 +22,7 @@ class Paddle {
22
22
  this.addresses = new index_js_2.AddressesResource(this.client);
23
23
  this.businesses = new index_js_2.BusinessesResource(this.client);
24
24
  this.discounts = new index_js_2.DiscountsResource(this.client);
25
+ this.discountGroups = new index_js_2.DiscountGroupsResource(this.client);
25
26
  this.subscriptions = new index_js_2.SubscriptionsResource(this.client);
26
27
  this.paymentMethods = new index_js_2.PaymentMethodsResource(this.client);
27
28
  this.pricingPreview = new index_js_2.PricingPreviewResource(this.client);
@@ -73,9 +73,9 @@ class BusinessesResource extends index_js_1.BaseResource {
73
73
  return new index_js_2.Business(data);
74
74
  });
75
75
  }
76
- archive(customerId, addressId) {
76
+ archive(customerId, businessId) {
77
77
  return __awaiter(this, void 0, void 0, function* () {
78
- return yield this.update(customerId, addressId, { status: 'archived' });
78
+ return yield this.update(customerId, businessId, { status: 'archived' });
79
79
  });
80
80
  }
81
81
  }