oneentry 1.0.71 → 1.0.72
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 +638 -805
- package/dist/auth-provider/authProviderApi.d.ts +3 -2
- package/dist/auth-provider/authProviderApi.js +5 -2
- package/dist/auth-provider/authProvidersInterfaces.d.ts +7 -3
- package/dist/blocks/blocksApi.d.ts +3 -3
- package/dist/blocks/blocksApi.js +6 -6
- package/dist/blocks/blocksInterfaces.d.ts +2 -2
- package/dist/formsData/formsDataInterfaces.d.ts +2 -2
- package/dist/orders/ordersInterfaces.d.ts +5 -5
- package/dist/pages/pagesApi.js +1 -1
- package/dist/pages/pagesInterfaces.d.ts +4 -2
- package/dist/payments/paymentsApi.d.ts +2 -2
- package/dist/payments/paymentsInterfaces.d.ts +11 -33
- package/dist/products/productsInterfaces.d.ts +5 -5
- package/dist/templates-preview/templatesPreviewApi.d.ts +3 -3
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +3 -30
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -467,7 +467,7 @@ Example return:
|
|
|
467
467
|
"phoneSMS": "+9999999999"
|
|
468
468
|
},
|
|
469
469
|
"systemCode": {
|
|
470
|
-
"value": "
|
|
470
|
+
"value": "90BDCX",
|
|
471
471
|
"expiredDate": "2024-05-07T21:02:00.000Z"
|
|
472
472
|
}
|
|
473
473
|
}
|
|
@@ -506,7 +506,7 @@ example: OrderedMap { "email": "test@test.zone", "phonePush": "", "phoneSMS": "
|
|
|
506
506
|
|
|
507
507
|
**systemCode:** string <br>
|
|
508
508
|
*system code for performing official actions (password reset, activation)* <br>
|
|
509
|
-
example: OrderedMap { "value": "
|
|
509
|
+
example: OrderedMap { "value": "90BDCX", "expiredDate": "2024-05-07T21:02:00.000Z" } <br>
|
|
510
510
|
|
|
511
511
|
**formIdentifier:** string <br>
|
|
512
512
|
*the text identifier of the authorization provider's form* <br>
|
|
@@ -523,15 +523,24 @@ example: 1 <br>
|
|
|
523
523
|
</details>
|
|
524
524
|
|
|
525
525
|
|
|
526
|
-
### AuthProvider.generateCode(marker, userIdentifier)
|
|
526
|
+
### AuthProvider.generateCode(marker, userIdentifier, eventIdentifier)
|
|
527
527
|
|
|
528
528
|
|
|
529
529
|
```js
|
|
530
|
-
const value = await AuthProvider.generateCode('email', 'test@trer.com')
|
|
530
|
+
const value = await AuthProvider.generateCode('email', 'test@trer.com', 'auth')
|
|
531
531
|
```
|
|
532
532
|
|
|
533
533
|
> This method receives a code to activate the user. The code is returned via the appropriate user notification method
|
|
534
534
|
|
|
535
|
+
Example return:
|
|
536
|
+
|
|
537
|
+
```json
|
|
538
|
+
{
|
|
539
|
+
"userIdentifier": "example@oneentry.cloud",
|
|
540
|
+
"eventIdentifier": "auth"
|
|
541
|
+
}
|
|
542
|
+
```
|
|
543
|
+
|
|
535
544
|
|
|
536
545
|
### AuthProvider.checkCode(marker, userIdentifier, code)
|
|
537
546
|
|
|
@@ -697,16 +706,22 @@ Example return:
|
|
|
697
706
|
```json
|
|
698
707
|
[
|
|
699
708
|
{
|
|
700
|
-
"id":
|
|
709
|
+
"id": 1,
|
|
701
710
|
"localizeInfos": {
|
|
702
|
-
"title": "
|
|
711
|
+
"title": "email"
|
|
703
712
|
},
|
|
704
|
-
"
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
713
|
+
"config": {
|
|
714
|
+
"deleteNoneActiveUsersAfterDays": 2,
|
|
715
|
+
"systemCodeTlsSec": 120,
|
|
716
|
+
"systemCodeLength": 8,
|
|
717
|
+
"systemCodeOnlyNumbers": null
|
|
718
|
+
},
|
|
719
|
+
"version": 0,
|
|
720
|
+
"identifier": "email",
|
|
708
721
|
"type": "email",
|
|
709
|
-
"formIdentifier":
|
|
722
|
+
"formIdentifier": "reg",
|
|
723
|
+
"isActive": true,
|
|
724
|
+
"isCheckCode": false
|
|
710
725
|
}
|
|
711
726
|
]
|
|
712
727
|
```
|
|
@@ -760,18 +775,26 @@ const value = await AuthProvider.getMarker('email')
|
|
|
760
775
|
Example return:
|
|
761
776
|
|
|
762
777
|
```json
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
778
|
+
[
|
|
779
|
+
{
|
|
780
|
+
"id": 1,
|
|
781
|
+
"localizeInfos": {
|
|
782
|
+
"title": "email"
|
|
783
|
+
},
|
|
784
|
+
"version": 0,
|
|
785
|
+
"identifier": "email",
|
|
786
|
+
"type": "email",
|
|
787
|
+
"formIdentifier": "reg",
|
|
788
|
+
"isActive": true,
|
|
789
|
+
"isCheckCode": false,
|
|
790
|
+
"config": {
|
|
791
|
+
"deleteNoneActiveUsersAfterDays": 2,
|
|
792
|
+
"systemCodeLength": 8,
|
|
793
|
+
"systemCodeOnlyNumbers": null,
|
|
794
|
+
"systemCodeTlsSec": 120
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
]
|
|
775
798
|
```
|
|
776
799
|
<details>
|
|
777
800
|
<summary>Schema</summary>
|
|
@@ -823,7 +846,7 @@ const { Blocks } = defineOneEntry('your-url');
|
|
|
823
846
|
### Blocks.getBlocks(type, langCode, offset, limit)
|
|
824
847
|
|
|
825
848
|
```js
|
|
826
|
-
const value = await Blocks.getBlocks()
|
|
849
|
+
const value = await Blocks.getBlocks('forTextBlock')
|
|
827
850
|
```
|
|
828
851
|
|
|
829
852
|
> This method return array of all blocks object. Available values of type : forCatalogProducts, forBasketPage, forErrorPage, forCatalogPages, forProductPreview, forProductPage, forSimilarProductBlock, forStatisticProductBlock, forProductBlock, forForm, forFormField, forNewsPage, forNewsBlock, forNewsPreview, forOneNewsPage, forUsualPage, forTextBlock, forSlider, forOrder, service
|
|
@@ -833,57 +856,18 @@ Example return:
|
|
|
833
856
|
```json
|
|
834
857
|
[
|
|
835
858
|
{
|
|
836
|
-
"id":
|
|
859
|
+
"id": 1,
|
|
837
860
|
"localizeInfos": {
|
|
838
|
-
"title": "
|
|
861
|
+
"title": "Block"
|
|
839
862
|
},
|
|
840
863
|
"version": 0,
|
|
841
|
-
"position":
|
|
842
|
-
"identifier": "
|
|
843
|
-
"type": "
|
|
864
|
+
"position": 1,
|
|
865
|
+
"identifier": "block",
|
|
866
|
+
"type": "forTextBlock",
|
|
844
867
|
"templateIdentifier": null,
|
|
845
868
|
"isVisible": true,
|
|
846
|
-
"attributeValues": {
|
|
847
|
-
|
|
848
|
-
"type": "string",
|
|
849
|
-
"value": "",
|
|
850
|
-
"position": 0,
|
|
851
|
-
"isProductPreview": false
|
|
852
|
-
}
|
|
853
|
-
},
|
|
854
|
-
"countElementsPerRow": 3,
|
|
855
|
-
"products": [
|
|
856
|
-
{
|
|
857
|
-
"id": 446,
|
|
858
|
-
"localizeInfos": {
|
|
859
|
-
"title": "new product 3"
|
|
860
|
-
},
|
|
861
|
-
"relatedIds": [1, 2],
|
|
862
|
-
"statusId": null,
|
|
863
|
-
"attributeSetId": 11,
|
|
864
|
-
"position": 3,
|
|
865
|
-
"templateIdentifier": null,
|
|
866
|
-
"shortDescTemplateIdentifier": null,
|
|
867
|
-
"price": 543,
|
|
868
|
-
"sku": "ggg",
|
|
869
|
-
"isSync": true,
|
|
870
|
-
"attributeValues": {
|
|
871
|
-
"sku": {
|
|
872
|
-
"type": "string",
|
|
873
|
-
"value": "ggg",
|
|
874
|
-
"position": 0,
|
|
875
|
-
"isProductPreview": false
|
|
876
|
-
},
|
|
877
|
-
"images": {
|
|
878
|
-
"type": "groupOfImages",
|
|
879
|
-
"value": {},
|
|
880
|
-
"position": 3,
|
|
881
|
-
"isProductPreview": false
|
|
882
|
-
}
|
|
883
|
-
},
|
|
884
|
-
"isVisible": true
|
|
885
|
-
}
|
|
886
|
-
]
|
|
869
|
+
"attributeValues": {},
|
|
870
|
+
"countElementsPerRow": 0
|
|
887
871
|
}
|
|
888
872
|
]
|
|
889
873
|
```
|
|
@@ -941,7 +925,7 @@ example: null <br>
|
|
|
941
925
|
### Blocks.getBlockByMarker(marker, langCode)
|
|
942
926
|
|
|
943
927
|
```js
|
|
944
|
-
const value = await Blocks.getBlockByMarker('my-marker'
|
|
928
|
+
const value = await Blocks.getBlockByMarker('my-marker')
|
|
945
929
|
```
|
|
946
930
|
|
|
947
931
|
> This method return one blocks object by marker.
|
|
@@ -958,6 +942,7 @@ Example return:
|
|
|
958
942
|
"position": 1,
|
|
959
943
|
"identifier": "block",
|
|
960
944
|
"type": "forTextBlock",
|
|
945
|
+
"countElementsPerRow": 0,
|
|
961
946
|
"templateIdentifier": null,
|
|
962
947
|
"isVisible": true,
|
|
963
948
|
"attributeValues": {}
|
|
@@ -1031,19 +1016,27 @@ Example return:
|
|
|
1031
1016
|
"localizeInfos": {
|
|
1032
1017
|
"title": "Box"
|
|
1033
1018
|
},
|
|
1034
|
-
"
|
|
1035
|
-
"
|
|
1036
|
-
|
|
1019
|
+
"statusIdentifier": "sold",
|
|
1020
|
+
"statusLocalizeInfos": {
|
|
1021
|
+
"title": "Sold"
|
|
1022
|
+
},
|
|
1023
|
+
"attributeSetIdentifier": "products",
|
|
1037
1024
|
"position": 1,
|
|
1038
1025
|
"templateIdentifier": null,
|
|
1039
1026
|
"shortDescTemplateIdentifier": null,
|
|
1040
|
-
"price":
|
|
1027
|
+
"price": 148,
|
|
1028
|
+
"additional": {
|
|
1029
|
+
"prices": {
|
|
1030
|
+
"min": 120,
|
|
1031
|
+
"max": 150
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1041
1034
|
"sku": null,
|
|
1042
1035
|
"isSync": true,
|
|
1043
1036
|
"attributeValues": {
|
|
1044
1037
|
"price": {
|
|
1045
1038
|
"type": "integer",
|
|
1046
|
-
"value": "
|
|
1039
|
+
"value": "148",
|
|
1047
1040
|
"position": 1,
|
|
1048
1041
|
"isProductPreview": false
|
|
1049
1042
|
},
|
|
@@ -1052,6 +1045,12 @@ Example return:
|
|
|
1052
1045
|
"value": "Box text",
|
|
1053
1046
|
"position": 0,
|
|
1054
1047
|
"isProductPreview": false
|
|
1048
|
+
},
|
|
1049
|
+
"currency_products": {
|
|
1050
|
+
"type": "string",
|
|
1051
|
+
"value": "$",
|
|
1052
|
+
"position": 2,
|
|
1053
|
+
"isProductPreview": false
|
|
1055
1054
|
}
|
|
1056
1055
|
},
|
|
1057
1056
|
"isVisible": true
|
|
@@ -1074,29 +1073,42 @@ Example return:
|
|
|
1074
1073
|
```json
|
|
1075
1074
|
[
|
|
1076
1075
|
{
|
|
1077
|
-
"id":
|
|
1076
|
+
"id": 3,
|
|
1078
1077
|
"localizeInfos": {
|
|
1079
|
-
"title": "
|
|
1078
|
+
"title": "Product"
|
|
1080
1079
|
},
|
|
1081
|
-
"
|
|
1082
|
-
"
|
|
1083
|
-
"
|
|
1080
|
+
"statusIdentifier": null,
|
|
1081
|
+
"statusLocalizeInfos": {},
|
|
1082
|
+
"attributeSetIdentifier": "products",
|
|
1083
|
+
"position": 1,
|
|
1084
1084
|
"templateIdentifier": null,
|
|
1085
1085
|
"shortDescTemplateIdentifier": null,
|
|
1086
|
-
"price":
|
|
1087
|
-
"
|
|
1086
|
+
"price": 120,
|
|
1087
|
+
"additional": {
|
|
1088
|
+
"prices": {
|
|
1089
|
+
"min": 120,
|
|
1090
|
+
"max": 150
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
"sku": null,
|
|
1088
1094
|
"isSync": true,
|
|
1089
1095
|
"attributeValues": {
|
|
1090
|
-
"
|
|
1096
|
+
"price": {
|
|
1097
|
+
"type": "integer",
|
|
1098
|
+
"value": "120",
|
|
1099
|
+
"position": 1,
|
|
1100
|
+
"isProductPreview": false
|
|
1101
|
+
},
|
|
1102
|
+
"product-name": {
|
|
1091
1103
|
"type": "string",
|
|
1092
|
-
"value": "
|
|
1104
|
+
"value": "Prod",
|
|
1093
1105
|
"position": 0,
|
|
1094
1106
|
"isProductPreview": false
|
|
1095
1107
|
},
|
|
1096
|
-
"
|
|
1097
|
-
"type": "
|
|
1098
|
-
"value":
|
|
1099
|
-
"position":
|
|
1108
|
+
"currency_products": {
|
|
1109
|
+
"type": "string",
|
|
1110
|
+
"value": "$",
|
|
1111
|
+
"position": 2,
|
|
1100
1112
|
"isProductPreview": false
|
|
1101
1113
|
}
|
|
1102
1114
|
},
|
|
@@ -1583,6 +1595,7 @@ Example with a simple type attribute "radioButton" or "list"
|
|
|
1583
1595
|
"value": "1",
|
|
1584
1596
|
"extended": {
|
|
1585
1597
|
"value": "red",
|
|
1598
|
+
"type": "string",
|
|
1586
1599
|
"type": "string"
|
|
1587
1600
|
}
|
|
1588
1601
|
}
|
|
@@ -1600,6 +1613,7 @@ const body = {
|
|
|
1600
1613
|
formData: {
|
|
1601
1614
|
marker: 'test',
|
|
1602
1615
|
value: 'Test',
|
|
1616
|
+
"type": "string"
|
|
1603
1617
|
},
|
|
1604
1618
|
}
|
|
1605
1619
|
|
|
@@ -1619,7 +1633,8 @@ Example return:
|
|
|
1619
1633
|
"time": "2023-02-12 10:56",
|
|
1620
1634
|
"formData": {
|
|
1621
1635
|
"marker": "name_1",
|
|
1622
|
-
"value": "Name"
|
|
1636
|
+
"value": "Name",
|
|
1637
|
+
"type": "string"
|
|
1623
1638
|
}
|
|
1624
1639
|
}
|
|
1625
1640
|
```
|
|
@@ -1661,7 +1676,8 @@ Example return:
|
|
|
1661
1676
|
"time": "2023-02-12 10:56",
|
|
1662
1677
|
"formData": {
|
|
1663
1678
|
"marker": "name_1",
|
|
1664
|
-
"value": "Name"
|
|
1679
|
+
"value": "Name",
|
|
1680
|
+
"type": "string"
|
|
1665
1681
|
},
|
|
1666
1682
|
"attributeSetIdentifier": "test-form"
|
|
1667
1683
|
}
|
|
@@ -1711,7 +1727,8 @@ Example return:
|
|
|
1711
1727
|
"time": "2023-02-12 10:56",
|
|
1712
1728
|
"formData": {
|
|
1713
1729
|
"marker": "name_1",
|
|
1714
|
-
"value": "Name"
|
|
1730
|
+
"value": "Name",
|
|
1731
|
+
"type": "string"
|
|
1715
1732
|
},
|
|
1716
1733
|
"attributeSetIdentifier": "test-form"
|
|
1717
1734
|
}
|
|
@@ -1937,16 +1954,17 @@ const value = await Orders.getOrderByMarker('my-order')
|
|
|
1937
1954
|
Example return:
|
|
1938
1955
|
```json
|
|
1939
1956
|
{
|
|
1940
|
-
"id":
|
|
1957
|
+
"id": 2,
|
|
1941
1958
|
"localizeInfos": {
|
|
1942
|
-
"title": "
|
|
1959
|
+
"title": "My order"
|
|
1943
1960
|
},
|
|
1944
|
-
"
|
|
1945
|
-
"
|
|
1946
|
-
"formIdentifier": "
|
|
1961
|
+
"position": 1,
|
|
1962
|
+
"identifier": "my_order",
|
|
1963
|
+
"formIdentifier": "orderForm",
|
|
1964
|
+
"generalTypeId": 21,
|
|
1947
1965
|
"paymentAccountIdentifiers": [
|
|
1948
1966
|
{
|
|
1949
|
-
"identifier": "
|
|
1967
|
+
"identifier": "cash"
|
|
1950
1968
|
}
|
|
1951
1969
|
]
|
|
1952
1970
|
}
|
|
@@ -1985,33 +2003,17 @@ example: [{ "identifier": "p1" }] <br>
|
|
|
1985
2003
|
|
|
1986
2004
|
```js
|
|
1987
2005
|
const body = {
|
|
1988
|
-
"formIdentifier": "
|
|
1989
|
-
"paymentAccountIdentifier": "
|
|
1990
|
-
"formData":
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
},
|
|
1996
|
-
{
|
|
1997
|
-
"marker": "phone_order",
|
|
1998
|
-
"value": "+19999999999",
|
|
1999
|
-
"type": "string"
|
|
2000
|
-
},
|
|
2001
|
-
{
|
|
2002
|
-
"marker": "email_order",
|
|
2003
|
-
"value": "example@oneentry.cloud",
|
|
2004
|
-
"type": "string"
|
|
2005
|
-
}
|
|
2006
|
-
],
|
|
2006
|
+
"formIdentifier": "orderForm",
|
|
2007
|
+
"paymentAccountIdentifier": "cash",
|
|
2008
|
+
"formData": {
|
|
2009
|
+
"marker": "order_name",
|
|
2010
|
+
"value": "Ivan",
|
|
2011
|
+
"type": "string"
|
|
2012
|
+
},
|
|
2007
2013
|
"products": [
|
|
2008
2014
|
{
|
|
2009
|
-
"productId":
|
|
2010
|
-
"quantity":
|
|
2011
|
-
},
|
|
2012
|
-
{
|
|
2013
|
-
"productId": 446,
|
|
2014
|
-
"quantity": 3,
|
|
2015
|
+
"productId": 2,
|
|
2016
|
+
"quantity": 2
|
|
2015
2017
|
}
|
|
2016
2018
|
]
|
|
2017
2019
|
}
|
|
@@ -2027,12 +2029,15 @@ Example return:
|
|
|
2027
2029
|
"formIdentifier": "bars",
|
|
2028
2030
|
"paymentAccountIdentifier": "payment1",
|
|
2029
2031
|
"statusIdentifier": "inprogress",
|
|
2030
|
-
"formData":
|
|
2032
|
+
"formData": {
|
|
2033
|
+
"en_US": [
|
|
2031
2034
|
{
|
|
2032
|
-
"marker": "
|
|
2035
|
+
"marker": "naimenovanie_1",
|
|
2036
|
+
"type": "string",
|
|
2033
2037
|
"value": "Name"
|
|
2034
2038
|
}
|
|
2035
|
-
]
|
|
2039
|
+
]
|
|
2040
|
+
},
|
|
2036
2041
|
"products": [
|
|
2037
2042
|
{
|
|
2038
2043
|
"productId": 1,
|
|
@@ -2043,7 +2048,7 @@ Example return:
|
|
|
2043
2048
|
"quantity": 3
|
|
2044
2049
|
}
|
|
2045
2050
|
],
|
|
2046
|
-
"createdDate": "2024-06-
|
|
2051
|
+
"createdDate": "2024-06-21T09:42:54.848Z",
|
|
2047
2052
|
"currency": "USD",
|
|
2048
2053
|
"totalSum": 345
|
|
2049
2054
|
}
|
|
@@ -2089,33 +2094,17 @@ example: 2023-01-01 12:12 <br>
|
|
|
2089
2094
|
|
|
2090
2095
|
```js
|
|
2091
2096
|
const body = {
|
|
2092
|
-
"formIdentifier": "
|
|
2093
|
-
"paymentAccountIdentifier": "
|
|
2094
|
-
"formData":
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
},
|
|
2100
|
-
{
|
|
2101
|
-
"marker": "phone_order",
|
|
2102
|
-
"value": "+19999999999",
|
|
2103
|
-
"type": "string"
|
|
2104
|
-
},
|
|
2105
|
-
{
|
|
2106
|
-
"marker": "email_order",
|
|
2107
|
-
"value": "example@oneentry.cloud",
|
|
2108
|
-
"type": "string"
|
|
2109
|
-
}
|
|
2110
|
-
],
|
|
2097
|
+
"formIdentifier": "orderForm",
|
|
2098
|
+
"paymentAccountIdentifier": "cash",
|
|
2099
|
+
"formData": {
|
|
2100
|
+
"marker": "order_name",
|
|
2101
|
+
"value": "Ivan",
|
|
2102
|
+
"type": "string"
|
|
2103
|
+
},
|
|
2111
2104
|
"products": [
|
|
2112
2105
|
{
|
|
2113
|
-
"productId":
|
|
2114
|
-
"quantity":
|
|
2115
|
-
},
|
|
2116
|
-
{
|
|
2117
|
-
"productId": 446,
|
|
2118
|
-
"quantity": 3,
|
|
2106
|
+
"productId": 2,
|
|
2107
|
+
"quantity": 2
|
|
2119
2108
|
}
|
|
2120
2109
|
]
|
|
2121
2110
|
}
|
|
@@ -2133,10 +2122,11 @@ Example return:
|
|
|
2133
2122
|
"statusIdentifier": "inprogress",
|
|
2134
2123
|
"formData": [
|
|
2135
2124
|
{
|
|
2136
|
-
"marker": "
|
|
2125
|
+
"marker": "naimenovanie_1",
|
|
2126
|
+
"type": "string",
|
|
2137
2127
|
"value": "Name"
|
|
2138
2128
|
}
|
|
2139
|
-
|
|
2129
|
+
],
|
|
2140
2130
|
"products": [
|
|
2141
2131
|
{
|
|
2142
2132
|
"productId": 1,
|
|
@@ -2147,7 +2137,7 @@ Example return:
|
|
|
2147
2137
|
"quantity": 3
|
|
2148
2138
|
}
|
|
2149
2139
|
],
|
|
2150
|
-
"createdDate": "2024-06-
|
|
2140
|
+
"createdDate": "2024-06-21T09:42:54.848Z",
|
|
2151
2141
|
"currency": "USD",
|
|
2152
2142
|
"totalSum": 345
|
|
2153
2143
|
}
|
|
@@ -2259,27 +2249,27 @@ Example return:
|
|
|
2259
2249
|
```json
|
|
2260
2250
|
[
|
|
2261
2251
|
{
|
|
2262
|
-
"id":
|
|
2252
|
+
"id": 1764,
|
|
2263
2253
|
"statusIdentifier": "inprogress",
|
|
2264
|
-
"
|
|
2254
|
+
"formIdentifier": "order-form",
|
|
2265
2255
|
"formData": [
|
|
2266
2256
|
{
|
|
2267
|
-
"marker": "
|
|
2268
|
-
"
|
|
2269
|
-
"
|
|
2257
|
+
"marker": "naimenovanie_1",
|
|
2258
|
+
"type": "string",
|
|
2259
|
+
"value": "Name"
|
|
2270
2260
|
}
|
|
2271
2261
|
],
|
|
2272
2262
|
"products": [
|
|
2273
2263
|
{
|
|
2274
2264
|
"id": 1,
|
|
2275
|
-
"title": "Floorwood Maxima
|
|
2265
|
+
"title": "Laminate Floorwood Maxima, 9811 Oak Mistral",
|
|
2276
2266
|
"sku": null,
|
|
2277
2267
|
"price": "1.00",
|
|
2278
2268
|
"quantity": 10,
|
|
2279
2269
|
"previewImage": [
|
|
2280
2270
|
{
|
|
2281
2271
|
"filename": "files/project/page/36/image/20240322_77c83b02-4c82-4bea-80eb-3763c469b00e.jpg",
|
|
2282
|
-
"downloadLink": "http://my-site.
|
|
2272
|
+
"downloadLink": "http://my-site.zone/files/project/page/36/image/20240322_77c83b02-4c82-4bea-80eb-3763c469b00e.jpg",
|
|
2283
2273
|
"size": 296391,
|
|
2284
2274
|
"previewLink": ""
|
|
2285
2275
|
}
|
|
@@ -2289,10 +2279,8 @@ Example return:
|
|
|
2289
2279
|
"totalSum": "12.00",
|
|
2290
2280
|
"currency": "USD",
|
|
2291
2281
|
"createdDate": "2023-01-01 12:12",
|
|
2292
|
-
"price": 20,
|
|
2293
2282
|
"paymentAccountIdentifier": "payment-1",
|
|
2294
|
-
"paymentAccountLocalizeInfos": {
|
|
2295
|
-
"title": "Account 1"
|
|
2283
|
+
"paymentAccountLocalizeInfos": {"title": "Account 1"
|
|
2296
2284
|
},
|
|
2297
2285
|
"isHistory": true
|
|
2298
2286
|
}
|
|
@@ -2371,33 +2359,32 @@ Example return:
|
|
|
2371
2359
|
```json
|
|
2372
2360
|
[
|
|
2373
2361
|
{
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
"
|
|
2382
|
-
"
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
"childrenCount": 0
|
|
2362
|
+
"id": 1,
|
|
2363
|
+
"config": {},
|
|
2364
|
+
"depth": 0,
|
|
2365
|
+
"parentId": null,
|
|
2366
|
+
"pageUrl": "blog",
|
|
2367
|
+
"attributeSetIdentifier": "page",
|
|
2368
|
+
"localizeInfos": {
|
|
2369
|
+
"title": "Blog",
|
|
2370
|
+
"menuTitle": "Blog",
|
|
2371
|
+
"htmlContent": "",
|
|
2372
|
+
"plainContent": ""
|
|
2373
|
+
},
|
|
2374
|
+
"position": 1,
|
|
2375
|
+
"isVisible": true,
|
|
2376
|
+
"products": 0,
|
|
2377
|
+
"childrenCount": 1,
|
|
2378
|
+
"type": "forUsualPage",
|
|
2379
|
+
"templateIdentifier": "template",
|
|
2380
|
+
"isSync": true,
|
|
2381
|
+
"attributeValues": {
|
|
2382
|
+
"text": {
|
|
2383
|
+
"type": "string",
|
|
2384
|
+
"value": "some text",
|
|
2385
|
+
"position": 0
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2401
2388
|
}
|
|
2402
2389
|
]
|
|
2403
2390
|
```
|
|
@@ -2490,33 +2477,32 @@ Example return:
|
|
|
2490
2477
|
```json
|
|
2491
2478
|
[
|
|
2492
2479
|
{
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
"
|
|
2501
|
-
"
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
"childrenCount": 0
|
|
2480
|
+
"id": 1,
|
|
2481
|
+
"config": {},
|
|
2482
|
+
"depth": 0,
|
|
2483
|
+
"parentId": null,
|
|
2484
|
+
"pageUrl": "blog",
|
|
2485
|
+
"attributeSetIdentifier": "page",
|
|
2486
|
+
"localizeInfos": {
|
|
2487
|
+
"title": "Blog",
|
|
2488
|
+
"menuTitle": "Blog",
|
|
2489
|
+
"htmlContent": "",
|
|
2490
|
+
"plainContent": ""
|
|
2491
|
+
},
|
|
2492
|
+
"position": 1,
|
|
2493
|
+
"isVisible": true,
|
|
2494
|
+
"products": 0,
|
|
2495
|
+
"childrenCount": 1,
|
|
2496
|
+
"type": "forUsualPage",
|
|
2497
|
+
"templateIdentifier": "template",
|
|
2498
|
+
"isSync": true,
|
|
2499
|
+
"attributeValues": {
|
|
2500
|
+
"text": {
|
|
2501
|
+
"type": "string",
|
|
2502
|
+
"value": "some text",
|
|
2503
|
+
"position": 0
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2520
2506
|
}
|
|
2521
2507
|
]
|
|
2522
2508
|
```
|
|
@@ -2609,33 +2595,32 @@ Example return:
|
|
|
2609
2595
|
```json
|
|
2610
2596
|
[
|
|
2611
2597
|
{
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
"
|
|
2620
|
-
"
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
"childrenCount": 0
|
|
2598
|
+
"id": 2,
|
|
2599
|
+
"config": {},
|
|
2600
|
+
"depth": 0,
|
|
2601
|
+
"parentId": null,
|
|
2602
|
+
"pageUrl": "catalog",
|
|
2603
|
+
"attributeSetIdentifier": "page",
|
|
2604
|
+
"localizeInfos": {
|
|
2605
|
+
"title": "Catalog",
|
|
2606
|
+
"menuTitle": "Catalog",
|
|
2607
|
+
"htmlContent": "",
|
|
2608
|
+
"plainContent": ""
|
|
2609
|
+
},
|
|
2610
|
+
"position": 3,
|
|
2611
|
+
"isVisible": true,
|
|
2612
|
+
"products": 3,
|
|
2613
|
+
"childrenCount": 0,
|
|
2614
|
+
"type": "forCatalogPages",
|
|
2615
|
+
"templateIdentifier": "template",
|
|
2616
|
+
"isSync": true,
|
|
2617
|
+
"attributeValues": {
|
|
2618
|
+
"text": {
|
|
2619
|
+
"type": "string",
|
|
2620
|
+
"value": "catalog text",
|
|
2621
|
+
"position": 0
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2639
2624
|
}
|
|
2640
2625
|
]
|
|
2641
2626
|
```
|
|
@@ -2726,27 +2711,29 @@ Example return:
|
|
|
2726
2711
|
|
|
2727
2712
|
```json
|
|
2728
2713
|
{
|
|
2729
|
-
"id":
|
|
2714
|
+
"id": 1,
|
|
2730
2715
|
"parentId": null,
|
|
2731
|
-
"pageUrl": "
|
|
2732
|
-
"depth":
|
|
2716
|
+
"pageUrl": "blog",
|
|
2717
|
+
"depth": 0,
|
|
2733
2718
|
"localizeInfos": {
|
|
2734
|
-
"title": "
|
|
2735
|
-
"
|
|
2736
|
-
"
|
|
2719
|
+
"title": "Blog",
|
|
2720
|
+
"menuTitle": "Blog",
|
|
2721
|
+
"htmlContent": "",
|
|
2722
|
+
"plainContent": ""
|
|
2737
2723
|
},
|
|
2738
2724
|
"isVisible": true,
|
|
2739
|
-
"
|
|
2740
|
-
"
|
|
2741
|
-
"
|
|
2742
|
-
"
|
|
2725
|
+
"forms": [],
|
|
2726
|
+
"blocks": [],
|
|
2727
|
+
"type": "forUsualPage",
|
|
2728
|
+
"templateIdentifier": "template",
|
|
2743
2729
|
"attributeValues": {
|
|
2744
|
-
"
|
|
2745
|
-
|
|
2746
|
-
|
|
2730
|
+
"text": {
|
|
2731
|
+
"type": "string",
|
|
2732
|
+
"value": "some text",
|
|
2733
|
+
"position": 0
|
|
2734
|
+
}
|
|
2747
2735
|
},
|
|
2748
|
-
"isSync":
|
|
2749
|
-
"products": 0
|
|
2736
|
+
"isSync": true
|
|
2750
2737
|
}
|
|
2751
2738
|
```
|
|
2752
2739
|
<details>
|
|
@@ -2824,27 +2811,23 @@ Example return:
|
|
|
2824
2811
|
|
|
2825
2812
|
```json
|
|
2826
2813
|
{
|
|
2827
|
-
"id":
|
|
2828
|
-
"parentId":
|
|
2829
|
-
"pageUrl": "
|
|
2830
|
-
"depth":
|
|
2814
|
+
"id": 3,
|
|
2815
|
+
"parentId": 1,
|
|
2816
|
+
"pageUrl": "blog1",
|
|
2817
|
+
"depth": 1,
|
|
2831
2818
|
"localizeInfos": {
|
|
2832
|
-
"title": "
|
|
2833
|
-
"
|
|
2834
|
-
"
|
|
2819
|
+
"title": "Blog 1",
|
|
2820
|
+
"menuTitle": "Blog 1",
|
|
2821
|
+
"htmlContent": "",
|
|
2822
|
+
"plainContent": ""
|
|
2835
2823
|
},
|
|
2836
2824
|
"isVisible": true,
|
|
2837
|
-
"
|
|
2838
|
-
"
|
|
2839
|
-
"
|
|
2840
|
-
"
|
|
2841
|
-
"attributeValues": {
|
|
2842
|
-
|
|
2843
|
-
"type": "string",
|
|
2844
|
-
"value": ""
|
|
2845
|
-
},
|
|
2846
|
-
"isSync": false,
|
|
2847
|
-
"products": 0
|
|
2825
|
+
"forms": [],
|
|
2826
|
+
"blocks": [],
|
|
2827
|
+
"type": "forUsualPage",
|
|
2828
|
+
"templateIdentifier": null,
|
|
2829
|
+
"attributeValues": {},
|
|
2830
|
+
"isSync": false
|
|
2848
2831
|
}
|
|
2849
2832
|
```
|
|
2850
2833
|
<details>
|
|
@@ -2924,40 +2907,26 @@ Example return:
|
|
|
2924
2907
|
```json
|
|
2925
2908
|
[
|
|
2926
2909
|
{
|
|
2927
|
-
"id":
|
|
2928
|
-
"
|
|
2929
|
-
"
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
"pageUrl": "string",
|
|
2934
|
-
"depth": 3,
|
|
2910
|
+
"id": 3,
|
|
2911
|
+
"config": {},
|
|
2912
|
+
"depth": 1,
|
|
2913
|
+
"parentId": 1,
|
|
2914
|
+
"pageUrl": "blog1",
|
|
2915
|
+
"attributeSetIdentifier": null,
|
|
2935
2916
|
"localizeInfos": {
|
|
2936
|
-
"title": "
|
|
2937
|
-
"
|
|
2938
|
-
"htmlContent": "
|
|
2939
|
-
"
|
|
2917
|
+
"title": "Blog 1",
|
|
2918
|
+
"menuTitle": "Blog 1",
|
|
2919
|
+
"htmlContent": "",
|
|
2920
|
+
"plainContent": ""
|
|
2940
2921
|
},
|
|
2922
|
+
"position": 1,
|
|
2941
2923
|
"isVisible": true,
|
|
2942
2924
|
"products": 0,
|
|
2943
|
-
"
|
|
2944
|
-
"
|
|
2945
|
-
|
|
2946
|
-
],
|
|
2947
|
-
"blocks": [
|
|
2948
|
-
null
|
|
2949
|
-
],
|
|
2925
|
+
"childrenCount": 0,
|
|
2926
|
+
"type": "forUsualPage",
|
|
2927
|
+
"templateIdentifier": null,
|
|
2950
2928
|
"isSync": false,
|
|
2951
|
-
"
|
|
2952
|
-
"attributeValues": {
|
|
2953
|
-
"marker": {
|
|
2954
|
-
"value": "",
|
|
2955
|
-
"type": "string"
|
|
2956
|
-
}
|
|
2957
|
-
},
|
|
2958
|
-
"position": 192,
|
|
2959
|
-
"type": "forNewsPage",
|
|
2960
|
-
"childrenCount": 0
|
|
2929
|
+
"attributeValues": {}
|
|
2961
2930
|
}
|
|
2962
2931
|
]
|
|
2963
2932
|
```
|
|
@@ -3051,39 +3020,20 @@ Example return:
|
|
|
3051
3020
|
```json
|
|
3052
3021
|
[
|
|
3053
3022
|
{
|
|
3054
|
-
"id":
|
|
3055
|
-
"version": 10,
|
|
3056
|
-
"identifier": "catalog",
|
|
3057
|
-
"attributeSetId": 0,
|
|
3023
|
+
"id": 2,
|
|
3058
3024
|
"localizeInfos": {
|
|
3059
|
-
"title": "
|
|
3060
|
-
},
|
|
3061
|
-
"customSettings": {
|
|
3062
|
-
"sliderDelay": 0,
|
|
3063
|
-
"sliderDelayType": "",
|
|
3064
|
-
"productQuantity": 4,
|
|
3065
|
-
"productSortType": "By_ID",
|
|
3066
|
-
"productSortOrder": "Descending",
|
|
3067
|
-
"productCountElementsPerRow": 10,
|
|
3068
|
-
"similarProductRules": [
|
|
3069
|
-
{
|
|
3070
|
-
"property": "Descending",
|
|
3071
|
-
"includes": "",
|
|
3072
|
-
"keywords": "",
|
|
3073
|
-
"strict": ""
|
|
3074
|
-
}
|
|
3075
|
-
]
|
|
3025
|
+
"title": "test"
|
|
3076
3026
|
},
|
|
3077
|
-
"
|
|
3027
|
+
"attributeSetIdentifier": "block",
|
|
3028
|
+
"version": 0,
|
|
3029
|
+
"position": 2,
|
|
3030
|
+
"identifier": "test",
|
|
3031
|
+
"type": "forTextBlock",
|
|
3032
|
+
"templateIdentifier": null,
|
|
3033
|
+
"isVisible": true,
|
|
3078
3034
|
"isSync": false,
|
|
3079
|
-
"attributeValues": {
|
|
3080
|
-
|
|
3081
|
-
"value": "",
|
|
3082
|
-
"type": "string"
|
|
3083
|
-
}
|
|
3084
|
-
},
|
|
3085
|
-
"type": "forNewsPage",
|
|
3086
|
-
"templateIdentifier": null
|
|
3035
|
+
"attributeValues": {},
|
|
3036
|
+
"countElementsPerRow": 0
|
|
3087
3037
|
}
|
|
3088
3038
|
]
|
|
3089
3039
|
```
|
|
@@ -3286,28 +3236,34 @@ Example return:
|
|
|
3286
3236
|
```json
|
|
3287
3237
|
[
|
|
3288
3238
|
{
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
"
|
|
3303
|
-
"
|
|
3304
|
-
|
|
3239
|
+
"id": 2,
|
|
3240
|
+
"parentId": null,
|
|
3241
|
+
"pageUrl": "catalog",
|
|
3242
|
+
"depth": 0,
|
|
3243
|
+
"localizeInfos": {
|
|
3244
|
+
"title": "Catalog",
|
|
3245
|
+
"menuTitle": "Catalog",
|
|
3246
|
+
"htmlContent": "",
|
|
3247
|
+
"plainContent": ""
|
|
3248
|
+
},
|
|
3249
|
+
"isVisible": true,
|
|
3250
|
+
"forms": [],
|
|
3251
|
+
"blocks": [
|
|
3252
|
+
"test",
|
|
3253
|
+
"product_block"
|
|
3254
|
+
],
|
|
3255
|
+
"type": "forCatalogPages",
|
|
3256
|
+
"templateIdentifier": "template",
|
|
3257
|
+
"attributeValues": {
|
|
3258
|
+
"text": {
|
|
3305
3259
|
"type": "string",
|
|
3306
|
-
"value": ""
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3260
|
+
"value": "catalog text",
|
|
3261
|
+
"position": 0
|
|
3262
|
+
}
|
|
3263
|
+
},
|
|
3264
|
+
"products": 3,
|
|
3265
|
+
"isSync": true
|
|
3266
|
+
}
|
|
3311
3267
|
]
|
|
3312
3268
|
```
|
|
3313
3269
|
|
|
@@ -3323,7 +3279,7 @@ const { Payments } = defineOneEntry('your-url');
|
|
|
3323
3279
|
### Payments.getSessions(limit, offset)
|
|
3324
3280
|
|
|
3325
3281
|
```js
|
|
3326
|
-
const value = await Payments.getSessions(
|
|
3282
|
+
const value = await Payments.getSessions()
|
|
3327
3283
|
```
|
|
3328
3284
|
|
|
3329
3285
|
> This method get list of a payment session. It returns a Promise that resolves to a payment session object.
|
|
@@ -3334,32 +3290,13 @@ Example return:
|
|
|
3334
3290
|
[
|
|
3335
3291
|
{
|
|
3336
3292
|
"id": 1764,
|
|
3337
|
-
"updatedDate": "2024-
|
|
3338
|
-
"version": 10,
|
|
3339
|
-
"identifier": "catalog",
|
|
3293
|
+
"updatedDate": "2024-06-21T09:51:57.785Z",
|
|
3340
3294
|
"type": "session",
|
|
3341
|
-
"
|
|
3342
|
-
{
|
|
3343
|
-
"quantity": 1,
|
|
3344
|
-
"amount": 5,
|
|
3345
|
-
"currency": "USD",
|
|
3346
|
-
"name": "T-shirt",
|
|
3347
|
-
"description": "White T-shirt"
|
|
3348
|
-
}
|
|
3349
|
-
],
|
|
3295
|
+
"status": "completed",
|
|
3350
3296
|
"orderId": 1,
|
|
3351
3297
|
"paymentAccountId": 1,
|
|
3352
|
-
"
|
|
3353
|
-
"
|
|
3354
|
-
"paymentUrl": "https://www.sandbox.paypal.com/checkoutnow?token=9BE88048TU058770M",
|
|
3355
|
-
"successUrl": "https://example.com/success",
|
|
3356
|
-
"cancelUrl": "https://example.com/cancel",
|
|
3357
|
-
"intent": {
|
|
3358
|
-
"amount": 1,
|
|
3359
|
-
"currency": "usd"
|
|
3360
|
-
},
|
|
3361
|
-
"intentId": 1,
|
|
3362
|
-
"clientSecret": "pi_3Oyz2kQWzXG1R23w144qG7o4_secret_OeScuCwTpHmyOM1atbm7pWJw2"
|
|
3298
|
+
"paymentUrl": "https://checkout.stripe.com/c/pay/cs_test_a1iOHnSWAmeN3SN5IgYtPv8Fzv48vGUmKxFuhxD0FOjkOaTAlgiwNY9OYW#fid2BXKsdWBEZmZqcGtxJz8nZGZmcVo0VTZjazFUb2Z8YEBRYkxHJyknZHVsTmB8Jz8ndW5acWB2cVowNEpKcW43TVVBa1NSMU5ST3JfY3VcRGlRSUR8cVx0XFxOXG9Cbn1oM1V0QUExR0RRRnJwV0FCYlNcXUtGdGtzcndgcmJxQVNkQnxvcDBTY0ZpUjZCd319UTU1ME5rXDJIVjYnKSdjd2poVmB3c2B3Jz9xd3BgKSdpZHxqcHFRfHVgJz8ndmxrYmlgWmxxYGgnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl",
|
|
3299
|
+
"clientSecret": "pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH"
|
|
3363
3300
|
}
|
|
3364
3301
|
]
|
|
3365
3302
|
```
|
|
@@ -3443,32 +3380,13 @@ Example return:
|
|
|
3443
3380
|
```json
|
|
3444
3381
|
{
|
|
3445
3382
|
"id": 1764,
|
|
3446
|
-
"updatedDate": "2024-
|
|
3447
|
-
"version": 10,
|
|
3448
|
-
"identifier": "catalog",
|
|
3383
|
+
"updatedDate": "2024-06-21T09:51:57.785Z",
|
|
3449
3384
|
"type": "session",
|
|
3450
|
-
"
|
|
3451
|
-
{
|
|
3452
|
-
"quantity": 1,
|
|
3453
|
-
"amount": 5,
|
|
3454
|
-
"currency": "USD",
|
|
3455
|
-
"name": "T-shirt",
|
|
3456
|
-
"description": "White T-shirt"
|
|
3457
|
-
}
|
|
3458
|
-
],
|
|
3385
|
+
"status": "completed",
|
|
3459
3386
|
"orderId": 1,
|
|
3460
3387
|
"paymentAccountId": 1,
|
|
3461
|
-
"
|
|
3462
|
-
"
|
|
3463
|
-
"paymentUrl": "https://www.sandbox.paypal.com/checkoutnow?token=9BE88048TU058770M",
|
|
3464
|
-
"successUrl": "https://example.com/success",
|
|
3465
|
-
"cancelUrl": "https://example.com/cancel",
|
|
3466
|
-
"intent": {
|
|
3467
|
-
"amount": 1,
|
|
3468
|
-
"currency": "usd"
|
|
3469
|
-
},
|
|
3470
|
-
"intentId": 1,
|
|
3471
|
-
"clientSecret": "pi_3Oyz2kQWzXG1R23w144qG7o4_secret_OeScuCwTpHmyOM1atbm7pWJw2"
|
|
3388
|
+
"paymentUrl": "https://checkout.stripe.com/c/pay/cs_test_a1iOHnSWAmeN3SN5IgYtPv8Fzv48vGUmKxFuhxD0FOjkOaTAlgiwNY9OYW#fid2BXKsdWBEZmZqcGtxJz8nZGZmcVo0VTZjazFUb2Z8YEBRYkxHJyknZHVsTmB8Jz8ndW5acWB2cVowNEpKcW43TVVBa1NSMU5ST3JfY3VcRGlRSUR8cVx0XFxOXG9Cbn1oM1V0QUExR0RRRnJwV0FCYlNcXUtGdGtzcndgcmJxQVNkQnxvcDBTY0ZpUjZCd319UTU1ME5rXDJIVjYnKSdjd2poVmB3c2B3Jz9xd3BgKSdpZHxqcHFRfHVgJz8ndmxrYmlgWmxxYGgnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl",
|
|
3389
|
+
"clientSecret": "pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH"
|
|
3472
3390
|
}
|
|
3473
3391
|
```
|
|
3474
3392
|
<details>
|
|
@@ -3551,32 +3469,9 @@ Example return:
|
|
|
3551
3469
|
```json
|
|
3552
3470
|
{
|
|
3553
3471
|
"id": 1764,
|
|
3554
|
-
"updatedDate": "2024-
|
|
3472
|
+
"updatedDate": "2024-06-21T09:53:28.898Z",
|
|
3555
3473
|
"version": 10,
|
|
3556
|
-
"identifier": "
|
|
3557
|
-
"type": "session",
|
|
3558
|
-
"lineItems": [
|
|
3559
|
-
{
|
|
3560
|
-
"quantity": 1,
|
|
3561
|
-
"amount": 5,
|
|
3562
|
-
"currency": "USD",
|
|
3563
|
-
"name": "T-shirt",
|
|
3564
|
-
"description": "White T-shirt"
|
|
3565
|
-
}
|
|
3566
|
-
],
|
|
3567
|
-
"orderId": 1,
|
|
3568
|
-
"paymentAccountId": 1,
|
|
3569
|
-
"status": "completed",
|
|
3570
|
-
"sessionId": "9BE88048TU058770M",
|
|
3571
|
-
"paymentUrl": "https://www.sandbox.paypal.com/checkoutnow?token=9BE88048TU058770M",
|
|
3572
|
-
"successUrl": "https://example.com/success",
|
|
3573
|
-
"cancelUrl": "https://example.com/cancel",
|
|
3574
|
-
"intent": {
|
|
3575
|
-
"amount": 1,
|
|
3576
|
-
"currency": "usd"
|
|
3577
|
-
},
|
|
3578
|
-
"intentId": 1,
|
|
3579
|
-
"clientSecret": "pi_3Oyz2kQWzXG1R23w144qG7o4_secret_OeScuCwTpHmyOM1atbm7pWJw2"
|
|
3474
|
+
"identifier": "my-id"
|
|
3580
3475
|
}
|
|
3581
3476
|
```
|
|
3582
3477
|
<details>
|
|
@@ -3659,8 +3554,7 @@ Example return:
|
|
|
3659
3554
|
```json
|
|
3660
3555
|
{
|
|
3661
3556
|
"stripeAccountId": "acct_1OtRiIHTHOaLRCAa",
|
|
3662
|
-
"stripePublishableKey": "pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3"
|
|
3663
|
-
"paypalAccountId": "4Q0BANTF5BE7N"
|
|
3557
|
+
"stripePublishableKey": "pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3"
|
|
3664
3558
|
}
|
|
3665
3559
|
```
|
|
3666
3560
|
<details>
|
|
@@ -3694,13 +3588,11 @@ Example return:
|
|
|
3694
3588
|
```json
|
|
3695
3589
|
[
|
|
3696
3590
|
{
|
|
3697
|
-
"id":
|
|
3698
|
-
"updatedDate": "2024-04-10T17:02:20.707Z",
|
|
3699
|
-
"version": 10,
|
|
3700
|
-
"identifier": "catalog",
|
|
3591
|
+
"id": 2,
|
|
3701
3592
|
"localizeInfos": {
|
|
3702
|
-
|
|
3593
|
+
"title": "Stripe"
|
|
3703
3594
|
},
|
|
3595
|
+
"identifier": "stripe",
|
|
3704
3596
|
"type": "stripe",
|
|
3705
3597
|
"isVisible": true
|
|
3706
3598
|
}
|
|
@@ -3751,15 +3643,11 @@ Example return:
|
|
|
3751
3643
|
|
|
3752
3644
|
```json
|
|
3753
3645
|
{
|
|
3754
|
-
"id":
|
|
3755
|
-
"updatedDate": "2024-04-10T17:12:20.233Z",
|
|
3756
|
-
"version": 10,
|
|
3757
|
-
"identifier": "catalog",
|
|
3646
|
+
"id": 2,
|
|
3758
3647
|
"localizeInfos": {
|
|
3759
|
-
"
|
|
3760
|
-
"title": "Stripe"
|
|
3761
|
-
}
|
|
3648
|
+
"title": "Stripe"
|
|
3762
3649
|
},
|
|
3650
|
+
"identifier": "stripe",
|
|
3763
3651
|
"type": "stripe",
|
|
3764
3652
|
"isVisible": true
|
|
3765
3653
|
}
|
|
@@ -3805,16 +3693,6 @@ const value = await Payments.webhookStripe()
|
|
|
3805
3693
|
|
|
3806
3694
|
> This method use webhook for Stripe. Returns true (in case of successful execution) or false (in case of unsuccessful execution).
|
|
3807
3695
|
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
### Payments.webhookStripe()
|
|
3811
|
-
|
|
3812
|
-
```js
|
|
3813
|
-
const value = await Payments.webhookPaypal()
|
|
3814
|
-
```
|
|
3815
|
-
|
|
3816
|
-
> This method use webhook for Paypal. Returns true (in case of successful execution) or false (in case of unsuccessful execution).
|
|
3817
|
-
|
|
3818
3696
|
---
|
|
3819
3697
|
|
|
3820
3698
|
|
|
@@ -3893,51 +3771,46 @@ Example return:
|
|
|
3893
3771
|
```json
|
|
3894
3772
|
[
|
|
3895
3773
|
{
|
|
3896
|
-
"id":
|
|
3774
|
+
"id": 4,
|
|
3897
3775
|
"localizeInfos": {
|
|
3898
|
-
"title": "
|
|
3776
|
+
"title": "Cosmo"
|
|
3899
3777
|
},
|
|
3900
|
-
"
|
|
3901
|
-
"
|
|
3902
|
-
"
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
"attributeSetId": 7,
|
|
3908
|
-
"isSync": true,
|
|
3909
|
-
"price": 0,
|
|
3778
|
+
"statusIdentifier": null,
|
|
3779
|
+
"statusLocalizeInfos": {},
|
|
3780
|
+
"attributeSetIdentifier": "products",
|
|
3781
|
+
"position": 1,
|
|
3782
|
+
"templateIdentifier": null,
|
|
3783
|
+
"shortDescTemplateIdentifier": null,
|
|
3784
|
+
"price": 150,
|
|
3910
3785
|
"additional": {
|
|
3911
3786
|
"prices": {
|
|
3912
|
-
"min":
|
|
3913
|
-
"max":
|
|
3914
|
-
}
|
|
3915
|
-
},
|
|
3916
|
-
"blocks": [
|
|
3917
|
-
null
|
|
3918
|
-
],
|
|
3919
|
-
"sku": "0-123",
|
|
3920
|
-
"productPages": [
|
|
3921
|
-
{
|
|
3922
|
-
"id": 8997,
|
|
3923
|
-
"pageId": 1176,
|
|
3924
|
-
"productId": 8872
|
|
3787
|
+
"min": 120,
|
|
3788
|
+
"max": 150
|
|
3925
3789
|
}
|
|
3926
|
-
],
|
|
3927
|
-
"statusLocalizeInfos": {
|
|
3928
|
-
"title": "Product"
|
|
3929
3790
|
},
|
|
3930
|
-
"
|
|
3931
|
-
"
|
|
3791
|
+
"sku": null,
|
|
3792
|
+
"isSync": true,
|
|
3932
3793
|
"attributeValues": {
|
|
3933
|
-
"
|
|
3934
|
-
"
|
|
3935
|
-
"
|
|
3794
|
+
"price": {
|
|
3795
|
+
"type": "integer",
|
|
3796
|
+
"value": "150",
|
|
3936
3797
|
"position": 1,
|
|
3937
3798
|
"isProductPreview": false
|
|
3799
|
+
},
|
|
3800
|
+
"product-name": {
|
|
3801
|
+
"type": "string",
|
|
3802
|
+
"value": "Cosmo",
|
|
3803
|
+
"position": 0,
|
|
3804
|
+
"isProductPreview": false
|
|
3805
|
+
},
|
|
3806
|
+
"currency_products": {
|
|
3807
|
+
"type": "string",
|
|
3808
|
+
"value": "",
|
|
3809
|
+
"position": 2,
|
|
3810
|
+
"isProductPreview": false
|
|
3938
3811
|
}
|
|
3939
3812
|
},
|
|
3940
|
-
"
|
|
3813
|
+
"isVisible": true
|
|
3941
3814
|
}
|
|
3942
3815
|
]
|
|
3943
3816
|
```
|
|
@@ -4028,51 +3901,46 @@ Example return:
|
|
|
4028
3901
|
```json
|
|
4029
3902
|
[
|
|
4030
3903
|
{
|
|
4031
|
-
"id":
|
|
3904
|
+
"id": 4,
|
|
4032
3905
|
"localizeInfos": {
|
|
4033
|
-
"title": "
|
|
3906
|
+
"title": "Cosmo"
|
|
4034
3907
|
},
|
|
4035
|
-
"
|
|
4036
|
-
"
|
|
4037
|
-
"
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
"attributeSetId": 7,
|
|
4043
|
-
"isSync": true,
|
|
4044
|
-
"price": 0,
|
|
3908
|
+
"statusIdentifier": null,
|
|
3909
|
+
"statusLocalizeInfos": {},
|
|
3910
|
+
"attributeSetIdentifier": "products",
|
|
3911
|
+
"position": 1,
|
|
3912
|
+
"templateIdentifier": null,
|
|
3913
|
+
"shortDescTemplateIdentifier": null,
|
|
3914
|
+
"price": 150,
|
|
4045
3915
|
"additional": {
|
|
4046
3916
|
"prices": {
|
|
4047
|
-
"min":
|
|
4048
|
-
"max":
|
|
4049
|
-
}
|
|
4050
|
-
},
|
|
4051
|
-
"blocks": [
|
|
4052
|
-
null
|
|
4053
|
-
],
|
|
4054
|
-
"sku": "0-123",
|
|
4055
|
-
"productPages": [
|
|
4056
|
-
{
|
|
4057
|
-
"id": 8997,
|
|
4058
|
-
"pageId": 1176,
|
|
4059
|
-
"productId": 8872
|
|
3917
|
+
"min": 120,
|
|
3918
|
+
"max": 150
|
|
4060
3919
|
}
|
|
4061
|
-
],
|
|
4062
|
-
"statusLocalizeInfos": {
|
|
4063
|
-
"title": "Product"
|
|
4064
3920
|
},
|
|
4065
|
-
"
|
|
4066
|
-
"
|
|
3921
|
+
"sku": null,
|
|
3922
|
+
"isSync": true,
|
|
4067
3923
|
"attributeValues": {
|
|
4068
|
-
"
|
|
4069
|
-
"
|
|
4070
|
-
"
|
|
3924
|
+
"price": {
|
|
3925
|
+
"type": "integer",
|
|
3926
|
+
"value": "150",
|
|
4071
3927
|
"position": 1,
|
|
4072
3928
|
"isProductPreview": false
|
|
3929
|
+
},
|
|
3930
|
+
"product-name": {
|
|
3931
|
+
"type": "string",
|
|
3932
|
+
"value": "Cosmo",
|
|
3933
|
+
"position": 0,
|
|
3934
|
+
"isProductPreview": false
|
|
3935
|
+
},
|
|
3936
|
+
"currency_products": {
|
|
3937
|
+
"type": "string",
|
|
3938
|
+
"value": "",
|
|
3939
|
+
"position": 2,
|
|
3940
|
+
"isProductPreview": false
|
|
4073
3941
|
}
|
|
4074
3942
|
},
|
|
4075
|
-
"
|
|
3943
|
+
"isVisible": true
|
|
4076
3944
|
}
|
|
4077
3945
|
]
|
|
4078
3946
|
```
|
|
@@ -4183,51 +4051,49 @@ Example return:
|
|
|
4183
4051
|
```json
|
|
4184
4052
|
[
|
|
4185
4053
|
{
|
|
4186
|
-
"id":
|
|
4054
|
+
"id": 2,
|
|
4187
4055
|
"localizeInfos": {
|
|
4188
|
-
"title": "
|
|
4056
|
+
"title": "Box"
|
|
4189
4057
|
},
|
|
4190
|
-
"
|
|
4191
|
-
"
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
"
|
|
4198
|
-
"
|
|
4199
|
-
"price": 0,
|
|
4058
|
+
"statusIdentifier": "sold",
|
|
4059
|
+
"statusLocalizeInfos": {
|
|
4060
|
+
"title": "Sold"
|
|
4061
|
+
},
|
|
4062
|
+
"attributeSetIdentifier": "products",
|
|
4063
|
+
"position": 3,
|
|
4064
|
+
"templateIdentifier": null,
|
|
4065
|
+
"shortDescTemplateIdentifier": null,
|
|
4066
|
+
"price": 148,
|
|
4200
4067
|
"additional": {
|
|
4201
4068
|
"prices": {
|
|
4202
|
-
"min":
|
|
4203
|
-
"max":
|
|
4204
|
-
}
|
|
4205
|
-
},
|
|
4206
|
-
"blocks": [
|
|
4207
|
-
null
|
|
4208
|
-
],
|
|
4209
|
-
"sku": "0-123",
|
|
4210
|
-
"productPages": [
|
|
4211
|
-
{
|
|
4212
|
-
"id": 8997,
|
|
4213
|
-
"pageId": 1176,
|
|
4214
|
-
"productId": 8872
|
|
4069
|
+
"min": 120,
|
|
4070
|
+
"max": 150
|
|
4215
4071
|
}
|
|
4216
|
-
],
|
|
4217
|
-
"statusLocalizeInfos": {
|
|
4218
|
-
"title": "Product"
|
|
4219
4072
|
},
|
|
4220
|
-
"
|
|
4221
|
-
"
|
|
4073
|
+
"sku": null,
|
|
4074
|
+
"isSync": true,
|
|
4222
4075
|
"attributeValues": {
|
|
4223
|
-
"
|
|
4224
|
-
"
|
|
4225
|
-
"
|
|
4076
|
+
"price": {
|
|
4077
|
+
"type": "integer",
|
|
4078
|
+
"value": "148",
|
|
4226
4079
|
"position": 1,
|
|
4227
4080
|
"isProductPreview": false
|
|
4081
|
+
},
|
|
4082
|
+
"product-name": {
|
|
4083
|
+
"type": "string",
|
|
4084
|
+
"value": "Box text",
|
|
4085
|
+
"position": 0,
|
|
4086
|
+
"isProductPreview": false
|
|
4087
|
+
},
|
|
4088
|
+
"currency_products": {
|
|
4089
|
+
"type": "string",
|
|
4090
|
+
"value": "$",
|
|
4091
|
+
"position": 2,
|
|
4092
|
+
"isProductPreview": false
|
|
4228
4093
|
}
|
|
4229
4094
|
},
|
|
4230
|
-
"
|
|
4095
|
+
"isVisible": true,
|
|
4096
|
+
"isPositionLocked": false
|
|
4231
4097
|
}
|
|
4232
4098
|
]
|
|
4233
4099
|
```
|
|
@@ -4370,51 +4236,49 @@ Example return:
|
|
|
4370
4236
|
```json
|
|
4371
4237
|
[
|
|
4372
4238
|
{
|
|
4373
|
-
"id":
|
|
4239
|
+
"id": 2,
|
|
4374
4240
|
"localizeInfos": {
|
|
4375
|
-
"title": "
|
|
4241
|
+
"title": "Box"
|
|
4376
4242
|
},
|
|
4377
|
-
"
|
|
4378
|
-
"
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
"
|
|
4385
|
-
"
|
|
4386
|
-
"price": 0,
|
|
4243
|
+
"statusIdentifier": "sold",
|
|
4244
|
+
"statusLocalizeInfos": {
|
|
4245
|
+
"title": "Sold"
|
|
4246
|
+
},
|
|
4247
|
+
"attributeSetIdentifier": "products",
|
|
4248
|
+
"position": 3,
|
|
4249
|
+
"templateIdentifier": null,
|
|
4250
|
+
"shortDescTemplateIdentifier": null,
|
|
4251
|
+
"price": 148,
|
|
4387
4252
|
"additional": {
|
|
4388
4253
|
"prices": {
|
|
4389
|
-
"min":
|
|
4390
|
-
"max":
|
|
4254
|
+
"min": 120,
|
|
4255
|
+
"max": 150
|
|
4391
4256
|
}
|
|
4392
4257
|
},
|
|
4393
|
-
"
|
|
4394
|
-
|
|
4395
|
-
],
|
|
4396
|
-
"sku": "0-123",
|
|
4397
|
-
"productPages": [
|
|
4398
|
-
{
|
|
4399
|
-
"id": 8997,
|
|
4400
|
-
"pageId": 1176,
|
|
4401
|
-
"productId": 8872
|
|
4402
|
-
}
|
|
4403
|
-
],
|
|
4404
|
-
"statusLocalizeInfos": {
|
|
4405
|
-
"title": "Product"
|
|
4406
|
-
},
|
|
4407
|
-
"templateIdentifier": "my-template",
|
|
4408
|
-
"shortDescTemplateIdentifier": "my-template-short",
|
|
4258
|
+
"sku": null,
|
|
4259
|
+
"isSync": true,
|
|
4409
4260
|
"attributeValues": {
|
|
4410
|
-
"
|
|
4411
|
-
"
|
|
4412
|
-
"
|
|
4261
|
+
"price": {
|
|
4262
|
+
"type": "integer",
|
|
4263
|
+
"value": "148",
|
|
4413
4264
|
"position": 1,
|
|
4414
4265
|
"isProductPreview": false
|
|
4266
|
+
},
|
|
4267
|
+
"product-name": {
|
|
4268
|
+
"type": "string",
|
|
4269
|
+
"value": "Box text",
|
|
4270
|
+
"position": 0,
|
|
4271
|
+
"isProductPreview": false
|
|
4272
|
+
},
|
|
4273
|
+
"currency_products": {
|
|
4274
|
+
"type": "string",
|
|
4275
|
+
"value": "$",
|
|
4276
|
+
"position": 2,
|
|
4277
|
+
"isProductPreview": false
|
|
4415
4278
|
}
|
|
4416
4279
|
},
|
|
4417
|
-
"
|
|
4280
|
+
"isVisible": true,
|
|
4281
|
+
"isPositionLocked": false
|
|
4418
4282
|
}
|
|
4419
4283
|
]
|
|
4420
4284
|
```
|
|
@@ -4504,51 +4368,49 @@ Example return:
|
|
|
4504
4368
|
|
|
4505
4369
|
```json
|
|
4506
4370
|
{
|
|
4507
|
-
"id":
|
|
4371
|
+
"id": 2,
|
|
4508
4372
|
"localizeInfos": {
|
|
4509
|
-
"title": "
|
|
4373
|
+
"title": "Box"
|
|
4510
4374
|
},
|
|
4511
|
-
"
|
|
4512
|
-
"
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
"
|
|
4519
|
-
"
|
|
4520
|
-
"price": 0,
|
|
4375
|
+
"statusIdentifier": "sold",
|
|
4376
|
+
"statusLocalizeInfos": {
|
|
4377
|
+
"title": "Sold"
|
|
4378
|
+
},
|
|
4379
|
+
"attributeSetIdentifier": "products",
|
|
4380
|
+
"position": 3,
|
|
4381
|
+
"templateIdentifier": null,
|
|
4382
|
+
"shortDescTemplateIdentifier": null,
|
|
4383
|
+
"price": 148,
|
|
4521
4384
|
"additional": {
|
|
4522
4385
|
"prices": {
|
|
4523
|
-
"min":
|
|
4524
|
-
"max":
|
|
4386
|
+
"min": 120,
|
|
4387
|
+
"max": 150
|
|
4525
4388
|
}
|
|
4526
4389
|
},
|
|
4527
|
-
"
|
|
4528
|
-
|
|
4529
|
-
],
|
|
4530
|
-
"sku": "0-123",
|
|
4531
|
-
"productPages": [
|
|
4532
|
-
{
|
|
4533
|
-
"id": 8997,
|
|
4534
|
-
"pageId": 1176,
|
|
4535
|
-
"productId": 8872
|
|
4536
|
-
}
|
|
4537
|
-
],
|
|
4538
|
-
"statusLocalizeInfos": {
|
|
4539
|
-
"title": "Product"
|
|
4540
|
-
},
|
|
4541
|
-
"templateIdentifier": "my-template",
|
|
4542
|
-
"shortDescTemplateIdentifier": "my-template-short",
|
|
4390
|
+
"sku": null,
|
|
4391
|
+
"isSync": true,
|
|
4543
4392
|
"attributeValues": {
|
|
4544
|
-
"
|
|
4545
|
-
"
|
|
4546
|
-
"
|
|
4393
|
+
"price": {
|
|
4394
|
+
"type": "integer",
|
|
4395
|
+
"value": "148",
|
|
4547
4396
|
"position": 1,
|
|
4548
4397
|
"isProductPreview": false
|
|
4398
|
+
},
|
|
4399
|
+
"product-name": {
|
|
4400
|
+
"type": "string",
|
|
4401
|
+
"value": "Box text",
|
|
4402
|
+
"position": 0,
|
|
4403
|
+
"isProductPreview": false
|
|
4404
|
+
},
|
|
4405
|
+
"currency_products": {
|
|
4406
|
+
"type": "string",
|
|
4407
|
+
"value": "$",
|
|
4408
|
+
"position": 2,
|
|
4409
|
+
"isProductPreview": false
|
|
4549
4410
|
}
|
|
4550
4411
|
},
|
|
4551
|
-
"
|
|
4412
|
+
"isVisible": true,
|
|
4413
|
+
"isPositionLocked": false
|
|
4552
4414
|
}
|
|
4553
4415
|
```
|
|
4554
4416
|
<details>
|
|
@@ -4636,51 +4498,56 @@ Example return:
|
|
|
4636
4498
|
|
|
4637
4499
|
```json
|
|
4638
4500
|
{
|
|
4639
|
-
"id":
|
|
4501
|
+
"id": 3,
|
|
4640
4502
|
"localizeInfos": {
|
|
4641
4503
|
"title": "Product"
|
|
4642
4504
|
},
|
|
4643
|
-
"
|
|
4644
|
-
"
|
|
4645
|
-
"
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
"attributeSetId": 7,
|
|
4651
|
-
"isSync": true,
|
|
4652
|
-
"price": 0,
|
|
4505
|
+
"statusIdentifier": null,
|
|
4506
|
+
"statusLocalizeInfos": {},
|
|
4507
|
+
"attributeSetIdentifier": "products",
|
|
4508
|
+
"position": 1,
|
|
4509
|
+
"templateIdentifier": null,
|
|
4510
|
+
"shortDescTemplateIdentifier": null,
|
|
4511
|
+
"price": 120,
|
|
4653
4512
|
"additional": {
|
|
4654
4513
|
"prices": {
|
|
4655
|
-
"min":
|
|
4656
|
-
"max":
|
|
4657
|
-
}
|
|
4658
|
-
},
|
|
4659
|
-
"blocks": [
|
|
4660
|
-
null
|
|
4661
|
-
],
|
|
4662
|
-
"sku": "0-123",
|
|
4663
|
-
"productPages": [
|
|
4664
|
-
{
|
|
4665
|
-
"id": 8997,
|
|
4666
|
-
"pageId": 1176,
|
|
4667
|
-
"productId": 8872
|
|
4514
|
+
"min": 120,
|
|
4515
|
+
"max": 150
|
|
4668
4516
|
}
|
|
4669
|
-
],
|
|
4670
|
-
"statusLocalizeInfos": {
|
|
4671
|
-
"title": "Product"
|
|
4672
4517
|
},
|
|
4673
|
-
"
|
|
4674
|
-
"
|
|
4518
|
+
"sku": null,
|
|
4519
|
+
"isSync": true,
|
|
4675
4520
|
"attributeValues": {
|
|
4676
|
-
"
|
|
4677
|
-
"
|
|
4678
|
-
"
|
|
4521
|
+
"price": {
|
|
4522
|
+
"type": "integer",
|
|
4523
|
+
"value": "120",
|
|
4679
4524
|
"position": 1,
|
|
4680
4525
|
"isProductPreview": false
|
|
4526
|
+
},
|
|
4527
|
+
"product-name": {
|
|
4528
|
+
"type": "string",
|
|
4529
|
+
"value": "Prod",
|
|
4530
|
+
"position": 0,
|
|
4531
|
+
"isProductPreview": false
|
|
4532
|
+
},
|
|
4533
|
+
"currency_products": {
|
|
4534
|
+
"type": "string",
|
|
4535
|
+
"value": "$",
|
|
4536
|
+
"position": 2,
|
|
4537
|
+
"isProductPreview": false
|
|
4681
4538
|
}
|
|
4682
4539
|
},
|
|
4683
|
-
"
|
|
4540
|
+
"isVisible": true,
|
|
4541
|
+
"productPages": {
|
|
4542
|
+
"id": 3,
|
|
4543
|
+
"pageId": 2,
|
|
4544
|
+
"productId": 3,
|
|
4545
|
+
"positionId": 215
|
|
4546
|
+
},
|
|
4547
|
+
"blocks": [
|
|
4548
|
+
"product_block",
|
|
4549
|
+
"another"
|
|
4550
|
+
]
|
|
4684
4551
|
}
|
|
4685
4552
|
```
|
|
4686
4553
|
<details>
|
|
@@ -4770,57 +4637,33 @@ Example return:
|
|
|
4770
4637
|
```json
|
|
4771
4638
|
[
|
|
4772
4639
|
{
|
|
4773
|
-
"id":
|
|
4640
|
+
"id": 3,
|
|
4641
|
+
"attributeSetIdentifier": null,
|
|
4774
4642
|
"localizeInfos": {
|
|
4775
|
-
"title": "
|
|
4643
|
+
"title": "Product block"
|
|
4776
4644
|
},
|
|
4777
4645
|
"version": 0,
|
|
4778
|
-
"position":
|
|
4779
|
-
"identifier": "
|
|
4646
|
+
"position": 1,
|
|
4647
|
+
"identifier": "product_block",
|
|
4780
4648
|
"type": "forProductBlock",
|
|
4649
|
+
"customSettings": {
|
|
4650
|
+
"productConfig": {
|
|
4651
|
+
"quantity": "1",
|
|
4652
|
+
"countElementsPerRow": "1"
|
|
4653
|
+
},
|
|
4654
|
+
"similarProductRules": [],
|
|
4655
|
+
"condition": {
|
|
4656
|
+
"name": "cost",
|
|
4657
|
+
"costTo": 130,
|
|
4658
|
+
"costFrom": 0
|
|
4659
|
+
},
|
|
4660
|
+
"sliderDelay": null,
|
|
4661
|
+
"sliderDelayType": null
|
|
4662
|
+
},
|
|
4781
4663
|
"templateIdentifier": null,
|
|
4782
4664
|
"isVisible": true,
|
|
4783
|
-
"
|
|
4784
|
-
|
|
4785
|
-
"type": "string",
|
|
4786
|
-
"value": "",
|
|
4787
|
-
"position": 0,
|
|
4788
|
-
"isProductPreview": false
|
|
4789
|
-
}
|
|
4790
|
-
},
|
|
4791
|
-
"countElementsPerRow": 3,
|
|
4792
|
-
"products": [
|
|
4793
|
-
{
|
|
4794
|
-
"id": 446,
|
|
4795
|
-
"localizeInfos": {
|
|
4796
|
-
"title": "new product 3"
|
|
4797
|
-
},
|
|
4798
|
-
"relatedIds": [1, 2],
|
|
4799
|
-
"statusId": null,
|
|
4800
|
-
"attributeSetId": 11,
|
|
4801
|
-
"position": 3,
|
|
4802
|
-
"templateIdentifier": null,
|
|
4803
|
-
"shortDescTemplateIdentifier": null,
|
|
4804
|
-
"price": 543,
|
|
4805
|
-
"sku": "ggg",
|
|
4806
|
-
"isSync": true,
|
|
4807
|
-
"attributeValues": {
|
|
4808
|
-
"sku": {
|
|
4809
|
-
"type": "string",
|
|
4810
|
-
"value": "ggg",
|
|
4811
|
-
"position": 0,
|
|
4812
|
-
"isProductPreview": false
|
|
4813
|
-
},
|
|
4814
|
-
"images": {
|
|
4815
|
-
"type": "groupOfImages",
|
|
4816
|
-
"value": {},
|
|
4817
|
-
"position": 3,
|
|
4818
|
-
"isProductPreview": false
|
|
4819
|
-
}
|
|
4820
|
-
},
|
|
4821
|
-
"isVisible": true
|
|
4822
|
-
}
|
|
4823
|
-
]
|
|
4665
|
+
"isSync": false,
|
|
4666
|
+
"attributeValues": {}
|
|
4824
4667
|
}
|
|
4825
4668
|
]
|
|
4826
4669
|
```
|
|
@@ -4888,51 +4731,53 @@ Example return:
|
|
|
4888
4731
|
```json
|
|
4889
4732
|
[
|
|
4890
4733
|
{
|
|
4891
|
-
"id":
|
|
4734
|
+
"id": 4,
|
|
4892
4735
|
"localizeInfos": {
|
|
4893
|
-
"title": "
|
|
4736
|
+
"title": "Cosmo"
|
|
4894
4737
|
},
|
|
4895
|
-
"
|
|
4896
|
-
"
|
|
4897
|
-
"
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
"attributeSetId": 7,
|
|
4903
|
-
"isSync": true,
|
|
4904
|
-
"price": 0,
|
|
4738
|
+
"statusIdentifier": null,
|
|
4739
|
+
"statusLocalizeInfos": {},
|
|
4740
|
+
"attributeSetIdentifier": "products",
|
|
4741
|
+
"position": 1,
|
|
4742
|
+
"templateIdentifier": null,
|
|
4743
|
+
"shortDescTemplateIdentifier": null,
|
|
4744
|
+
"price": 150,
|
|
4905
4745
|
"additional": {
|
|
4906
4746
|
"prices": {
|
|
4907
|
-
"min":
|
|
4908
|
-
"max":
|
|
4747
|
+
"min": 120,
|
|
4748
|
+
"max": 150
|
|
4909
4749
|
}
|
|
4910
4750
|
},
|
|
4911
|
-
"
|
|
4912
|
-
|
|
4913
|
-
],
|
|
4914
|
-
"sku": "0-123",
|
|
4915
|
-
"productPages": [
|
|
4916
|
-
{
|
|
4917
|
-
"id": 8997,
|
|
4918
|
-
"pageId": 1176,
|
|
4919
|
-
"productId": 8872
|
|
4920
|
-
}
|
|
4921
|
-
],
|
|
4922
|
-
"statusLocalizeInfos": {
|
|
4923
|
-
"title": "Product"
|
|
4924
|
-
},
|
|
4925
|
-
"templateIdentifier": "my-template",
|
|
4926
|
-
"shortDescTemplateIdentifier": "my-template-short",
|
|
4751
|
+
"sku": null,
|
|
4752
|
+
"isSync": true,
|
|
4927
4753
|
"attributeValues": {
|
|
4928
|
-
"
|
|
4929
|
-
"
|
|
4930
|
-
"
|
|
4754
|
+
"price": {
|
|
4755
|
+
"type": "integer",
|
|
4756
|
+
"value": "150",
|
|
4931
4757
|
"position": 1,
|
|
4932
4758
|
"isProductPreview": false
|
|
4759
|
+
},
|
|
4760
|
+
"product-name": {
|
|
4761
|
+
"type": "string",
|
|
4762
|
+
"value": "Cosmo",
|
|
4763
|
+
"position": 0,
|
|
4764
|
+
"isProductPreview": false
|
|
4765
|
+
},
|
|
4766
|
+
"currency_products": {
|
|
4767
|
+
"type": "string",
|
|
4768
|
+
"value": "",
|
|
4769
|
+
"position": 2,
|
|
4770
|
+
"isProductPreview": false
|
|
4933
4771
|
}
|
|
4934
4772
|
},
|
|
4935
|
-
"
|
|
4773
|
+
"isVisible": true,
|
|
4774
|
+
"productPages": {
|
|
4775
|
+
"id": 6,
|
|
4776
|
+
"pageId": 2,
|
|
4777
|
+
"productId": 4,
|
|
4778
|
+
"positionId": 229
|
|
4779
|
+
},
|
|
4780
|
+
"blocks": "product_block"
|
|
4936
4781
|
}
|
|
4937
4782
|
]
|
|
4938
4783
|
```
|
|
@@ -5389,31 +5234,30 @@ Example return:
|
|
|
5389
5234
|
```json
|
|
5390
5235
|
[
|
|
5391
5236
|
{
|
|
5392
|
-
"id":
|
|
5393
|
-
"
|
|
5394
|
-
"
|
|
5395
|
-
"identifier": "marker",
|
|
5237
|
+
"id": 1,
|
|
5238
|
+
"version": 0,
|
|
5239
|
+
"identifier": "preview-templates",
|
|
5396
5240
|
"proportion": {
|
|
5397
|
-
"horizontal": {
|
|
5398
|
-
"height": 200,
|
|
5399
|
-
"weight": 10,
|
|
5400
|
-
"marker": "horizontal",
|
|
5401
|
-
"alignmentType": "left"
|
|
5402
|
-
},
|
|
5403
5241
|
"vertical": {
|
|
5404
|
-
"
|
|
5405
|
-
"
|
|
5406
|
-
"
|
|
5407
|
-
"
|
|
5242
|
+
"width": "2",
|
|
5243
|
+
"height": "3",
|
|
5244
|
+
"alignmentType": "leftTop",
|
|
5245
|
+
"marker": "v"
|
|
5246
|
+
},
|
|
5247
|
+
"horizontal": {
|
|
5248
|
+
"width": "234",
|
|
5249
|
+
"height": "324",
|
|
5250
|
+
"alignmentType": "middleBottom",
|
|
5251
|
+
"marker": "h"
|
|
5408
5252
|
},
|
|
5409
5253
|
"square": {
|
|
5410
|
-
"
|
|
5411
|
-
"
|
|
5412
|
-
"
|
|
5254
|
+
"side": "3",
|
|
5255
|
+
"alignmentType": "middleBottom",
|
|
5256
|
+
"marker": "s"
|
|
5413
5257
|
}
|
|
5414
5258
|
},
|
|
5415
|
-
"title": "
|
|
5416
|
-
"position":
|
|
5259
|
+
"title": "Preview Templates",
|
|
5260
|
+
"position": 1
|
|
5417
5261
|
}
|
|
5418
5262
|
]
|
|
5419
5263
|
```
|
|
@@ -5424,9 +5268,6 @@ Example return:
|
|
|
5424
5268
|
*object identifier* <br>
|
|
5425
5269
|
example: 1764 <br>
|
|
5426
5270
|
|
|
5427
|
-
**updatedDate:** string($date-time) <br>
|
|
5428
|
-
*object's date of modification* <br>
|
|
5429
|
-
|
|
5430
5271
|
**version** number <br>
|
|
5431
5272
|
*object's version number of modification* <br>
|
|
5432
5273
|
example: 10 <br>
|
|
@@ -5466,32 +5307,31 @@ const value = await TemplatePreviews.getTemplatePreviewById(1764)
|
|
|
5466
5307
|
Example return:
|
|
5467
5308
|
|
|
5468
5309
|
```json
|
|
5469
|
-
{
|
|
5470
|
-
"id":
|
|
5471
|
-
"
|
|
5472
|
-
"
|
|
5473
|
-
"identifier": "marker",
|
|
5310
|
+
{
|
|
5311
|
+
"id": 1,
|
|
5312
|
+
"version": 0,
|
|
5313
|
+
"identifier": "preview-templates",
|
|
5474
5314
|
"proportion": {
|
|
5475
|
-
"horizontal": {
|
|
5476
|
-
"height": 200,
|
|
5477
|
-
"weight": 10,
|
|
5478
|
-
"marker": "horizontal",
|
|
5479
|
-
"alignmentType": "left"
|
|
5480
|
-
},
|
|
5481
5315
|
"vertical": {
|
|
5482
|
-
"
|
|
5483
|
-
"
|
|
5484
|
-
"
|
|
5485
|
-
"
|
|
5316
|
+
"width": "2",
|
|
5317
|
+
"height": "3",
|
|
5318
|
+
"alignmentType": "leftTop",
|
|
5319
|
+
"marker": "v"
|
|
5320
|
+
},
|
|
5321
|
+
"horizontal": {
|
|
5322
|
+
"width": "234",
|
|
5323
|
+
"height": "324",
|
|
5324
|
+
"alignmentType": "middleBottom",
|
|
5325
|
+
"marker": "h"
|
|
5486
5326
|
},
|
|
5487
5327
|
"square": {
|
|
5488
|
-
"
|
|
5489
|
-
"
|
|
5490
|
-
"
|
|
5328
|
+
"side": "3",
|
|
5329
|
+
"alignmentType": "middleBottom",
|
|
5330
|
+
"marker": "s"
|
|
5491
5331
|
}
|
|
5492
5332
|
},
|
|
5493
|
-
"title": "
|
|
5494
|
-
"
|
|
5333
|
+
"title": "Preview Templates",
|
|
5334
|
+
"position": 1
|
|
5495
5335
|
}
|
|
5496
5336
|
```
|
|
5497
5337
|
<details>
|
|
@@ -5501,9 +5341,6 @@ Example return:
|
|
|
5501
5341
|
*object identifier* <br>
|
|
5502
5342
|
example: 1764 <br>
|
|
5503
5343
|
|
|
5504
|
-
**updatedDate:** string($date-time) <br>
|
|
5505
|
-
*object's date of modification* <br>
|
|
5506
|
-
|
|
5507
5344
|
**version** number <br>
|
|
5508
5345
|
*object's version number of modification* <br>
|
|
5509
5346
|
example: 10 <br>
|
|
@@ -5543,31 +5380,30 @@ Example return:
|
|
|
5543
5380
|
|
|
5544
5381
|
```json
|
|
5545
5382
|
{
|
|
5546
|
-
"id":
|
|
5547
|
-
"
|
|
5548
|
-
"
|
|
5549
|
-
"identifier": "my-marker",
|
|
5383
|
+
"id": 1,
|
|
5384
|
+
"version": 0,
|
|
5385
|
+
"identifier": "preview-templates",
|
|
5550
5386
|
"proportion": {
|
|
5551
|
-
"horizontal": {
|
|
5552
|
-
"height": 200,
|
|
5553
|
-
"weight": 10,
|
|
5554
|
-
"marker": "horizontal",
|
|
5555
|
-
"alignmentType": "left"
|
|
5556
|
-
},
|
|
5557
5387
|
"vertical": {
|
|
5558
|
-
"
|
|
5559
|
-
"
|
|
5560
|
-
"
|
|
5561
|
-
"
|
|
5388
|
+
"width": "2",
|
|
5389
|
+
"height": "3",
|
|
5390
|
+
"alignmentType": "leftTop",
|
|
5391
|
+
"marker": "v"
|
|
5392
|
+
},
|
|
5393
|
+
"horizontal": {
|
|
5394
|
+
"width": "234",
|
|
5395
|
+
"height": "324",
|
|
5396
|
+
"alignmentType": "middleBottom",
|
|
5397
|
+
"marker": "h"
|
|
5562
5398
|
},
|
|
5563
5399
|
"square": {
|
|
5564
|
-
"
|
|
5565
|
-
"
|
|
5566
|
-
"
|
|
5400
|
+
"side": "3",
|
|
5401
|
+
"alignmentType": "middleBottom",
|
|
5402
|
+
"marker": "s"
|
|
5567
5403
|
}
|
|
5568
5404
|
},
|
|
5569
|
-
"title": "
|
|
5570
|
-
"
|
|
5405
|
+
"title": "Preview Templates",
|
|
5406
|
+
"position": 1
|
|
5571
5407
|
}
|
|
5572
5408
|
```
|
|
5573
5409
|
<details>
|
|
@@ -5577,9 +5413,6 @@ Example return:
|
|
|
5577
5413
|
*object identifier* <br>
|
|
5578
5414
|
example: 1764 <br>
|
|
5579
5415
|
|
|
5580
|
-
**updatedDate:** string($date-time) <br>
|
|
5581
|
-
*object's date of modification* <br>
|
|
5582
|
-
|
|
5583
5416
|
**version** number <br>
|
|
5584
5417
|
*object's version number of modification* <br>
|
|
5585
5418
|
example: 10 <br>
|
|
@@ -5663,7 +5496,7 @@ example: List [ "group_1" ] <br>
|
|
|
5663
5496
|
</details>
|
|
5664
5497
|
|
|
5665
5498
|
|
|
5666
|
-
### Users.
|
|
5499
|
+
### Users.updateUser(langCode)
|
|
5667
5500
|
|
|
5668
5501
|
```js
|
|
5669
5502
|
const data = {
|