@builtbystack/sq-shopify-theme-sdk 0.0.28 → 0.0.29

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
@@ -91,6 +91,23 @@ SDKは名前空間 `SQ` 内に存在するため、SDKの初期化は `new SQ.SD
91
91
 
92
92
  ***
93
93
 
94
+ #### getHasBackOrderProductVariants()
95
+
96
+ > **getHasBackOrderProductVariants**(`id`): `Promise`\<`null` \| `boolean`\>
97
+
98
+ getHasBackOrderProductVariants はIDで指定した商品が持つ商品バリエーションに1つでも予約販売設定がされている場合trueを返します。
99
+ 指定したIDの商品が存在しない場合はnullを返します。
100
+
101
+ ##### Parameters
102
+
103
+ • **id**: `string`
104
+
105
+ ##### Returns
106
+
107
+ `Promise`\<`null` \| `boolean`\>
108
+
109
+ ***
110
+
94
111
  #### getLocationAvailabilities()
95
112
 
96
113
  > **getLocationAvailabilities**(`sku`, `first`?, `after`?, `isReverse`?): `Promise`\<[`LocationAvailabilities`](#type-aliaseslocationavailabilitiesmd)\>
@@ -601,6 +601,12 @@ export declare class SDK {
601
601
  */
602
602
  getPurchasingCustomerSharing(): Promise<PurchasingCustomerSharing | null>;
603
603
  getProduct(id: string, first?: number, after?: string, isReverse?: boolean, sortKeys?: ProductVariantSortKeys): Promise<Product | null>;
604
+ /**
605
+ * getHasBackOrderProductVariants はIDで指定した商品が持つ商品バリエーションに1つでも予約販売設定がされている場合trueを返します。
606
+ * 指定したIDの商品が存在しない場合はnullを返します。
607
+ * @param {string} [productShopifyLegacyResourceID] 商品のShopifyLegacyResourceID(gid://shopify/Product/xxxのxxxの部分)
608
+ */
609
+ getHasBackOrderProductVariants(id: string): Promise<boolean | null>;
604
610
  getPointCampaignOrderRuleTargetCustomerRank(): Promise<PointCampaignOrderRuleTargetCustomerRank | null>;
605
611
  getEstimatedShopifyCartPoint(currencyCode: CurrencyCode, taxesIncluded: boolean, lineItems: CartLineItem[]): Promise<EstimatedPoint | null>;
606
612
  getEstimatedShopifyCartLineItemPoint(currencyCode: CurrencyCode, taxesIncluded: boolean, sku: string, quantity: number, unitPrice: string): Promise<EstimatedPoint | null>;