oneentry 1.0.70 → 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 +642 -881
- package/dist/attribute-sets/attributeSetsApi.d.ts +2 -2
- package/dist/attribute-sets/attributeSetsApi.js +2 -2
- 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 -2
- package/dist/base/asyncModules.js +6 -2
- package/dist/base/stateModule.js +1 -1
- 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/formsDataApi.d.ts +1 -0
- package/dist/formsData/formsDataApi.js +2 -1
- package/dist/formsData/formsDataInterfaces.d.ts +2 -2
- package/dist/orders/ordersApi.d.ts +1 -1
- package/dist/orders/ordersApi.js +3 -0
- package/dist/orders/ordersInterfaces.d.ts +11 -9
- package/dist/pages/pagesApi.js +12 -3
- package/dist/pages/pagesInterfaces.d.ts +6 -20
- package/dist/payments/paymentsApi.d.ts +5 -17
- package/dist/payments/paymentsApi.js +9 -18
- package/dist/payments/paymentsInterfaces.d.ts +11 -37
- package/dist/product-statuses/productStatusesApi.d.ts +3 -3
- package/dist/product-statuses/productStatusesApi.js +3 -3
- package/dist/products/productsApi.d.ts +4 -4
- package/dist/products/productsApi.js +4 -3
- package/dist/products/productsInterfaces.d.ts +40 -12
- package/dist/templates/templatesApi.d.ts +7 -7
- package/dist/templates/templatesApi.js +2 -2
- package/dist/templates/templatesInterfaces.d.ts +4 -15
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +1 -5
- package/dist/users/usersApi.d.ts +1 -1
- package/dist/users/usersApi.js +3 -1
- package/dist/users/usersInterfaces.d.ts +6 -3
- package/package.json +1 -1
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>
|
|
@@ -3538,23 +3456,10 @@ example: pi_3Oyz2kQWzXG1R23w144qG7o4_secret_OeScuCwTpHmyOM1atbm7pWJw2 <br>
|
|
|
3538
3456
|
</details>
|
|
3539
3457
|
|
|
3540
3458
|
|
|
3541
|
-
### Payments.createSession(
|
|
3459
|
+
### Payments.createSession(orderId, type, automaticTaxEnabled)
|
|
3542
3460
|
|
|
3543
3461
|
```js
|
|
3544
|
-
const
|
|
3545
|
-
"lineItems": [
|
|
3546
|
-
{
|
|
3547
|
-
"quantity": 1,
|
|
3548
|
-
"amount": 5,
|
|
3549
|
-
"currency": "USD",
|
|
3550
|
-
"name": "T-Shirt",
|
|
3551
|
-
"description": "White T-Shirt"
|
|
3552
|
-
}
|
|
3553
|
-
],
|
|
3554
|
-
"orderId": 22
|
|
3555
|
-
}
|
|
3556
|
-
|
|
3557
|
-
const value = await Payments.createSession(body)
|
|
3462
|
+
const value = await Payments.createSession(1, 'session')
|
|
3558
3463
|
```
|
|
3559
3464
|
|
|
3560
3465
|
> This method creation of a payment session. It returns a Promise that resolves to a payment session object.
|
|
@@ -3564,32 +3469,9 @@ Example return:
|
|
|
3564
3469
|
```json
|
|
3565
3470
|
{
|
|
3566
3471
|
"id": 1764,
|
|
3567
|
-
"updatedDate": "2024-
|
|
3472
|
+
"updatedDate": "2024-06-21T09:53:28.898Z",
|
|
3568
3473
|
"version": 10,
|
|
3569
|
-
"identifier": "
|
|
3570
|
-
"type": "session",
|
|
3571
|
-
"lineItems": [
|
|
3572
|
-
{
|
|
3573
|
-
"quantity": 1,
|
|
3574
|
-
"amount": 5,
|
|
3575
|
-
"currency": "USD",
|
|
3576
|
-
"name": "T-shirt",
|
|
3577
|
-
"description": "White T-shirt"
|
|
3578
|
-
}
|
|
3579
|
-
],
|
|
3580
|
-
"orderId": 1,
|
|
3581
|
-
"paymentAccountId": 1,
|
|
3582
|
-
"status": "completed",
|
|
3583
|
-
"sessionId": "9BE88048TU058770M",
|
|
3584
|
-
"paymentUrl": "https://www.sandbox.paypal.com/checkoutnow?token=9BE88048TU058770M",
|
|
3585
|
-
"successUrl": "https://example.com/success",
|
|
3586
|
-
"cancelUrl": "https://example.com/cancel",
|
|
3587
|
-
"intent": {
|
|
3588
|
-
"amount": 1,
|
|
3589
|
-
"currency": "usd"
|
|
3590
|
-
},
|
|
3591
|
-
"intentId": 1,
|
|
3592
|
-
"clientSecret": "pi_3Oyz2kQWzXG1R23w144qG7o4_secret_OeScuCwTpHmyOM1atbm7pWJw2"
|
|
3474
|
+
"identifier": "my-id"
|
|
3593
3475
|
}
|
|
3594
3476
|
```
|
|
3595
3477
|
<details>
|
|
@@ -3672,8 +3554,7 @@ Example return:
|
|
|
3672
3554
|
```json
|
|
3673
3555
|
{
|
|
3674
3556
|
"stripeAccountId": "acct_1OtRiIHTHOaLRCAa",
|
|
3675
|
-
"stripePublishableKey": "pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3"
|
|
3676
|
-
"paypalAccountId": "4Q0BANTF5BE7N"
|
|
3557
|
+
"stripePublishableKey": "pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3"
|
|
3677
3558
|
}
|
|
3678
3559
|
```
|
|
3679
3560
|
<details>
|
|
@@ -3707,13 +3588,11 @@ Example return:
|
|
|
3707
3588
|
```json
|
|
3708
3589
|
[
|
|
3709
3590
|
{
|
|
3710
|
-
"id":
|
|
3711
|
-
"updatedDate": "2024-04-10T17:02:20.707Z",
|
|
3712
|
-
"version": 10,
|
|
3713
|
-
"identifier": "catalog",
|
|
3591
|
+
"id": 2,
|
|
3714
3592
|
"localizeInfos": {
|
|
3715
|
-
|
|
3593
|
+
"title": "Stripe"
|
|
3716
3594
|
},
|
|
3595
|
+
"identifier": "stripe",
|
|
3717
3596
|
"type": "stripe",
|
|
3718
3597
|
"isVisible": true
|
|
3719
3598
|
}
|
|
@@ -3764,15 +3643,11 @@ Example return:
|
|
|
3764
3643
|
|
|
3765
3644
|
```json
|
|
3766
3645
|
{
|
|
3767
|
-
"id":
|
|
3768
|
-
"updatedDate": "2024-04-10T17:12:20.233Z",
|
|
3769
|
-
"version": 10,
|
|
3770
|
-
"identifier": "catalog",
|
|
3646
|
+
"id": 2,
|
|
3771
3647
|
"localizeInfos": {
|
|
3772
|
-
"
|
|
3773
|
-
"title": "Stripe"
|
|
3774
|
-
}
|
|
3648
|
+
"title": "Stripe"
|
|
3775
3649
|
},
|
|
3650
|
+
"identifier": "stripe",
|
|
3776
3651
|
"type": "stripe",
|
|
3777
3652
|
"isVisible": true
|
|
3778
3653
|
}
|
|
@@ -3818,16 +3693,6 @@ const value = await Payments.webhookStripe()
|
|
|
3818
3693
|
|
|
3819
3694
|
> This method use webhook for Stripe. Returns true (in case of successful execution) or false (in case of unsuccessful execution).
|
|
3820
3695
|
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
### Payments.webhookStripe()
|
|
3824
|
-
|
|
3825
|
-
```js
|
|
3826
|
-
const value = await Payments.webhookPaypal()
|
|
3827
|
-
```
|
|
3828
|
-
|
|
3829
|
-
> This method use webhook for Paypal. Returns true (in case of successful execution) or false (in case of unsuccessful execution).
|
|
3830
|
-
|
|
3831
3696
|
---
|
|
3832
3697
|
|
|
3833
3698
|
|
|
@@ -3906,51 +3771,46 @@ Example return:
|
|
|
3906
3771
|
```json
|
|
3907
3772
|
[
|
|
3908
3773
|
{
|
|
3909
|
-
"id":
|
|
3774
|
+
"id": 4,
|
|
3910
3775
|
"localizeInfos": {
|
|
3911
|
-
"title": "
|
|
3776
|
+
"title": "Cosmo"
|
|
3912
3777
|
},
|
|
3913
|
-
"
|
|
3914
|
-
"
|
|
3915
|
-
"
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
"attributeSetId": 7,
|
|
3921
|
-
"isSync": true,
|
|
3922
|
-
"price": 0,
|
|
3778
|
+
"statusIdentifier": null,
|
|
3779
|
+
"statusLocalizeInfos": {},
|
|
3780
|
+
"attributeSetIdentifier": "products",
|
|
3781
|
+
"position": 1,
|
|
3782
|
+
"templateIdentifier": null,
|
|
3783
|
+
"shortDescTemplateIdentifier": null,
|
|
3784
|
+
"price": 150,
|
|
3923
3785
|
"additional": {
|
|
3924
3786
|
"prices": {
|
|
3925
|
-
"min":
|
|
3926
|
-
"max":
|
|
3787
|
+
"min": 120,
|
|
3788
|
+
"max": 150
|
|
3927
3789
|
}
|
|
3928
3790
|
},
|
|
3929
|
-
"
|
|
3930
|
-
|
|
3931
|
-
],
|
|
3932
|
-
"sku": "0-123",
|
|
3933
|
-
"productPages": [
|
|
3934
|
-
{
|
|
3935
|
-
"id": 8997,
|
|
3936
|
-
"pageId": 1176,
|
|
3937
|
-
"productId": 8872
|
|
3938
|
-
}
|
|
3939
|
-
],
|
|
3940
|
-
"statusLocalizeInfos": {
|
|
3941
|
-
"title": "Product"
|
|
3942
|
-
},
|
|
3943
|
-
"templateIdentifier": "my-template",
|
|
3944
|
-
"shortDescTemplateIdentifier": "my-template-short",
|
|
3791
|
+
"sku": null,
|
|
3792
|
+
"isSync": true,
|
|
3945
3793
|
"attributeValues": {
|
|
3946
|
-
"
|
|
3947
|
-
"
|
|
3948
|
-
"
|
|
3794
|
+
"price": {
|
|
3795
|
+
"type": "integer",
|
|
3796
|
+
"value": "150",
|
|
3949
3797
|
"position": 1,
|
|
3950
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
|
|
3951
3811
|
}
|
|
3952
3812
|
},
|
|
3953
|
-
"
|
|
3813
|
+
"isVisible": true
|
|
3954
3814
|
}
|
|
3955
3815
|
]
|
|
3956
3816
|
```
|
|
@@ -4041,51 +3901,46 @@ Example return:
|
|
|
4041
3901
|
```json
|
|
4042
3902
|
[
|
|
4043
3903
|
{
|
|
4044
|
-
"id":
|
|
3904
|
+
"id": 4,
|
|
4045
3905
|
"localizeInfos": {
|
|
4046
|
-
"title": "
|
|
3906
|
+
"title": "Cosmo"
|
|
4047
3907
|
},
|
|
4048
|
-
"
|
|
4049
|
-
"
|
|
4050
|
-
"
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
"attributeSetId": 7,
|
|
4056
|
-
"isSync": true,
|
|
4057
|
-
"price": 0,
|
|
3908
|
+
"statusIdentifier": null,
|
|
3909
|
+
"statusLocalizeInfos": {},
|
|
3910
|
+
"attributeSetIdentifier": "products",
|
|
3911
|
+
"position": 1,
|
|
3912
|
+
"templateIdentifier": null,
|
|
3913
|
+
"shortDescTemplateIdentifier": null,
|
|
3914
|
+
"price": 150,
|
|
4058
3915
|
"additional": {
|
|
4059
3916
|
"prices": {
|
|
4060
|
-
"min":
|
|
4061
|
-
"max":
|
|
3917
|
+
"min": 120,
|
|
3918
|
+
"max": 150
|
|
4062
3919
|
}
|
|
4063
3920
|
},
|
|
4064
|
-
"
|
|
4065
|
-
|
|
4066
|
-
],
|
|
4067
|
-
"sku": "0-123",
|
|
4068
|
-
"productPages": [
|
|
4069
|
-
{
|
|
4070
|
-
"id": 8997,
|
|
4071
|
-
"pageId": 1176,
|
|
4072
|
-
"productId": 8872
|
|
4073
|
-
}
|
|
4074
|
-
],
|
|
4075
|
-
"statusLocalizeInfos": {
|
|
4076
|
-
"title": "Product"
|
|
4077
|
-
},
|
|
4078
|
-
"templateIdentifier": "my-template",
|
|
4079
|
-
"shortDescTemplateIdentifier": "my-template-short",
|
|
3921
|
+
"sku": null,
|
|
3922
|
+
"isSync": true,
|
|
4080
3923
|
"attributeValues": {
|
|
4081
|
-
"
|
|
4082
|
-
"
|
|
4083
|
-
"
|
|
3924
|
+
"price": {
|
|
3925
|
+
"type": "integer",
|
|
3926
|
+
"value": "150",
|
|
4084
3927
|
"position": 1,
|
|
4085
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
|
|
4086
3941
|
}
|
|
4087
3942
|
},
|
|
4088
|
-
"
|
|
3943
|
+
"isVisible": true
|
|
4089
3944
|
}
|
|
4090
3945
|
]
|
|
4091
3946
|
```
|
|
@@ -4196,51 +4051,49 @@ Example return:
|
|
|
4196
4051
|
```json
|
|
4197
4052
|
[
|
|
4198
4053
|
{
|
|
4199
|
-
"id":
|
|
4054
|
+
"id": 2,
|
|
4200
4055
|
"localizeInfos": {
|
|
4201
|
-
"title": "
|
|
4056
|
+
"title": "Box"
|
|
4202
4057
|
},
|
|
4203
|
-
"
|
|
4204
|
-
"
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
"
|
|
4211
|
-
"
|
|
4212
|
-
"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,
|
|
4213
4067
|
"additional": {
|
|
4214
4068
|
"prices": {
|
|
4215
|
-
"min":
|
|
4216
|
-
"max":
|
|
4069
|
+
"min": 120,
|
|
4070
|
+
"max": 150
|
|
4217
4071
|
}
|
|
4218
4072
|
},
|
|
4219
|
-
"
|
|
4220
|
-
|
|
4221
|
-
],
|
|
4222
|
-
"sku": "0-123",
|
|
4223
|
-
"productPages": [
|
|
4224
|
-
{
|
|
4225
|
-
"id": 8997,
|
|
4226
|
-
"pageId": 1176,
|
|
4227
|
-
"productId": 8872
|
|
4228
|
-
}
|
|
4229
|
-
],
|
|
4230
|
-
"statusLocalizeInfos": {
|
|
4231
|
-
"title": "Product"
|
|
4232
|
-
},
|
|
4233
|
-
"templateIdentifier": "my-template",
|
|
4234
|
-
"shortDescTemplateIdentifier": "my-template-short",
|
|
4073
|
+
"sku": null,
|
|
4074
|
+
"isSync": true,
|
|
4235
4075
|
"attributeValues": {
|
|
4236
|
-
"
|
|
4237
|
-
"
|
|
4238
|
-
"
|
|
4076
|
+
"price": {
|
|
4077
|
+
"type": "integer",
|
|
4078
|
+
"value": "148",
|
|
4239
4079
|
"position": 1,
|
|
4240
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
|
|
4241
4093
|
}
|
|
4242
4094
|
},
|
|
4243
|
-
"
|
|
4095
|
+
"isVisible": true,
|
|
4096
|
+
"isPositionLocked": false
|
|
4244
4097
|
}
|
|
4245
4098
|
]
|
|
4246
4099
|
```
|
|
@@ -4383,51 +4236,49 @@ Example return:
|
|
|
4383
4236
|
```json
|
|
4384
4237
|
[
|
|
4385
4238
|
{
|
|
4386
|
-
"id":
|
|
4239
|
+
"id": 2,
|
|
4387
4240
|
"localizeInfos": {
|
|
4388
|
-
"title": "
|
|
4241
|
+
"title": "Box"
|
|
4389
4242
|
},
|
|
4390
|
-
"
|
|
4391
|
-
"
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
"
|
|
4398
|
-
"
|
|
4399
|
-
"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,
|
|
4400
4252
|
"additional": {
|
|
4401
4253
|
"prices": {
|
|
4402
|
-
"min":
|
|
4403
|
-
"max":
|
|
4404
|
-
}
|
|
4405
|
-
},
|
|
4406
|
-
"blocks": [
|
|
4407
|
-
null
|
|
4408
|
-
],
|
|
4409
|
-
"sku": "0-123",
|
|
4410
|
-
"productPages": [
|
|
4411
|
-
{
|
|
4412
|
-
"id": 8997,
|
|
4413
|
-
"pageId": 1176,
|
|
4414
|
-
"productId": 8872
|
|
4254
|
+
"min": 120,
|
|
4255
|
+
"max": 150
|
|
4415
4256
|
}
|
|
4416
|
-
],
|
|
4417
|
-
"statusLocalizeInfos": {
|
|
4418
|
-
"title": "Product"
|
|
4419
4257
|
},
|
|
4420
|
-
"
|
|
4421
|
-
"
|
|
4258
|
+
"sku": null,
|
|
4259
|
+
"isSync": true,
|
|
4422
4260
|
"attributeValues": {
|
|
4423
|
-
"
|
|
4424
|
-
"
|
|
4425
|
-
"
|
|
4261
|
+
"price": {
|
|
4262
|
+
"type": "integer",
|
|
4263
|
+
"value": "148",
|
|
4426
4264
|
"position": 1,
|
|
4427
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
|
|
4428
4278
|
}
|
|
4429
4279
|
},
|
|
4430
|
-
"
|
|
4280
|
+
"isVisible": true,
|
|
4281
|
+
"isPositionLocked": false
|
|
4431
4282
|
}
|
|
4432
4283
|
]
|
|
4433
4284
|
```
|
|
@@ -4517,51 +4368,49 @@ Example return:
|
|
|
4517
4368
|
|
|
4518
4369
|
```json
|
|
4519
4370
|
{
|
|
4520
|
-
"id":
|
|
4371
|
+
"id": 2,
|
|
4521
4372
|
"localizeInfos": {
|
|
4522
|
-
"title": "
|
|
4373
|
+
"title": "Box"
|
|
4523
4374
|
},
|
|
4524
|
-
"
|
|
4525
|
-
"
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
"
|
|
4532
|
-
"
|
|
4533
|
-
"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,
|
|
4534
4384
|
"additional": {
|
|
4535
4385
|
"prices": {
|
|
4536
|
-
"min":
|
|
4537
|
-
"max":
|
|
4538
|
-
}
|
|
4539
|
-
},
|
|
4540
|
-
"blocks": [
|
|
4541
|
-
null
|
|
4542
|
-
],
|
|
4543
|
-
"sku": "0-123",
|
|
4544
|
-
"productPages": [
|
|
4545
|
-
{
|
|
4546
|
-
"id": 8997,
|
|
4547
|
-
"pageId": 1176,
|
|
4548
|
-
"productId": 8872
|
|
4386
|
+
"min": 120,
|
|
4387
|
+
"max": 150
|
|
4549
4388
|
}
|
|
4550
|
-
],
|
|
4551
|
-
"statusLocalizeInfos": {
|
|
4552
|
-
"title": "Product"
|
|
4553
4389
|
},
|
|
4554
|
-
"
|
|
4555
|
-
"
|
|
4390
|
+
"sku": null,
|
|
4391
|
+
"isSync": true,
|
|
4556
4392
|
"attributeValues": {
|
|
4557
|
-
"
|
|
4558
|
-
"
|
|
4559
|
-
"
|
|
4393
|
+
"price": {
|
|
4394
|
+
"type": "integer",
|
|
4395
|
+
"value": "148",
|
|
4560
4396
|
"position": 1,
|
|
4561
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
|
|
4562
4410
|
}
|
|
4563
4411
|
},
|
|
4564
|
-
"
|
|
4412
|
+
"isVisible": true,
|
|
4413
|
+
"isPositionLocked": false
|
|
4565
4414
|
}
|
|
4566
4415
|
```
|
|
4567
4416
|
<details>
|
|
@@ -4649,51 +4498,56 @@ Example return:
|
|
|
4649
4498
|
|
|
4650
4499
|
```json
|
|
4651
4500
|
{
|
|
4652
|
-
"id":
|
|
4501
|
+
"id": 3,
|
|
4653
4502
|
"localizeInfos": {
|
|
4654
4503
|
"title": "Product"
|
|
4655
4504
|
},
|
|
4656
|
-
"
|
|
4657
|
-
"
|
|
4658
|
-
"
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
"attributeSetId": 7,
|
|
4664
|
-
"isSync": true,
|
|
4665
|
-
"price": 0,
|
|
4505
|
+
"statusIdentifier": null,
|
|
4506
|
+
"statusLocalizeInfos": {},
|
|
4507
|
+
"attributeSetIdentifier": "products",
|
|
4508
|
+
"position": 1,
|
|
4509
|
+
"templateIdentifier": null,
|
|
4510
|
+
"shortDescTemplateIdentifier": null,
|
|
4511
|
+
"price": 120,
|
|
4666
4512
|
"additional": {
|
|
4667
4513
|
"prices": {
|
|
4668
|
-
"min":
|
|
4669
|
-
"max":
|
|
4514
|
+
"min": 120,
|
|
4515
|
+
"max": 150
|
|
4670
4516
|
}
|
|
4671
4517
|
},
|
|
4672
|
-
"
|
|
4673
|
-
|
|
4674
|
-
],
|
|
4675
|
-
"sku": "0-123",
|
|
4676
|
-
"productPages": [
|
|
4677
|
-
{
|
|
4678
|
-
"id": 8997,
|
|
4679
|
-
"pageId": 1176,
|
|
4680
|
-
"productId": 8872
|
|
4681
|
-
}
|
|
4682
|
-
],
|
|
4683
|
-
"statusLocalizeInfos": {
|
|
4684
|
-
"title": "Product"
|
|
4685
|
-
},
|
|
4686
|
-
"templateIdentifier": "my-template",
|
|
4687
|
-
"shortDescTemplateIdentifier": "my-template-short",
|
|
4518
|
+
"sku": null,
|
|
4519
|
+
"isSync": true,
|
|
4688
4520
|
"attributeValues": {
|
|
4689
|
-
"
|
|
4690
|
-
"
|
|
4691
|
-
"
|
|
4521
|
+
"price": {
|
|
4522
|
+
"type": "integer",
|
|
4523
|
+
"value": "120",
|
|
4692
4524
|
"position": 1,
|
|
4693
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
|
|
4694
4538
|
}
|
|
4695
4539
|
},
|
|
4696
|
-
"
|
|
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
|
+
]
|
|
4697
4551
|
}
|
|
4698
4552
|
```
|
|
4699
4553
|
<details>
|
|
@@ -4783,57 +4637,33 @@ Example return:
|
|
|
4783
4637
|
```json
|
|
4784
4638
|
[
|
|
4785
4639
|
{
|
|
4786
|
-
"id":
|
|
4640
|
+
"id": 3,
|
|
4641
|
+
"attributeSetIdentifier": null,
|
|
4787
4642
|
"localizeInfos": {
|
|
4788
|
-
"title": "
|
|
4643
|
+
"title": "Product block"
|
|
4789
4644
|
},
|
|
4790
4645
|
"version": 0,
|
|
4791
|
-
"position":
|
|
4792
|
-
"identifier": "
|
|
4646
|
+
"position": 1,
|
|
4647
|
+
"identifier": "product_block",
|
|
4793
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
|
+
},
|
|
4794
4663
|
"templateIdentifier": null,
|
|
4795
4664
|
"isVisible": true,
|
|
4796
|
-
"
|
|
4797
|
-
|
|
4798
|
-
"type": "string",
|
|
4799
|
-
"value": "",
|
|
4800
|
-
"position": 0,
|
|
4801
|
-
"isProductPreview": false
|
|
4802
|
-
}
|
|
4803
|
-
},
|
|
4804
|
-
"countElementsPerRow": 3,
|
|
4805
|
-
"products": [
|
|
4806
|
-
{
|
|
4807
|
-
"id": 446,
|
|
4808
|
-
"localizeInfos": {
|
|
4809
|
-
"title": "new product 3"
|
|
4810
|
-
},
|
|
4811
|
-
"relatedIds": [1, 2],
|
|
4812
|
-
"statusId": null,
|
|
4813
|
-
"attributeSetId": 11,
|
|
4814
|
-
"position": 3,
|
|
4815
|
-
"templateIdentifier": null,
|
|
4816
|
-
"shortDescTemplateIdentifier": null,
|
|
4817
|
-
"price": 543,
|
|
4818
|
-
"sku": "ggg",
|
|
4819
|
-
"isSync": true,
|
|
4820
|
-
"attributeValues": {
|
|
4821
|
-
"sku": {
|
|
4822
|
-
"type": "string",
|
|
4823
|
-
"value": "ggg",
|
|
4824
|
-
"position": 0,
|
|
4825
|
-
"isProductPreview": false
|
|
4826
|
-
},
|
|
4827
|
-
"images": {
|
|
4828
|
-
"type": "groupOfImages",
|
|
4829
|
-
"value": {},
|
|
4830
|
-
"position": 3,
|
|
4831
|
-
"isProductPreview": false
|
|
4832
|
-
}
|
|
4833
|
-
},
|
|
4834
|
-
"isVisible": true
|
|
4835
|
-
}
|
|
4836
|
-
]
|
|
4665
|
+
"isSync": false,
|
|
4666
|
+
"attributeValues": {}
|
|
4837
4667
|
}
|
|
4838
4668
|
]
|
|
4839
4669
|
```
|
|
@@ -4901,51 +4731,53 @@ Example return:
|
|
|
4901
4731
|
```json
|
|
4902
4732
|
[
|
|
4903
4733
|
{
|
|
4904
|
-
"id":
|
|
4734
|
+
"id": 4,
|
|
4905
4735
|
"localizeInfos": {
|
|
4906
|
-
"title": "
|
|
4736
|
+
"title": "Cosmo"
|
|
4907
4737
|
},
|
|
4908
|
-
"
|
|
4909
|
-
"
|
|
4910
|
-
"
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
"attributeSetId": 7,
|
|
4916
|
-
"isSync": true,
|
|
4917
|
-
"price": 0,
|
|
4738
|
+
"statusIdentifier": null,
|
|
4739
|
+
"statusLocalizeInfos": {},
|
|
4740
|
+
"attributeSetIdentifier": "products",
|
|
4741
|
+
"position": 1,
|
|
4742
|
+
"templateIdentifier": null,
|
|
4743
|
+
"shortDescTemplateIdentifier": null,
|
|
4744
|
+
"price": 150,
|
|
4918
4745
|
"additional": {
|
|
4919
4746
|
"prices": {
|
|
4920
|
-
"min":
|
|
4921
|
-
"max":
|
|
4747
|
+
"min": 120,
|
|
4748
|
+
"max": 150
|
|
4922
4749
|
}
|
|
4923
4750
|
},
|
|
4924
|
-
"
|
|
4925
|
-
|
|
4926
|
-
],
|
|
4927
|
-
"sku": "0-123",
|
|
4928
|
-
"productPages": [
|
|
4929
|
-
{
|
|
4930
|
-
"id": 8997,
|
|
4931
|
-
"pageId": 1176,
|
|
4932
|
-
"productId": 8872
|
|
4933
|
-
}
|
|
4934
|
-
],
|
|
4935
|
-
"statusLocalizeInfos": {
|
|
4936
|
-
"title": "Product"
|
|
4937
|
-
},
|
|
4938
|
-
"templateIdentifier": "my-template",
|
|
4939
|
-
"shortDescTemplateIdentifier": "my-template-short",
|
|
4751
|
+
"sku": null,
|
|
4752
|
+
"isSync": true,
|
|
4940
4753
|
"attributeValues": {
|
|
4941
|
-
"
|
|
4942
|
-
"
|
|
4943
|
-
"
|
|
4754
|
+
"price": {
|
|
4755
|
+
"type": "integer",
|
|
4756
|
+
"value": "150",
|
|
4944
4757
|
"position": 1,
|
|
4945
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
|
|
4946
4771
|
}
|
|
4947
4772
|
},
|
|
4948
|
-
"
|
|
4773
|
+
"isVisible": true,
|
|
4774
|
+
"productPages": {
|
|
4775
|
+
"id": 6,
|
|
4776
|
+
"pageId": 2,
|
|
4777
|
+
"productId": 4,
|
|
4778
|
+
"positionId": 229
|
|
4779
|
+
},
|
|
4780
|
+
"blocks": "product_block"
|
|
4949
4781
|
}
|
|
4950
4782
|
]
|
|
4951
4783
|
```
|
|
@@ -5222,17 +5054,11 @@ Example return:
|
|
|
5222
5054
|
[
|
|
5223
5055
|
{
|
|
5224
5056
|
"id": 1764,
|
|
5225
|
-
"updatedDate": "2024-05-25T23:50:35.154Z",
|
|
5226
5057
|
"version": 10,
|
|
5227
5058
|
"identifier": "marker",
|
|
5228
|
-
"generalType": {
|
|
5229
|
-
"id": 4,
|
|
5230
|
-
"type": "forCatalogPages"
|
|
5231
|
-
},
|
|
5232
5059
|
"generalTypeId": 4,
|
|
5233
5060
|
"title": "Page template",
|
|
5234
5061
|
"position": 0,
|
|
5235
|
-
"positionId": 12,
|
|
5236
5062
|
"generalTypeName": "forProductPreview"
|
|
5237
5063
|
}
|
|
5238
5064
|
]
|
|
@@ -5244,8 +5070,6 @@ Example return:
|
|
|
5244
5070
|
*object identifier* <br>
|
|
5245
5071
|
example: 1764 <br>
|
|
5246
5072
|
|
|
5247
|
-
**updatedDate:** string($date-time) <br>
|
|
5248
|
-
*object's date of modification* <br>
|
|
5249
5073
|
|
|
5250
5074
|
**version** number <br>
|
|
5251
5075
|
*object's version number of modification* <br>
|
|
@@ -5255,10 +5079,6 @@ example: 10 <br>
|
|
|
5255
5079
|
*textual identifier for a field in the record* <br>
|
|
5256
5080
|
example: catalog <br>
|
|
5257
5081
|
|
|
5258
|
-
**generalType:**: object <br>
|
|
5259
|
-
*object type* <br>
|
|
5260
|
-
example: OrderedMap { "id": 4, "type": "forCatalogPages" } <br>
|
|
5261
|
-
|
|
5262
5082
|
**generalTypeId:** number <br>
|
|
5263
5083
|
*type identifier* <br>
|
|
5264
5084
|
example: 4 <br>
|
|
@@ -5271,11 +5091,6 @@ example: page template <br>
|
|
|
5271
5091
|
*position number* <br>
|
|
5272
5092
|
example: 0 <br>
|
|
5273
5093
|
|
|
5274
|
-
|
|
5275
|
-
**positionId:** number <br>
|
|
5276
|
-
*position object identifier* <br>
|
|
5277
|
-
example: 12 <br>
|
|
5278
|
-
|
|
5279
5094
|
**generalTypeName** string <br>
|
|
5280
5095
|
*example: forProductPreview* <br>
|
|
5281
5096
|
general type name <br>
|
|
@@ -5296,17 +5111,11 @@ Example return:
|
|
|
5296
5111
|
[
|
|
5297
5112
|
{
|
|
5298
5113
|
"id": 1764,
|
|
5299
|
-
"updatedDate": "2024-05-25T23:50:35.154Z",
|
|
5300
5114
|
"version": 10,
|
|
5301
5115
|
"identifier": "marker",
|
|
5302
|
-
"generalType": {
|
|
5303
|
-
"id": 4,
|
|
5304
|
-
"type": "forCatalogPages"
|
|
5305
|
-
},
|
|
5306
5116
|
"generalTypeId": 4,
|
|
5307
5117
|
"title": "Page template",
|
|
5308
5118
|
"position": 0,
|
|
5309
|
-
"positionId": 12,
|
|
5310
5119
|
"generalTypeName": "forProductPreview"
|
|
5311
5120
|
}
|
|
5312
5121
|
]
|
|
@@ -5318,8 +5127,6 @@ Example return:
|
|
|
5318
5127
|
*object identifier* <br>
|
|
5319
5128
|
example: 1764 <br>
|
|
5320
5129
|
|
|
5321
|
-
**updatedDate:** string($date-time) <br>
|
|
5322
|
-
*object's date of modification* <br>
|
|
5323
5130
|
|
|
5324
5131
|
**version** number <br>
|
|
5325
5132
|
*object's version number of modification* <br>
|
|
@@ -5329,10 +5136,6 @@ example: 10 <br>
|
|
|
5329
5136
|
*textual identifier for a field in the record* <br>
|
|
5330
5137
|
example: catalog <br>
|
|
5331
5138
|
|
|
5332
|
-
**generalType:**: object <br>
|
|
5333
|
-
*object type* <br>
|
|
5334
|
-
example: OrderedMap { "id": 4, "type": "forCatalogPages" } <br>
|
|
5335
|
-
|
|
5336
5139
|
**generalTypeId:** number <br>
|
|
5337
5140
|
*type identifier* <br>
|
|
5338
5141
|
example: 4 <br>
|
|
@@ -5345,10 +5148,6 @@ example: page template <br>
|
|
|
5345
5148
|
*position number* <br>
|
|
5346
5149
|
example: 0 <br>
|
|
5347
5150
|
|
|
5348
|
-
**positionId:** number <br>
|
|
5349
|
-
*position object identifier* <br>
|
|
5350
|
-
example: 12 <br>
|
|
5351
|
-
|
|
5352
5151
|
**generalTypeName** string <br>
|
|
5353
5152
|
*example: forProductPreview* <br>
|
|
5354
5153
|
general type name <br>
|
|
@@ -5370,17 +5169,10 @@ Example return:
|
|
|
5370
5169
|
[
|
|
5371
5170
|
{
|
|
5372
5171
|
"id": 1764,
|
|
5373
|
-
"updatedDate": "2024-05-25T23:50:35.154Z",
|
|
5374
5172
|
"version": 10,
|
|
5375
5173
|
"identifier": "marker",
|
|
5376
|
-
"generalType": {
|
|
5377
|
-
"id": 4,
|
|
5378
|
-
"type": "forCatalogPages"
|
|
5379
|
-
},
|
|
5380
5174
|
"generalTypeId": 4,
|
|
5381
5175
|
"title": "Page template",
|
|
5382
|
-
"position": 0,
|
|
5383
|
-
"positionId": 12,
|
|
5384
5176
|
"generalTypeName": "forProductPreview"
|
|
5385
5177
|
}
|
|
5386
5178
|
]
|
|
@@ -5392,9 +5184,6 @@ Example return:
|
|
|
5392
5184
|
*object identifier* <br>
|
|
5393
5185
|
example: 1764 <br>
|
|
5394
5186
|
|
|
5395
|
-
**updatedDate:** string($date-time) <br>
|
|
5396
|
-
*object's date of modification* <br>
|
|
5397
|
-
|
|
5398
5187
|
**version** number <br>
|
|
5399
5188
|
*object's version number of modification* <br>
|
|
5400
5189
|
example: 10 <br>
|
|
@@ -5403,10 +5192,6 @@ example: 10 <br>
|
|
|
5403
5192
|
*textual identifier for a field in the record* <br>
|
|
5404
5193
|
example: catalog <br>
|
|
5405
5194
|
|
|
5406
|
-
**generalType:**: object <br>
|
|
5407
|
-
*object type* <br>
|
|
5408
|
-
example: OrderedMap { "id": 4, "type": "forCatalogPages" } <br>
|
|
5409
|
-
|
|
5410
5195
|
**generalTypeId:** number <br>
|
|
5411
5196
|
*type identifier* <br>
|
|
5412
5197
|
example: 4 <br>
|
|
@@ -5419,9 +5204,6 @@ example: page template <br>
|
|
|
5419
5204
|
*position number* <br>
|
|
5420
5205
|
example: 0 <br>
|
|
5421
5206
|
|
|
5422
|
-
**positionId:** number <br>
|
|
5423
|
-
*position object identifier* <br>
|
|
5424
|
-
example: 12 <br>
|
|
5425
5207
|
|
|
5426
5208
|
**generalTypeName** string <br>
|
|
5427
5209
|
*example: forProductPreview* <br>
|
|
@@ -5452,34 +5234,30 @@ Example return:
|
|
|
5452
5234
|
```json
|
|
5453
5235
|
[
|
|
5454
5236
|
{
|
|
5455
|
-
"id":
|
|
5456
|
-
"
|
|
5457
|
-
"
|
|
5458
|
-
"identifier": "marker",
|
|
5237
|
+
"id": 1,
|
|
5238
|
+
"version": 0,
|
|
5239
|
+
"identifier": "preview-templates",
|
|
5459
5240
|
"proportion": {
|
|
5460
|
-
"horizontal": {
|
|
5461
|
-
"height": 200,
|
|
5462
|
-
"weight": 10,
|
|
5463
|
-
"marker": "horizontal",
|
|
5464
|
-
"title": "Horizontal",
|
|
5465
|
-
"alignmentType": "left"
|
|
5466
|
-
},
|
|
5467
5241
|
"vertical": {
|
|
5468
|
-
"
|
|
5469
|
-
"
|
|
5470
|
-
"
|
|
5471
|
-
"
|
|
5472
|
-
|
|
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"
|
|
5473
5252
|
},
|
|
5474
5253
|
"square": {
|
|
5475
|
-
"
|
|
5476
|
-
"
|
|
5477
|
-
"
|
|
5478
|
-
"alignmentType": "center"
|
|
5254
|
+
"side": "3",
|
|
5255
|
+
"alignmentType": "middleBottom",
|
|
5256
|
+
"marker": "s"
|
|
5479
5257
|
}
|
|
5480
5258
|
},
|
|
5481
|
-
"title": "
|
|
5482
|
-
"position":
|
|
5259
|
+
"title": "Preview Templates",
|
|
5260
|
+
"position": 1
|
|
5483
5261
|
}
|
|
5484
5262
|
]
|
|
5485
5263
|
```
|
|
@@ -5490,9 +5268,6 @@ Example return:
|
|
|
5490
5268
|
*object identifier* <br>
|
|
5491
5269
|
example: 1764 <br>
|
|
5492
5270
|
|
|
5493
|
-
**updatedDate:** string($date-time) <br>
|
|
5494
|
-
*object's date of modification* <br>
|
|
5495
|
-
|
|
5496
5271
|
**version** number <br>
|
|
5497
5272
|
*object's version number of modification* <br>
|
|
5498
5273
|
example: 10 <br>
|
|
@@ -5524,7 +5299,7 @@ example: 12 <br>
|
|
|
5524
5299
|
### TemplatePreviews.getTemplatesPreviewById(id)
|
|
5525
5300
|
|
|
5526
5301
|
```js
|
|
5527
|
-
const value = await TemplatePreviews.getTemplatePreviewById(
|
|
5302
|
+
const value = await TemplatePreviews.getTemplatePreviewById(1764)
|
|
5528
5303
|
```
|
|
5529
5304
|
|
|
5530
5305
|
> This method retrieves a single template object based on its identifier (id) from the API. It returns a Promise that resolves to a TemplatePreviewsEntity object.
|
|
@@ -5532,35 +5307,31 @@ const value = await TemplatePreviews.getTemplatePreviewById(1)
|
|
|
5532
5307
|
Example return:
|
|
5533
5308
|
|
|
5534
5309
|
```json
|
|
5535
|
-
{
|
|
5536
|
-
"id":
|
|
5537
|
-
"
|
|
5538
|
-
"
|
|
5539
|
-
"identifier": "marker",
|
|
5310
|
+
{
|
|
5311
|
+
"id": 1,
|
|
5312
|
+
"version": 0,
|
|
5313
|
+
"identifier": "preview-templates",
|
|
5540
5314
|
"proportion": {
|
|
5541
|
-
"horizontal": {
|
|
5542
|
-
"height": 200,
|
|
5543
|
-
"weight": 10,
|
|
5544
|
-
"marker": "horizontal",
|
|
5545
|
-
"title": "Horizontal",
|
|
5546
|
-
"alignmentType": "left"
|
|
5547
|
-
},
|
|
5548
5315
|
"vertical": {
|
|
5549
|
-
"
|
|
5550
|
-
"
|
|
5551
|
-
"
|
|
5552
|
-
"
|
|
5553
|
-
|
|
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"
|
|
5554
5326
|
},
|
|
5555
5327
|
"square": {
|
|
5556
|
-
"
|
|
5557
|
-
"
|
|
5558
|
-
"
|
|
5559
|
-
"alignmentType": "center"
|
|
5328
|
+
"side": "3",
|
|
5329
|
+
"alignmentType": "middleBottom",
|
|
5330
|
+
"marker": "s"
|
|
5560
5331
|
}
|
|
5561
5332
|
},
|
|
5562
|
-
"title": "
|
|
5563
|
-
"position":
|
|
5333
|
+
"title": "Preview Templates",
|
|
5334
|
+
"position": 1
|
|
5564
5335
|
}
|
|
5565
5336
|
```
|
|
5566
5337
|
<details>
|
|
@@ -5570,9 +5341,6 @@ Example return:
|
|
|
5570
5341
|
*object identifier* <br>
|
|
5571
5342
|
example: 1764 <br>
|
|
5572
5343
|
|
|
5573
|
-
**updatedDate:** string($date-time) <br>
|
|
5574
|
-
*object's date of modification* <br>
|
|
5575
|
-
|
|
5576
5344
|
**version** number <br>
|
|
5577
5345
|
*object's version number of modification* <br>
|
|
5578
5346
|
example: 10 <br>
|
|
@@ -5612,34 +5380,30 @@ Example return:
|
|
|
5612
5380
|
|
|
5613
5381
|
```json
|
|
5614
5382
|
{
|
|
5615
|
-
"id":
|
|
5616
|
-
"
|
|
5617
|
-
"
|
|
5618
|
-
"identifier": "marker",
|
|
5383
|
+
"id": 1,
|
|
5384
|
+
"version": 0,
|
|
5385
|
+
"identifier": "preview-templates",
|
|
5619
5386
|
"proportion": {
|
|
5620
|
-
"horizontal": {
|
|
5621
|
-
"height": 200,
|
|
5622
|
-
"weight": 10,
|
|
5623
|
-
"marker": "horizontal",
|
|
5624
|
-
"title": "Horizontal",
|
|
5625
|
-
"alignmentType": "left"
|
|
5626
|
-
},
|
|
5627
5387
|
"vertical": {
|
|
5628
|
-
"
|
|
5629
|
-
"
|
|
5630
|
-
"
|
|
5631
|
-
"
|
|
5632
|
-
|
|
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"
|
|
5633
5398
|
},
|
|
5634
5399
|
"square": {
|
|
5635
|
-
"
|
|
5636
|
-
"
|
|
5637
|
-
"
|
|
5638
|
-
"alignmentType": "center"
|
|
5400
|
+
"side": "3",
|
|
5401
|
+
"alignmentType": "middleBottom",
|
|
5402
|
+
"marker": "s"
|
|
5639
5403
|
}
|
|
5640
5404
|
},
|
|
5641
|
-
"title": "
|
|
5642
|
-
"position":
|
|
5405
|
+
"title": "Preview Templates",
|
|
5406
|
+
"position": 1
|
|
5643
5407
|
}
|
|
5644
5408
|
```
|
|
5645
5409
|
<details>
|
|
@@ -5649,9 +5413,6 @@ Example return:
|
|
|
5649
5413
|
*object identifier* <br>
|
|
5650
5414
|
example: 1764 <br>
|
|
5651
5415
|
|
|
5652
|
-
**updatedDate:** string($date-time) <br>
|
|
5653
|
-
*object's date of modification* <br>
|
|
5654
|
-
|
|
5655
5416
|
**version** number <br>
|
|
5656
5417
|
*object's version number of modification* <br>
|
|
5657
5418
|
example: 10 <br>
|
|
@@ -5668,7 +5429,7 @@ example: OrderedMap { "horizontal": OrderedMap { "height": 200, "weight": 10, "m
|
|
|
5668
5429
|
*template name* <br>
|
|
5669
5430
|
example: page template <br>
|
|
5670
5431
|
|
|
5671
|
-
**
|
|
5432
|
+
**positionId** object <br>
|
|
5672
5433
|
*position number* <br>
|
|
5673
5434
|
example: 0 <br>
|
|
5674
5435
|
|
|
@@ -5735,7 +5496,7 @@ example: List [ "group_1" ] <br>
|
|
|
5735
5496
|
</details>
|
|
5736
5497
|
|
|
5737
5498
|
|
|
5738
|
-
### Users.
|
|
5499
|
+
### Users.updateUser(langCode)
|
|
5739
5500
|
|
|
5740
5501
|
```js
|
|
5741
5502
|
const data = {
|