@revenexx/sdk 0.0.5 → 0.0.7

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.
@@ -11,6 +11,28 @@ export class Pages {
11
11
  this.client = client;
12
12
  }
13
13
 
14
+ /**
15
+ *
16
+ * @throws {RevenexxException}
17
+ * @returns {Promise<{}>}
18
+ */
19
+ pagesDeliveryMenus(): Promise<{}> {
20
+
21
+ const apiPath = '/v1/pages/delivery/menus';
22
+ const apiPayload: Payload = {};
23
+ const uri = new URL(this.client.config.endpoint + apiPath);
24
+
25
+ const apiHeaders: { [header: string]: string } = {
26
+ }
27
+
28
+ return this.client.call(
29
+ 'get',
30
+ uri,
31
+ apiHeaders,
32
+ apiPayload
33
+ );
34
+ }
35
+
14
36
  /**
15
37
  *
16
38
  * @throws {RevenexxException}
@@ -1708,6 +1730,262 @@ export class Pages {
1708
1730
  );
1709
1731
  }
1710
1732
 
1733
+ /**
1734
+ *
1735
+ * @throws {RevenexxException}
1736
+ * @returns {Promise<{}>}
1737
+ */
1738
+ pagesMenusList(): Promise<{}> {
1739
+
1740
+ const apiPath = '/v1/pages/menus';
1741
+ const apiPayload: Payload = {};
1742
+ const uri = new URL(this.client.config.endpoint + apiPath);
1743
+
1744
+ const apiHeaders: { [header: string]: string } = {
1745
+ }
1746
+
1747
+ return this.client.call(
1748
+ 'get',
1749
+ uri,
1750
+ apiHeaders,
1751
+ apiPayload
1752
+ );
1753
+ }
1754
+
1755
+ /**
1756
+ *
1757
+ * @param {string} params.label -
1758
+ * @param {string} params.menuKey - Stable menu identifier, e.g. "main", "footer", "account".
1759
+ * @param {object[]} params.items - Ordered menu entries ({ label, to?, items? }).
1760
+ * @throws {RevenexxException}
1761
+ * @returns {Promise<Models.Menu>}
1762
+ */
1763
+ pagesMenusUpsert(params: { label: string, menuKey: string, items?: object[] }): Promise<Models.Menu>;
1764
+ /**
1765
+ *
1766
+ * @param {string} label -
1767
+ * @param {string} menuKey - Stable menu identifier, e.g. "main", "footer", "account".
1768
+ * @param {object[]} items - Ordered menu entries ({ label, to?, items? }).
1769
+ * @throws {RevenexxException}
1770
+ * @returns {Promise<Models.Menu>}
1771
+ * @deprecated Use the object parameter style method for a better developer experience.
1772
+ */
1773
+ pagesMenusUpsert(label: string, menuKey: string, items?: object[]): Promise<Models.Menu>;
1774
+ pagesMenusUpsert(
1775
+ paramsOrFirst: { label: string, menuKey: string, items?: object[] } | string,
1776
+ ...rest: [(string)?, (object[])?]
1777
+ ): Promise<Models.Menu> {
1778
+ let params: { label: string, menuKey: string, items?: object[] };
1779
+
1780
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1781
+ params = (paramsOrFirst || {}) as { label: string, menuKey: string, items?: object[] };
1782
+ } else {
1783
+ params = {
1784
+ label: paramsOrFirst as string,
1785
+ menuKey: rest[0] as string,
1786
+ items: rest[1] as object[]
1787
+ };
1788
+ }
1789
+
1790
+ const label = params.label;
1791
+ const menuKey = params.menuKey;
1792
+ const items = params.items;
1793
+
1794
+ if (typeof label === 'undefined') {
1795
+ throw new RevenexxException('Missing required parameter: "label"');
1796
+ }
1797
+ if (typeof menuKey === 'undefined') {
1798
+ throw new RevenexxException('Missing required parameter: "menuKey"');
1799
+ }
1800
+
1801
+ const apiPath = '/v1/pages/menus';
1802
+ const apiPayload: Payload = {};
1803
+ if (typeof items !== 'undefined') {
1804
+ apiPayload['items'] = items;
1805
+ }
1806
+ if (typeof label !== 'undefined') {
1807
+ apiPayload['label'] = label;
1808
+ }
1809
+ if (typeof menuKey !== 'undefined') {
1810
+ apiPayload['menuKey'] = menuKey;
1811
+ }
1812
+ const uri = new URL(this.client.config.endpoint + apiPath);
1813
+
1814
+ const apiHeaders: { [header: string]: string } = {
1815
+ 'content-type': 'application/json',
1816
+ }
1817
+
1818
+ return this.client.call(
1819
+ 'post',
1820
+ uri,
1821
+ apiHeaders,
1822
+ apiPayload
1823
+ );
1824
+ }
1825
+
1826
+ /**
1827
+ *
1828
+ * @param {string} params.id -
1829
+ * @throws {RevenexxException}
1830
+ * @returns {Promise<{}>}
1831
+ */
1832
+ pagesMenusDelete(params: { id: string }): Promise<{}>;
1833
+ /**
1834
+ *
1835
+ * @param {string} id -
1836
+ * @throws {RevenexxException}
1837
+ * @returns {Promise<{}>}
1838
+ * @deprecated Use the object parameter style method for a better developer experience.
1839
+ */
1840
+ pagesMenusDelete(id: string): Promise<{}>;
1841
+ pagesMenusDelete(
1842
+ paramsOrFirst: { id: string } | string
1843
+ ): Promise<{}> {
1844
+ let params: { id: string };
1845
+
1846
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1847
+ params = (paramsOrFirst || {}) as { id: string };
1848
+ } else {
1849
+ params = {
1850
+ id: paramsOrFirst as string
1851
+ };
1852
+ }
1853
+
1854
+ const id = params.id;
1855
+
1856
+ if (typeof id === 'undefined') {
1857
+ throw new RevenexxException('Missing required parameter: "id"');
1858
+ }
1859
+
1860
+ const apiPath = '/v1/pages/menus/{id}'.replace('{id}', id);
1861
+ const apiPayload: Payload = {};
1862
+ const uri = new URL(this.client.config.endpoint + apiPath);
1863
+
1864
+ const apiHeaders: { [header: string]: string } = {
1865
+ }
1866
+
1867
+ return this.client.call(
1868
+ 'delete',
1869
+ uri,
1870
+ apiHeaders,
1871
+ apiPayload
1872
+ );
1873
+ }
1874
+
1875
+ /**
1876
+ *
1877
+ * @param {string} params.id -
1878
+ * @throws {RevenexxException}
1879
+ * @returns {Promise<Models.Menu>}
1880
+ */
1881
+ pagesMenusGet(params: { id: string }): Promise<Models.Menu>;
1882
+ /**
1883
+ *
1884
+ * @param {string} id -
1885
+ * @throws {RevenexxException}
1886
+ * @returns {Promise<Models.Menu>}
1887
+ * @deprecated Use the object parameter style method for a better developer experience.
1888
+ */
1889
+ pagesMenusGet(id: string): Promise<Models.Menu>;
1890
+ pagesMenusGet(
1891
+ paramsOrFirst: { id: string } | string
1892
+ ): Promise<Models.Menu> {
1893
+ let params: { id: string };
1894
+
1895
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1896
+ params = (paramsOrFirst || {}) as { id: string };
1897
+ } else {
1898
+ params = {
1899
+ id: paramsOrFirst as string
1900
+ };
1901
+ }
1902
+
1903
+ const id = params.id;
1904
+
1905
+ if (typeof id === 'undefined') {
1906
+ throw new RevenexxException('Missing required parameter: "id"');
1907
+ }
1908
+
1909
+ const apiPath = '/v1/pages/menus/{id}'.replace('{id}', id);
1910
+ const apiPayload: Payload = {};
1911
+ const uri = new URL(this.client.config.endpoint + apiPath);
1912
+
1913
+ const apiHeaders: { [header: string]: string } = {
1914
+ }
1915
+
1916
+ return this.client.call(
1917
+ 'get',
1918
+ uri,
1919
+ apiHeaders,
1920
+ apiPayload
1921
+ );
1922
+ }
1923
+
1924
+ /**
1925
+ *
1926
+ * @param {string} params.id -
1927
+ * @param {object[]} params.items -
1928
+ * @param {string} params.label -
1929
+ * @throws {RevenexxException}
1930
+ * @returns {Promise<Models.Menu>}
1931
+ */
1932
+ pagesMenusUpdate(params: { id: string, items?: object[], label?: string }): Promise<Models.Menu>;
1933
+ /**
1934
+ *
1935
+ * @param {string} id -
1936
+ * @param {object[]} items -
1937
+ * @param {string} label -
1938
+ * @throws {RevenexxException}
1939
+ * @returns {Promise<Models.Menu>}
1940
+ * @deprecated Use the object parameter style method for a better developer experience.
1941
+ */
1942
+ pagesMenusUpdate(id: string, items?: object[], label?: string): Promise<Models.Menu>;
1943
+ pagesMenusUpdate(
1944
+ paramsOrFirst: { id: string, items?: object[], label?: string } | string,
1945
+ ...rest: [(object[])?, (string)?]
1946
+ ): Promise<Models.Menu> {
1947
+ let params: { id: string, items?: object[], label?: string };
1948
+
1949
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1950
+ params = (paramsOrFirst || {}) as { id: string, items?: object[], label?: string };
1951
+ } else {
1952
+ params = {
1953
+ id: paramsOrFirst as string,
1954
+ items: rest[0] as object[],
1955
+ label: rest[1] as string
1956
+ };
1957
+ }
1958
+
1959
+ const id = params.id;
1960
+ const items = params.items;
1961
+ const label = params.label;
1962
+
1963
+ if (typeof id === 'undefined') {
1964
+ throw new RevenexxException('Missing required parameter: "id"');
1965
+ }
1966
+
1967
+ const apiPath = '/v1/pages/menus/{id}'.replace('{id}', id);
1968
+ const apiPayload: Payload = {};
1969
+ if (typeof items !== 'undefined') {
1970
+ apiPayload['items'] = items;
1971
+ }
1972
+ if (typeof label !== 'undefined') {
1973
+ apiPayload['label'] = label;
1974
+ }
1975
+ const uri = new URL(this.client.config.endpoint + apiPath);
1976
+
1977
+ const apiHeaders: { [header: string]: string } = {
1978
+ 'content-type': 'application/json',
1979
+ }
1980
+
1981
+ return this.client.call(
1982
+ 'put',
1983
+ uri,
1984
+ apiHeaders,
1985
+ apiPayload
1986
+ );
1987
+ }
1988
+
1711
1989
  /**
1712
1990
  *
1713
1991
  * @throws {RevenexxException}
@@ -2054,37 +2332,45 @@ export class Pages {
2054
2332
 
2055
2333
  /**
2056
2334
  *
2335
+ * @param {object[]} params.menus -
2057
2336
  * @param {object[]} params.pages -
2058
2337
  * @throws {RevenexxException}
2059
2338
  * @returns {Promise<{}>}
2060
2339
  */
