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

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
@@ -51,6 +51,46 @@ SDKは名前空間 `SQ` 内に存在するため、SDKの初期化は `new SQ.SD
51
51
 
52
52
  ### Methods
53
53
 
54
+ #### getEstimatedShopifyCartLineItemPoint()
55
+
56
+ > **getEstimatedShopifyCartLineItemPoint**(`currencyCode`, `taxesIncluded`, `sku`, `quantity`, `unitPrice`): `Promise`\<`null` \| [`EstimatedPoint`](#type-aliasesestimatedpointmd)\>
57
+
58
+ ##### Parameters
59
+
60
+ • **currencyCode**: [`CurrencyCode`](#enumerationscurrencycodemd)
61
+
62
+ • **taxesIncluded**: `boolean`
63
+
64
+ • **sku**: `string`
65
+
66
+ • **quantity**: `number`
67
+
68
+ • **unitPrice**: `string`
69
+
70
+ ##### Returns
71
+
72
+ `Promise`\<`null` \| [`EstimatedPoint`](#type-aliasesestimatedpointmd)\>
73
+
74
+ ***
75
+
76
+ #### getEstimatedShopifyCartPoint()
77
+
78
+ > **getEstimatedShopifyCartPoint**(`currencyCode`, `taxesIncluded`, `lineItems`): `Promise`\<`null` \| [`EstimatedPoint`](#type-aliasesestimatedpointmd)\>
79
+
80
+ ##### Parameters
81
+
82
+ • **currencyCode**: [`CurrencyCode`](#enumerationscurrencycodemd)
83
+
84
+ • **taxesIncluded**: `boolean`
85
+
86
+ • **lineItems**: [`CartLineItem`](#type-aliasescartlineitemmd)[]
87
+
88
+ ##### Returns
89
+
90
+ `Promise`\<`null` \| [`EstimatedPoint`](#type-aliasesestimatedpointmd)\>
91
+
92
+ ***
93
+
54
94
  #### getLocationAvailabilities()
55
95
 
56
96
  > **getLocationAvailabilities**(`sku`, `first`?, `after`?, `isReverse`?): `Promise`\<[`LocationAvailabilities`](#type-aliaseslocationavailabilitiesmd)\>
@@ -337,6 +377,39 @@ purchasingCustomerSendCustomerSharingActivationCode はログインしている
337
377
 
338
378
  `Promise`\<`null` \| [`CustomerSharingActivationCode`](#type-aliasescustomersharingactivationcodemd)\>
339
379
 
380
+ # Enumerations
381
+
382
+
383
+ <a name="enumerationscurrencycodemd"></a>
384
+
385
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
386
+
387
+ ***
388
+
389
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / CurrencyCode
390
+
391
+ ## Enumeration: CurrencyCode
392
+
393
+ CurrencyCode は通貨コードを表す
394
+
395
+ ### Enumeration Members
396
+
397
+ #### Eur
398
+
399
+ > **Eur**: `"EUR"`
400
+
401
+ ***
402
+
403
+ #### Jpy
404
+
405
+ > **Jpy**: `"JPY"`
406
+
407
+ ***
408
+
409
+ #### Usd
410
+
411
+ > **Usd**: `"USD"`
412
+
340
413
 
341
414
  <a name="globalsmd"></a>
342
415
 
@@ -346,6 +419,10 @@ purchasingCustomerSendCustomerSharingActivationCode はログインしている
346
419
 
347
420
  # @builtbystack/sq-shopify-theme-sdk
348
421
 
422
+ ## Enumerations
423
+
424
+ - [CurrencyCode](#enumerationscurrencycodemd)
425
+
349
426
  ## Classes
350
427
 
351
428
  - [SDK](#classessdkmd)
@@ -353,11 +430,13 @@ purchasingCustomerSendCustomerSharingActivationCode はログインしている
353
430
  ## Type Aliases
354
431
 
355
432
  - [Address](#type-aliasesaddressmd)
433
+ - [CartLineItem](#type-aliasescartlineitemmd)
356
434
  - [CustomerRank](#type-aliasescustomerrankmd)
357
435
  - [CustomerRankCalculationCondition](#type-aliasescustomerrankcalculationconditionmd)
358
436
  - [CustomerRankCalculationPeriod](#type-aliasescustomerrankcalculationperiodmd)
359
437
  - [CustomerRankRule](#type-aliasescustomerrankrulemd)
360
438
  - [CustomerSharingActivationCode](#type-aliasescustomersharingactivationcodemd)
439
+ - [EstimatedPoint](#type-aliasesestimatedpointmd)
361
440
  - [InventoryItem](#type-aliasesinventoryitemmd)
362
441
  - [Location](#type-aliaseslocationmd)
363
442
  - [LocationAvailabilities](#type-aliaseslocationavailabilitiesmd)
@@ -437,6 +516,41 @@ Address はLocationの住所を表す。
437
516
  > **provinceCode**: `string`
438
517
 
439
518
 
519
+ <a name="type-aliasescartlineitemmd"></a>
520
+
521
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
522
+
523
+ ***
524
+
525
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / CartLineItem
526
+
527
+ ## Type Alias: CartLineItem
528
+
529
+ > **CartLineItem**: `object`
530
+
531
+ CartLineItem はカートの商品明細情報を表す
532
+
533
+ ### Type declaration
534
+
535
+ #### quantity
536
+
537
+ > **quantity**: `number`
538
+
539
+ 商品の数量
540
+
541
+ #### sku
542
+
543
+ > **sku**: `string`
544
+
545
+ 商品のSKU
546
+
547
+ #### unitPrice
548
+
549
+ > **unitPrice**: `string`
550
+
551
+ 商品の単価
552
+
553
+
440
554
  <a name="type-aliasescustomerrankmd"></a>
441
555
 
442
556
  [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
@@ -626,6 +740,27 @@ CustomerRankRule は会員ランクのルールを表す。
626
740
  > **purchasingCustomer**: [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)
627
741
 
628
742
 
743
+ <a name="type-aliasesestimatedpointmd"></a>
744
+
745
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
746
+
747
+ ***
748
+
749
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / EstimatedPoint
750
+
751
+ ## Type Alias: EstimatedPoint
752
+
753
+ > **EstimatedPoint**: `object`
754
+
755
+ EstimatedPoint は獲得予想ポイントを表す
756
+
757
+ ### Type declaration
758
+
759
+ #### pointsEarned
760
+
761
+ > **pointsEarned**: `number`
762
+
763
+
629
764
  <a name="type-aliasesinventoryitemmd"></a>
630
765
 
631
766
  [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
@@ -13,6 +13,33 @@ export declare type Address = {
13
13
  address2: string;
14
14
  };
15
15
 
16
+ /**
17
+ * CartLineItem はカートの商品明細情報を表す
18
+ */
19
+ export declare type CartLineItem = {
20
+ /**
21
+ * 商品のSKU
22
+ */
23
+ sku: string;
24
+ /**
25
+ * 商品の数量
26
+ */
27
+ quantity: number;
28
+ /**
29
+ * 商品の単価
30
+ */
31
+ unitPrice: string;
32
+ };
33
+
34
+ /**
35
+ * CurrencyCode は通貨コードを表す
36
+ */
37
+ export declare enum CurrencyCode {
38
+ Eur = "EUR",
39
+ Jpy = "JPY",
40
+ Usd = "USD"
41
+ }
42
+
16
43
  /**
17
44
  * CustomerRank は会員ランクを表す。
18
45
  */
@@ -104,6 +131,13 @@ export declare type CustomerSharingActivationCode = {
104
131
  customerSharingActivationCodeID: string;
105
132
  };
106
133
 
134
+ /**
135
+ * EstimatedPoint は獲得予想ポイントを表す
136
+ */
137
+ export declare type EstimatedPoint = {
138
+ pointsEarned: number;
139
+ };
140
+
107
141
  /**
108
142
  * InventoryItem は在庫情報を表す。
109
143
  */
@@ -489,6 +523,8 @@ export declare class SDK {
489
523
  getPurchasingCustomerSharing(): Promise<PurchasingCustomerSharing | null>;
490
524
  getProduct(id: string, first?: number, after?: string, isReverse?: boolean, sortKeys?: ProductVariantSortKeys): Promise<Product | null>;
491
525
  getPointCampaignOrderRuleTargetCustomerRank(): Promise<PointCampaignOrderRuleTargetCustomerRank | null>;
526
+ getEstimatedShopifyCartPoint(currencyCode: CurrencyCode, taxesIncluded: boolean, lineItems: CartLineItem[]): Promise<EstimatedPoint | null>;
527
+ getEstimatedShopifyCartLineItemPoint(currencyCode: CurrencyCode, taxesIncluded: boolean, sku: string, quantity: number, unitPrice: string): Promise<EstimatedPoint | null>;
492
528
  /**
493
529
  * purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信します。
494
530
  */