npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@builtbystack/sq-shopify-theme-sdk

v0.0.47

Published

<a name="readmemd"></a>

Readme

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk

以下のScriptタグで読み込んでください。

@x.x.x で指定されているバージョンは適宜最新のものを利用してください。

SDKは名前空間 SQ 内に存在するため、SDKの初期化は new SQ.SDK() で行ってください。

<script src="https://unpkg.com/@builtbystack/[email protected]/dist/sq-shopify-theme-sdk.umd.js" defer></script>
<script type="text/javascript">
  window.onload = async () => {
    const sdk = new SQ.SDK({{ request.origin | json }});
  }
</script>

Classes

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / SDK

Class: SDK

Constructors

new SDK()

new SDK(apiURL): SDK

Parameters

• apiURL: string

Returns

SDK

Methods

DiscountUsageCreate()

DiscountUsageCreate(orderPriceAdjustmentRuleID): Promise<null | object>

DiscountUsageCreate は指定した注文価格調整の利用履歴を作成します。

Parameters

• orderPriceAdjustmentRuleID: string

利用する注文価格調整ルールのID

Returns

Promise<null | object>


getEstimatedShopifyCartLineItemPoint()

getEstimatedShopifyCartLineItemPoint(currencyCode, taxesIncluded, sku, quantity, unitPrice): Promise<null | EstimatedPoint>

Parameters

• currencyCode: CurrencyCode

• taxesIncluded: boolean

• sku: string

• quantity: number

• unitPrice: string

Returns

Promise<null | EstimatedPoint>


getEstimatedShopifyCartPoint()

getEstimatedShopifyCartPoint(currencyCode, taxesIncluded, lineItems): Promise<null | EstimatedPoint>

Parameters

• currencyCode: CurrencyCode

• taxesIncluded: boolean

• lineItems: CartLineItem[]

Returns

Promise<null | EstimatedPoint>


getHasBackOrderProductVariants()

getHasBackOrderProductVariants(id): Promise<null | boolean>

getHasBackOrderProductVariants はIDで指定した商品が持つ商品バリエーションに1つでも予約販売設定がされている場合trueを返します。 指定したIDの商品が存在しない場合はnullを返します。

Parameters

• id: string

Returns

Promise<null | boolean>


getLocationAvailabilities()

getLocationAvailabilities(sku, first?, after?, isReverse?): Promise<LocationAvailabilities>

getLocationAvailabilities は渡されたSKUの各ロケーションにおける残り在庫の一覧を返します。

Parameters

• sku: string

在庫一覧を取得したい商品のSKU。

• first?: number

取得してくる個数。デフォルトは250。

• after?: string

ページングの値。指定しない場合先頭から取得してくる。

• isReverse?: boolean

並び順。デフォルトはfalse。

Returns

Promise<LocationAvailabilities>


getLocationAvailability()

getLocationAvailability(sku, locationID): Promise<LocationAvailability>

getLocationAvailability は渡されたSKUとLocationIDにおける在庫情報を返します。

Parameters

• sku: string

在庫情報を取得したい商品のSKU。

• locationID: string

在庫情報を取得したいLocationのID。

Returns

Promise<LocationAvailability>


getLocations()

getLocations(first?, after?, locationFilter?, isReverse?): Promise<Locations>

getLocations は ShopifyIntegration に紐づく LocationGroup の Location の一覧を取得します。

Parameters

• first?: number

取得してくる個数。デフォルトは250。

• after?: string

ページングの値。指定しない場合先頭から取得してくる。

• locationFilter?: LocationFilter

ロケーションのロケーションのフィルタリング条件。

• isReverse?: boolean

並び順。デフォルトはfalse。

Returns

Promise<Locations>


getMileChangeActivities()

getMileChangeActivities(first?, after?, isReverse?, sortKeys?): Promise<null | MileChangeActivities>

getMileChangeActivities は購入者のマイル変動履歴を返します。

Parameters

• first?: number

取得してくる個数。デフォルトは250。

• after?: string

ページングの値。指定しない場合先頭から取得してくる。

• isReverse?: boolean

並び順。デフォルトはfalse。

• sortKeys?: MileChangeActivitySortKey

ソートキー。CREATED_ATかMILE_CHANGE_CREATED_ATを渡す。デフォルトはCREATED_AT。

Returns

Promise<null | MileChangeActivities>


getMileItems()

getMileItems(first?, after?, isReverse?, sortKeys?): Promise<null | MileItems>

getMileItems は顧客が利用可能なマイル交換商品の一覧を返します。

Parameters

• first?: number

取得してくる個数。デフォルトは250。

• after?: string

ページングの値。指定しない場合先頭から取得してくる。

• isReverse?: boolean

並び順。デフォルトはfalse。

• sortKeys?: ShopifyMileItemSortKey

ソートキー。デフォルトはCREATED_AT。

Returns

Promise<null | MileItems>


getMileOrders()

getMileOrders(first?, after?, isReverse?, sortKeys?): Promise<null | MileOrders>

getMileOrders は顧客のマイル交換履歴の一覧を返します。

Parameters

• first?: number

取得してくる個数。デフォルトは250。

• after?: string

ページングの値。指定しない場合先頭から取得してくる。

• isReverse?: boolean

並び順。デフォルトはfalse。

• sortKeys?: MileOrderSortKey

ソートキー。デフォルトはCREATED_AT。

Returns

Promise<null | MileOrders>


getMiles()

getMiles(): Promise<null | Miles>

getMiles は、Miles は SDK から取得できるマイルの情報を返します。

Returns

Promise<null | Miles>


getOrder()

getOrder(id): Promise<Order>

getOrder はログイン中の顧客自身の指定した注文を注文明細付きで取得します。

顧客のShopify顧客IDをリクエストから解決し、その顧客の注文だけを返します。 未ログインの場合はエラーになるため、呼び出す前にログイン状態を確認してください。 次の場合もエラーになります。

  • 指定したIDの注文が存在しない場合
  • 注文が削除済みの場合
  • ログイン中の顧客以外の注文のIDを渡した場合
Parameters

• id: string

取得する注文のID。getOrders が返す id をそのまま渡します。

Returns

Promise<Order>

指定した注文


getOrderRetailReturns()

