@teemill/platform 0.22.3 → 0.24.0

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/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.22.3
5
+ * The version of the OpenAPI document: 0.24.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -150,6 +150,19 @@ export interface Coupon {
150
150
  */
151
151
  'code': string;
152
152
  }
153
+ /**
154
+ *
155
+ * @export
156
+ * @interface CreateChatChannel200Response
157
+ */
158
+ export interface CreateChatChannel200Response {
159
+ /**
160
+ * Reference to the chat channel resource
161
+ * @type {string}
162
+ * @memberof CreateChatChannel200Response
163
+ */
164
+ 'chatChannelRef': string;
165
+ }
153
166
  /**
154
167
  *
155
168
  * @export
@@ -359,6 +372,12 @@ export interface Enquiry {
359
372
  * @memberof Enquiry
360
373
  */
361
374
  'extraInputs': Array<EnquiryExtraInputsInner> | null;
375
+ /**
376
+ * Reference to the chat channel resource
377
+ * @type {string}
378
+ * @memberof Enquiry
379
+ */
380
+ 'chatChannelRef'?: string | null;
362
381
  }
363
382
  export declare const EnquiryStatusEnum: {
364
383
  readonly New: "New";
@@ -855,6 +874,12 @@ export interface Order {
855
874
  * @memberof Order
856
875
  */
857
876
  'paymentAttempts'?: Array<PaymentAttempt>;
877
+ /**
878
+ * The integration type of the order, e.g. \"website\" or \"shopify\"
879
+ * @type {string}
880
+ * @memberof Order
881
+ */
882
+ 'integrationType'?: string;
858
883
  }
859
884
  /**
860
885
  *
@@ -2014,12 +2039,22 @@ export type ListCustomersSortByEnum = typeof ListCustomersSortByEnum[keyof typeo
2014
2039
  * @export
2015
2040
  */
2016
2041
  export declare const EnquiriesApiAxiosParamCreator: (configuration?: Configuration) => {
2042
+ /**
2043
+ * Create a chat channel for a customer enquiry if it doesn\'t exist
2044
+ * @summary Create chat channel
2045
+ * @param {string} project Project unique identifier
2046
+ * @param {string} platformId The platform identifier
2047
+ * @param {string} enquiryId The enquiry identifier
2048
+ * @param {*} [options] Override http request option.
2049
+ * @throws {RequiredError}
2050
+ */
2051
+ createChatChannel: (project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2017
2052
  /**
2018
2053
  * Get a customer enquiry
2019
2054
  * @summary Get customer enquiry
2020
2055
  * @param {string} project Project unique identifier
2021
2056
  * @param {string} platformId The platform identifier
2022
- * @param {string} enquiryId
2057
+ * @param {string} enquiryId The enquiry identifier
2023
2058
  * @param {*} [options] Override http request option.
2024
2059
  * @throws {RequiredError}
2025
2060
  */
@@ -2043,7 +2078,7 @@ export declare const EnquiriesApiAxiosParamCreator: (configuration?: Configurati
2043
2078
  * @summary List customer enquiry Logs
2044
2079
  * @param {string} project Project unique identifier
2045
2080
  * @param {string} platformId The platform identifier
2046
- * @param {string} enquiryId
2081
+ * @param {string} enquiryId The enquiry identifier
2047
2082
  * @param {*} [options] Override http request option.
2048
2083
  * @throws {RequiredError}
2049
2084
  */
@@ -2054,12 +2089,22 @@ export declare const EnquiriesApiAxiosParamCreator: (configuration?: Configurati
2054
2089
  * @export
2055
2090
  */
2056
2091
  export declare const EnquiriesApiFp: (configuration?: Configuration) => {
2092
+ /**
2093
+ * Create a chat channel for a customer enquiry if it doesn\'t exist
2094
+ * @summary Create chat channel
2095
+ * @param {string} project Project unique identifier
2096
+ * @param {string} platformId The platform identifier
2097
+ * @param {string} enquiryId The enquiry identifier
2098
+ * @param {*} [options] Override http request option.
2099
+ * @throws {RequiredError}
2100
+ */
2101
+ createChatChannel(project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateChatChannel200Response>>;
2057
2102
  /**
2058
2103
  * Get a customer enquiry
2059
2104
  * @summary Get customer enquiry
2060
2105
  * @param {string} project Project unique identifier
2061
2106
  * @param {string} platformId The platform identifier
2062
- * @param {string} enquiryId
2107
+ * @param {string} enquiryId The enquiry identifier
2063
2108
  * @param {*} [options] Override http request option.
2064
2109
  * @throws {RequiredError}
2065
2110
  */
@@ -2083,7 +2128,7 @@ export declare const EnquiriesApiFp: (configuration?: Configuration) => {
2083
2128
  * @summary List customer enquiry Logs
2084
2129
  * @param {string} project Project unique identifier
2085
2130
  * @param {string} platformId The platform identifier
2086
- * @param {string} enquiryId
2131
+ * @param {string} enquiryId The enquiry identifier
2087
2132
  * @param {*} [options] Override http request option.
2088
2133
  * @throws {RequiredError}
2089
2134
  */
@@ -2094,6 +2139,14 @@ export declare const EnquiriesApiFp: (configuration?: Configuration) => {
2094
2139
  * @export
2095
2140
  */
2096
2141
  export declare const EnquiriesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2142
+ /**
2143
+ * Create a chat channel for a customer enquiry if it doesn\'t exist
2144
+ * @summary Create chat channel
2145
+ * @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
2146
+ * @param {*} [options] Override http request option.
2147
+ * @throws {RequiredError}
2148
+ */
2149
+ createChatChannel(requestParameters: EnquiriesApiCreateChatChannelRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateChatChannel200Response>;
2097
2150
  /**
2098
2151
  * Get a customer enquiry
2099
2152
  * @summary Get customer enquiry
@@ -2119,6 +2172,31 @@ export declare const EnquiriesApiFactory: (configuration?: Configuration, basePa
2119
2172
  */
2120
2173
  listCustomerEnquiryLogs(requestParameters: EnquiriesApiListCustomerEnquiryLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListCustomerEnquiryLogs200Response>;
2121
2174
  };
2175
+ /**
2176
+ * Request parameters for createChatChannel operation in EnquiriesApi.
2177
+ * @export
2178
+ * @interface EnquiriesApiCreateChatChannelRequest
2179
+ */
2180
+ export interface EnquiriesApiCreateChatChannelRequest {
2181
+ /**
2182
+ * Project unique identifier
2183
+ * @type {string}
2184
+ * @memberof EnquiriesApiCreateChatChannel
2185
+ */
2186
+ readonly project: string;
2187
+ /**
2188
+ * The platform identifier
2189
+ * @type {string}
2190
+ * @memberof EnquiriesApiCreateChatChannel
2191
+ */
2192
+ readonly platformId: string;
2193
+ /**
2194
+ * The enquiry identifier
2195
+ * @type {string}
2196
+ * @memberof EnquiriesApiCreateChatChannel
2197
+ */
2198
+ readonly enquiryId: string;
2199
+ }
2122
2200
  /**
2123
2201
  * Request parameters for getCustomerEnquiry operation in EnquiriesApi.
2124
2202
  * @export
@@ -2138,7 +2216,7 @@ export interface EnquiriesApiGetCustomerEnquiryRequest {
2138
2216
  */
2139
2217
  readonly platformId: string;
2140
2218
  /**
2141
- *
2219
+ * The enquiry identifier
2142
2220
  * @type {string}
2143
2221
  * @memberof EnquiriesApiGetCustomerEnquiry
2144
2222
  */
@@ -2212,7 +2290,7 @@ export interface EnquiriesApiListCustomerEnquiryLogsRequest {
2212
2290
  */
2213
2291
  readonly platformId: string;
2214
2292
  /**
2215
- *
2293
+ * The enquiry identifier
2216
2294
  * @type {string}
2217
2295
  * @memberof EnquiriesApiListCustomerEnquiryLogs
2218
2296
  */
@@ -2225,6 +2303,15 @@ export interface EnquiriesApiListCustomerEnquiryLogsRequest {
2225
2303
  * @extends {BaseAPI}
2226
2304
  */
2227
2305
  export declare class EnquiriesApi extends BaseAPI {
2306
+ /**
2307
+ * Create a chat channel for a customer enquiry if it doesn\'t exist
2308
+ * @summary Create chat channel
2309
+ * @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
2310
+ * @param {*} [options] Override http request option.
2311
+ * @throws {RequiredError}
2312
+ * @memberof EnquiriesApi
2313
+ */
2314
+ createChatChannel(requestParameters: EnquiriesApiCreateChatChannelRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateChatChannel200Response, any>>;
2228
2315
  /**
2229
2316
  * Get a customer enquiry
2230
2317
  * @summary Get customer enquiry
@@ -2290,6 +2377,16 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
2290
2377
  * @throws {RequiredError}
2291
2378
  */
2292
2379
  getOrder: (project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2380
+ /**
2381
+ * Get an order receipt for a platform by a given order ID.
2382
+ * @summary Get order receipt
2383
+ * @param {string} project Project unique identifier
2384
+ * @param {string} platformId The platform identifier
2385
+ * @param {string} orderId The order identifier
2386
+ * @param {*} [options] Override http request option.
2387
+ * @throws {RequiredError}
2388
+ */
2389
+ getOrderReceipt: (project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2293
2390
  /**
2294
2391
  * List available fulfillers for a given fulfillment
2295
2392
  * @summary List available fulfillers
@@ -2325,6 +2422,16 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
2325
2422
  * @throws {RequiredError}
2326
2423
  */
2327
2424
  retryPlatformPayment: (project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2425
+ /**
2426
+ * Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
2427
+ * @summary Send order receipt
2428
+ * @param {string} project Project unique identifier
2429
+ * @param {string} platformId The platform identifier
2430
+ * @param {string} orderId The order identifier
2431
+ * @param {*} [options] Override http request option.
2432
+ * @throws {RequiredError}
2433
+ */
2434
+ sendOrderReceipt: (project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2328
2435
  /**
2329
2436
  * Update a fulfillment that belongs to an order placed through the platform
2330
2437
  * @summary Update fulfillment
@@ -2374,6 +2481,16 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
2374
2481
  * @throws {RequiredError}
2375
2482
  */
2376
2483
  getOrder(project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
2484
+ /**
2485
+ * Get an order receipt for a platform by a given order ID.
2486
+ * @summary Get order receipt
2487
+ * @param {string} project Project unique identifier
2488
+ * @param {string} platformId The platform identifier
2489
+ * @param {string} orderId The order identifier
2490
+ * @param {*} [options] Override http request option.
2491
+ * @throws {RequiredError}
2492
+ */
2493
+ getOrderReceipt(project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
2377
2494
  /**
2378
2495
  * List available fulfillers for a given fulfillment
2379
2496
  * @summary List available fulfillers
@@ -2409,6 +2526,16 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
2409
2526
  * @throws {RequiredError}
2410
2527
  */
2411
2528
  retryPlatformPayment(project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
2529
+ /**
2530
+ * Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
2531
+ * @summary Send order receipt
2532
+ * @param {string} project Project unique identifier
2533
+ * @param {string} platformId The platform identifier
2534
+ * @param {string} orderId The order identifier
2535
+ * @param {*} [options] Override http request option.
2536
+ * @throws {RequiredError}
2537
+ */
2538
+ sendOrderReceipt(project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2412
2539
  /**
2413
2540
  * Update a fulfillment that belongs to an order placed through the platform
2414
2541
  * @summary Update fulfillment
@@ -2450,6 +2577,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
2450
2577
  * @throws {RequiredError}
2451
2578
  */
2452
2579
  getOrder(requestParameters: OrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
2580
+ /**
2581
+ * Get an order receipt for a platform by a given order ID.
2582
+ * @summary Get order receipt
2583
+ * @param {OrdersApiGetOrderReceiptRequest} requestParameters Request parameters.
2584
+ * @param {*} [options] Override http request option.
2585
+ * @throws {RequiredError}
2586
+ */
2587
+ getOrderReceipt(requestParameters: OrdersApiGetOrderReceiptRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
2453
2588
  /**
2454
2589
  * List available fulfillers for a given fulfillment
2455
2590
  * @summary List available fulfillers
@@ -2474,6 +2609,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
2474
2609
  * @throws {RequiredError}
2475
2610
  */
2476
2611
  retryPlatformPayment(requestParameters: OrdersApiRetryPlatformPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
2612
+ /**
2613
+ * Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
2614
+ * @summary Send order receipt
2615
+ * @param {OrdersApiSendOrderReceiptRequest} requestParameters Request parameters.
2616
+ * @param {*} [options] Override http request option.
2617
+ * @throws {RequiredError}
2618
+ */
2619
+ sendOrderReceipt(requestParameters: OrdersApiSendOrderReceiptRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2477
2620
  /**
2478
2621
  * Update a fulfillment that belongs to an order placed through the platform
2479
2622
  * @summary Update fulfillment
@@ -2570,6 +2713,31 @@ export interface OrdersApiGetOrderRequest {
2570
2713
  */
2571
2714
  readonly orderId: string;
2572
2715
  }
2716
+ /**
2717
+ * Request parameters for getOrderReceipt operation in OrdersApi.
2718
+ * @export
2719
+ * @interface OrdersApiGetOrderReceiptRequest
2720
+ */
2721
+ export interface OrdersApiGetOrderReceiptRequest {
2722
+ /**
2723
+ * Project unique identifier
2724
+ * @type {string}
2725
+ * @memberof OrdersApiGetOrderReceipt
2726
+ */
2727
+ readonly project: string;
2728
+ /**
2729
+ * The platform identifier
2730
+ * @type {string}
2731
+ * @memberof OrdersApiGetOrderReceipt
2732
+ */
2733
+ readonly platformId: string;
2734
+ /**
2735
+ * The order identifier
2736
+ * @type {string}
2737
+ * @memberof OrdersApiGetOrderReceipt
2738
+ */
2739
+ readonly orderId: string;
2740
+ }
2573
2741
  /**
2574
2742
  * Request parameters for listAvailableFulfillers operation in OrdersApi.
2575
2743
  * @export
@@ -2675,6 +2843,31 @@ export interface OrdersApiRetryPlatformPaymentRequest {
2675
2843
  */
2676
2844
  readonly orderId: string;
2677
2845
  }
2846
+ /**
2847
+ * Request parameters for sendOrderReceipt operation in OrdersApi.
2848
+ * @export
2849
+ * @interface OrdersApiSendOrderReceiptRequest
2850
+ */
2851
+ export interface OrdersApiSendOrderReceiptRequest {
2852
+ /**
2853
+ * Project unique identifier
2854
+ * @type {string}
2855
+ * @memberof OrdersApiSendOrderReceipt
2856
+ */
2857
+ readonly project: string;
2858
+ /**
2859
+ * The platform identifier
2860
+ * @type {string}
2861
+ * @memberof OrdersApiSendOrderReceipt
2862
+ */
2863
+ readonly platformId: string;
2864
+ /**
2865
+ * The order identifier
2866
+ * @type {string}
2867
+ * @memberof OrdersApiSendOrderReceipt
2868
+ */
2869
+ readonly orderId: string;
2870
+ }
2678
2871
  /**
2679
2872
  * Request parameters for updateFulfillment operation in OrdersApi.
2680
2873
  * @export
@@ -2740,6 +2933,15 @@ export declare class OrdersApi extends BaseAPI {
2740
2933
  * @memberof OrdersApi
2741
2934
  */
2742
2935
  getOrder(requestParameters: OrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
2936
+ /**
2937
+ * Get an order receipt for a platform by a given order ID.
2938
+ * @summary Get order receipt
2939
+ * @param {OrdersApiGetOrderReceiptRequest} requestParameters Request parameters.
2940
+ * @param {*} [options] Override http request option.
2941
+ * @throws {RequiredError}
2942
+ * @memberof OrdersApi
2943
+ */
2944
+ getOrderReceipt(requestParameters: OrdersApiGetOrderReceiptRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
2743
2945
  /**
2744
2946
  * List available fulfillers for a given fulfillment
2745
2947
  * @summary List available fulfillers
@@ -2767,6 +2969,15 @@ export declare class OrdersApi extends BaseAPI {
2767
2969
  * @memberof OrdersApi
2768
2970
  */
2769
2971
  retryPlatformPayment(requestParameters: OrdersApiRetryPlatformPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
2972
+ /**
2973
+ * Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
2974
+ * @summary Send order receipt
2975
+ * @param {OrdersApiSendOrderReceiptRequest} requestParameters Request parameters.
2976
+ * @param {*} [options] Override http request option.
2977
+ * @throws {RequiredError}
2978
+ * @memberof OrdersApi
2979
+ */
2980
+ sendOrderReceipt(requestParameters: OrdersApiSendOrderReceiptRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2770
2981
  /**
2771
2982
  * Update a fulfillment that belongs to an order placed through the platform
2772
2983
  * @summary Update fulfillment