@teemill/platform 0.12.3 → 0.14.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.12.3
5
+ * The version of the OpenAPI document: 0.14.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -143,6 +143,19 @@ export interface ApplicationTechnology {
143
143
  */
144
144
  'ref'?: string;
145
145
  }
146
+ /**
147
+ *
148
+ * @export
149
+ * @interface AuthorizeStripe200Response
150
+ */
151
+ export interface AuthorizeStripe200Response {
152
+ /**
153
+ * The URL to redirect to
154
+ * @type {string}
155
+ * @memberof AuthorizeStripe200Response
156
+ */
157
+ 'redirect_url': string;
158
+ }
146
159
  /**
147
160
  * Order recipient contact information, used only for courier tracking/updates.
148
161
  * @export
@@ -956,6 +969,37 @@ export interface OutputPadding {
956
969
  */
957
970
  'left': number;
958
971
  }
972
+ /**
973
+ *
974
+ * @export
975
+ * @interface PaymentAccount
976
+ */
977
+ export interface PaymentAccount {
978
+ /**
979
+ * The name of the payment account
980
+ * @type {string}
981
+ * @memberof PaymentAccount
982
+ */
983
+ 'name': string;
984
+ /**
985
+ * The payment method
986
+ * @type {string}
987
+ * @memberof PaymentAccount
988
+ */
989
+ 'method': PaymentAccountMethodEnum;
990
+ /**
991
+ * The configuration for the payment account
992
+ * @type {{ [key: string]: string; }}
993
+ * @memberof PaymentAccount
994
+ */
995
+ 'config': {
996
+ [key: string]: string;
997
+ };
998
+ }
999
+ export declare const PaymentAccountMethodEnum: {
1000
+ readonly Stripe: "stripe";
1001
+ };
1002
+ export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
959
1003
  /**
960
1004
  *
961
1005
  * @export
@@ -1718,13 +1762,14 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
1718
1762
  * @param {string} project Project unique identifier
1719
1763
  * @param {string} platformId The platform identifier
1720
1764
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
1765
+ * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
1721
1766
  * @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1722
1767
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
1723
1768
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
1724
1769
  * @param {*} [options] Override http request option.
1725
1770
  * @throws {RequiredError}
1726
1771
  */