getOrderRetailReturns(first?, after?, isReverse?, sortKeys?): Promise<OrderRetailReturns>

getOrderRetailReturns はログイン中の顧客自身のレシートなし返品の一覧を取得します。

レシートなし返品は注文に紐づかない店舗返品です。削除済みの返品は含みません。 顧客のShopify顧客IDをリクエストから解決し、その顧客の返品だけを返します。他の顧客の返品は取得できません。 未ログインの場合はエラーになるため、呼び出す前にログイン状態を確認してください。

Parameters

• first?: number

取得する返品数の上限

• after?: string

ページネーション用のカーソル

• isReverse?: boolean

並び順を逆にするかどうか

• sortKeys?: OrderRetailReturnSortKeys

ソートキー

Returns

Promise<OrderRetailReturns>

ログイン中の顧客のレシートなし返品の一覧


getOrders()

getOrders(first, after, filter, isReverse?, sortKeys?): Promise<Orders>

getOrders はログイン中の顧客自身の注文一覧を注文明細付きで取得します。

顧客のShopify顧客IDをリクエストから解決し、その顧客の注文だけを返します。他の顧客の注文は取得できません。 未ログインの場合はエラーになるため、呼び出す前にログイン状態を確認してください。

店舗の注文だけを取得する場合は、filter.sources に店舗チャネルのsourceを指定します。指定できる値は OrdersFilter を参照してください。

Parameters

• first: number

取得する注文数の上限

• after: undefined | string

ページネーション用のカーソル。先頭から取得する場合は undefined を指定します。

• filter: OrdersFilter

注文一覧の絞り込み条件。sourcesの指定が必須です。

• isReverse?: boolean

並び順を逆にするかどうか

• sortKeys?: OrderSortKey

ソートキー

Returns

Promise<Orders>

ログイン中の顧客の注文一覧


getPointCampaignOrderRuleTargetCustomerRank()

getPointCampaignOrderRuleTargetCustomerRank(): Promise<null | PointCampaignOrderRuleTargetCustomerRank>

Returns

Promise<null | PointCampaignOrderRuleTargetCustomerRank>


getPointChangeActivities()

getPointChangeActivities(first?, after?, isReverse?, sortKeys?): Promise<null | PointChangeActivities>

getPointChangeActivities は購入者のポイント変動履歴を返します。

Parameters

• first?: number

取得してくる個数。デフォルトは250。

• after?: string

ページングの値。指定しない場合先頭から取得してくる。

• isReverse?: boolean

並び順。デフォルトはfalse。

• sortKeys?: PointChangeActivitySortKey

ソートキー。CREATED_ATかPOINT_CHANGE_CREATED_ATを渡す。デフォルトはCREATED_AT。

Returns

Promise<null | PointChangeActivities>


getPointExpirations()

getPointExpirations(): Promise<null | PointExpiration[]>

getPointExpirations は将来失効予定のすべてのポイント一覧を返します。

失効日の昇順で並びます。すでに失効したポイントは含みません。過去の失効ポイントは getPointChangeActivities から取得してください。

Returns

Promise<null | PointExpiration[]>

将来失効予定のポイント一覧、または顧客が存在しない場合はnull


getPointExpirationsByLabel()

getPointExpirationsByLabel(label): Promise<null | PointExpiration[]>

getPointExpirationsByLabel は指定ラベルに絞った将来失効予定のすべてのポイント一覧を返します。

失効日の昇順で並びます。

Parameters

• label: string

絞り込むポイントのラベル。

Returns

Promise<null | PointExpiration[]>

指定ラベルに絞った将来失効予定のポイント一覧、または顧客が存在しない場合はnull


getPoints()

getPoints(): Promise<null | Points>

getPoints は、Points は SDK から取得できるポイントの情報を返します。

Returns

Promise<null | Points>


getPointsByLabel()

getPointsByLabel(label): Promise<null | PointsByLabel>

getPointsByLabel は指定ラベルに絞ったポイントの情報を返します。

Parameters

• label: string

絞り込むポイントのラベル。

Returns

Promise<null | PointsByLabel>

指定ラベルに絞ったポイントの情報、または顧客が存在しない場合はnull


getProduct()

getProduct(id, first?, after?, isReverse?, sortKeys?): Promise<null | Product>

Parameters

• id: string

• first?: number

• after?: string

• isReverse?: boolean

• sortKeys?: ProductVariantSortKeys

Returns

Promise<null | Product>


getPurchasingCustomerBarcode()

getPurchasingCustomerBarcode(): Promise<null | PurchasingCustomerBarcode>

getPurchasingCustomerBarcode は顧客の会員証バーコード情報を返します。

Returns

Promise<null | PurchasingCustomerBarcode>


getPurchasingCustomerCurrentRank()

getPurchasingCustomerCurrentRank(): Promise<null | CustomerRank>

getPurchasingCustomerCurrentRank は購入者の現在のランク情報を返します。

Returns

Promise<null | CustomerRank>


getPurchasingCustomerDiscountCodeCount()

getPurchasingCustomerDiscountCodeCount(): Promise<number>

getPurchasingCustomerDiscountCodeCount は顧客に紐付くDiscountCodeの数を返します。

Returns

Promise<number>


getPurchasingCustomerDiscounts()

getPurchasingCustomerDiscounts(first?, after?, isReverse?): Promise<null | PurchasingCustomerDiscounts>

getPurchasingCustomerDiscounts は購入者の割引情報を返します。

Parameters

• first?: number

取得してくる個数。デフォルトは250。

• after?: string

ページングの値。指定しない場合先頭から取得してくる。

• isReverse?: boolean

並び順。デフォルトはfalse。

Returns

Promise<null | PurchasingCustomerDiscounts>


getPurchasingCustomerMetafield()

getPurchasingCustomerMetafield(namespace, key): Promise<null | PurchasingCustomerMetafield>

getPurchasingCustomerMetafield は渡されたnamespaceとkeyに一致する現在ログインしているCustomerのカスタムメタフィールドを返します。 存在しない場合はnullを返します。

Parameters

• namespace: string

取得したいメタフィールドのnamespace。

• key: string

取得したいメタフィールドのkey。

Returns

Promise<null | PurchasingCustomerMetafield>


getPurchasingCustomerRetailOrders()

