@paddle/paddle-node-sdk 3.2.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/entities/index.js +1 -0
- package/dist/cjs/entities/payment-method/payment-method.js +4 -0
- package/dist/cjs/entities/shared/index.js +1 -0
- package/dist/cjs/entities/shared/payment-method-details.js +5 -0
- package/dist/cjs/entities/shared/payout-totals-adjustment.js +2 -0
- package/dist/cjs/entities/shared/south-korea-local-card.js +12 -0
- package/dist/cjs/entities/shared/total-adjustments.js +2 -0
- package/dist/cjs/entities/shared/transaction-payout-totals-adjusted.js +2 -0
- package/dist/cjs/entities/shared/transaction-totals-adjusted.js +2 -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/internal/api/client.js +5 -4
- package/dist/cjs/internal/base/base-resource.js +4 -1
- package/dist/cjs/internal/base/collection.js +4 -1
- package/dist/cjs/internal/errors/generic.js +3 -1
- package/dist/cjs/internal/types/response.js +2 -0
- package/dist/cjs/notifications/entities/shared/index.js +1 -0
- package/dist/cjs/notifications/entities/shared/payment-method-details-notification.js +5 -0
- package/dist/cjs/notifications/entities/shared/payout-totals-adjustment-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/south-korea-local-card-notification.js +12 -0
- package/dist/cjs/notifications/entities/shared/total-adjustments-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/transaction-totals-adjusted-notification.js +2 -0
- package/dist/cjs/notifications/types/shared/index.js +1 -0
- package/dist/cjs/notifications/types/shared/south-korea-local-card-notification-response.js +2 -0
- package/dist/cjs/resources/transactions/operations/index.js +1 -0
- package/dist/cjs/resources/transactions/operations/non-catalog-discount.js +2 -0
- package/dist/cjs/types/shared/index.js +1 -0
- package/dist/cjs/types/shared/south-korea-local-card-response.js +2 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/entities/index.js +1 -0
- package/dist/esm/entities/payment-method/payment-method.js +5 -1
- package/dist/esm/entities/shared/index.js +1 -0
- package/dist/esm/entities/shared/payment-method-details.js +5 -0
- package/dist/esm/entities/shared/payout-totals-adjustment.js +2 -0
- package/dist/esm/entities/shared/south-korea-local-card.js +8 -0
- package/dist/esm/entities/shared/total-adjustments.js +2 -0
- package/dist/esm/entities/shared/transaction-payout-totals-adjusted.js +2 -0
- package/dist/esm/entities/shared/transaction-totals-adjusted.js +2 -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/internal/api/client.js +5 -4
- package/dist/esm/internal/base/base-resource.js +4 -1
- package/dist/esm/internal/base/collection.js +4 -1
- package/dist/esm/internal/errors/generic.js +3 -1
- package/dist/esm/internal/types/response.js +1 -1
- package/dist/esm/notifications/entities/shared/index.js +1 -0
- package/dist/esm/notifications/entities/shared/payment-method-details-notification.js +5 -0
- package/dist/esm/notifications/entities/shared/payout-totals-adjustment-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/south-korea-local-card-notification.js +8 -0
- package/dist/esm/notifications/entities/shared/total-adjustments-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/transaction-totals-adjusted-notification.js +2 -0
- package/dist/esm/notifications/types/shared/index.js +1 -0
- package/dist/esm/notifications/types/shared/south-korea-local-card-notification-response.js +1 -0
- package/dist/esm/resources/transactions/operations/index.js +1 -0
- package/dist/esm/resources/transactions/operations/non-catalog-discount.js +1 -0
- package/dist/esm/types/shared/index.js +1 -0
- package/dist/esm/types/shared/south-korea-local-card-response.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/index.d.ts +2 -1
- package/dist/types/entities/payment-method/payment-method.d.ts +2 -1
- package/dist/types/entities/shared/index.d.ts +1 -0
- package/dist/types/entities/shared/payment-method-details.d.ts +2 -0
- package/dist/types/entities/shared/payout-totals-adjustment.d.ts +1 -0
- package/dist/types/entities/shared/south-korea-local-card.d.ts +7 -0
- package/dist/types/entities/shared/total-adjustments.d.ts +1 -0
- package/dist/types/entities/shared/transaction-payout-totals-adjusted.d.ts +1 -0
- package/dist/types/entities/shared/transaction-totals-adjusted.d.ts +1 -0
- package/dist/types/enums/payment-method/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/internal/errors/generic.d.ts +2 -1
- package/dist/types/internal/types/response.d.ts +4 -0
- package/dist/types/notifications/entities/shared/index.d.ts +1 -0
- package/dist/types/notifications/entities/shared/payment-method-details-notification.d.ts +2 -0
- package/dist/types/notifications/entities/shared/payout-totals-adjustment-notification.d.ts +1 -0
- package/dist/types/notifications/entities/shared/south-korea-local-card-notification.d.ts +7 -0
- package/dist/types/notifications/entities/shared/total-adjustments-notification.d.ts +1 -0
- package/dist/types/notifications/entities/shared/transaction-payout-totals-adjusted-notification.d.ts +1 -0
- package/dist/types/notifications/entities/shared/transaction-totals-adjusted-notification.d.ts +1 -0
- package/dist/types/notifications/types/shared/index.d.ts +1 -0
- package/dist/types/notifications/types/shared/payment-method-details.d.ts +2 -0
- package/dist/types/notifications/types/shared/payout-totals-adjustment-notification-response.d.ts +1 -0
- package/dist/types/notifications/types/shared/south-korea-local-card-notification-response.d.ts +5 -0
- package/dist/types/notifications/types/shared/total-adjustments-notification-response.d.ts +1 -0
- package/dist/types/notifications/types/shared/transaction-payout-totals-adjusted-notification-response.d.ts +1 -0
- package/dist/types/notifications/types/shared/transaction-totals-adjusted-notification-response.d.ts +1 -0
- package/dist/types/resources/transactions/operations/create-transaction-request-body.d.ts +2 -0
- package/dist/types/resources/transactions/operations/index.d.ts +1 -0
- package/dist/types/resources/transactions/operations/non-catalog-discount.d.ts +11 -0
- package/dist/types/resources/transactions/operations/transaction-preview-request-body.d.ts +2 -0
- package/dist/types/resources/transactions/operations/update-transaction-request-body.d.ts +2 -0
- package/dist/types/types/payment-method/payment-method.d.ts +2 -1
- package/dist/types/types/shared/custom-data.d.ts +1 -1
- package/dist/types/types/shared/index.d.ts +1 -0
- package/dist/types/types/shared/payment-method-details.d.ts +2 -0
- package/dist/types/types/shared/payout-totals-adjustment-response.d.ts +1 -0
- package/dist/types/types/shared/south-korea-local-card-response.d.ts +5 -0
- package/dist/types/types/shared/total-adjustments-response.d.ts +1 -0
- package/dist/types/types/shared/transaction-payout-totals-adjusted-response.d.ts +1 -0
- package/dist/types/types/shared/transaction-totals-adjusted-response.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type CountryCode, type CurrencyCode } from '../../../enums/index.js';
|
|
2
2
|
import { type ITransactionItemPreviewRequest } from '../../../types/index.js';
|
|
3
|
+
import { NonCatalogDiscount } from './non-catalog-discount.js';
|
|
3
4
|
export interface IAddressPreviewResponse {
|
|
4
5
|
postal_code?: string | null;
|
|
5
6
|
country_code: CountryCode;
|
|
@@ -18,4 +19,5 @@ export interface TransactionPreviewRequestBody {
|
|
|
18
19
|
customerIpAddress?: string | null;
|
|
19
20
|
address?: IAddressPreview | null;
|
|
20
21
|
ignoreTrials?: boolean | null;
|
|
22
|
+
discount?: NonCatalogDiscount | null;
|
|
21
23
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type CollectionMode, type CurrencyCode, type TransactionStatus } from '../../../enums/index.js';
|
|
2
2
|
import { type IBillingDetailsUpdate, type ICustomData, type ITransactionCheckout, type ITransactionItemWithNonCatalogPrice, type ITransactionsTimePeriod } from '../../../types/index.js';
|
|
3
|
+
import { NonCatalogDiscount } from './non-catalog-discount.js';
|
|
3
4
|
export interface UpdateTransactionRequestBody {
|
|
4
5
|
status?: TransactionStatus;
|
|
5
6
|
customerId?: string | null;
|
|
@@ -13,4 +14,5 @@ export interface UpdateTransactionRequestBody {
|
|
|
13
14
|
billingPeriod?: ITransactionsTimePeriod | null;
|
|
14
15
|
items?: ITransactionItemWithNonCatalogPrice[];
|
|
15
16
|
checkout?: ITransactionCheckout | null;
|
|
17
|
+
discount?: NonCatalogDiscount | null;
|
|
16
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
+
import { IPaymentMethodUnderlyingDetails, type ISouthKoreaLocalCardResponse } from '../shared/index.js';
|
|
4
4
|
export interface IPaymentMethodResponse {
|
|
5
5
|
id: string;
|
|
6
6
|
customer_id: string;
|
|
@@ -8,6 +8,7 @@ export interface IPaymentMethodResponse {
|
|
|
8
8
|
type: SavedPaymentMethodType;
|
|
9
9
|
card: IPaymentCardResponse | null;
|
|
10
10
|
paypal: IPayPalResponse | null;
|
|
11
|
+
south_korea_local_card: ISouthKoreaLocalCardResponse | null;
|
|
11
12
|
underlying_details: IPaymentMethodUnderlyingDetails | null;
|
|
12
13
|
origin: SavedPaymentOrigin;
|
|
13
14
|
saved_at: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ICustomData =
|
|
1
|
+
export type ICustomData = Record<string, any>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { type PaymentType } from '../../enums/index.js';
|
|
2
2
|
import { type IPaymentCardResponse } from './payment-card-response.js';
|
|
3
3
|
import { IPaymentMethodUnderlyingDetails } from './payment-method-underlying-details.js';
|
|
4
|
+
import { type ISouthKoreaLocalCardResponse } from './south-korea-local-card-response.js';
|
|
4
5
|
export interface IPaymentMethodDetails {
|
|
5
6
|
type: PaymentType;
|
|
6
7
|
card: IPaymentCardResponse | null;
|
|
8
|
+
south_korea_local_card: ISouthKoreaLocalCardResponse | null;
|
|
7
9
|
underlying_details: IPaymentMethodUnderlyingDetails | null;
|
|
8
10
|
}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.
|
|
1
|
+
export declare const SDK_VERSION = "3.4.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paddle/paddle-node-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.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",
|