hostinger-api-sdk 1.1.0 → 1.1.1
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 +2 -2
- package/api.ts +490 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +336 -1
- package/dist/api.js +306 -6
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +336 -1
- package/dist/esm/api.js +293 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/EcommerceMiscellaneousApi.md +54 -0
- package/docs/EcommerceSalesChannelsApi.md +120 -0
- package/docs/EcommerceV1MiscellaneousCustomStorefrontInstructionsResource.md +20 -0
- package/docs/EcommerceV1SalesChannelSalesChannelCreationResource.md +20 -0
- package/docs/EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel.md +32 -0
- package/docs/EcommerceV1SalesChannelSalesChannelListResource.md +20 -0
- package/docs/EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner.md +32 -0
- package/docs/EcommerceV1SalesChannelStoreRequest.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.1.
|
|
4
|
+
* API Version: 1.1.1
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1463,6 +1463,19 @@ export interface EcommerceGetStoresV1200Response {
|
|
|
1463
1463
|
*/
|
|
1464
1464
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
1465
1465
|
}
|
|
1466
|
+
/**
|
|
1467
|
+
*
|
|
1468
|
+
* @export
|
|
1469
|
+
* @interface EcommerceV1MiscellaneousCustomStorefrontInstructionsResource
|
|
1470
|
+
*/
|
|
1471
|
+
export interface EcommerceV1MiscellaneousCustomStorefrontInstructionsResource {
|
|
1472
|
+
/**
|
|
1473
|
+
* Markdown setup instructions for connecting a custom sales channel to your store.
|
|
1474
|
+
* @type {string}
|
|
1475
|
+
* @memberof EcommerceV1MiscellaneousCustomStorefrontInstructionsResource
|
|
1476
|
+
*/
|
|
1477
|
+
'instructions': string;
|
|
1478
|
+
}
|
|
1466
1479
|
/**
|
|
1467
1480
|
*
|
|
1468
1481
|
* @export
|
|
@@ -1661,6 +1674,177 @@ export declare const EcommerceV1ProductProductCreationResourceProductTypeEnum: {
|
|
|
1661
1674
|
readonly Digital: "digital";
|
|
1662
1675
|
};
|
|
1663
1676
|
export type EcommerceV1ProductProductCreationResourceProductTypeEnum = typeof EcommerceV1ProductProductCreationResourceProductTypeEnum[keyof typeof EcommerceV1ProductProductCreationResourceProductTypeEnum];
|
|
1677
|
+
/**
|
|
1678
|
+
*
|
|
1679
|
+
* @export
|
|
1680
|
+
* @interface EcommerceV1SalesChannelSalesChannelCreationResource
|
|
1681
|
+
*/
|
|
1682
|
+
export interface EcommerceV1SalesChannelSalesChannelCreationResource {
|
|
1683
|
+
/**
|
|
1684
|
+
*
|
|
1685
|
+
* @type {EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel}
|
|
1686
|
+
* @memberof EcommerceV1SalesChannelSalesChannelCreationResource
|
|
1687
|
+
*/
|
|
1688
|
+
'sales_channel': EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel;
|
|
1689
|
+
}
|
|
1690
|
+
/**
|
|
1691
|
+
*
|
|
1692
|
+
* @export
|
|
1693
|
+
* @interface EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
|
|
1694
|
+
*/
|
|
1695
|
+
export interface EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel {
|
|
1696
|
+
/**
|
|
1697
|
+
* Sales channel ID
|
|
1698
|
+
* @type {string}
|
|
1699
|
+
* @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
|
|
1700
|
+
*/
|
|
1701
|
+
'id': string;
|
|
1702
|
+
/**
|
|
1703
|
+
* Sales channel type
|
|
1704
|
+
* @type {string}
|
|
1705
|
+
* @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
|
|
1706
|
+
*/
|
|
1707
|
+
'type': EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum;
|
|
1708
|
+
/**
|
|
1709
|
+
* Whether this is the primary sales channel.
|
|
1710
|
+
* @type {boolean}
|
|
1711
|
+
* @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
|
|
1712
|
+
*/
|
|
1713
|
+
'is_primary': boolean;
|
|
1714
|
+
/**
|
|
1715
|
+
* Whether the sales channel is active.
|
|
1716
|
+
* @type {boolean}
|
|
1717
|
+
* @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
|
|
1718
|
+
*/
|
|
1719
|
+
'is_active': boolean;
|
|
1720
|
+
/**
|
|
1721
|
+
* External identifier for the sales channel.
|
|
1722
|
+
* @type {string}
|
|
1723
|
+
* @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
|
|
1724
|
+
*/
|
|
1725
|
+
'external_id': string | null;
|
|
1726
|
+
/**
|
|
1727
|
+
* Merchant-facing custom name.
|
|
1728
|
+
* @type {string}
|
|
1729
|
+
* @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
|
|
1730
|
+
*/
|
|
1731
|
+
'name': string | null;
|
|
1732
|
+
/**
|
|
1733
|
+
* Public address where the custom sales channel lives.
|
|
1734
|
+
* @type {string}
|
|
1735
|
+
* @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
|
|
1736
|
+
*/
|
|
1737
|
+
'domain': string | null;
|
|
1738
|
+
}
|
|
1739
|
+
export declare const EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum: {
|
|
1740
|
+
readonly Builder: "builder";
|
|
1741
|
+
readonly Horizons: "horizons";
|
|
1742
|
+
readonly Tiktok: "tiktok";
|
|
1743
|
+
readonly Custom: "custom";
|
|
1744
|
+
readonly QuickLink: "quick-link";
|
|
1745
|
+
readonly Wordpress: "wordpress";
|
|
1746
|
+
};
|
|
1747
|
+
export type EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = typeof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum[keyof typeof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum];
|
|
1748
|
+
/**
|
|
1749
|
+
*
|
|
1750
|
+
* @export
|
|
1751
|
+
* @interface EcommerceV1SalesChannelSalesChannelListResource
|
|
1752
|
+
*/
|
|
1753
|
+
export interface EcommerceV1SalesChannelSalesChannelListResource {
|
|
1754
|
+
/**
|
|
1755
|
+
* The store\'s active sales channels.
|
|
1756
|
+
* @type {Array<EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner>}
|
|
1757
|
+
* @memberof EcommerceV1SalesChannelSalesChannelListResource
|
|
1758
|
+
*/
|
|
1759
|
+
'sales_channels': Array<EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner>;
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
*
|
|
1763
|
+
* @export
|
|
1764
|
+
* @interface EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
|
|
1765
|
+
*/
|
|
1766
|
+
export interface EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner {
|
|
1767
|
+
/**
|
|
1768
|
+
* Sales channel ID
|
|
1769
|
+
* @type {string}
|
|
1770
|
+
* @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
|
|
1771
|
+
*/
|
|
1772
|
+
'id': string;
|
|
1773
|
+
/**
|
|
1774
|
+
* Sales channel type
|
|
1775
|
+
* @type {string}
|
|
1776
|
+
* @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
|
|
1777
|
+
*/
|
|
1778
|
+
'type': EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum;
|
|
1779
|
+
/**
|
|
1780
|
+
* Whether this is the primary sales channel.
|
|
1781
|
+
* @type {boolean}
|
|
1782
|
+
* @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
|
|
1783
|
+
*/
|
|
1784
|
+
'is_primary': boolean;
|
|
1785
|
+
/**
|
|
1786
|
+
* Whether the sales channel is active.
|
|
1787
|
+
* @type {boolean}
|
|
1788
|
+
* @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
|
|
1789
|
+
*/
|
|
1790
|
+
'is_active': boolean;
|
|
1791
|
+
/**
|
|
1792
|
+
* External identifier for the sales channel.
|
|
1793
|
+
* @type {string}
|
|
1794
|
+
* @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
|
|
1795
|
+
*/
|
|
1796
|
+
'external_id': string | null;
|
|
1797
|
+
/**
|
|
1798
|
+
* Merchant-facing custom name.
|
|
1799
|
+
* @type {string}
|
|
1800
|
+
* @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
|
|
1801
|
+
*/
|
|
1802
|
+
'name': string | null;
|
|
1803
|
+
/**
|
|
1804
|
+
* Public address where the sales channel lives.
|
|
1805
|
+
* @type {string}
|
|
1806
|
+
* @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
|
|
1807
|
+
*/
|
|
1808
|
+
'domain': string | null;
|
|
1809
|
+
}
|
|
1810
|
+
export declare const EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum: {
|
|
1811
|
+
readonly Builder: "builder";
|
|
1812
|
+
readonly Horizons: "horizons";
|
|
1813
|
+
readonly Tiktok: "tiktok";
|
|
1814
|
+
readonly Custom: "custom";
|
|
1815
|
+
readonly QuickLink: "quick-link";
|
|
1816
|
+
readonly Wordpress: "wordpress";
|
|
1817
|
+
};
|
|
1818
|
+
export type EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum[keyof typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum];
|
|
1819
|
+
/**
|
|
1820
|
+
*
|
|
1821
|
+
* @export
|
|
1822
|
+
* @interface EcommerceV1SalesChannelStoreRequest
|
|
1823
|
+
*/
|
|
1824
|
+
export interface EcommerceV1SalesChannelStoreRequest {
|
|
1825
|
+
/**
|
|
1826
|
+
* Sales channel type. Only \"custom\" channels can be created via the API.
|
|
1827
|
+
* @type {string}
|
|
1828
|
+
* @memberof EcommerceV1SalesChannelStoreRequest
|
|
1829
|
+
*/
|
|
1830
|
+
'type': EcommerceV1SalesChannelStoreRequestTypeEnum;
|
|
1831
|
+
/**
|
|
1832
|
+
* Merchant-facing custom name shown in the sales channels list.
|
|
1833
|
+
* @type {string}
|
|
1834
|
+
* @memberof EcommerceV1SalesChannelStoreRequest
|
|
1835
|
+
*/
|
|
1836
|
+
'name': string;
|
|
1837
|
+
/**
|
|
1838
|
+
* Optional public address where the custom sales channel lives.
|
|
1839
|
+
* @type {string}
|
|
1840
|
+
* @memberof EcommerceV1SalesChannelStoreRequest
|
|
1841
|
+
*/
|
|
1842
|
+
'url': string | null;
|
|
1843
|
+
}
|
|
1844
|
+
export declare const EcommerceV1SalesChannelStoreRequestTypeEnum: {
|
|
1845
|
+
readonly Custom: "custom";
|
|
1846
|
+
};
|
|
1847
|
+
export type EcommerceV1SalesChannelStoreRequestTypeEnum = typeof EcommerceV1SalesChannelStoreRequestTypeEnum[keyof typeof EcommerceV1SalesChannelStoreRequestTypeEnum];
|
|
1664
1848
|
/**
|
|
1665
1849
|
*
|
|
1666
1850
|
* @export
|
|
@@ -7166,6 +7350,61 @@ export declare class DomainsWHOISApi extends BaseAPI {
|
|
|
7166
7350
|
*/
|
|
7167
7351
|
getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1WHOISProfileResource, any, {}>>;
|
|
7168
7352
|
}
|
|
7353
|
+
/**
|
|
7354
|
+
* EcommerceMiscellaneousApi - axios parameter creator
|
|
7355
|
+
* @export
|
|
7356
|
+
*/
|
|
7357
|
+
export declare const EcommerceMiscellaneousApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
7358
|
+
/**
|
|
7359
|
+
* Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
7360
|
+
* @summary Get custom storefront setup instructions
|
|
7361
|
+
* @param {*} [options] Override http request option.
|
|
7362
|
+
* @throws {RequiredError}
|
|
7363
|
+
*/
|
|
7364
|
+
getCustomStorefrontSetupInstructionsV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7365
|
+
};
|
|
7366
|
+
/**
|
|
7367
|
+
* EcommerceMiscellaneousApi - functional programming interface
|
|
7368
|
+
* @export
|
|
7369
|
+
*/
|
|
7370
|
+
export declare const EcommerceMiscellaneousApiFp: (configuration?: Configuration) => {
|
|
7371
|
+
/**
|
|
7372
|
+
* Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
7373
|
+
* @summary Get custom storefront setup instructions
|
|
7374
|
+
* @param {*} [options] Override http request option.
|
|
7375
|
+
* @throws {RequiredError}
|
|
7376
|
+
*/
|
|
7377
|
+
getCustomStorefrontSetupInstructionsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1MiscellaneousCustomStorefrontInstructionsResource>>;
|
|
7378
|
+
};
|
|
7379
|
+
/**
|
|
7380
|
+
* EcommerceMiscellaneousApi - factory interface
|
|
7381
|
+
* @export
|
|
7382
|
+
*/
|
|
7383
|
+
export declare const EcommerceMiscellaneousApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
7384
|
+
/**
|
|
7385
|
+
* Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
7386
|
+
* @summary Get custom storefront setup instructions
|
|
7387
|
+
* @param {*} [options] Override http request option.
|
|
7388
|
+
* @throws {RequiredError}
|
|
7389
|
+
*/
|
|
7390
|
+
getCustomStorefrontSetupInstructionsV1(options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1MiscellaneousCustomStorefrontInstructionsResource>;
|
|
7391
|
+
};
|
|
7392
|
+
/**
|
|
7393
|
+
* EcommerceMiscellaneousApi - object-oriented interface
|
|
7394
|
+
* @export
|
|
7395
|
+
* @class EcommerceMiscellaneousApi
|
|
7396
|
+
* @extends {BaseAPI}
|
|
7397
|
+
*/
|
|
7398
|
+
export declare class EcommerceMiscellaneousApi extends BaseAPI {
|
|
7399
|
+
/**
|
|
7400
|
+
* Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
7401
|
+
* @summary Get custom storefront setup instructions
|
|
7402
|
+
* @param {*} [options] Override http request option.
|
|
7403
|
+
* @throws {RequiredError}
|
|
7404
|
+
* @memberof EcommerceMiscellaneousApi
|
|
7405
|
+
*/
|
|
7406
|
+
getCustomStorefrontSetupInstructionsV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1MiscellaneousCustomStorefrontInstructionsResource, any, {}>>;
|
|
7407
|
+
}
|
|
7169
7408
|
/**
|
|
7170
7409
|
* EcommercePaymentsApi - axios parameter creator
|
|
7171
7410
|
* @export
|
|
@@ -7329,6 +7568,102 @@ export declare class EcommerceProductsApi extends BaseAPI {
|
|
|
7329
7568
|
*/
|
|
7330
7569
|
createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1ProductProductCreationResource, any, {}>>;
|
|
7331
7570
|
}
|
|
7571
|
+
/**
|
|
7572
|
+
* EcommerceSalesChannelsApi - axios parameter creator
|
|
7573
|
+
* @export
|
|
7574
|
+
*/
|
|
7575
|
+
export declare const EcommerceSalesChannelsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
7576
|
+
/**
|
|
7577
|
+
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
7578
|
+
* @summary Create a custom sales channel
|
|
7579
|
+
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
7580
|
+
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
7581
|
+
* @param {*} [options] Override http request option.
|
|
7582
|
+
* @throws {RequiredError}
|
|
7583
|
+
*/
|
|
7584
|
+
createACustomSalesChannelV1: (storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7585
|
+
/**
|
|
7586
|
+
* List a store\'s active sales channels with their full metadata.
|
|
7587
|
+
* @summary List sales channels
|
|
7588
|
+
* @param {string} storeId The ID of the store to list sales channels for.
|
|
7589
|
+
* @param {*} [options] Override http request option.
|
|
7590
|
+
* @throws {RequiredError}
|
|
7591
|
+
*/
|
|
7592
|
+
listSalesChannelsV1: (storeId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7593
|
+
};
|
|
7594
|
+
/**
|
|
7595
|
+
* EcommerceSalesChannelsApi - functional programming interface
|
|
7596
|
+
* @export
|
|
7597
|
+
*/
|
|
7598
|
+
export declare const EcommerceSalesChannelsApiFp: (configuration?: Configuration) => {
|
|
7599
|
+
/**
|
|
7600
|
+
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
7601
|
+
* @summary Create a custom sales channel
|
|
7602
|
+
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
7603
|
+
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
7604
|
+
* @param {*} [options] Override http request option.
|
|
7605
|
+
* @throws {RequiredError}
|
|
7606
|
+
*/
|
|
7607
|
+
createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource>>;
|
|
7608
|
+
/**
|
|
7609
|
+
* List a store\'s active sales channels with their full metadata.
|
|
7610
|
+
* @summary List sales channels
|
|
7611
|
+
* @param {string} storeId The ID of the store to list sales channels for.
|
|
7612
|
+
* @param {*} [options] Override http request option.
|
|
7613
|
+
* @throws {RequiredError}
|
|
7614
|
+
*/
|
|
7615
|
+
listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelListResource>>;
|
|
7616
|
+
};
|
|
7617
|
+
/**
|
|
7618
|
+
* EcommerceSalesChannelsApi - factory interface
|
|
7619
|
+
* @export
|
|
7620
|
+
*/
|
|
7621
|
+
export declare const EcommerceSalesChannelsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
7622
|
+
/**
|
|
7623
|
+
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
7624
|
+
* @summary Create a custom sales channel
|
|
7625
|
+
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
7626
|
+
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
7627
|
+
* @param {*} [options] Override http request option.
|
|
7628
|
+
* @throws {RequiredError}
|
|
7629
|
+
*/
|
|
7630
|
+
createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource>;
|
|
7631
|
+
/**
|
|
7632
|
+
* List a store\'s active sales channels with their full metadata.
|
|
7633
|
+
* @summary List sales channels
|
|
7634
|
+
* @param {string} storeId The ID of the store to list sales channels for.
|
|
7635
|
+
* @param {*} [options] Override http request option.
|
|
7636
|
+
* @throws {RequiredError}
|
|
7637
|
+
*/
|
|
7638
|
+
listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelListResource>;
|
|
7639
|
+
};
|
|
7640
|
+
/**
|
|
7641
|
+
* EcommerceSalesChannelsApi - object-oriented interface
|
|
7642
|
+
* @export
|
|
7643
|
+
* @class EcommerceSalesChannelsApi
|
|
7644
|
+
* @extends {BaseAPI}
|
|
7645
|
+
*/
|
|
7646
|
+
export declare class EcommerceSalesChannelsApi extends BaseAPI {
|
|
7647
|
+
/**
|
|
7648
|
+
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
7649
|
+
* @summary Create a custom sales channel
|
|
7650
|
+
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
7651
|
+
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
7652
|
+
* @param {*} [options] Override http request option.
|
|
7653
|
+
* @throws {RequiredError}
|
|
7654
|
+
* @memberof EcommerceSalesChannelsApi
|
|
7655
|
+
*/
|
|
7656
|
+
createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1SalesChannelSalesChannelCreationResource, any, {}>>;
|
|
7657
|
+
/**
|
|
7658
|
+
* List a store\'s active sales channels with their full metadata.
|
|
7659
|
+
* @summary List sales channels
|
|
7660
|
+
* @param {string} storeId The ID of the store to list sales channels for.
|
|
7661
|
+
* @param {*} [options] Override http request option.
|
|
7662
|
+
* @throws {RequiredError}
|
|
7663
|
+
* @memberof EcommerceSalesChannelsApi
|
|
7664
|
+
*/
|
|
7665
|
+
listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1SalesChannelSalesChannelListResource, any, {}>>;
|
|
7666
|
+
}
|
|
7332
7667
|
/**
|
|
7333
7668
|
* EcommerceShippingApi - axios parameter creator
|
|
7334
7669
|
* @export
|