getPurchasingCustomerRetailOrders(first?, after?, isReverse?, sortKeys?): Promise<null | PurchasingCustomerRetailOrders>

getPurchasingCustomerRetailOrders は顧客の店舗注文一覧を取得します。

Parameters

• first?: number

取得する注文数の上限

• after?: string

ページネーション用のカーソル

• isReverse?: boolean

並び順を逆にするかどうか

• sortKeys?: RetailOrderSortKey

ソートキー

Returns

Promise<null | PurchasingCustomerRetailOrders>

顧客の店舗注文一覧、または顧客が存在しない場合はnull


getPurchasingCustomerSMS()

getPurchasingCustomerSMS(): Promise<null | PurchasingCustomerSMS>

getPurchasingCustomerSMS は顧客のSMS認証情報を返します。

Returns

Promise<null | PurchasingCustomerSMS>


getPurchasingCustomerSharing()

getPurchasingCustomerSharing(): Promise<null | PurchasingCustomerSharing>

getPurchasingCustomerSharing は共有化している顧客情報を返します。

Returns

Promise<null | PurchasingCustomerSharing>


getSharingPurchasingCustomerCount()

getSharingPurchasingCustomerCount(): Promise<number>

getSharingPurchasingCustomerCount は顧客が共有化している数を返します。

Returns

Promise<number>


mileItemExchange()

mileItemExchange(mileItemID): Promise<null | MileOrder>

mileItemExchange は指定したマイル商品を交換します。

Parameters

• mileItemID: string

交換したいマイル商品のID。

Returns

Promise<null | MileOrder>


mileOrderCancel()

mileOrderCancel(mileOrderID): Promise<null | MileOrder>

mileOrderCancel は指定したマイル交換をキャンセルします。

Parameters

• mileOrderID: string

キャンセルしたいマイル交換のID。

Returns

Promise<null | MileOrder>


purchasingCustomerActivateCustomerSharing()

purchasingCustomerActivateCustomerSharing(email, activationCode): Promise<null | PurchasingCustomer>

purchasingCustomerActivateCustomerSharing はアクティベーションコードを入力して顧客を有効化する。

Parameters

• email: string

• activationCode: string

Returns

Promise<null | PurchasingCustomer>


purchasingCustomerSendCustomerSharingActivationCode()

purchasingCustomerSendCustomerSharingActivationCode(): Promise<null | CustomerSharingActivationCode>

purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信します。

Returns

Promise<null | CustomerSharingActivationCode>


purchasingCustomerSendSMSVerificationCode()

purchasingCustomerSendSMSVerificationCode(phone): Promise<null | PurchasingCustomerSMS>

purchasingCustomerSendSMSVerificationCode は指定された電話番号に対して、SMS認証用コード(数字6桁)を送信します。

Parameters

• phone: string

SMS認証コードを送信する電話番号

Returns

Promise<null | PurchasingCustomerSMS>


purchasingCustomerVerifySMS()

purchasingCustomerVerifySMS(phone, verificationCode): Promise<null | PurchasingCustomerSMS>

purchasingCustomerVerifySMS はSMS認証用コード(数字6桁)を指定して、SMS認証を行います。

Parameters

• phone: string

SMS認証コードを送信した電話番号

• verificationCode: string

SMS認証用コード

Returns

Promise<null | PurchasingCustomerSMS>

Enumerations

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / CurrencyCode

Enumeration: CurrencyCode

CurrencyCode は通貨コードを表す

Enumeration Members

Eur

Eur: "EUR"


Jpy

Jpy: "JPY"


Usd

Usd: "USD"

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / LocationType

Enumeration: LocationType

LocationType はロケーションの種別を表す

Enumeration Members

Retail

Retail: "RETAIL"

店舗


Warehouse

Warehouse: "WAREHOUSE"

倉庫

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk

Enumerations

Classes

Type Aliases

Type Aliases

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / Address

Type Alias: Address

Address: object

Address はLocationの住所を表す。

Type declaration

address1

address1: string

address2

address2: string

city

city: string

country

country: string

countryCode

countryCode: string

id

id: string

postalCode

postalCode: string

province

province: string

provinceCode

provinceCode: string

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / CartLineItem

Type Alias: CartLineItem

CartLineItem: object

CartLineItem はカートの商品明細情報を表す

Type declaration

quantity

quantity: number

商品の数量

sku

sku: string

商品のSKU

unitPrice

unitPrice: string

商品の単価

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / CustomerRank

Type Alias: CustomerRank

CustomerRank: object

CustomerRank は会員ランクを表す。

Type declaration

calculationCondition

calculationCondition: CustomerRankCalculationCondition

この会員ランクを算出した際の条件

earnedPoint

earnedPoint: number

現在時刻時点を含む算出期間における顧客のリアルタイムな獲得ポイント数。会員ランクは購入金額だけで算出するため、常に0を返す

earnedPointToRankUp

earnedPointToRankUp: number

ランクアップするために必要な残り獲得ポイント。会員ランクは購入金額だけで算出するため、常に0を返す

higherRank?

optional higherRank: CustomerRankRule

この会員ランクの一段階上の会員ランク。上の会員ランクが存在しない場合はnull

id

id: string

lowerRank?

optional lowerRank: CustomerRankRule

この会員ランクの一段階下の会員ランク。下の会員ランクが存在しない場合はnull

name

name: string

会員ランク名

pointMultiplier?

optional pointMultiplier: PointMultiplierCustomerRankRule

この会員ランクの注文時ポイント倍率。ポイント設定がなかったり、ポイント設定があってもポイント倍率設定がなければnullが返る

purchasePrice

purchasePrice: number

現在時刻時点を含む算出期間における顧客のリアルタイムな購入金額

purchasePriceToRankUp

purchasePriceToRankUp: number

ランクアップするために必要な残り購入金額

threshold

threshold: number

この会員ランクへのランクアップに必要な値。会員ランクの算出方法によりthresholdが指す値は異なり、獲得ポイントと購入金額のどちらかになる

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / CustomerRankCalculationCondition

Type Alias: CustomerRankCalculationCondition

CustomerRankCalculationCondition: object

CustomerRankCalculationCondition は会員ランクの算出条件を表す。

Type declaration

