@paddle/paddle-node-sdk 2.7.1 → 2.7.3
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 +1935 -70
- package/dist/cjs/notifications/entities/shared/transaction-payout-totals-notification.js +2 -0
- package/dist/cjs/resources/businesses/index.js +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/esm/notifications/entities/shared/transaction-payout-totals-notification.js +2 -0
- package/dist/esm/resources/businesses/index.js +2 -2
- package/dist/esm/version.js +1 -1
- package/dist/types/notifications/entities/shared/transaction-payout-totals-notification.d.ts +2 -0
- package/dist/types/notifications/types/shared/transaction-payout-totals-notification-response.d.ts +2 -0
- package/dist/types/resources/businesses/index.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,8 @@ class TransactionPayoutTotalsNotification {
|
|
|
14
14
|
this.fee = transactionPayoutTotals.fee;
|
|
15
15
|
this.earnings = transactionPayoutTotals.earnings;
|
|
16
16
|
this.currencyCode = transactionPayoutTotals.currency_code;
|
|
17
|
+
this.exchangeRate = transactionPayoutTotals.exchange_rate;
|
|
18
|
+
this.feeRate = transactionPayoutTotals.fee_rate;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
exports.TransactionPayoutTotalsNotification = TransactionPayoutTotalsNotification;
|
|
@@ -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,
|
|
76
|
+
archive(customerId, businessId) {
|
|
77
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
return yield this.update(customerId,
|
|
78
|
+
return yield this.update(customerId, businessId, { status: 'archived' });
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
}
|
package/dist/cjs/version.js
CHANGED
|
@@ -11,5 +11,7 @@ export class TransactionPayoutTotalsNotification {
|
|
|
11
11
|
this.fee = transactionPayoutTotals.fee;
|
|
12
12
|
this.earnings = transactionPayoutTotals.earnings;
|
|
13
13
|
this.currencyCode = transactionPayoutTotals.currency_code;
|
|
14
|
+
this.exchangeRate = transactionPayoutTotals.exchange_rate;
|
|
15
|
+
this.feeRate = transactionPayoutTotals.fee_rate;
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -56,9 +56,9 @@ export class BusinessesResource extends BaseResource {
|
|
|
56
56
|
return new Business(data);
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
archive(customerId,
|
|
59
|
+
archive(customerId, businessId) {
|
|
60
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
return yield this.update(customerId,
|
|
61
|
+
return yield this.update(customerId, businessId, { status: 'archived' });
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
}
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = '2.7.
|
|
1
|
+
export const SDK_VERSION = '2.7.3';
|
package/dist/types/notifications/entities/shared/transaction-payout-totals-notification.d.ts
CHANGED
|
@@ -12,5 +12,7 @@ export declare class TransactionPayoutTotalsNotification {
|
|
|
12
12
|
readonly fee: string;
|
|
13
13
|
readonly earnings: string;
|
|
14
14
|
readonly currencyCode: PayoutCurrencyCode;
|
|
15
|
+
readonly exchangeRate: string;
|
|
16
|
+
readonly feeRate: string;
|
|
15
17
|
constructor(transactionPayoutTotals: ITransactionPayoutTotalsNotificationResponse);
|
|
16
18
|
}
|
|
@@ -7,5 +7,5 @@ export declare class BusinessesResource extends BaseResource {
|
|
|
7
7
|
create(customerId: string, createBusinessParameters: CreateBusinessRequestBody): Promise<Business>;
|
|
8
8
|
get(customerId: string, businessId: string): Promise<Business>;
|
|
9
9
|
update(customerId: string, businessId: string, updateBusiness: UpdateBusinessRequestBody): Promise<Business>;
|
|
10
|
-
archive(customerId: string,
|
|
10
|
+
archive(customerId: string, businessId: string): Promise<Business>;
|
|
11
11
|
}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.7.
|
|
1
|
+
export declare const SDK_VERSION = "2.7.3";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paddle/paddle-node-sdk",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
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",
|