2061
- pagesSeed(params?: { pages?: object[] }): Promise<{}>;
2340
+ pagesSeed(params?: { menus?: object[], pages?: object[] }): Promise<{}>;
2062
2341
  /**
2063
2342
  *
2343
+ * @param {object[]} menus -
2064
2344
  * @param {object[]} pages -
2065
2345
  * @throws {RevenexxException}
2066
2346
  * @returns {Promise<{}>}
2067
2347
  * @deprecated Use the object parameter style method for a better developer experience.
2068
2348
  */
2069
- pagesSeed(pages?: object[]): Promise<{}>;
2349
+ pagesSeed(menus?: object[], pages?: object[]): Promise<{}>;
2070
2350
  pagesSeed(
2071
- paramsOrFirst?: { pages?: object[] } | object[]
2351
+ paramsOrFirst?: { menus?: object[], pages?: object[] } | object[],
2352
+ ...rest: [(object[])?]
2072
2353
  ): Promise<{}> {
2073
- let params: { pages?: object[] };
2354
+ let params: { menus?: object[], pages?: object[] };
2074
2355
 
2075
- if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('pages' in paramsOrFirst))) {
2076
- params = (paramsOrFirst || {}) as { pages?: object[] };
2356
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('menus' in paramsOrFirst || 'pages' in paramsOrFirst))) {
2357
+ params = (paramsOrFirst || {}) as { menus?: object[], pages?: object[] };
2077
2358
  } else {
2078
2359
  params = {
2079
- pages: paramsOrFirst as object[]
2360
+ menus: paramsOrFirst as object[],
2361
+ pages: rest[0] as object[]
2080
2362
  };
2081
2363
  }
