@revenexx/sdk 0.0.6 → 0.0.9

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.
@@ -7,10 +7,51 @@ export declare class Orders {
7
7
  constructor(client: Client);
8
8
  /**
9
9
  *
10
+ * @param {string} params.status - Filter by order status (exact match): pending | placed | in_fulfillment | completed | cancelled.
11
+ * @param {string} params.paymentStatus - Filter by payment status (exact match): open | pending | authorized | paid | partially_paid | refunded | failed.
12
+ * @param {string} params.fulfillmentStatus - Filter by fulfillment status (exact match): unfulfilled | partial | fulfilled.
13
+ * @param {string} params.contactId - Filter to one ordering contact.
14
+ * @param {string} params.organizationId - Filter to one B2B organization.
15
+ * @param {string} params.channelId - Filter to one sales channel.
16
+ * @param {string} params.marketId - Filter to one market.
17
+ * @param {string} params.number - Filter by exact order number.
18
+ * @param {number} params.limit - Page size (default 50, max 200).
19
+ * @param {number} params.offset - Row offset for pagination (default 0).
20
+ * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
10
21
  * @throws {RevenexxException}
11
22
  * @returns {Promise<{}>}
12
23
  */
13
- ordersList(): Promise<{}>;
24
+ ordersList(params?: {
25
+ status?: string;
26
+ paymentStatus?: string;
27
+ fulfillmentStatus?: string;
28
+ contactId?: string;
29
+ organizationId?: string;
30
+ channelId?: string;
31
+ marketId?: string;
32
+ number?: string;
33
+ limit?: number;
34
+ offset?: number;
35
+ order?: string;
36
+ }): Promise<{}>;
37
+ /**
38
+ *
39
+ * @param {string} status - Filter by order status (exact match): pending | placed | in_fulfillment | completed | cancelled.
40
+ * @param {string} paymentStatus - Filter by payment status (exact match): open | pending | authorized | paid | partially_paid | refunded | failed.
41
+ * @param {string} fulfillmentStatus - Filter by fulfillment status (exact match): unfulfilled | partial | fulfilled.
42
+ * @param {string} contactId - Filter to one ordering contact.
43
+ * @param {string} organizationId - Filter to one B2B organization.
44
+ * @param {string} channelId - Filter to one sales channel.
45
+ * @param {string} marketId - Filter to one market.
46
+ * @param {string} number - Filter by exact order number.
47
+ * @param {number} limit - Page size (default 50, max 200).
48
+ * @param {number} offset - Row offset for pagination (default 0).
49
+ * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'.
50
+ * @throws {RevenexxException}
51
+ * @returns {Promise<{}>}
52
+ * @deprecated Use the object parameter style method for a better developer experience.
53
+ */
54
+ ordersList(status?: string, paymentStatus?: string, fulfillmentStatus?: string, contactId?: string, organizationId?: string, channelId?: string, marketId?: string, number?: string, limit?: number, offset?: number, order?: string): Promise<{}>;
14
55
  /**
15
56
  *
16
57
  * @throws {RevenexxException}