@paddle/paddle-node-sdk 3.3.0 → 3.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/dist/cjs/entities/payment-method/payment-method.js +4 -0
- package/dist/cjs/entities/price/price.js +1 -1
- package/dist/cjs/entities/shared/index.js +2 -0
- package/dist/cjs/entities/shared/payment-method-details.js +5 -0
- package/dist/cjs/entities/shared/south-korea-local-card.js +12 -0
- package/dist/cjs/entities/shared/trial-period.js +14 -0
- package/dist/cjs/enums/shared/index.js +1 -0
- package/dist/cjs/enums/shared/south-korea-local-card-type.js +2 -0
- package/dist/cjs/notifications/entities/payout/payout-notification.js +2 -0
- package/dist/cjs/notifications/entities/price/price-notification.js +1 -1
- package/dist/cjs/notifications/entities/shared/index.js +2 -0
- package/dist/cjs/notifications/entities/shared/payment-method-details-notification.js +5 -0
- package/dist/cjs/notifications/entities/shared/south-korea-local-card-notification.js +12 -0
- package/dist/cjs/notifications/entities/shared/trial-period-notification.js +14 -0
- package/dist/cjs/notifications/entities/subscription/subscription-price-notification.js +1 -1
- package/dist/cjs/notifications/types/shared/index.js +3 -0
- package/dist/cjs/notifications/types/shared/south-korea-local-card-notification-response.js +2 -0
- package/dist/cjs/notifications/types/shared/trial-period-notification-response.js +2 -0
- package/dist/cjs/notifications/types/shared/trial-period-notification.js +2 -0
- package/dist/cjs/types/shared/index.js +3 -0
- package/dist/cjs/types/shared/south-korea-local-card-response.js +2 -0
- package/dist/cjs/types/shared/trial-period-response.js +2 -0
- package/dist/cjs/types/shared/trial-period.js +2 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/entities/payment-method/payment-method.js +5 -1
- package/dist/esm/entities/price/price.js +2 -2
- package/dist/esm/entities/shared/index.js +2 -0
- package/dist/esm/entities/shared/payment-method-details.js +5 -0
- package/dist/esm/entities/shared/south-korea-local-card.js +8 -0
- package/dist/esm/entities/shared/trial-period.js +10 -0
- package/dist/esm/enums/shared/index.js +1 -0
- package/dist/esm/enums/shared/south-korea-local-card-type.js +1 -0
- package/dist/esm/notifications/entities/payout/payout-notification.js +2 -0
- package/dist/esm/notifications/entities/price/price-notification.js +2 -2
- package/dist/esm/notifications/entities/shared/index.js +2 -0
- package/dist/esm/notifications/entities/shared/payment-method-details-notification.js +5 -0
- package/dist/esm/notifications/entities/shared/south-korea-local-card-notification.js +8 -0
- package/dist/esm/notifications/entities/shared/trial-period-notification.js +10 -0
- package/dist/esm/notifications/entities/subscription/subscription-price-notification.js +2 -2
- package/dist/esm/notifications/types/shared/index.js +3 -0
- package/dist/esm/notifications/types/shared/south-korea-local-card-notification-response.js +1 -0
- package/dist/esm/notifications/types/shared/trial-period-notification-response.js +1 -0
- package/dist/esm/notifications/types/shared/trial-period-notification.js +1 -0
- package/dist/esm/types/shared/index.js +3 -0
- package/dist/esm/types/shared/south-korea-local-card-response.js +1 -0
- package/dist/esm/types/shared/trial-period-response.js +1 -0
- package/dist/esm/types/shared/trial-period.js +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/entities/payment-method/payment-method.d.ts +2 -1
- package/dist/types/entities/price/price.d.ts +2 -2
- package/dist/types/entities/shared/index.d.ts +2 -0
- package/dist/types/entities/shared/payment-method-details.d.ts +2 -0
- package/dist/types/entities/shared/south-korea-local-card.d.ts +7 -0
- package/dist/types/entities/shared/trial-period.d.ts +8 -0
- package/dist/types/enums/payment-method/type.d.ts +1 -1
- package/dist/types/enums/report/report-filter-name.d.ts +1 -1
- package/dist/types/enums/report/report-type.d.ts +1 -1
- package/dist/types/enums/shared/available-payment-methods.d.ts +1 -1
- package/dist/types/enums/shared/index.d.ts +1 -0
- package/dist/types/enums/shared/payment-type.d.ts +1 -1
- package/dist/types/enums/shared/south-korea-local-card-type.d.ts +1 -0
- package/dist/types/enums/shared/tax-mode.d.ts +1 -1
- package/dist/types/notifications/entities/payout/payout-notification.d.ts +1 -0
- package/dist/types/notifications/entities/price/price-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/index.d.ts +2 -0
- package/dist/types/notifications/entities/shared/payment-method-details-notification.d.ts +2 -0
- package/dist/types/notifications/entities/shared/south-korea-local-card-notification.d.ts +7 -0
- package/dist/types/notifications/entities/shared/trial-period-notification.d.ts +8 -0
- package/dist/types/notifications/entities/subscription/subscription-price-notification.d.ts +2 -2
- package/dist/types/notifications/types/payout/payout-notification-response.d.ts +1 -0
- package/dist/types/notifications/types/price/price-notification-response.d.ts +2 -2
- package/dist/types/notifications/types/shared/index.d.ts +3 -0
- package/dist/types/notifications/types/shared/payment-method-details.d.ts +2 -0
- package/dist/types/notifications/types/shared/shared-price-notification-response.d.ts +2 -1
- package/dist/types/notifications/types/shared/south-korea-local-card-notification-response.d.ts +5 -0
- package/dist/types/notifications/types/shared/trial-period-notification-response.d.ts +4 -0
- package/dist/types/notifications/types/shared/trial-period-notification.d.ts +4 -0
- package/dist/types/notifications/types/subscription/subscription-price-notification-response.d.ts +2 -2
- package/dist/types/resources/prices/operations/create-price-request-body.d.ts +2 -2
- package/dist/types/resources/prices/operations/update-price-request-body.d.ts +2 -2
- package/dist/types/types/payment-method/payment-method.d.ts +2 -1
- package/dist/types/types/price/non-catalog-price-request.d.ts +2 -2
- package/dist/types/types/price/price-response.d.ts +2 -2
- package/dist/types/types/shared/index.d.ts +3 -0
- package/dist/types/types/shared/payment-method-details.d.ts +2 -0
- package/dist/types/types/shared/south-korea-local-card-response.d.ts +5 -0
- package/dist/types/types/shared/trial-period-response.d.ts +4 -0
- package/dist/types/types/shared/trial-period.d.ts +4 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ class PaymentMethod {
|
|
|
9
9
|
type;
|
|
10
10
|
card;
|
|
11
11
|
paypal;
|
|
12
|
+
southKoreaLocalCard;
|
|
12
13
|
underlyingDetails;
|
|
13
14
|
origin;
|
|
14
15
|
savedAt;
|
|
@@ -20,6 +21,9 @@ class PaymentMethod {
|
|
|
20
21
|
this.type = paymentMethodResponse.type;
|
|
21
22
|
this.card = paymentMethodResponse.card ? new index_js_1.PaymentCard(paymentMethodResponse.card) : null;
|
|
22
23
|
this.paypal = paymentMethodResponse.paypal ? new index_js_1.PayPal(paymentMethodResponse.paypal) : null;
|
|
24
|
+
this.southKoreaLocalCard = paymentMethodResponse.south_korea_local_card
|
|
25
|
+
? new index_js_1.SouthKoreaLocalCard(paymentMethodResponse.south_korea_local_card)
|
|
26
|
+
: null;
|
|
23
27
|
this.underlyingDetails = paymentMethodResponse.underlying_details
|
|
24
28
|
? new index_js_1.PaymentMethodUnderlyingDetails(paymentMethodResponse.underlying_details)
|
|
25
29
|
: null;
|
|
@@ -29,7 +29,7 @@ class Price {
|
|
|
29
29
|
this.type = price.type;
|
|
30
30
|
this.name = price.name ? price.name : null;
|
|
31
31
|
this.billingCycle = price.billing_cycle ? new index_js_1.TimePeriod(price.billing_cycle) : null;
|
|
32
|
-
this.trialPeriod = price.trial_period ? new index_js_1.
|
|
32
|
+
this.trialPeriod = price.trial_period ? new index_js_1.TrialPeriod(price.trial_period) : null;
|
|
33
33
|
this.taxMode = price.tax_mode;
|
|
34
34
|
this.unitPrice = new index_js_1.Money(price.unit_price);
|
|
35
35
|
this.unitPriceOverrides =
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./time-period.js"), exports);
|
|
18
|
+
__exportStar(require("./trial-period.js"), exports);
|
|
18
19
|
__exportStar(require("./money.js"), exports);
|
|
19
20
|
__exportStar(require("./unit-price-override.js"), exports);
|
|
20
21
|
__exportStar(require("./billing-details.js"), exports);
|
|
@@ -39,3 +40,4 @@ __exportStar(require("./simulation-event-request.js"), exports);
|
|
|
39
40
|
__exportStar(require("./simulation-event-response.js"), exports);
|
|
40
41
|
__exportStar(require("./payment-method-underlying-details.js"), exports);
|
|
41
42
|
__exportStar(require("./korean-market-underlying-details.js"), exports);
|
|
43
|
+
__exportStar(require("./south-korea-local-card.js"), exports);
|
|
@@ -3,13 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PaymentMethodDetails = void 0;
|
|
4
4
|
const payment_card_js_1 = require("./payment-card.js");
|
|
5
5
|
const payment_method_underlying_details_js_1 = require("./payment-method-underlying-details.js");
|
|
6
|
+
const south_korea_local_card_js_1 = require("./south-korea-local-card.js");
|
|
6
7
|
class PaymentMethodDetails {
|
|
7
8
|
type;
|
|
8
9
|
card;
|
|
10
|
+
southKoreaLocalCard;
|
|
9
11
|
underlyingDetails;
|
|
10
12
|
constructor(paymentMethodDetails) {
|
|
11
13
|
this.type = paymentMethodDetails.type;
|
|
12
14
|
this.card = paymentMethodDetails.card ? new payment_card_js_1.PaymentCard(paymentMethodDetails.card) : null;
|
|
15
|
+
this.southKoreaLocalCard = paymentMethodDetails.south_korea_local_card
|
|
16
|
+
? new south_korea_local_card_js_1.SouthKoreaLocalCard(paymentMethodDetails.south_korea_local_card)
|
|
17
|
+
: null;
|
|
13
18
|
this.underlyingDetails = paymentMethodDetails.underlying_details
|
|
14
19
|
? new payment_method_underlying_details_js_1.PaymentMethodUnderlyingDetails(paymentMethodDetails.underlying_details)
|
|
15
20
|
: null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SouthKoreaLocalCard = void 0;
|
|
4
|
+
class SouthKoreaLocalCard {
|
|
5
|
+
type;
|
|
6
|
+
last4;
|
|
7
|
+
constructor(southKoreaLocalCard) {
|
|
8
|
+
this.type = southKoreaLocalCard.type;
|
|
9
|
+
this.last4 = southKoreaLocalCard.last4;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.SouthKoreaLocalCard = SouthKoreaLocalCard;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TrialPeriod = void 0;
|
|
4
|
+
class TrialPeriod {
|
|
5
|
+
interval;
|
|
6
|
+
frequency;
|
|
7
|
+
requiresPaymentMethod;
|
|
8
|
+
constructor(trialPeriod) {
|
|
9
|
+
this.interval = trialPeriod.interval;
|
|
10
|
+
this.frequency = trialPeriod.frequency;
|
|
11
|
+
this.requiresPaymentMethod = trialPeriod.requires_payment_method;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.TrialPeriod = TrialPeriod;
|
|
@@ -31,3 +31,4 @@ __exportStar(require("./catalog-type.js"), exports);
|
|
|
31
31
|
__exportStar(require("./available-payment-methods.js"), exports);
|
|
32
32
|
__exportStar(require("./disposition.js"), exports);
|
|
33
33
|
__exportStar(require("./korean-market-underlying-payment-method-type.js"), exports);
|
|
34
|
+
__exportStar(require("./south-korea-local-card-type.js"), exports);
|
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PayoutNotification = void 0;
|
|
4
4
|
class PayoutNotification {
|
|
5
5
|
id;
|
|
6
|
+
remittanceReference;
|
|
6
7
|
status;
|
|
7
8
|
amount;
|
|
8
9
|
currencyCode;
|
|
9
10
|
constructor(payout) {
|
|
10
11
|
this.id = payout.id;
|
|
12
|
+
this.remittanceReference = payout.remittance_reference;
|
|
11
13
|
this.status = payout.status;
|
|
12
14
|
this.amount = payout.amount;
|
|
13
15
|
this.currencyCode = payout.currency_code;
|
|
@@ -27,7 +27,7 @@ class PriceNotification {
|
|
|
27
27
|
this.type = price.type ? price.type : null;
|
|
28
28
|
this.name = price.name ? price.name : null;
|
|
29
29
|
this.billingCycle = price.billing_cycle ? new index_js_1.TimePeriodNotification(price.billing_cycle) : null;
|
|
30
|
-
this.trialPeriod = price.trial_period ? new index_js_1.
|
|
30
|
+
this.trialPeriod = price.trial_period ? new index_js_1.TrialPeriodNotification(price.trial_period) : null;
|
|
31
31
|
this.taxMode = price.tax_mode;
|
|
32
32
|
this.unitPrice = new index_js_1.MoneyNotification(price.unit_price);
|
|
33
33
|
this.unitPriceOverrides =
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./time-period-notification.js"), exports);
|
|
18
|
+
__exportStar(require("./trial-period-notification.js"), exports);
|
|
18
19
|
__exportStar(require("./money-notification.js"), exports);
|
|
19
20
|
__exportStar(require("./unit-price-override-notification.js"), exports);
|
|
20
21
|
__exportStar(require("./billing-details-notification.js"), exports);
|
|
@@ -36,3 +37,4 @@ __exportStar(require("./payout-totals-adjustment-notification.js"), exports);
|
|
|
36
37
|
__exportStar(require("./import-meta-notification.js"), exports);
|
|
37
38
|
__exportStar(require("./korean-market-underlying-details-notification.js"), exports);
|
|
38
39
|
__exportStar(require("./payment-method-underlying-details-notification.js"), exports);
|
|
40
|
+
__exportStar(require("./south-korea-local-card-notification.js"), exports);
|
|
@@ -3,13 +3,18 @@ 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
5
|
const payment_method_underlying_details_notification_js_1 = require("./payment-method-underlying-details-notification.js");
|
|
6
|
+
const south_korea_local_card_notification_js_1 = require("./south-korea-local-card-notification.js");
|
|
6
7
|
class PaymentMethodDetailsNotification {
|
|
7
8
|
type;
|
|
8
9
|
card;
|
|
10
|
+
southKoreaLocalCard;
|
|
9
11
|
underlyingDetails;
|
|
10
12
|
constructor(paymentMethodDetails) {
|
|
11
13
|
this.type = paymentMethodDetails.type;
|
|
12
14
|
this.card = paymentMethodDetails.card ? new payment_card_notification_js_1.PaymentCardNotification(paymentMethodDetails.card) : null;
|
|
15
|
+
this.southKoreaLocalCard = paymentMethodDetails.south_korea_local_card
|
|
16
|
+
? new south_korea_local_card_notification_js_1.SouthKoreaLocalCardNotification(paymentMethodDetails.south_korea_local_card)
|
|
17
|
+
: null;
|
|
13
18
|
this.underlyingDetails = paymentMethodDetails.underlying_details
|
|
14
19
|
? new payment_method_underlying_details_notification_js_1.PaymentMethodUnderlyingDetailsNotification(paymentMethodDetails.underlying_details)
|
|
15
20
|
: null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SouthKoreaLocalCardNotification = void 0;
|
|
4
|
+
class SouthKoreaLocalCardNotification {
|
|
5
|
+
type;
|
|
6
|
+
last4;
|
|
7
|
+
constructor(southKoreaLocalCard) {
|
|
8
|
+
this.type = southKoreaLocalCard.type;
|
|
9
|
+
this.last4 = southKoreaLocalCard.last4;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.SouthKoreaLocalCardNotification = SouthKoreaLocalCardNotification;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TrialPeriodNotification = void 0;
|
|
4
|
+
class TrialPeriodNotification {
|
|
5
|
+
interval;
|
|
6
|
+
frequency;
|
|
7
|
+
requiresPaymentMethod;
|
|
8
|
+
constructor(trialPeriod) {
|
|
9
|
+
this.interval = trialPeriod.interval;
|
|
10
|
+
this.frequency = trialPeriod.frequency;
|
|
11
|
+
this.requiresPaymentMethod = trialPeriod.requires_payment_method;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.TrialPeriodNotification = TrialPeriodNotification;
|
|
@@ -25,7 +25,7 @@ class SubscriptionPriceNotification {
|
|
|
25
25
|
this.type = price.type ?? null;
|
|
26
26
|
this.name = price.name ? price.name : null;
|
|
27
27
|
this.billingCycle = price.billing_cycle ? new index_js_1.TimePeriodNotification(price.billing_cycle) : null;
|
|
28
|
-
this.trialPeriod = price.trial_period ? new index_js_1.
|
|
28
|
+
this.trialPeriod = price.trial_period ? new index_js_1.TrialPeriodNotification(price.trial_period) : null;
|
|
29
29
|
this.taxMode = price.tax_mode;
|
|
30
30
|
this.unitPrice = price.unit_price ? new index_js_1.MoneyNotification(price.unit_price) : null;
|
|
31
31
|
this.unitPriceOverrides = price.unit_price_overrides
|
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./time-period-notification.js"), exports);
|
|
18
|
+
__exportStar(require("./trial-period-notification.js"), exports);
|
|
19
|
+
__exportStar(require("./trial-period-notification-response.js"), exports);
|
|
18
20
|
__exportStar(require("./money-notification-response.js"), exports);
|
|
19
21
|
__exportStar(require("./unit-price-override-notification-response.js"), exports);
|
|
20
22
|
__exportStar(require("./shared-price-notification-response.js"), exports);
|
|
@@ -38,3 +40,4 @@ __exportStar(require("./payout-totals-adjustment-notification-response.js"), exp
|
|
|
38
40
|
__exportStar(require("./import-meta-notification-response.js"), exports);
|
|
39
41
|
__exportStar(require("./korean-market-underlying-details-notification.js"), exports);
|
|
40
42
|
__exportStar(require("./payment-method-underlying-details-notification.js"), exports);
|
|
43
|
+
__exportStar(require("./south-korea-local-card-notification-response.js"), exports);
|
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./time-period.js"), exports);
|
|
18
|
+
__exportStar(require("./trial-period.js"), exports);
|
|
19
|
+
__exportStar(require("./trial-period-response.js"), exports);
|
|
18
20
|
__exportStar(require("./money.js"), exports);
|
|
19
21
|
__exportStar(require("./money-response.js"), exports);
|
|
20
22
|
__exportStar(require("./unit-price-override.js"), exports);
|
|
@@ -49,3 +51,4 @@ __exportStar(require("./simulation-event-response.js"), exports);
|
|
|
49
51
|
__exportStar(require("./simulation-payload.js"), exports);
|
|
50
52
|
__exportStar(require("./payment-method-underlying-details.js"), exports);
|
|
51
53
|
__exportStar(require("./korean-market-underlying-details.js"), exports);
|
|
54
|
+
__exportStar(require("./south-korea-local-card-response.js"), exports);
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaymentCard, PaymentMethodUnderlyingDetails, PayPal } from '../shared/index.js';
|
|
1
|
+
import { PaymentCard, PaymentMethodUnderlyingDetails, PayPal, SouthKoreaLocalCard } from '../shared/index.js';
|
|
2
2
|
export class PaymentMethod {
|
|
3
3
|
id;
|
|
4
4
|
customerId;
|
|
@@ -6,6 +6,7 @@ export class PaymentMethod {
|
|
|
6
6
|
type;
|
|
7
7
|
card;
|
|
8
8
|
paypal;
|
|
9
|
+
southKoreaLocalCard;
|
|
9
10
|
underlyingDetails;
|
|
10
11
|
origin;
|
|
11
12
|
savedAt;
|
|
@@ -17,6 +18,9 @@ export class PaymentMethod {
|
|
|
17
18
|
this.type = paymentMethodResponse.type;
|
|
18
19
|
this.card = paymentMethodResponse.card ? new PaymentCard(paymentMethodResponse.card) : null;
|
|
19
20
|
this.paypal = paymentMethodResponse.paypal ? new PayPal(paymentMethodResponse.paypal) : null;
|
|
21
|
+
this.southKoreaLocalCard = paymentMethodResponse.south_korea_local_card
|
|
22
|
+
? new SouthKoreaLocalCard(paymentMethodResponse.south_korea_local_card)
|
|
23
|
+
: null;
|
|
20
24
|
this.underlyingDetails = paymentMethodResponse.underlying_details
|
|
21
25
|
? new PaymentMethodUnderlyingDetails(paymentMethodResponse.underlying_details)
|
|
22
26
|
: null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImportMeta, Money, TimePeriod, UnitPriceOverride } from '../shared/index.js';
|
|
1
|
+
import { ImportMeta, Money, TimePeriod, TrialPeriod, UnitPriceOverride } from '../shared/index.js';
|
|
2
2
|
import { PriceQuantity } from './price-quantity.js';
|
|
3
3
|
import { Product } from '../product/index.js';
|
|
4
4
|
export class Price {
|
|
@@ -26,7 +26,7 @@ export class Price {
|
|
|
26
26
|
this.type = price.type;
|
|
27
27
|
this.name = price.name ? price.name : null;
|
|
28
28
|
this.billingCycle = price.billing_cycle ? new TimePeriod(price.billing_cycle) : null;
|
|
29
|
-
this.trialPeriod = price.trial_period ? new
|
|
29
|
+
this.trialPeriod = price.trial_period ? new TrialPeriod(price.trial_period) : null;
|
|
30
30
|
this.taxMode = price.tax_mode;
|
|
31
31
|
this.unitPrice = new Money(price.unit_price);
|
|
32
32
|
this.unitPriceOverrides =
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './time-period.js';
|
|
2
|
+
export * from './trial-period.js';
|
|
2
3
|
export * from './money.js';
|
|
3
4
|
export * from './unit-price-override.js';
|
|
4
5
|
export * from './billing-details.js';
|
|
@@ -23,3 +24,4 @@ export * from './simulation-event-request.js';
|
|
|
23
24
|
export * from './simulation-event-response.js';
|
|
24
25
|
export * from './payment-method-underlying-details.js';
|
|
25
26
|
export * from './korean-market-underlying-details.js';
|
|
27
|
+
export * from './south-korea-local-card.js';
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { PaymentCard } from './payment-card.js';
|
|
2
2
|
import { PaymentMethodUnderlyingDetails } from './payment-method-underlying-details.js';
|
|
3
|
+
import { SouthKoreaLocalCard } from './south-korea-local-card.js';
|
|
3
4
|
export class PaymentMethodDetails {
|
|
4
5
|
type;
|
|
5
6
|
card;
|
|
7
|
+
southKoreaLocalCard;
|
|
6
8
|
underlyingDetails;
|
|
7
9
|
constructor(paymentMethodDetails) {
|
|
8
10
|
this.type = paymentMethodDetails.type;
|
|
9
11
|
this.card = paymentMethodDetails.card ? new PaymentCard(paymentMethodDetails.card) : null;
|
|
12
|
+
this.southKoreaLocalCard = paymentMethodDetails.south_korea_local_card
|
|
13
|
+
? new SouthKoreaLocalCard(paymentMethodDetails.south_korea_local_card)
|
|
14
|
+
: null;
|
|
10
15
|
this.underlyingDetails = paymentMethodDetails.underlying_details
|
|
11
16
|
? new PaymentMethodUnderlyingDetails(paymentMethodDetails.underlying_details)
|
|
12
17
|
: null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class TrialPeriod {
|
|
2
|
+
interval;
|
|
3
|
+
frequency;
|
|
4
|
+
requiresPaymentMethod;
|
|
5
|
+
constructor(trialPeriod) {
|
|
6
|
+
this.interval = trialPeriod.interval;
|
|
7
|
+
this.frequency = trialPeriod.frequency;
|
|
8
|
+
this.requiresPaymentMethod = trialPeriod.requires_payment_method;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export class PayoutNotification {
|
|
2
2
|
id;
|
|
3
|
+
remittanceReference;
|
|
3
4
|
status;
|
|
4
5
|
amount;
|
|
5
6
|
currencyCode;
|
|
6
7
|
constructor(payout) {
|
|
7
8
|
this.id = payout.id;
|
|
9
|
+
this.remittanceReference = payout.remittance_reference;
|
|
8
10
|
this.status = payout.status;
|
|
9
11
|
this.amount = payout.amount;
|
|
10
12
|
this.currencyCode = payout.currency_code;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImportMetaNotification, MoneyNotification, TimePeriodNotification, UnitPriceOverrideNotification, } from '../shared/index.js';
|
|
1
|
+
import { ImportMetaNotification, MoneyNotification, TimePeriodNotification, TrialPeriodNotification, UnitPriceOverrideNotification, } from '../shared/index.js';
|
|
2
2
|
import { PriceQuantityNotification } from './price-quantity-notification.js';
|
|
3
3
|
export class PriceNotification {
|
|
4
4
|
id;
|
|
@@ -24,7 +24,7 @@ export class PriceNotification {
|
|
|
24
24
|
this.type = price.type ? price.type : null;
|
|
25
25
|
this.name = price.name ? price.name : null;
|
|
26
26
|
this.billingCycle = price.billing_cycle ? new TimePeriodNotification(price.billing_cycle) : null;
|
|
27
|
-
this.trialPeriod = price.trial_period ? new
|
|
27
|
+
this.trialPeriod = price.trial_period ? new TrialPeriodNotification(price.trial_period) : null;
|
|
28
28
|
this.taxMode = price.tax_mode;
|
|
29
29
|
this.unitPrice = new MoneyNotification(price.unit_price);
|
|
30
30
|
this.unitPriceOverrides =
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './time-period-notification.js';
|
|
2
|
+
export * from './trial-period-notification.js';
|
|
2
3
|
export * from './money-notification.js';
|
|
3
4
|
export * from './unit-price-override-notification.js';
|
|
4
5
|
export * from './billing-details-notification.js';
|
|
@@ -20,3 +21,4 @@ export * from './payout-totals-adjustment-notification.js';
|
|
|
20
21
|
export * from './import-meta-notification.js';
|
|
21
22
|
export * from './korean-market-underlying-details-notification.js';
|
|
22
23
|
export * from './payment-method-underlying-details-notification.js';
|
|
24
|
+
export * from './south-korea-local-card-notification.js';
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { PaymentCardNotification } from './payment-card-notification.js';
|
|
2
2
|
import { PaymentMethodUnderlyingDetailsNotification } from './payment-method-underlying-details-notification.js';
|
|
3
|
+
import { SouthKoreaLocalCardNotification } from './south-korea-local-card-notification.js';
|
|
3
4
|
export class PaymentMethodDetailsNotification {
|
|
4
5
|
type;
|
|
5
6
|
card;
|
|
7
|
+
southKoreaLocalCard;
|
|
6
8
|
underlyingDetails;
|
|
7
9
|
constructor(paymentMethodDetails) {
|
|
8
10
|
this.type = paymentMethodDetails.type;
|
|
9
11
|
this.card = paymentMethodDetails.card ? new PaymentCardNotification(paymentMethodDetails.card) : null;
|
|
12
|
+
this.southKoreaLocalCard = paymentMethodDetails.south_korea_local_card
|
|
13
|
+
? new SouthKoreaLocalCardNotification(paymentMethodDetails.south_korea_local_card)
|
|
14
|
+
: null;
|
|
10
15
|
this.underlyingDetails = paymentMethodDetails.underlying_details
|
|
11
16
|
? new PaymentMethodUnderlyingDetailsNotification(paymentMethodDetails.underlying_details)
|
|
12
17
|
: null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class TrialPeriodNotification {
|
|
2
|
+
interval;
|
|
3
|
+
frequency;
|
|
4
|
+
requiresPaymentMethod;
|
|
5
|
+
constructor(trialPeriod) {
|
|
6
|
+
this.interval = trialPeriod.interval;
|
|
7
|
+
this.frequency = trialPeriod.frequency;
|
|
8
|
+
this.requiresPaymentMethod = trialPeriod.requires_payment_method;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImportMetaNotification, MoneyNotification, TimePeriodNotification, UnitPriceOverrideNotification, } from '../shared/index.js';
|
|
1
|
+
import { ImportMetaNotification, MoneyNotification, TimePeriodNotification, TrialPeriodNotification, UnitPriceOverrideNotification, } from '../shared/index.js';
|
|
2
2
|
import { PriceQuantityNotification } from '../price/index.js';
|
|
3
3
|
export class SubscriptionPriceNotification {
|
|
4
4
|
id;
|
|
@@ -22,7 +22,7 @@ export class SubscriptionPriceNotification {
|
|
|
22
22
|
this.type = price.type ?? null;
|
|
23
23
|
this.name = price.name ? price.name : null;
|
|
24
24
|
this.billingCycle = price.billing_cycle ? new TimePeriodNotification(price.billing_cycle) : null;
|
|
25
|
-
this.trialPeriod = price.trial_period ? new
|
|
25
|
+
this.trialPeriod = price.trial_period ? new TrialPeriodNotification(price.trial_period) : null;
|
|
26
26
|
this.taxMode = price.tax_mode;
|
|
27
27
|
this.unitPrice = price.unit_price ? new MoneyNotification(price.unit_price) : null;
|
|
28
28
|
this.unitPriceOverrides = price.unit_price_overrides
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './time-period-notification.js';
|
|
2
|
+
export * from './trial-period-notification.js';
|
|
3
|
+
export * from './trial-period-notification-response.js';
|
|
2
4
|
export * from './money-notification-response.js';
|
|
3
5
|
export * from './unit-price-override-notification-response.js';
|
|
4
6
|
export * from './shared-price-notification-response.js';
|
|
@@ -22,3 +24,4 @@ export * from './payout-totals-adjustment-notification-response.js';
|
|
|
22
24
|
export * from './import-meta-notification-response.js';
|
|
23
25
|
export * from './korean-market-underlying-details-notification.js';
|
|
24
26
|
export * from './payment-method-underlying-details-notification.js';
|
|
27
|
+
export * from './south-korea-local-card-notification-response.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './time-period.js';
|
|
2
|
+
export * from './trial-period.js';
|
|
3
|
+
export * from './trial-period-response.js';
|
|
2
4
|
export * from './money.js';
|
|
3
5
|
export * from './money-response.js';
|
|
4
6
|
export * from './unit-price-override.js';
|
|
@@ -33,3 +35,4 @@ export * from './simulation-event-response.js';
|
|
|
33
35
|
export * from './simulation-payload.js';
|
|
34
36
|
export * from './payment-method-underlying-details.js';
|
|
35
37
|
export * from './korean-market-underlying-details.js';
|
|
38
|
+
export * from './south-korea-local-card-response.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = '3.
|
|
1
|
+
export const SDK_VERSION = '3.5.0';
|