2082
2364
 
2365
+ const menus = params.menus;
2083
2366
  const pages = params.pages;
2084
2367
 
2085
2368
 
2086
2369
  const apiPath = '/v1/pages/seed';
2087
2370
  const apiPayload: Payload = {};
2371
+ if (typeof menus !== 'undefined') {
2372
+ apiPayload['menus'] = menus;
2373
+ }
2088
2374
  if (typeof pages !== 'undefined') {
2089
2375
  apiPayload['pages'] = pages;
2090
2376
  }
@@ -645,32 +645,32 @@ export class Prices {
645
645
  /**
646
646
  *
647
647
  * @param {string} params.listId -
648
- * @param {Models.PriceEntryCreateRequest[]} params.entries - The complete new entry set (set semantics).
648
+ * @param {Models.PriceEntryReplaceItem[]} params.entries - The complete new entry set (set semantics).
649
649
  * @throws {RevenexxException}
650
650
  * @returns {Promise<{}>}
651
651
  */
652
- pricesEntriesReplace(params: { listId: string, entries: Models.PriceEntryCreateRequest[] }): Promise<{}>;
652
+ pricesEntriesReplace(params: { listId: string, entries: Models.PriceEntryReplaceItem[] }): Promise<{}>;
653
653
  /**
654
654
  *
655
655
  * @param {string} listId -
656
- * @param {Models.PriceEntryCreateRequest[]} entries - The complete new entry set (set semantics).
656
+ * @param {Models.PriceEntryReplaceItem[]} entries - The complete new entry set (set semantics).
657
657
  * @throws {RevenexxException}
658
658
  * @returns {Promise<{}>}
659
659
  * @deprecated Use the object parameter style method for a better developer experience.
660
660
  */
661
- pricesEntriesReplace(listId: string, entries: Models.PriceEntryCreateRequest[]): Promise<{}>;
661
+ pricesEntriesReplace(listId: string, entries: Models.PriceEntryReplaceItem[]): Promise<{}>;
662
662
  pricesEntriesReplace(
663
- paramsOrFirst: { listId: string, entries: Models.PriceEntryCreateRequest[] } | string,
664
- ...rest: [(Models.PriceEntryCreateRequest[])?]
663
+ paramsOrFirst: { listId: string, entries: Models.PriceEntryReplaceItem[] } | string,
664
+ ...rest: [(Models.PriceEntryReplaceItem[])?]
665
665
  ): Promise<{}> {
666
- let params: { listId: string, entries: Models.PriceEntryCreateRequest[] };
666
+ let params: { listId: string, entries: Models.PriceEntryReplaceItem[] };
667
667
 
668
668
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
669
- params = (paramsOrFirst || {}) as { listId: string, entries: Models.PriceEntryCreateRequest[] };
669
+ params = (paramsOrFirst || {}) as { listId: string, entries: Models.PriceEntryReplaceItem[] };
670
670
  } else {
671
671
  params = {
672
672
  listId: paramsOrFirst as string,
673
- entries: rest[0] as Models.PriceEntryCreateRequest[]
673
+ entries: rest[0] as Models.PriceEntryReplaceItem[]
674
674
  };
675
675
  }
676
676
 
@@ -703,6 +703,67 @@ export class Prices {
703
703
  );
704
704
  }
