@paddle/paddle-node-sdk 2.7.0 → 2.7.2

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.
@@ -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;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '2.7.0';
4
+ exports.SDK_VERSION = '2.7.2';
@@ -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
  }
@@ -1 +1 @@
1
- export const SDK_VERSION = '2.7.0';
1
+ export const SDK_VERSION = '2.7.2';
@@ -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
  }
@@ -11,4 +11,6 @@ export interface ITransactionPayoutTotalsNotificationResponse {
11
11
  fee: string;
12
12
  earnings: string;
13
13
  currency_code: PayoutCurrencyCode;
14
+ exchange_rate: string;
15
+ fee_rate: string;
14
16
  }
@@ -10,7 +10,7 @@ export declare class SubscriptionsResource extends BaseResource {
10
10
  activate(subscriptionId: string): Promise<Subscription>;
11
11
  pause(subscriptionId: string, requestBody: PauseSubscription): Promise<Subscription>;
12
12
  resume(subscriptionId: string, requestBody: ResumeSubscription): Promise<Subscription>;
13
- cancel(subscriptionId: string, requestBody: CancelSubscription): Promise<Subscription>;
13
+ cancel(subscriptionId: string, requestBody?: CancelSubscription): Promise<Subscription>;
14
14
  createOneTimeCharge(subscriptionId: string, requestBody: CreateSubscriptionCharge): Promise<Subscription>;
15
15
  previewOneTimeCharge(subscriptionId: string, requestBody: CreateSubscriptionCharge): Promise<SubscriptionPreview>;
16
16
  getPaymentMethodChangeTransaction(subscriptionId: string): Promise<Transaction>;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.7.0";
1
+ export declare const SDK_VERSION = "2.7.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paddle/paddle-node-sdk",
3
- "version": "2.7.0",
3
+ "version": "2.7.2",
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",