1727
- exportCustomers: (project: string, platformId: string, totalOrderCount?: number, sortBy?: Array<ExportCustomersSortByEnum>, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1772
+ exportCustomers: (project: string, platformId: string, totalOrderCount?: number, lifetimeValue?: number, sortBy?: Array<ExportCustomersSortByEnum>, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1728
1773
  /**
1729
1774
  * Get a customer for a platform by a given customer ID.
1730
1775
  * @summary Get customer
@@ -1745,12 +1790,13 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
1745
1790
  * @param {string} [search] Search term to filter based on order reference, customer name and email
1746
1791
  * @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1747
1792
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
1793
+ * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
1748
1794
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
1749
1795
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
1750
1796
  * @param {*} [options] Override http request option.
1751
1797
  * @throws {RequiredError}
1752
1798
  */
1753
- listCustomers: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, totalOrderCount?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1799
+ listCustomers: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, totalOrderCount?: number, lifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1754
1800
  };
1755
1801
  /**
1756
1802
  * CustomersApi - functional programming interface
@@ -1763,13 +1809,14 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
1763
1809
  * @param {string} project Project unique identifier
1764
1810
  * @param {string} platformId The platform identifier
1765
1811
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
1812
+ * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
1766
1813
  * @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1767
1814
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
1768
1815
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
1769
1816
  * @param {*} [options] Override http request option.
1770
1817
  * @throws {RequiredError}
1771
1818
  */
1772
- exportCustomers(project: string, platformId: string, totalOrderCount?: number, sortBy?: Array<ExportCustomersSortByEnum>, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
1819
+ exportCustomers(project: string, platformId: string, totalOrderCount?: number, lifetimeValue?: number, sortBy?: Array<ExportCustomersSortByEnum>, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
1773
1820
  /**
1774
1821
  * Get a customer for a platform by a given customer ID.
1775
1822
  * @summary Get customer
@@ -1790,12 +1837,13 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
1790
1837
  * @param {string} [search] Search term to filter based on order reference, customer name and email
1791
1838
  * @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1792
1839
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
1840
+ * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
1793
1841
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
1794
1842
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
1795
1843
  * @param {*} [options] Override http request option.
1796
1844
  * @throws {RequiredError}
1797
1845
  */
1798
- listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, totalOrderCount?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
1846
+ listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, totalOrderCount?: number, lifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
1799
1847
  };
1800
1848
  /**
1801
1849
  * CustomersApi - factory interface
@@ -1851,6 +1899,12 @@ export interface CustomersApiExportCustomersRequest {
1851
1899
  * @memberof CustomersApiExportCustomers
1852
1900
  */
1853
1901
  readonly totalOrderCount?: number;
1902
+ /**
1903
+ * Filter customers by lifetime value less than or equal to the value provided
1904
+ * @type {number}
1905
+ * @memberof CustomersApiExportCustomers
1906
+ */
1907
+ readonly lifetimeValue?: number;
1854
1908
  /**
1855
1909
  * An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1856
1910
  * @type {Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+lastPurchased' | '-lastPurchased'>}
@@ -1943,6 +1997,12 @@ export interface CustomersApiListCustomersRequest {
1943
1997
  * @memberof CustomersApiListCustomers
1944
1998
  */
1945
1999
  readonly totalOrderCount?: number;
2000
+ /**
2001
+ * Filter customers by lifetime value less than or equal to the value provided
2002
+ * @type {number}
2003
+ * @memberof CustomersApiListCustomers
2004
+ */
2005
+ readonly lifetimeValue?: number;
1946
2006
  /**
1947
2007
  * Start of date range to filter customers by last purchase date
1948
2008
  * @type {string}
@@ -2469,6 +2529,170 @@ export declare class OrdersApi extends BaseAPI {
2469
2529
  */
2470
2530
  updateFulfillment(requestParameters: OrdersApiUpdateFulfillmentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Fulfillment, any>>;
2471
2531
  }
2532
+ /**
2533
+ * PaymentApi - axios parameter creator
2534
+ * @export
2535
+ */
2536
+ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration) => {
2537
+ /**
2538
+ * Authorize a Stripe payment account
2539
+ * @summary Authorize Stripe
2540
+ * @param {string} project Project unique identifier
2541
+ * @param {*} [options] Override http request option.
2542
+ * @throws {RequiredError}
2543
+ */
2544
+ authorizeStripe: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2545
+ /**
2546
+ * Deauthorize a Stripe payment account
2547
+ * @summary Deauthorize Stripe
2548
+ * @param {string} project Project unique identifier
2549
+ * @param {*} [options] Override http request option.
2550
+ * @throws {RequiredError}
2551
+ */
2552
+ deauthorizeStripe: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2553
+ /**
2554
+ * Get the Stripe payment account for the project
2555
+ * @summary Get Stripe Payment Account
2556
+ * @param {string} project Project unique identifier
2557
+ * @param {*} [options] Override http request option.
2558
+ * @throws {RequiredError}
2559
+ */
2560
+ getStripePaymentAccount: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2561
+ };
2562
+ /**
2563
+ * PaymentApi - functional programming interface
2564
+ * @export
2565
+ */
2566
+ export declare const PaymentApiFp: (configuration?: Configuration) => {
2567
+ /**
2568
+ * Authorize a Stripe payment account
2569
+ * @summary Authorize Stripe
2570
+ * @param {string} project Project unique identifier
2571
+ * @param {*} [options] Override http request option.
2572
+ * @throws {RequiredError}
2573
+ */
2574
+ authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizeStripe200Response>>;
2575
+ /**
2576
+ * Deauthorize a Stripe payment account
2577
+ * @summary Deauthorize Stripe
2578
+ * @param {string} project Project unique identifier
2579
+ * @param {*} [options] Override http request option.
2580
+ * @throws {RequiredError}
2581
+ */
2582
+ deauthorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2583
+ /**
2584
+ * Get the Stripe payment account for the project
2585
+ * @summary Get Stripe Payment Account
2586
+ * @param {string} project Project unique identifier
2587
+ * @param {*} [options] Override http request option.
2588
+ * @throws {RequiredError}
2589
+ */
2590
+ getStripePaymentAccount(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccount>>;
2591
+ };
2592
+ /**
2593
+ * PaymentApi - factory interface
2594
+ * @export
2595
+ */
2596
+ export declare const PaymentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2597
+ /**
2598
+ * Authorize a Stripe payment account
2599
+ * @summary Authorize Stripe
2600
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
2601
+ * @param {*} [options] Override http request option.
2602
+ * @throws {RequiredError}
2603
+ */
2604
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizeStripe200Response>;
2605
+ /**
2606
+ * Deauthorize a Stripe payment account
2607
+ * @summary Deauthorize Stripe
2608
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
2609
+ * @param {*} [options] Override http request option.
2610
+ * @throws {RequiredError}
2611
+ */
2612
+ deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2613
+ /**
2614
+ * Get the Stripe payment account for the project
2615
+ * @summary Get Stripe Payment Account
2616
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
2617
+ * @param {*} [options] Override http request option.
2618
+ * @throws {RequiredError}
2619
+ */
2620
+ getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAccount>;
2621
+ };
2622
+ /**
2623
+ * Request parameters for authorizeStripe operation in PaymentApi.
2624
+ * @export
2625
+ * @interface PaymentApiAuthorizeStripeRequest
2626
+ */
2627
+ export interface PaymentApiAuthorizeStripeRequest {
2628
+ /**
2629
+ * Project unique identifier
2630
+ * @type {string}
2631
+ * @memberof PaymentApiAuthorizeStripe
2632
+ */
2633
+ readonly project: string;
2634
+ }
2635
+ /**
2636
+ * Request parameters for deauthorizeStripe operation in PaymentApi.
2637
+ * @export
2638
+ * @interface PaymentApiDeauthorizeStripeRequest
2639
+ */
2640
+ export interface PaymentApiDeauthorizeStripeRequest {
2641
+ /**
2642
+ * Project unique identifier
2643
+ * @type {string}
2644
+ * @memberof PaymentApiDeauthorizeStripe
2645
+ */
2646
+ readonly project: string;
2647
+ }
2648
+ /**
2649
+ * Request parameters for getStripePaymentAccount operation in PaymentApi.
2650
+ * @export
2651
+ * @interface PaymentApiGetStripePaymentAccountRequest
2652
+ */
2653
+ export interface PaymentApiGetStripePaymentAccountRequest {
2654
+ /**
2655
+ * Project unique identifier
2656
+ * @type {string}
2657
+ * @memberof PaymentApiGetStripePaymentAccount
2658
+ */
2659
+ readonly project: string;
2660
+ }
2661
+ /**
2662
+ * PaymentApi - object-oriented interface
2663
+ * @export
2664
+ * @class PaymentApi
2665
+ * @extends {BaseAPI}
2666
+ */
2667
+ export declare class PaymentApi extends BaseAPI {
2668
+ /**
2669
+ * Authorize a Stripe payment account
2670
+ * @summary Authorize Stripe
2671
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
2672
+ * @param {*} [options] Override http request option.
2673
+ * @throws {RequiredError}
2674
+ * @memberof PaymentApi
2675
+ */
2676
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizeStripe200Response, any>>;
2677
+ /**
2678
+ * Deauthorize a Stripe payment account
2679
+ * @summary Deauthorize Stripe
2680
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
2681
+ * @param {*} [options] Override http request option.
2682
+ * @throws {RequiredError}
2683
+ * @memberof PaymentApi
2684
+ */
2685
+ deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2686
+ /**
2687
+ * Get the Stripe payment account for the project
2688
+ * @summary Get Stripe Payment Account
2689
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
2690
+ * @param {*} [options] Override http request option.
2691
+ * @throws {RequiredError}
2692
+ * @memberof PaymentApi
2693
+ */
2694
+ getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentAccount, any>>;
2695
+ }
2472
2696
  /**
2473
2697
  * PlatformApi - axios parameter creator
2474
2698
  * @export