705
705
 
706
+ /**
707
+ *
708
+ * @param {string} params.listId -
709
+ * @param {Models.PriceEntryReplaceItem[]} params.entries - The complete new entry set (set semantics).
710
+ * @throws {RevenexxException}
711
+ * @returns {Promise<{}>}
712
+ */
713
+ pricesEntriesBulk(params: { listId: string, entries: Models.PriceEntryReplaceItem[] }): Promise<{}>;
714
+ /**
715
+ *
716
+ * @param {string} listId -
717
+ * @param {Models.PriceEntryReplaceItem[]} entries - The complete new entry set (set semantics).
718
+ * @throws {RevenexxException}
719
+ * @returns {Promise<{}>}
720
+ * @deprecated Use the object parameter style method for a better developer experience.
721
+ */
722
+ pricesEntriesBulk(listId: string, entries: Models.PriceEntryReplaceItem[]): Promise<{}>;
723
+ pricesEntriesBulk(
724
+ paramsOrFirst: { listId: string, entries: Models.PriceEntryReplaceItem[] } | string,
725
+ ...rest: [(Models.PriceEntryReplaceItem[])?]
726
+ ): Promise<{}> {
727
+ let params: { listId: string, entries: Models.PriceEntryReplaceItem[] };
728
+
729
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
730
+ params = (paramsOrFirst || {}) as { listId: string, entries: Models.PriceEntryReplaceItem[] };
731
+ } else {
732
+ params = {
733
+ listId: paramsOrFirst as string,
734
+ entries: rest[0] as Models.PriceEntryReplaceItem[]
735
+ };
736
+ }
737
+
738
+ const listId = params.listId;
739
+ const entries = params.entries;
740
+
741
+ if (typeof listId === 'undefined') {
742
+ throw new RevenexxException('Missing required parameter: "listId"');
743
+ }
744
+ if (typeof entries === 'undefined') {
745
+ throw new RevenexxException('Missing required parameter: "entries"');
746
+ }
747
+
748
+ const apiPath = '/v1/prices/lists/{list_id}/entries/bulk'.replace('{list_id}', listId);
749
+ const apiPayload: Payload = {};
750
+ if (typeof entries !== 'undefined') {
751
+ apiPayload['entries'] = entries;
752
+ }
753
+ const uri = new URL(this.client.config.endpoint + apiPath);
754
+
755
+ const apiHeaders: { [header: string]: string } = {
756
+ 'content-type': 'application/json',
757
+ }
758
+
759
+ return this.client.call(
760
+ 'post',
761
+ uri,
762
+ apiHeaders,
763
+ apiPayload
764
+ );
765
+ }
766
+
706
767
  /**
707
768
  *
708
769
  * @param {string} params.listId -
@@ -44,10 +44,11 @@ export class Products {
44
44
  * @param {string} params.kind -
45
45
  * @param {string} params.parentId -
46
46
  * @param {object} params.quantifiedAssociations -
47
+ * @param {string} params.taxClass -
47
48
  * @throws {RevenexxException}
48
49
  * @returns {Promise<Models.Products>}
49
50
  */