customerRankCalculationPeriod?

optional customerRankCalculationPeriod: CustomerRankCalculationPeriod

会員ランク算出期間。期間が無期限の場合はnullを返す

earnedPoint

earnedPoint: number

会員ランクの算出根拠となる獲得ポイント。会員ランクは購入金額だけで算出するため、常に0を返す

purchasePrice

purchasePrice: number

会員ランクの算出根拠となる購入金額

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / CustomerRankCalculationPeriod

Type Alias: CustomerRankCalculationPeriod

CustomerRankCalculationPeriod: object

CustomerRankCalculationPeriod は会員ランクの算出期間を表す。

Type declaration

end

end: Date

集計期間終了日

start

start: Date

集計期間開始日

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / CustomerRankRule

Type Alias: CustomerRankRule

CustomerRankRule: object

CustomerRankRule は会員ランクのルールを表す。

Type declaration

id

id: string

name

name: string

会員ランク名

threshold

threshold: number

この会員ランクへのランクアップに必要な値。会員ランクの算出方法によりthresholdが指す値は異なり、獲得ポイントと購入金額のどちらかになる。

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / CustomerSharingActivationCode

Type Alias: CustomerSharingActivationCode

CustomerSharingActivationCode: object

Type declaration

customerSharingActivationCodeID

customerSharingActivationCodeID: string

purchasingCustomer

purchasingCustomer: PurchasingCustomer

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / EstimatedPoint

Type Alias: EstimatedPoint

EstimatedPoint: object

EstimatedPoint は獲得予想ポイントを表す

Type declaration

pointCampaign?

optional pointCampaign: EstimatedPointCampaign

適用されるポイントキャンペーン 注文日時に開催期間内で条件を満たすキャンペーンが存在しなかった場合はnilを返す カートの場合、明細ごとのポイント計算ロジック内でポイントが加算されるため、ポイントキャンペーンの種別が「商品」の場合もnilを返す 商品に適用されるポイントキャンペーンはgetEstimatedShopifyCartLineItemPointから取得が可能

pointsEarning

pointsEarning: number

ポイントキャンペーン適用前の獲得予想ポイント

totalPointsEarning

totalPointsEarning: number

ポイントキャンペーン適用後の獲得予想ポイント

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / EstimatedPointCampaign

Type Alias: EstimatedPointCampaign

EstimatedPointCampaign: object

Type declaration

pointCampaignOrderRule

pointCampaignOrderRule: PointCampaignOrderRule

pointsEarning

pointsEarning: number

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / Image

Type Alias: Image

Image: object

Image は商品などに紐づく画像を表す

Type declaration

id

id: string

id は画像の一意識別子

servingURL

servingURL: string

servingURL は配信用の画像URL 画像の長辺を最大500pxにして、縦横比を維持したまま縮小した画像のURLが入る

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / InventoryItem

Type Alias: InventoryItem

InventoryItem: object

InventoryItem は在庫情報を表す。

Type declaration

id

id: string

sku

sku: string

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / Location

Type Alias: Location

Location: object

Location は ShopifyIntegration に紐付いている Location を表す。

Type declaration

address?

optional address: Address

ロケーションの住所情報

closedAt?

optional closedAt: Date

閉鎖日時(オプショナル)

code

code: string

ロケーションのコード

displayName

displayName: string

ロケーションの表示用の名前

id

id: string

ロケーションのID

isClosed

isClosed: boolean

ロケーションが閉鎖されているかどうかを表すフラグ

mapURL?

optional mapURL: string

ロケーションのマップURL

name

name: string

ロケーションの名前

note

note: string

ロケーションのノート(メモ)

phone

phone: string

ロケーションの電話番号

tags

tags: string[]

ロケーションのタグ

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / LocationAvailabilities

Type Alias: LocationAvailabilities

LocationAvailabilities: object

LocationAvailabilities は LocationAvailability の一覧を取得するための情報を表す。

Type declaration

nodes

nodes: LocationAvailability[]

pageInfo

pageInfo: PageInfo

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / LocationAvailability

Type Alias: LocationAvailability

LocationAvailability: object

LocationAvailability はLocationの在庫情報を表す。

Type declaration

inventoryQuantity

inventoryQuantity: number

inventoryQuantity は在庫数を表す。

location

location: Location

location は在庫のLocationを表す。

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / LocationFilter

Type Alias: LocationFilter

LocationFilter: object

LocationType はロケーションのフィルタリング条件

Type declaration

locationType?

optional locationType: LocationType

ロケーションの種別

provinceCodes?

optional provinceCodes: string[]

ロケーションの都道府県コード

tag?

optional tag: string

ロケーションのタグ

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / Locations

Type Alias: Locations

Locations: object

Locations は Location の一覧を取得するための情報を表す。

Type declaration

nodes

nodes: Location[]

pageInfo

pageInfo: PageInfo

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / MileChange

Type Alias: MileChange

MileChange: object

MileChange はマイルの変動を表す。

Type declaration

createdAt

createdAt: Date

MileChangeのコミットタイムスタンプ

delta

delta: number

マイル変動の数値。正負どちらの値も取りうる。

id

id: string

mileChangeCreatedAt

mileChangeCreatedAt: Date

マイルの発生日時

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / MileChangeActivities

Type Alias: MileChangeActivities

MileChangeActivities: object

MileChangeActivities はマイルの変動の履歴一覧を表す。

Type declaration

nodes

nodes: MileChangeActivity[]

pageInfo

pageInfo: PageInfo

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / MileChangeActivity

Type Alias: MileChangeActivity

MileChangeActivity: object

MileChangeActivity はマイルの変動の履歴を表す。

Type declaration

id

id: string

mileChange

mileChange: MileChange

title

title: string

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / MileItem

Type Alias: MileItem

MileItem: object

MileItem はマイル商品の情報を表す。

Type declaration

customerExchangeable

customerExchangeable: boolean

交換可能かどうか

description

description: string

マイル商品の説明

endsAt?

optional endsAt: Date

交換可能期間の終了日時

id

id: string

オブジェクトのID

isActive

isActive: boolean

現在交換可能かどうか

isScheduled

isScheduled: boolean

交換開始前かどうか

miles

miles: number

