@builtbystack/sq-shopify-theme-sdk 0.0.24 → 0.0.25

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
@@ -221,8 +221,7 @@ getPointChangeActivities は購入者のポイント変動履歴を返します
221
221
 
222
222
  > **getPoints**(): `Promise`\<`null` \| [`Points`](#type-aliasespointsmd)\>
223
223
 
224
- getPoints は、現在の保有ポイントと、獲得予定ポイントを返します。
225
- 存在しない場合は0を返します。
224
+ getPoints は、Points は SDK から取得できるポイントの情報を返します。
226
225
 
227
226
  ##### Returns
228
227
 
@@ -1197,6 +1196,31 @@ Points は SDK から取得できるポイントの情報を表す。
1197
1196
 
1198
1197
  PointsApproved は保有ポイントを表す。
1199
1198
 
1199
+ #### pointsExpiringSoon?
1200
+
1201
+ > `optional` **pointsExpiringSoon**: `object`
1202
+
1203
+ PointsExpiringSoon は最も直近の失効予定ポイントを表す。
1204
+
1205
+ #### pointsExpiringSoon.availableUntil
1206
+
1207
+ > **availableUntil**: `Date`
1208
+
1209
+ availableUntil は最も直近の失効予定ポイントが利用できる期限を表す。失効する直前を表すため、expiresDate から1ナノ秒を引いた値となる。
1210
+ 例えば、expiresDate が 2024-06-12 00:00:00 なら、availableUntil は 2024-06-11 23:59:59.999999999 となる。
1211
+
1212
+ #### pointsExpiringSoon.expiresDate
1213
+
1214
+ > **expiresDate**: `Date`
1215
+
1216
+ expiresDate は最も直近の失効日を表す。
1217
+
1218
+ #### pointsExpiringSoon.points
1219
+
1220
+ > **points**: `number`
1221
+
1222
+ points は最も直近の失効予定ポイントを表す。
1223
+
1200
1224
  #### pointsPending
1201
1225
 
1202
1226
  > **pointsPending**: `number`
@@ -331,6 +331,24 @@ export declare type Points = {
331
331
  * PointsPending は獲得予定ポイントを表す。
332
332
  */
333
333
  pointsPending: number;
334
+ /**
335
+ * PointsExpiringSoon は最も直近の失効予定ポイントを表す。
336
+ */
337
+ pointsExpiringSoon?: {
338
+ /**
339
+ * points は最も直近の失効予定ポイントを表す。
340
+ */
341
+ points: number;
342
+ /**
343
+ * expiresDate は最も直近の失効日を表す。
344
+ */
345
+ expiresDate: Date;
346
+ /**
347
+ * availableUntil は最も直近の失効予定ポイントが利用できる期限を表す。失効する直前を表すため、expiresDate から1ナノ秒を引いた値となる。
348
+ * 例えば、expiresDate が 2024-06-12 00:00:00 なら、availableUntil は 2024-06-11 23:59:59.999999999 となる。
349
+ */
350
+ availableUntil: Date;
351
+ };
334
352
  };
335
353
 
336
354
  /**
@@ -473,8 +491,7 @@ export declare class SDK {
473
491
  */
474
492
  getPurchasingCustomerMetafield(namespace: string, key: string): Promise<PurchasingCustomerMetafield | null>;
475
493
  /**
476
- * getPoints は、現在の保有ポイントと、獲得予定ポイントを返します。
477
- * 存在しない場合は0を返します。
494
+ * getPoints は、Points は SDK から取得できるポイントの情報を返します。
478
495
  */
479
496
  getPoints(): Promise<Points | null>;
480
497
  /**