@seayoo-io/combo-sdk-node 1.4.3 → 1.4.4

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 CHANGED
@@ -188,7 +188,7 @@ interface ShipOrderNotification {
188
188
  * 是否是沙盒订单。沙盒订单意味着此订单并未产生真实的付款。
189
189
  * 预期此字段仅用于记录日志和数据埋点。无论是否是沙盒订单,游戏侧都应当发货。
190
190
  */
191
- is_sandbox: boolean
191
+ is_sandbox?: boolean
192
192
  }
193
193
 
194
194
  interface RefundNotification {
package/dist/const.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /** SDK 名称 */
2
2
  export declare const SDKName = "combo-sdk-node";
3
3
  /** SDK 版本,在编译前会被动态替换 */
4
- export declare const SDKVersion = "1.4.3";
4
+ export declare const SDKVersion = "1.4.4";
5
5
  /**
6
6
  * 世游支持的服务端点列表
7
7
  */
package/dist/index.cjs CHANGED
@@ -12,7 +12,7 @@ var https__default = /*#__PURE__*/_interopDefaultLegacy(https);
12
12
  /** SDK 名称 */
13
13
  const SDKName = "combo-sdk-node";
14
14
  /** SDK 版本,在编译前会被动态替换 */
15
- const SDKVersion = "1.4.3";
15
+ const SDKVersion = "1.4.4";
16
16
  /**
17
17
  * 世游支持的服务端点列表
18
18
  */
@@ -1254,7 +1254,7 @@ class TokenVerifier {
1254
1254
  }
1255
1255
 
1256
1256
  function isShipOrderPayload(data) {
1257
- return isObject(data) && "order_id" in data && "reference_id" in data && "combo_id" in data && "product_id" in data && "quantity" in data && "currency" in data && "amount" in data && "is_sandbox" in data && typeof data.order_id === "string" && typeof data.combo_id === "string" && typeof data.quantity === "number" && typeof data.amount === "number" && typeof data.is_sandbox === "boolean" && Number.isSafeInteger(data.quantity) && Number.isSafeInteger(data.amount) && !!data.order_id && !!data.combo_id;
1257
+ return isObject(data) && "order_id" in data && "reference_id" in data && "combo_id" in data && "product_id" in data && "quantity" in data && "currency" in data && "amount" in data && typeof data.order_id === "string" && typeof data.combo_id === "string" && typeof data.quantity === "number" && typeof data.amount === "number" && ("is_sandbox" in data ? typeof data.is_sandbox === "boolean" : true) && Number.isSafeInteger(data.quantity) && Number.isSafeInteger(data.amount) && !!data.order_id && !!data.combo_id;
1258
1258
  }
1259
1259
 
1260
1260
  function isRefundPayload(data) {
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import { verify } from 'jsonwebtoken';
7
7
  /** SDK 名称 */
8
8
  const SDKName = "combo-sdk-node";
9
9
  /** SDK 版本,在编译前会被动态替换 */
10
- const SDKVersion = "1.4.3";
10
+ const SDKVersion = "1.4.4";
11
11
  /**
12
12
  * 世游支持的服务端点列表
13
13
  */
@@ -1249,7 +1249,7 @@ class TokenVerifier {
1249
1249
  }
1250
1250
 
1251
1251
  function isShipOrderPayload(data) {
1252
- return isObject(data) && "order_id" in data && "reference_id" in data && "combo_id" in data && "product_id" in data && "quantity" in data && "currency" in data && "amount" in data && "is_sandbox" in data && typeof data.order_id === "string" && typeof data.combo_id === "string" && typeof data.quantity === "number" && typeof data.amount === "number" && typeof data.is_sandbox === "boolean" && Number.isSafeInteger(data.quantity) && Number.isSafeInteger(data.amount) && !!data.order_id && !!data.combo_id;
1252
+ return isObject(data) && "order_id" in data && "reference_id" in data && "combo_id" in data && "product_id" in data && "quantity" in data && "currency" in data && "amount" in data && typeof data.order_id === "string" && typeof data.combo_id === "string" && typeof data.quantity === "number" && typeof data.amount === "number" && ("is_sandbox" in data ? typeof data.is_sandbox === "boolean" : true) && Number.isSafeInteger(data.quantity) && Number.isSafeInteger(data.amount) && !!data.order_id && !!data.combo_id;
1253
1253
  }
1254
1254
 
1255
1255
  function isRefundPayload(data) {
@@ -21,6 +21,6 @@ export interface ShipOrderNotification {
21
21
  *
22
22
  * 预期此字段仅用于记录日志和数据埋点。无论是否是沙盒订单,游戏侧都应当发货。
23
23
  */
24
- is_sandbox: boolean;
24
+ is_sandbox?: boolean;
25
25
  }
26
26
  export declare function isShipOrderPayload(data: unknown): data is ShipOrderNotification;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seayoo-io/combo-sdk-node",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Combo SDK for Node.js",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",