マイル商品の画像URL

sku

sku: string

マイル商品のSKU

startsAt

startsAt: Date

交換可能期間の開始日時

title

title: string

マイル商品のタイトル

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / MileItems

Type Alias: MileItems

MileItems: object

MileItems はマイル商品の一覧を取得するための情報を表す。

Type declaration

nodes

nodes: MileItem[]

pageInfo

pageInfo: PageInfo

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / MileOrder

Type Alias: MileOrder

MileOrder: object

Type declaration

exchangedAt

exchangedAt: Date

交換日時

id

id: string

オブジェクトのID

isCancellableByCustomer

isCancellableByCustomer: boolean

顧客自身が現在この交換履歴をキャンセル可能かどうか。 以下を全て満たす場合にtrueを返す。

  • isCancelledがfalse
  • 紐づくマイル商品の顧客キャンセル許可フラグがtrue
  • 紐づくマイル商品の顧客キャンセル期限が未設定、または現在時刻が期限以前

isCancelled

isCancelled: boolean

Shopifyマイル交換履歴をキャンセルしたかどうか

mileItem

mileItem: MileItem

交換したマイル商品

miles

miles: number

使用したマイル数

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / MileOrders

Type Alias: MileOrders

MileOrders: object

MileOrders はマイル商品の交換履歴の一覧を取得するための情報を表す。

Type declaration

nodes

nodes: MileOrder[]

pageInfo

pageInfo: PageInfo

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / Miles

Type Alias: Miles

Miles: object

Miles は SDK から取得できるマイルの情報を表す。

Type declaration

miles

miles: number

Miles は保有マイルを表す。

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / Money

Type Alias: Money

Money: object

Money は金額と通貨コードを表す

Type declaration

amount

amount: number

amount は金額を表す

currencyCode

currencyCode: CurrencyCode

currencyCode は通貨コードを表す

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / Order

Type Alias: Order

Order: object

Order はログイン中の顧客自身の注文に関する情報を表す。

Type declaration

cancelledAt

cancelledAt: Date | null

cancelledAt は注文のキャンセル日時(キャンセルされていない場合はnull)

createdAt

createdAt: Date

createdAt は注文が作成された日時

currentPointApplicationPrice

currentPointApplicationPrice: Money

currentPointApplicationPrice は現在の利用ポイント金額

currentSubtotalPrice

currentSubtotalPrice: Money

currentSubtotalPrice は注文作成時の注文明細の合計金額から商品割引の金額を差し引き返金を考慮した価格

currentSubtotalPriceBeforeTaxes

currentSubtotalPriceBeforeTaxes: Money

currentSubtotalPriceBeforeTaxes はsubtotalPriceBeforeTaxesから返品・返金を考慮した現在の注文の小計(税抜) 注文の税込・税抜設定に関わらず、常に税抜の金額が入る。

currentTotalPrice

currentTotalPrice: Money

currentTotalPrice は現在の注文の合計金額 「現在」なので、返品・返金を考慮した金額が入る。

currentTotalQuantity

currentTotalQuantity: number

currentTotalQuantity は返金を考慮した商品の総数量

currentTotalTaxPrice

currentTotalTaxPrice: Money

currentTotalTaxPrice は現在の注文の合計税金額

fulfilledAt

fulfilledAt: Date | null

fulfilledAt は注文の出荷日時(未出荷の場合はnull)

id

id: string

id は注文の一意識別子

isCancelled

isCancelled: boolean

isCancelled は注文がキャンセル済みかどうかを表すフラグ

lineItemCount

lineItemCount: number

lineItemCount は注文の注文明細の件数 数量の合計ではなく明細の行数が入る。lineItems の返却上限に関わらず全明細を数えるため、lineItems.nodes の長さと一致しないことがある。

lineItems

lineItems: OrderLineItems

lineItems は注文の注文明細一覧 1注文あたり250件まで返す。1注文が持てる明細は最大500件のため、250件を超える明細を持つ注文では一部が欠ける。

managementCode

managementCode: string

managementCode は注文の管理コード

paymentStatus

paymentStatus: string

paymentStatus は注文の決済ステータス

pointApplicationPrice

pointApplicationPrice: Money

pointApplicationPrice は利用ポイント金額

purchasedAt

purchasedAt: Date

purchasedAt は注文が購入された日時

retailLocation

retailLocation: RetailLocation | null

retailLocation はこの注文が発生した店舗ロケーション(Shopify(EC)など実店舗を伴わない注文の場合はnull)

source

source: string

source は注文の発生元 リテールポータルからの客注は "客注(店舗ポータル)"、店舗POS(TERRA Front)からの注文は "TERRA Front"、Shopifyからの注文はショップドメインが入る。 sourceの値は過去の名称のまま "客注(店舗ポータル)" である。

subtotalPrice

subtotalPrice: Money

subtotalPrice は注文の小計

subtotalPriceBeforeTaxes

subtotalPriceBeforeTaxes: Money

subtotalPriceBeforeTaxes はsubtotalPriceから注文明細の税額の合計を差し引いた注文の小計(税抜) 注文の税込・税抜設定に関わらず、常に税抜の金額が入る。

tags

tags: string[]

tags は注文に付与されているタグの一覧

totalOrderDiscountPrice

totalOrderDiscountPrice: Money

totalOrderDiscountPrice は注文レベルと注文明細レベルの割引の合計金額

totalPrice

totalPrice: Money

totalPrice は注文の合計金額

totalQuantity

totalQuantity: number

totalQuantity は注文時の注文明細の総数量

totalTaxPrice

totalTaxPrice: Money

totalTaxPrice は注文作成時の送料明細の税の合計金額

updatedAt

updatedAt: Date

updatedAt は注文が最後に更新された日時

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / OrderLineItem

Type Alias: OrderLineItem

OrderLineItem: object

OrderLineItem は注文の注文明細を表す。

Type declaration

createdAt

createdAt: Date

createdAt は注文明細が作成された日時

currentPrice

currentPrice: Money

currentPrice はpriceから返金を考慮した価格(割引を含まない)

currentPriceBeforeTaxes

currentPriceBeforeTaxes: Money

currentPriceBeforeTaxes はpriceBeforeTaxesから返金を考慮した価格(割引を含まない) 注文の税込・税抜設定に関わらず、常に税抜の金額が入る。