50
- productsCreate(params: { sku: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object }): Promise<Models.Products>;
51
+ productsCreate(params: { sku: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, taxClass?: string }): Promise<Models.Products>;
51
52
  /**
52
53
  *
53
54
  * @param {string} sku -
@@ -60,19 +61,20 @@ export class Products {
60
61
  * @param {string} kind -
61
62
  * @param {string} parentId -
62
63
  * @param {object} quantifiedAssociations -
64
+ * @param {string} taxClass -
63
65
  * @throws {RevenexxException}
64
66
  * @returns {Promise<Models.Products>}
65
67
  * @deprecated Use the object parameter style method for a better developer experience.
66
68
  */
67
- productsCreate(sku: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object): Promise<Models.Products>;
69
+ productsCreate(sku: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, taxClass?: string): Promise<Models.Products>;
68
70
  productsCreate(
69
- paramsOrFirst: { sku: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object } | string,
70
- ...rest: [(object)?, (object)?, (string)?, (boolean)?, (string)?, (string)?, (string)?, (string)?, (object)?]
71
+ paramsOrFirst: { sku: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, taxClass?: string } | string,
72
+ ...rest: [(object)?, (object)?, (string)?, (boolean)?, (string)?, (string)?, (string)?, (string)?, (object)?, (string)?]
71
73
  ): Promise<Models.Products> {
72
- let params: { sku: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object };
74
+ let params: { sku: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, taxClass?: string };
73
75
 
74
76
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
75
- params = (paramsOrFirst || {}) as { sku: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object };
77
+ params = (paramsOrFirst || {}) as { sku: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, taxClass?: string };
76
78
  } else {
77
79
  params = {
78
80
  sku: paramsOrFirst as string,
@@ -84,7 +86,8 @@ export class Products {
84
86
  familyVariantId: rest[5] as string,
85
87
  kind: rest[6] as string,
86
88
  parentId: rest[7] as string,
87
- quantifiedAssociations: rest[8] as object
89
+ quantifiedAssociations: rest[8] as object,
90
+ taxClass: rest[9] as string
88
91
  };
89
92
  }
90
93
 
@@ -98,6 +101,7 @@ export class Products {
98
101
  const kind = params.kind;
99
102
  const parentId = params.parentId;
100
103
  const quantifiedAssociations = params.quantifiedAssociations;
104
+ const taxClass = params.taxClass;
101
105
 
102
106
  if (typeof sku === 'undefined') {
103
107
  throw new RevenexxException('Missing required parameter: "sku"');
@@ -135,6 +139,9 @@ export class Products {
135
139
  if (typeof sku !== 'undefined') {
136
140
  apiPayload['sku'] = sku;
137
141
  }
142
+ if (typeof taxClass !== 'undefined') {
143
+ apiPayload['tax_class'] = taxClass;
144
+ }
138
145
  const uri = new URL(this.client.config.endpoint + apiPath);
139
146
 
140
147
  const apiHeaders: { [header: string]: string } = {
@@ -1928,6 +1935,64 @@ export class Products {
1928
1935
  );
1929
1936
  }
1930
1937
 
1938
+ /**
1939
+ *
1940
+ * @param {string[]} params.ids -
1941
+ * @param {string[]} params.skus -
1942
+ * @throws {RevenexxException}
1943
+ * @returns {Promise<{}>}
1944
+ */
1945
+ productsBatch(params?: { ids?: string[], skus?: string[] }): Promise<{}>;
1946
+ /**
1947
+ *
1948
+ * @param {string[]} ids -
1949
+ * @param {string[]} skus -
1950
+ * @throws {RevenexxException}
1951
+ * @returns {Promise<{}>}
1952
+ * @deprecated Use the object parameter style method for a better developer experience.
1953
+ */
1954
+ productsBatch(ids?: string[], skus?: string[]): Promise<{}>;
1955
+ productsBatch(
1956
+ paramsOrFirst?: { ids?: string[], skus?: string[] } | string[],
1957
+ ...rest: [(string[])?]
1958
+ ): Promise<{}> {
1959
+ let params: { ids?: string[], skus?: string[] };
1960
+
1961
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1962
+ params = (paramsOrFirst || {}) as { ids?: string[], skus?: string[] };
1963
+ } else {
1964
+ params = {
1965
+ ids: paramsOrFirst as string[],
1966
+ skus: rest[0] as string[]
1967
+ };
1968
+ }
1969
+
1970
+ const ids = params.ids;
1971
+ const skus = params.skus;
1972
+
1973
+
1974
+ const apiPath = '/v1/products/batch';
1975
+ const apiPayload: Payload = {};
1976
+ if (typeof ids !== 'undefined') {
1977
+ apiPayload['ids'] = ids;
1978
+ }
1979
+ if (typeof skus !== 'undefined') {
1980
+ apiPayload['skus'] = skus;
1981
+ }
1982
+ const uri = new URL(this.client.config.endpoint + apiPath);
1983
+
1984
+ const apiHeaders: { [header: string]: string } = {
1985
+ 'content-type': 'application/json',
1986
+ }
1987
+
1988
+ return this.client.call(
1989
+ 'post',
1990
+ uri,
1991
+ apiHeaders,
1992
+ apiPayload
1993
+ );
1994
+ }
1995
+
1931
1996
  /**
1932
1997
  *
1933
1998
  * @throws {RevenexxException}
@@ -4554,10 +4619,11 @@ export class Products {
4554
4619
  * @param {string} params.parentId -
4555
4620
  * @param {object} params.quantifiedAssociations -
4556
4621
  * @param {string} params.sku -
4622
+ * @param {string} params.taxClass -
4557
4623
  * @throws {RevenexxException}
4558
4624
  * @returns {Promise<Models.Products>}
4559
4625
  */
4560
- productsUpdate(params: { id: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, sku?: string }): Promise<Models.Products>;
4626
+ productsUpdate(params: { id: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, sku?: string, taxClass?: string }): Promise<Models.Products>;
4561
4627
  /**
4562
4628
  *
4563
4629
  * @param {string} id -
@@ -4571,19 +4637,20 @@ export class Products {
4571
4637
  * @param {string} parentId -
4572
4638
  * @param {object} quantifiedAssociations -
4573
4639
  * @param {string} sku -
4640
+ * @param {string} taxClass -
4574
4641
  * @throws {RevenexxException}
4575
4642
  * @returns {Promise<Models.Products>}
4576
4643
  * @deprecated Use the object parameter style method for a better developer experience.
4577
4644
  */
4578
- productsUpdate(id: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, sku?: string): Promise<Models.Products>;
4645
+ productsUpdate(id: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, sku?: string, taxClass?: string): Promise<Models.Products>;
4579
4646
  productsUpdate(
4580
- paramsOrFirst: { id: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, sku?: string } | string,
4581
- ...rest: [(object)?, (object)?, (string)?, (boolean)?, (string)?, (string)?, (string)?, (string)?, (object)?, (string)?]
4647
+ paramsOrFirst: { id: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, sku?: string, taxClass?: string } | string,
4648
+ ...rest: [(object)?, (object)?, (string)?, (boolean)?, (string)?, (string)?, (string)?, (string)?, (object)?, (string)?, (string)?]
4582
4649
  ): Promise<Models.Products> {
4583
- let params: { id: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, sku?: string };
4650
+ let params: { id: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, sku?: string, taxClass?: string };
4584
4651
 
4585
4652
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
4586
- params = (paramsOrFirst || {}) as { id: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, sku?: string };
4653
+ params = (paramsOrFirst || {}) as { id: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, sku?: string, taxClass?: string };
4587
4654
  } else {
4588
4655
  params = {
4589
4656
  id: paramsOrFirst as string,
@@ -4596,7 +4663,8 @@ export class Products {
4596
4663
  kind: rest[6] as string,
4597
4664
  parentId: rest[7] as string,
4598
4665
  quantifiedAssociations: rest[8] as object,
4599
- sku: rest[9] as string
4666
+ sku: rest[9] as string,
4667
+ taxClass: rest[10] as string
4600
4668
  };
4601
4669
  }
4602
4670
 
@@ -4611,6 +4679,7 @@ export class Products {
4611
4679
  const parentId = params.parentId;
4612
4680
  const quantifiedAssociations = params.quantifiedAssociations;
4613
4681
  const sku = params.sku;
4682
+ const taxClass = params.taxClass;
4614
4683
 
4615
4684
  if (typeof id === 'undefined') {
4616
4685
  throw new RevenexxException('Missing required parameter: "id"');
@@ -4648,6 +4717,9 @@ export class Products {
4648
4717
  if (typeof sku !== 'undefined') {
4649
4718
  apiPayload['sku'] = sku;
4650
4719
  }
4720
+ if (typeof taxClass !== 'undefined') {
4721
+ apiPayload['tax_class'] = taxClass;
4722
+ }
4651
4723
  const uri = new URL(this.client.config.endpoint + apiPath);
4652
4724
 
4653
4725
  const apiHeaders: { [header: string]: string } = {