@builtbystack/sq-shopify-theme-sdk 0.0.14 → 0.0.15
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 +44 -2
- package/dist/sq-shopify-theme-sdk.d.ts +10 -1
- package/dist/sq-shopify-theme-sdk.js +187 -159
- package/dist/sq-shopify-theme-sdk.umd.js +46 -34
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -250,6 +250,24 @@ getSharingPurchasingCustomerCount は顧客が共有化している数を返し
|
|
|
250
250
|
|
|
251
251
|
***
|
|
252
252
|
|
|
253
|
+
#### purchasingCustomerActivateCustomerSharing()
|
|
254
|
+
|
|
255
|
+
> **purchasingCustomerActivateCustomerSharing**(`email`, `activationCode`): `Promise`\<`null` \| [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)\>
|
|
256
|
+
|
|
257
|
+
purchasingCustomerActivateCustomerSharing はクティベーションコードを入力して顧客を有効化する。
|
|
258
|
+
|
|
259
|
+
##### Parameters
|
|
260
|
+
|
|
261
|
+
• **email**: `string`
|
|
262
|
+
|
|
263
|
+
• **activationCode**: `string`
|
|
264
|
+
|
|
265
|
+
##### Returns
|
|
266
|
+
|
|
267
|
+
`Promise`\<`null` \| [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)\>
|
|
268
|
+
|
|
269
|
+
***
|
|
270
|
+
|
|
253
271
|
#### purchasingCustomerSendCustomerSharingActivationCode()
|
|
254
272
|
|
|
255
273
|
> **purchasingCustomerSendCustomerSharingActivationCode**(): `Promise`\<`null` \| [`CustomerSharingActivationCode`](#type-aliasescustomersharingactivationcodemd)\>
|
|
@@ -291,6 +309,7 @@ purchasingCustomerSendCustomerSharingActivationCode はログインしている
|
|
|
291
309
|
- [PointChangeActivity](#type-aliasespointchangeactivitymd)
|
|
292
310
|
- [PointMultiplierCustomerRankRule](#type-aliasespointmultipliercustomerrankrulemd)
|
|
293
311
|
- [Points](#type-aliasespointsmd)
|
|
312
|
+
- [PurchasingCustomer](#type-aliasespurchasingcustomermd)
|
|
294
313
|
- [PurchasingCustomerDiscount](#type-aliasespurchasingcustomerdiscountmd)
|
|
295
314
|
- [PurchasingCustomerDiscounts](#type-aliasespurchasingcustomerdiscountsmd)
|
|
296
315
|
- [PurchasingCustomerMetafield](#type-aliasespurchasingcustomermetafieldmd)
|
|
@@ -535,9 +554,9 @@ CustomerRankRule は会員ランクのルールを表す。
|
|
|
535
554
|
|
|
536
555
|
> **customerSharingActivationCodeID**: `string`
|
|
537
556
|
|
|
538
|
-
####
|
|
557
|
+
#### purchasingCustomer
|
|
539
558
|
|
|
540
|
-
> **
|
|
559
|
+
> **purchasingCustomer**: [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)
|
|
541
560
|
|
|
542
561
|
|
|
543
562
|
<a name="type-aliaseslocationmd"></a>
|
|
@@ -872,6 +891,29 @@ PointsApproved は保有ポイントを表す。
|
|
|
872
891
|
PointsPending は獲得予定ポイントを表す。
|
|
873
892
|
|
|
874
893
|
|
|
894
|
+
<a name="type-aliasespurchasingcustomermd"></a>
|
|
895
|
+
|
|
896
|
+
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
897
|
+
|
|
898
|
+
***
|
|
899
|
+
|
|
900
|
+
[@builtbystack/sq-shopify-theme-sdk](#globalsmd) / PurchasingCustomer
|
|
901
|
+
|
|
902
|
+
## Type Alias: PurchasingCustomer
|
|
903
|
+
|
|
904
|
+
> **PurchasingCustomer**: `object`
|
|
905
|
+
|
|
906
|
+
### Type declaration
|
|
907
|
+
|
|
908
|
+
#### id
|
|
909
|
+
|
|
910
|
+
> **id**: `string`
|
|
911
|
+
|
|
912
|
+
#### sharingPurchasingCustomerCount
|
|
913
|
+
|
|
914
|
+
> **sharingPurchasingCustomerCount**: `number`
|
|
915
|
+
|
|
916
|
+
|
|
875
917
|
<a name="type-aliasespurchasingcustomerdiscountmd"></a>
|
|
876
918
|
|
|
877
919
|
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
@@ -100,7 +100,7 @@ export declare type CustomerRankRule = {
|
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
export declare type CustomerSharingActivationCode = {
|
|
103
|
-
|
|
103
|
+
purchasingCustomer: PurchasingCustomer;
|
|
104
104
|
customerSharingActivationCodeID: string;
|
|
105
105
|
};
|
|
106
106
|
|
|
@@ -247,6 +247,11 @@ export declare type Points = {
|
|
|
247
247
|
pointsPending: number;
|
|
248
248
|
};
|
|
249
249
|
|
|
250
|
+
export declare type PurchasingCustomer = {
|
|
251
|
+
id: string;
|
|
252
|
+
sharingPurchasingCustomerCount: number;
|
|
253
|
+
};
|
|
254
|
+
|
|
250
255
|
/**
|
|
251
256
|
* PurchasingCustomerDiscount は購入者の割引情報を表す。
|
|
252
257
|
*/
|
|
@@ -364,6 +369,10 @@ export declare class SDK {
|
|
|
364
369
|
* purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信する。
|
|
365
370
|
*/
|
|
366
371
|
purchasingCustomerSendCustomerSharingActivationCode(): Promise<CustomerSharingActivationCode | null>;
|
|
372
|
+
/**
|
|
373
|
+
* purchasingCustomerActivateCustomerSharing はクティベーションコードを入力して顧客を有効化する。
|
|
374
|
+
*/
|
|
375
|
+
purchasingCustomerActivateCustomerSharing(email: string, activationCode: string): Promise<PurchasingCustomer | null>;
|
|
367
376
|
}
|
|
368
377
|
|
|
369
378
|
export { }
|