currentQuantity

currentQuantity: number

currentQuantity は返品・返金を反映した現在の数量

currentSubtotalPrice

currentSubtotalPrice: Money

currentSubtotalPrice はsubtotalPriceから返金を考慮した価格

currentTotalTaxPrice

currentTotalTaxPrice: Money

currentTotalTaxPrice はtotalTaxPriceから注文返金の税の合計金額を差し引いた価格

featuredImage

featuredImage: Image | null

featuredImage は注文明細の商品画像(商品に画像が無い場合や商品が紐づかない場合はnull)

id

id: string

id は注文明細の一意識別子

price

price: Money

price は注文作成時の注文明細の商品の合計価格(割引を含まない) unitPrice * quantityの金額が入る。

priceBeforeTaxes

priceBeforeTaxes: Money

priceBeforeTaxes は注文作成時の注文明細の商品の合計税抜価格(割引を含まない) 注文の税込・税抜設定に関わらず、常に税抜の金額が入る。

productTitle

productTitle: string

productTitle は注文作成時の商品名

productVariantTitle

productVariantTitle: string

productVariantTitle は注文作成時の商品バリエーション名

quantity

quantity: number

quantity は注文作成時の数量

sku

sku: string

sku は注文作成時の注文明細のSKUコード

subtotalPrice

subtotalPrice: Money

subtotalPrice は注文作成時の注文明細の合計金額から商品割引の金額を差し引いた価格

totalTaxPrice

totalTaxPrice: Money

totalTaxPrice は注文作成時の注文明細の税の合計金額

unitPrice

unitPrice: Money

unitPrice は注文作成時の商品の単価(割引を含まない)

updatedAt

updatedAt: Date

updatedAt は注文明細が最後に更新された日時

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / OrderLineItems

Type Alias: OrderLineItems

OrderLineItems: object

OrderLineItems は注文の注文明細一覧を表す

Type declaration

nodes

nodes: OrderLineItem[]

nodes は注文明細の配列

pageInfo

pageInfo: PageInfo

pageInfo はページネーション情報

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / OrderRetailReturn

Type Alias: OrderRetailReturn

OrderRetailReturn: object

OrderRetailReturn は顧客のレシートなし返品を表す。 レシートなし返品は注文に紐づかない店舗返品で、注文への参照を持たない。

Type declaration

createdAt

createdAt: Date

createdAt は返品が作成された日時

id

id: string

id は返品の一意識別子

lineItems

lineItems: OrderRetailReturnLineItems

lineItems は返品の返品明細一覧

managementCode

managementCode: string

managementCode は返品の管理コード 注文の管理コードの末尾に作成順の連番を付与した形。例: "#1000-R1"

processedAt

processedAt: Date

processedAt は返品を処理した日時

retailLocation

retailLocation: RetailLocation

retailLocation は返品した店舗ロケーション

source

source: string

source は返品の発生元 例: 店舗POS(TERRA Front)からの返品は "TERRA Front" が入る。

updatedAt

updatedAt: Date

updatedAt は返品が最後に更新された日時

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / OrderRetailReturnLineItem

Type Alias: OrderRetailReturnLineItem

OrderRetailReturnLineItem: object

OrderRetailReturnLineItem はレシートなし返品の返品明細を表す。

Type declaration

createdAt

createdAt: Date

createdAt は返品明細が作成された日時

featuredImage

featuredImage: Image | null

featuredImage は返品明細の商品画像(商品に画像が無い場合や商品バリエーションが紐づかない場合はnull)

id

id: string

id は返品明細の一意識別子

productTitle

productTitle: string | null

productTitle は返品した商品の現在の商品名(商品バリエーションが紐づかない場合はnull) 返品時点の商品名ではなく、取得時点の商品名を返す。

productVariantTitle

productVariantTitle: string | null

productVariantTitle は返品した商品の現在の商品バリエーション名(商品バリエーションが紐づかない場合はnull) 返品時点の商品バリエーション名ではなく、取得時点の商品バリエーション名を返す。

quantity

quantity: number

quantity は返品した数量

sku

sku: string

sku は返品した商品のSKUコード

updatedAt

updatedAt: Date

updatedAt は返品明細が最後に更新された日時

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / OrderRetailReturnLineItems

Type Alias: OrderRetailReturnLineItems

OrderRetailReturnLineItems: object

OrderRetailReturnLineItems はレシートなし返品の返品明細一覧を表す

Type declaration

nodes

nodes: OrderRetailReturnLineItem[]

nodes は返品明細の配列

pageInfo

pageInfo: PageInfo

pageInfo はページネーション情報

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / OrderRetailReturns

Type Alias: OrderRetailReturns

OrderRetailReturns: object

OrderRetailReturns は顧客のレシートなし返品の一覧を表す

Type declaration

nodes

nodes: OrderRetailReturn[]

nodes はレシートなし返品の配列

pageInfo

pageInfo: PageInfo

pageInfo はページネーション情報

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / Orders

Type Alias: Orders

Orders: object

Orders はログイン中の顧客自身の注文一覧を表す

Type declaration

nodes

nodes: Order[]

nodes は注文の配列

pageInfo

pageInfo: PageInfo

pageInfo はページネーション情報

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / OrdersFilter

Type Alias: OrdersFilter

OrdersFilter: object

OrdersFilter は注文一覧の絞り込み条件を表す。

Type declaration

sources

sources: string[]

sources は絞り込む注文元(source)の一覧 指定したいずれかのsourceに一致する注文に絞り込む。1件以上100件まで指定できる。 例: リテールポータルからの客注は "客注(店舗ポータル)"、店舗POS(TERRA Front)からの注文は "TERRA Front"、Shopifyからの注文はショップドメインが入る。 リテールポータルのsourceの値は過去の名称のまま "客注(店舗ポータル)" である。

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PageInfo

Type Alias: PageInfo

PageInfo: object

PageInfo はページングを伴って一覧を取得したときに、その一覧のページングの情報を表す。

Type declaration

endCursor

endCursor: string

endCursor は一覧の末尾のカーソルを表す。 このカーソルを使って次のページを取得することができる。

hasNextPage

hasNextPage: boolean

