@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
@@ -0,0 +1,10 @@
1
+ import { Status } from '../../enums/index.js';
2
+ import type { IImportMetaResponse } from '../shared/index.js';
3
+ export interface IDiscountGroupResponse {
4
+ id: string;
5
+ name: string;
6
+ status: Status;
7
+ created_at: string;
8
+ updated_at: string;
9
+ import_meta: IImportMetaResponse | null;
10
+ }
@@ -0,0 +1 @@
1
+ export * from './discount-group-response.js';
@@ -1,4 +1,4 @@
1
- import { type EventName, type IAddressNotificationResponse, type IAdjustmentNotificationResponse, type IBusinessNotificationResponse, type ICustomerNotificationResponse, type IDiscountNotificationResponse, type IPaymentMethodNotificationResponse, type IPaymentMethodDeletedNotificationResponse, type IPayoutNotificationResponse, type IPriceNotificationResponse, type IProductNotificationResponse, type IReportNotificationResponse, type ISubscriptionCreatedNotificationResponse, type ISubscriptionNotificationResponse, type ITransactionNotificationResponse } from '../../notifications/index.js';
1
+ import { type EventName, type IAddressNotificationResponse, type IAdjustmentNotificationResponse, type IApiKeyNotificationResponse, type IBusinessNotificationResponse, type ICustomerNotificationResponse, type IDiscountGroupNotificationResponse, type IDiscountNotificationResponse, type IPaymentMethodDeletedNotificationResponse, type IPaymentMethodNotificationResponse, type IPayoutNotificationResponse, type IPriceNotificationResponse, type IProductNotificationResponse, type IReportNotificationResponse, type ISubscriptionCreatedNotificationResponse, type ISubscriptionNotificationResponse, type ITransactionNotificationResponse } from '../../notifications/index.js';
2
2
  export interface IEventsResponse<T = object> {
3
3
  event_id: string;
4
4
  notification_id: string | null;
@@ -21,6 +21,21 @@ interface IAdjustmentCreated extends IEventsResponse<IAdjustmentNotificationResp
21
21
  interface IAdjustmentUpdated extends IEventsResponse<IAdjustmentNotificationResponse> {
22
22
  event_type: EventName.AdjustmentUpdated;
23
23
  }
24
+ interface IApiKeyCreated extends IEventsResponse<IApiKeyNotificationResponse> {
25
+ event_type: EventName.ApiKeyCreated;
26
+ }
27
+ interface IApiKeyExpired extends IEventsResponse<IApiKeyNotificationResponse> {
28
+ event_type: EventName.ApiKeyExpired;
29
+ }
30
+ interface IApiKeyExpiring extends IEventsResponse<IApiKeyNotificationResponse> {
31
+ event_type: EventName.ApiKeyExpiring;
32
+ }
33
+ interface IApiKeyRevoked extends IEventsResponse<IApiKeyNotificationResponse> {
34
+ event_type: EventName.ApiKeyRevoked;
35
+ }
36
+ interface IApiKeyUpdated extends IEventsResponse<IApiKeyNotificationResponse> {
37
+ event_type: EventName.ApiKeyUpdated;
38
+ }
24
39
  interface IBusinessCreated extends IEventsResponse<IBusinessNotificationResponse> {
25
40
  event_type: EventName.BusinessCreated;
26
41
  }
@@ -48,6 +63,9 @@ interface IDiscountUpdated extends IEventsResponse<IDiscountNotificationResponse
48
63
  interface IDiscountImported extends IEventsResponse<IDiscountNotificationResponse> {
49
64
  event_type: EventName.DiscountImported;
50
65
  }
66
+ interface IDiscountGroupCreated extends IEventsResponse<IDiscountGroupNotificationResponse> {
67
+ event_type: EventName.DiscountGroupCreated;
68
+ }
51
69
  interface IPaymentMethodDeleted extends IEventsResponse<IPaymentMethodDeletedNotificationResponse> {
52
70
  event_type: EventName.PaymentMethodDeleted;
53
71
  }
@@ -141,5 +159,5 @@ interface IReportCreated extends IEventsResponse<IReportNotificationResponse> {
141
159
  interface IReportUpdated extends IEventsResponse<IReportNotificationResponse> {
142
160
  event_type: EventName.ReportUpdated;
143
161
  }
144
- export type IEvents = IAddressCreated | IAddressUpdated | IAddressImported | IAdjustmentCreated | IAdjustmentUpdated | IBusinessCreated | IBusinessUpdated | IBusinessImported | ICustomerCreated | ICustomerUpdated | ICustomerImported | IDiscountCreated | IDiscountUpdated | IDiscountImported | IPaymentMethodDeleted | IPaymentMethodSaved | IPayoutCreated | IPayoutPaid | IPriceCreated | IPriceUpdated | IPriceImported | IProductCreated | IProductUpdated | IProductImported | ISubscriptionActivated | ISubscriptionCanceled | ISubscriptionCreated | ISubscriptionImported | ISubscriptionPastDue | ISubscriptionPaused | ISubscriptionResumed | ISubscriptionTrialing | ISubscriptionUpdated | ITransactionBilled | ITransactionCanceled | ITransactionCompleted | ITransactionCreated | ITransactionPaid | ITransactionPastDue | ITransactionPaymentFailed | ITransactionReady | ITransactionUpdated | ITransactionRevised | IReportCreated | IReportUpdated;
162
+ export type IEvents = IAddressCreated | IAddressUpdated | IAddressImported | IAdjustmentCreated | IAdjustmentUpdated | IApiKeyCreated | IApiKeyExpired | IApiKeyExpiring | IApiKeyRevoked | IApiKeyUpdated | IBusinessCreated | IBusinessUpdated | IBusinessImported | ICustomerCreated | ICustomerUpdated | ICustomerImported | IDiscountCreated | IDiscountUpdated | IDiscountImported | IDiscountGroupCreated | IPaymentMethodDeleted | IPaymentMethodSaved | IPayoutCreated | IPayoutPaid | IPriceCreated | IPriceUpdated | IPriceImported | IProductCreated | IProductUpdated | IProductImported | ISubscriptionActivated | ISubscriptionCanceled | ISubscriptionCreated | ISubscriptionImported | ISubscriptionPastDue | ISubscriptionPaused | ISubscriptionResumed | ISubscriptionTrialing | ISubscriptionUpdated | ITransactionBilled | ITransactionCanceled | ITransactionCompleted | ITransactionCreated | ITransactionPaid | ITransactionPastDue | ITransactionPaymentFailed | ITransactionReady | ITransactionUpdated | ITransactionRevised | IReportCreated | IReportUpdated;
145
163
  export {};
@@ -9,6 +9,7 @@ export * from './business/index.js';
9
9
  export * from './subscription/index.js';
10
10
  export * from './address/index.js';
11
11
  export * from './discount/index.js';
12
+ export * from './discount-group/index.js';
12
13
  export * from './payment-method/index.js';
13
14
  export * from './pricing-preview/index.js';
14
15
  export * from './events/index.js';
@@ -1,12 +1,14 @@
1
1
  import { type IPaymentCardResponse, type IPayPalResponse } from '../index.js';
2
2
  import { type SavedPaymentMethodType, type SavedPaymentOrigin } from '../../enums/index.js';
3
+ import { IPaymentMethodUnderlyingDetails } from '../shared/index.js';
3
4
  export interface IPaymentMethodResponse {
4
5
  id: string;
5
6
  customer_id: string;
6
7
  address_id: string;
7
8
  type: SavedPaymentMethodType;
8
- card?: IPaymentCardResponse | null;
9
- paypal?: IPayPalResponse | null;
9
+ card: IPaymentCardResponse | null;
10
+ paypal: IPayPalResponse | null;
11
+ underlying_details: IPaymentMethodUnderlyingDetails | null;
10
12
  origin: SavedPaymentOrigin;
11
13
  saved_at: string;
12
14
  updated_at: string;
@@ -31,3 +31,5 @@ export * from './import-meta-response.js';
31
31
  export * from './simulation-event-request.js';
32
32
  export * from './simulation-event-response.js';
33
33
  export * from './simulation-payload.js';
34
+ export * from './payment-method-underlying-details.js';
35
+ export * from './korean-market-underlying-details.js';
@@ -0,0 +1,4 @@
1
+ import { KoreanMarketUnderlyingPaymentMethodType } from '../../enums/index.js';
2
+ export interface IKoreanMarketUnderlyingDetails {
3
+ type: KoreanMarketUnderlyingPaymentMethodType;
4
+ }
@@ -1,6 +1,8 @@
1
1
  import { type PaymentType } from '../../enums/index.js';
2
2
  import { type IPaymentCardResponse } from './payment-card-response.js';
3
+ import { IPaymentMethodUnderlyingDetails } from './payment-method-underlying-details.js';
3
4
  export interface IPaymentMethodDetails {
4
5
  type: PaymentType;
5
- card?: IPaymentCardResponse | null;
6
+ card: IPaymentCardResponse | null;
7
+ underlying_details: IPaymentMethodUnderlyingDetails;
6
8
  }
@@ -0,0 +1,4 @@
1
+ import { IKoreanMarketUnderlyingDetails } from './korean-market-underlying-details.js';
2
+ export interface IPaymentMethodUnderlyingDetails {
3
+ korea_local: IKoreanMarketUnderlyingDetails;
4
+ }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.7.2";
1
+ export declare const SDK_VERSION = "2.8.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paddle/paddle-node-sdk",
3
- "version": "2.7.2",
3
+ "version": "2.8.0",
4
4
  "description": "A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.",
5
5
  "main": "dist/cjs/index.cjs.node.js",
6
6
  "module": "dist/esm/index.esm.node.js",
@@ -29,11 +29,11 @@
29
29
  "@babel/preset-typescript": "^7.23.0",
30
30
  "@eslint/js": "^9.17.0",
31
31
  "@stylistic/eslint-plugin": "^4.0.1",
32
- "@types/jest": "^29.5.6",
32
+ "@types/jest": "^30.0.0",
33
33
  "@types/lodash": "^4.14.202",
34
- "@types/node": "^22.10.2",
34
+ "@types/node": "^24.0.2",
35
35
  "@typescript-eslint/eslint-plugin": "^8.18.1",
36
- "babel-jest": "^29.7.0",
36
+ "babel-jest": "^30.0.0",
37
37
  "dotenv": "^16.3.1",
38
38
  "eslint": "^9.17.0",
39
39
  "eslint-config-standard-with-typescript": "^43.0.1",
@@ -41,7 +41,7 @@
41
41
  "eslint-plugin-n": "^17.15.1 ",
42
42
  "eslint-plugin-promise": "^7.2.1",
43
43
  "globals": "^16.0.0",
44
- "jest": "^29.7.0",
44
+ "jest": "^30.0.0",
45
45
  "prettier": "^3.0.3",
46
46
  "typescript": "^5.2.2",
47
47
  "typescript-eslint": "^8.19.0"