@cloudcommerce/types 0.14.0 → 0.15.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/index.ts CHANGED
@@ -24,6 +24,8 @@ import type {
24
24
  Resource,
25
25
  ResourceId,
26
26
  ResourceListResult,
27
+ SearchItem,
28
+ SearchResult,
27
29
  EventsResult,
28
30
  } from '@cloudcommerce/api/types';
29
31
  import type { ApplyDiscountParams } from './modules/apply_discount:params';
@@ -126,7 +128,7 @@ type SettingsContent = {
126
128
  account_url?: string,
127
129
  orders_url?: string,
128
130
  favorites_url?: string,
129
- metafields?: Record<string, string>,
131
+ metafields?: Record<string, any>,
130
132
  };
131
133
 
132
134
  export type {
@@ -155,6 +157,8 @@ export type {
155
157
  Resource,
156
158
  ResourceId,
157
159
  ResourceListResult,
160
+ SearchItem,
161
+ SearchResult,
158
162
  EventsResult,
159
163
  ApiEventName,
160
164
  AppEventsPayload,
@@ -364,6 +364,10 @@ export interface CheckoutBody {
364
364
  * Registered company name or responsible fullname
365
365
  */
366
366
  corporate_name?: string;
367
+ /**
368
+ * ID of customer who invited the new customer, if he was invited by another account
369
+ */
370
+ referral?: string;
367
371
  };
368
372
  }
369
373
  /**
@@ -150,5 +150,9 @@ export interface ApplyDiscountParams {
150
150
  * The name of this Customer, suitable for display
151
151
  */
152
152
  display_name?: string;
153
+ /**
154
+ * Responsible person or organization document number (only numbers)
155
+ */
156
+ doc_number?: string;
153
157
  };
154
158
  }
@@ -148,6 +148,21 @@ export interface CreateTransactionResponse {
148
148
  */
149
149
  ratio?: number;
150
150
  };
151
+ /**
152
+ * Account deposit data, if payment was done with account deposit
153
+ */
154
+ account_deposit?: {
155
+ /**
156
+ * Date and time of expiration, in ISO 8601 standard representation
157
+ */
158
+ valid_thru?: string;
159
+ /**
160
+ * Information notes to payment
161
+ *
162
+ * @maxItems 5
163
+ */
164
+ text_lines?: string[];
165
+ };
151
166
  /**
152
167
  * Currency ID specific for this transaction, if different of order currency ID
153
168
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/types",
3
3
  "type": "module",
4
- "version": "0.14.0",
4
+ "version": "0.15.0",
5
5
  "description": "E-Com Plus Cloud Commerce reusable type definitions",
6
6
  "main": "index.ts",
7
7
  "repository": {
@@ -16,6 +16,6 @@
16
16
  },
17
17
  "homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/types#readme",
18
18
  "dependencies": {
19
- "@cloudcommerce/api": "0.14.0"
19
+ "@cloudcommerce/api": "0.15.0"
20
20
  }
21
21
  }