hasNextPage は次のページがあるかどうかを表す。

hasPreviousPage

hasPreviousPage: boolean

hasPreviousPage は前のページがあるかどうかを表す。

startCursor

startCursor: string

startCursor は一覧の先頭のカーソルを表す。

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PointCampaignOrderRule

Type Alias: PointCampaignOrderRule

PointCampaignOrderRule: object

PointCampaignOrderRule はポイントキャンペーンの設定を表す。

Type declaration

id

id: string

pointMethod

pointMethod: string

キャンペーンポイントの計算方法

targetType

targetType: string

キャンペーンポイント付与対象の種別

title

title: string

キャンペーンのタイトル

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PointCampaignOrderRuleTargetCustomerRank

Type Alias: PointCampaignOrderRuleTargetCustomerRank

PointCampaignOrderRuleTargetCustomerRank: object

PointCampaignOrderRuleTargetCustomerRank は会員ランク種別のポイントキャンペーンの設定を表す。 以下の場合はnullを返す

  • 開催期間中であるキャンペーンが存在しない場合
  • 存在するが種別が会員ランクではない場合
  • 未ログインの場合

Type declaration

fixedPoint?

optional fixedPoint: string

顧客に適用されるキャンペーン固定ポイント 以下の場合はnullを返す

  • 該当キャンペーンが存在しない場合
  • 未ログイン状態の場合
  • 計算方法が固定ポイントでない場合

multiplier?

optional multiplier: string

顧客に適用されるキャンペーン倍率 以下の場合はnullを返す

  • 該当キャンペーンが存在しない場合
  • 未ログイン状態の場合
  • 計算方法が倍率でない場合

pointCampaignOrderRule

pointCampaignOrderRule: PointCampaignOrderRule

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PointChange

Type Alias: PointChange

PointChange: object

PointChange はポイントの変動を表す。

Type declaration

availableAt?

optional availableAt: Date

ポイントが利用可能になる日時。nilの場合はまだ利用可能になる日時が決まっていない。主に未配送注文に関するポイントはnilになる。

availableUntil?

optional availableUntil: Date

ポイントが利用できる期限。失効する直前を表すため、expiresDateから1ナノ秒を引いた値となる。 例えば、expiresDateが 2024-06-12 00:00:00 なら、availableUntilは 2024-06-11 23:59:59.999999999 となる。

createdAt

createdAt: Date

PointChangeのコミットタイムスタンプ

delta

delta: number

ポイント変動の数値。正負どちらの値も取りうる。

expiresDate?

optional expiresDate: Date

ポイントの失効日。nilの場合はまだ失効日が決まっていない。ポイント消費や、未配送注文に関するポイントはnilになる。

id

id: string

pointChangeCreatedAt

pointChangeCreatedAt: Date

ポイントの発生日時

tenant

tenant: Tenant

ポイントに紐づくテナント情報

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PointChangeActivities

Type Alias: PointChangeActivities

PointChangeActivities: object

PointChangeActivities はポイントの変動の履歴一覧を表す。

Type declaration

nodes

nodes: PointChangeActivity[]

pageInfo

pageInfo: PageInfo

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PointChangeActivity

Type Alias: PointChangeActivity

PointChangeActivity: object

PointChangeActivity はポイントの変動の履歴を表す。

Type declaration

id

id: string

pointChange

pointChange: PointChange

retailLocation?

optional retailLocation: Location

tenant

tenant: Tenant

title

title: string

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PointExpiration

Type Alias: PointExpiration

PointExpiration: object

PointExpiration は失効するポイントを表す。

Type declaration

availableUntil

availableUntil: Date

availableUntil はポイントが利用できる期限を表す。失効する直前を表すため、expiresDate から1ナノ秒を引いた値となる。 例えば、expiresDate が 2024-06-12 00:00:00 なら、availableUntil は 2024-06-11 23:59:59.999999999 となる。

expiresDate

expiresDate: Date

expiresDate はポイントの失効日を表す。

points

points: number

points は失効するポイントを表す。

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PointMultiplierCustomerRankRule

Type Alias: PointMultiplierCustomerRankRule

PointMultiplierCustomerRankRule: object

PointMultiplierCustomerRankRule はこの会員ランクの注文時ポイント倍率を表す。

Type declaration

customerRankRule

customerRankRule: CustomerRankRule

id

id: string

multiplier

multiplier: string

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / Points

Type Alias: Points

Points: object

Points は SDK から取得できるポイントの情報を表す。

Type declaration

pointsApproved

pointsApproved: number

PointsApproved は保有ポイントを表す。

pointsExpiringSoon?

optional pointsExpiringSoon: PointExpiration

PointsExpiringSoon は最も直近の失効予定ポイントを表す。

pointsPending

pointsPending: number

PointsPending は獲得予定ポイントを表す。

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PointsByLabel

Type Alias: PointsByLabel

PointsByLabel: object

PointsByLabel は指定ラベルに絞ったポイントの情報を表す。

Type declaration

pointsApproved

pointsApproved: number

pointsApproved は指定ラベルに絞った保有ポイントを表す。

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / Product

Type Alias: Product

Product: object

Product は商品情報を表す。

Type declaration

hasBackOrderProductVariants

hasBackOrderProductVariants: boolean

商品が持つバリエーションに1つでも予約販売設定がされている場合trueが返る

id

id: string

isLocalPickupAvailable

isLocalPickupAvailable: boolean

商品の店舗受取が可能な場合にtrueが返る

title

title: string

商品のタイトル

variants

variants: ProductVariants

商品のバリエーション一覧

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / ProductVariant

Type Alias: ProductVariant

ProductVariant: object

ProductVariant は商品のバリエーションを表す。

Type declaration

id

id: string

inventoryItem

inventoryItem: InventoryItem

在庫情報

isBackOrderEnable

isBackOrderEnable: boolean

予約販売が設定されている場合にtrueが返る

isLocalPickupAvailable

isLocalPickupAvailable: boolean

商品の店舗受取が可能な場合にtrueが返る

title

title: string

商品バリエーションのタイトル

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / ProductVariants

Type Alias: ProductVariants

ProductVariants: object

ProductVariants は商品のバリエーションの一覧を取得するための情報を表す。

Type declaration

nodes

nodes: ProductVariant[]

pageInfo

pageInfo: PageInfo

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PurchasingCustomer

Type Alias: PurchasingCustomer

PurchasingCustomer: object

Type declaration

id

id: string

sharingPurchasingCustomerCount

sharingPurchasingCustomerCount: number

tenant

tenant: Tenant

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PurchasingCustomerBarcode

Type Alias: PurchasingCustomerBarcode

PurchasingCustomerBarcode: object

PurchasingCustomerBarcode は、顧客の会員証バーコード情報を表す。

Type declaration

barcode

barcode: string

顧客の会員証バーコード

id

id: string

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PurchasingCustomerDiscount

Type Alias: PurchasingCustomerDiscount

PurchasingCustomerDiscount: object

PurchasingCustomerDiscount は購入者の割引情報を表す。

Type declaration

applicableLocationCount

applicableLocationCount: number

code

code: string

createdAt

createdAt: Date

customerApplicable

customerApplicable: boolean

Discountがこの顧客で有効かどうかを表す。

description

description: string

endsAt

endsAt: Date

hasApplicableLocations

hasApplicableLocations: boolean

id

id: string

shopifyStoreApplicable

shopifyStoreApplicable: boolean

startsAt

startsAt: Date

status

status: string

Discountのステータス。"ACTIVE", "SCHEDULED", "EXPIRED" のいずれかが入る。

title

title: string

updatedAt

updatedAt: Date

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PurchasingCustomerDiscounts

Type Alias: PurchasingCustomerDiscounts

PurchasingCustomerDiscounts: object

PurchasingCustomerDiscounts は PurchasingCustomerDiscount の一覧を取得するための情報を表す。

Type declaration

id

id: string

nodes

nodes: PurchasingCustomerDiscount[]

pageInfo

pageInfo: PageInfo

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PurchasingCustomerMetafield

Type Alias: PurchasingCustomerMetafield

PurchasingCustomerMetafield: object

PurchasingCustomerMetafield は購入者のカスタムメタフィールドを表す。

Type declaration

id

id: string

key

key: string

namespace

namespace: string

value

value: string

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PurchasingCustomerRetailOrder

Type Alias: PurchasingCustomerRetailOrder

PurchasingCustomerRetailOrder: object

PurchasingCustomerRetailOrder は、顧客の店舗注文に関する情報を表す。

Type declaration

cancelledAt

cancelledAt: Date | null

cancelledAt は注文のキャンセル日時(キャンセルされていない場合はnull)

createdAt

createdAt: Date

createdAt は注文が作成された日時

currentPointApplicationPrice

currentPointApplicationPrice: Money

currentPointApplicationPrice は現在の利用ポイント金額

currentSubtotalPrice

currentSubtotalPrice: Money

currentSubtotalPrice は注文作成時の注文明細の合計金額から商品割引の金額を差し引き返金を考慮した価格

currentTotalQuantity

currentTotalQuantity: number

currentTotalQuantity は返金を考慮した商品の総数量

currentTotalTaxPrice

currentTotalTaxPrice: Money

currentTotalTaxPrice は現在の注文の合計税金額

fulfilledAt

fulfilledAt: Date | null

fulfilledAt は注文の出荷日時(未出荷の場合はnull)

id

id: string

id は注文の一意識別子

isCancelled

isCancelled: boolean

isCancelled は注文がキャンセル済みかどうかを表すフラグ

managementCode

managementCode: string

managementCode は注文の管理コード

paymentStatus

paymentStatus: string

paymentStatus は注文の決済ステータス

pointApplicationPrice

pointApplicationPrice: Money

pointApplicationPrice は利用ポイント金額

purchasedAt

purchasedAt: Date

purchasedAt は注文が購入された日時

retailLocation

retailLocation: RetailLocation

retailLocation はこの注文が発生した店舗ロケーション

source

source: string

source は注文の発生元

subtotalPrice

subtotalPrice: Money

subtotalPrice は注文の小計

tags

tags: string[]

tags は注文に付与されているタグの一覧

totalOrderDiscountPrice

totalOrderDiscountPrice: Money

totalOrderDiscountPrice は注文レベルと注文明細レベルの割引の合計金額

totalPrice

totalPrice: Money

totalPrice は注文の合計金額

totalQuantity

totalQuantity: number

totalQuantity は注文時の注文明細の総数量

totalTaxPrice

totalTaxPrice: Money

totalTaxPrice は注文作成時の送料明細の税の合計金額

updatedAt

updatedAt: Date

updatedAt は注文が最後に更新された日時

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PurchasingCustomerRetailOrders

Type Alias: PurchasingCustomerRetailOrders

PurchasingCustomerRetailOrders: object

PurchasingCustomerRetailOrders は顧客の店舗注文一覧を表す

Type declaration

nodes

nodes: PurchasingCustomerRetailOrder[]

nodes は店舗注文の配列

pageInfo

pageInfo: PageInfo

pageInfo はページネーション情報

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PurchasingCustomerSMS

Type Alias: PurchasingCustomerSMS

PurchasingCustomerSMS: object

PurchasingCustomerSMS は、顧客のSMS認証情報を表す。

Type declaration

id

id: string

smsVerified

smsVerified: boolean

この会員がSMS認証を行ったかどうかを表すフラグ

smsVerifiedPhone

smsVerifiedPhone: string

この会員がSMS認証を行った電話番号

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / PurchasingCustomerSharing

Type Alias: PurchasingCustomerSharing

PurchasingCustomerSharing: object

Type declaration

id

id: string

purchasingCustomers

purchasingCustomers: PurchasingCustomer[]

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / RetailLocation

Type Alias: RetailLocation

RetailLocation: object

RetailLocation は店舗のロケーション情報を表す。

Type declaration

code

code: string

ロケーションのコード

displayName

displayName: string

店舗ロケーションの表示名(顧客向けの名称)

id

id: string

店舗ロケーションの一意識別子

name

name: string

店舗ロケーションの内部名称

@builtbystack/sq-shopify-theme-sdk • Docs


@builtbystack/sq-shopify-theme-sdk / Tenant

Type Alias: Tenant

Tenant: object

Tenant はテナント情報を表す。

Type declaration

id

id: string

name

name: string