ultracart_rest_api_v2_typescript 4.1.44 → 4.1.46

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.
@@ -125,6 +125,7 @@ src/models/CartShipping.ts
125
125
  src/models/CartSummary.ts
126
126
  src/models/CartTaxes.ts
127
127
  src/models/CartUpsellAfter.ts
128
+ src/models/CartUtm.ts
128
129
  src/models/CartValidationRequest.ts
129
130
  src/models/CartValidationResponse.ts
130
131
  src/models/ChanelPartnerReasonCodesResponse.ts
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # UltraCart Typescript SDK
2
- ## ultracart_rest_api_v2_typescript@4.1.44
2
+ ## ultracart_rest_api_v2_typescript@4.1.46
3
3
 
4
4
  Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
5
5
 
6
6
  Installation
7
7
 
8
8
  ```
9
- npm install ultracart_rest_api_v2_typescript@4.1.44 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.46 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
85
85
 
86
86
  | Version | Date | Comments |
87
87
  | --: | :-: | --- |
88
+ | 4.1.46 | 01/26/2026 | cart - expose utm array for use in abandon webhook only |
89
+ | 4.1.45 | 01/26/2026 | added multimedia file size to ItemContentMultimedia object |
88
90
  | 4.1.44 | 01/26/2026 | conversations - ConversationDepartmentMember expose a flag for if the agent is AI |
89
91
  | 4.1.43 | 01/14/2026 | coupons - generate one time coupons prefix support (optional) |
90
92
  | 4.1.42 | 01/13/2026 | conversations - pbx methods for phone number purchasing |
@@ -27,6 +27,7 @@ import { CartShipping } from './CartShipping';
27
27
  import { CartSummary } from './CartSummary';
28
28
  import { CartTaxes } from './CartTaxes';
29
29
  import { CartUpsellAfter } from './CartUpsellAfter';
30
+ import { CartUtm } from './CartUtm';
30
31
  /**
31
32
  *
32
33
  * @export
@@ -189,6 +190,12 @@ export interface Cart {
189
190
  * @memberof Cart
190
191
  */
191
192
  upsell_after?: CartUpsellAfter;
193
+ /**
194
+ * UTM clicks. The zero index is the most recent (last) UTM click. Only available in BigQuery and on an abandon webhook.
195
+ * @type {Array<CartUtm>}
196
+ * @memberof Cart
197
+ */
198
+ utms?: Array<CartUtm>;
192
199
  }
193
200
  /**
194
201
  * Check if a given object implements the Cart interface.
@@ -33,6 +33,7 @@ var CartShipping_1 = require("./CartShipping");
33
33
  var CartSummary_1 = require("./CartSummary");
34
34
  var CartTaxes_1 = require("./CartTaxes");
35
35
  var CartUpsellAfter_1 = require("./CartUpsellAfter");
36
+ var CartUtm_1 = require("./CartUtm");
36
37
  /**
37
38
  * Check if a given object implements the Cart interface.
38
39
  */
@@ -76,6 +77,7 @@ function CartFromJSONTyped(json, ignoreDiscriminator) {
76
77
  'summary': !(0, runtime_1.exists)(json, 'summary') ? undefined : (0, CartSummary_1.CartSummaryFromJSON)(json['summary']),
77
78
  'taxes': !(0, runtime_1.exists)(json, 'taxes') ? undefined : (0, CartTaxes_1.CartTaxesFromJSON)(json['taxes']),
78
79
  'upsell_after': !(0, runtime_1.exists)(json, 'upsell_after') ? undefined : (0, CartUpsellAfter_1.CartUpsellAfterFromJSON)(json['upsell_after']),
80
+ 'utms': !(0, runtime_1.exists)(json, 'utms') ? undefined : (json['utms'].map(CartUtm_1.CartUtmFromJSON)),
79
81
  };
80
82
  }
81
83
  exports.CartFromJSONTyped = CartFromJSONTyped;
@@ -113,6 +115,7 @@ function CartToJSON(value) {
113
115
  'summary': (0, CartSummary_1.CartSummaryToJSON)(value.summary),
114
116
  'taxes': (0, CartTaxes_1.CartTaxesToJSON)(value.taxes),
115
117
  'upsell_after': (0, CartUpsellAfter_1.CartUpsellAfterToJSON)(value.upsell_after),
118
+ 'utms': value.utms === undefined ? undefined : (value.utms.map(CartUtm_1.CartUtmToJSON)),
116
119
  };
117
120
  }
118
121
  exports.CartToJSON = CartToJSON;
@@ -0,0 +1,217 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CartUtm
16
+ */
17
+ export interface CartUtm {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof CartUtm
22
+ */
23
+ attribution_first_click_subtotal?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof CartUtm
28
+ */
29
+ attribution_first_click_total?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof CartUtm
34
+ */
35
+ attribution_last_click_subtotal?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof CartUtm
40
+ */
41
+ attribution_last_click_total?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof CartUtm
46
+ */
47
+ attribution_linear_subtotal?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CartUtm
52
+ */
53
+ attribution_linear_total?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof CartUtm
58
+ */
59
+ attribution_position_based_subtotal?: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof CartUtm
64
+ */
65
+ attribution_position_based_total?: number;
66
+ /**
67
+ * Date/time that the click happened
68
+ * @type {string}
69
+ * @memberof CartUtm
70
+ */
71
+ click_dts?: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof CartUtm
76
+ */
77
+ facebook_ad_id?: string;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof CartUtm
82
+ */
83
+ fbclid?: string;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof CartUtm
88
+ */
89
+ gbraid?: string;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof CartUtm
94
+ */
95
+ glcid?: string;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof CartUtm
100
+ */
101
+ itm_campaign?: string;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof CartUtm
106
+ */
107
+ itm_content?: string;
108
+ /**
109
+ *
110
+ * @type {string}
111
+ * @memberof CartUtm
112
+ */
113
+ itm_id?: string;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof CartUtm
118
+ */
119
+ itm_medium?: string;
120
+ /**
121
+ *
122
+ * @type {string}
123
+ * @memberof CartUtm
124
+ */
125
+ itm_source?: string;
126
+ /**
127
+ *
128
+ * @type {string}
129
+ * @memberof CartUtm
130
+ */
131
+ itm_term?: string;
132
+ /**
133
+ *
134
+ * @type {string}
135
+ * @memberof CartUtm
136
+ */
137
+ msclkid?: string;
138
+ /**
139
+ *
140
+ * @type {string}
141
+ * @memberof CartUtm
142
+ */
143
+ short_code?: string;
144
+ /**
145
+ *
146
+ * @type {boolean}
147
+ * @memberof CartUtm
148
+ */
149
+ short_code_backup?: boolean;
150
+ /**
151
+ *
152
+ * @type {string}
153
+ * @memberof CartUtm
154
+ */
155
+ ttclid?: string;
156
+ /**
157
+ *
158
+ * @type {string}
159
+ * @memberof CartUtm
160
+ */
161
+ uc_message_id?: string;
162
+ /**
163
+ *
164
+ * @type {string}
165
+ * @memberof CartUtm
166
+ */
167
+ utm_campaign?: string;
168
+ /**
169
+ *
170
+ * @type {string}
171
+ * @memberof CartUtm
172
+ */
173
+ utm_content?: string;
174
+ /**
175
+ *
176
+ * @type {string}
177
+ * @memberof CartUtm
178
+ */
179
+ utm_id?: string;
180
+ /**
181
+ *
182
+ * @type {string}
183
+ * @memberof CartUtm
184
+ */
185
+ utm_medium?: string;
186
+ /**
187
+ *
188
+ * @type {string}
189
+ * @memberof CartUtm
190
+ */
191
+ utm_source?: string;
192
+ /**
193
+ *
194
+ * @type {string}
195
+ * @memberof CartUtm
196
+ */
197
+ utm_term?: string;
198
+ /**
199
+ *
200
+ * @type {string}
201
+ * @memberof CartUtm
202
+ */
203
+ vmcid?: string;
204
+ /**
205
+ *
206
+ * @type {string}
207
+ * @memberof CartUtm
208
+ */
209
+ wbraid?: string;
210
+ }
211
+ /**
212
+ * Check if a given object implements the CartUtm interface.
213
+ */
214
+ export declare function instanceOfCartUtm(value: object): boolean;
215
+ export declare function CartUtmFromJSON(json: any): CartUtm;
216
+ export declare function CartUtmFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartUtm;
217
+ export declare function CartUtmToJSON(value?: CartUtm | null): any;
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CartUtmToJSON = exports.CartUtmFromJSONTyped = exports.CartUtmFromJSON = exports.instanceOfCartUtm = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the CartUtm interface.
20
+ */
21
+ function instanceOfCartUtm(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfCartUtm = instanceOfCartUtm;
26
+ function CartUtmFromJSON(json) {
27
+ return CartUtmFromJSONTyped(json, false);
28
+ }
29
+ exports.CartUtmFromJSON = CartUtmFromJSON;
30
+ function CartUtmFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'attribution_first_click_subtotal': !(0, runtime_1.exists)(json, 'attribution_first_click_subtotal') ? undefined : json['attribution_first_click_subtotal'],
36
+ 'attribution_first_click_total': !(0, runtime_1.exists)(json, 'attribution_first_click_total') ? undefined : json['attribution_first_click_total'],
37
+ 'attribution_last_click_subtotal': !(0, runtime_1.exists)(json, 'attribution_last_click_subtotal') ? undefined : json['attribution_last_click_subtotal'],
38
+ 'attribution_last_click_total': !(0, runtime_1.exists)(json, 'attribution_last_click_total') ? undefined : json['attribution_last_click_total'],
39
+ 'attribution_linear_subtotal': !(0, runtime_1.exists)(json, 'attribution_linear_subtotal') ? undefined : json['attribution_linear_subtotal'],
40
+ 'attribution_linear_total': !(0, runtime_1.exists)(json, 'attribution_linear_total') ? undefined : json['attribution_linear_total'],
41
+ 'attribution_position_based_subtotal': !(0, runtime_1.exists)(json, 'attribution_position_based_subtotal') ? undefined : json['attribution_position_based_subtotal'],
42
+ 'attribution_position_based_total': !(0, runtime_1.exists)(json, 'attribution_position_based_total') ? undefined : json['attribution_position_based_total'],
43
+ 'click_dts': !(0, runtime_1.exists)(json, 'click_dts') ? undefined : json['click_dts'],
44
+ 'facebook_ad_id': !(0, runtime_1.exists)(json, 'facebook_ad_id') ? undefined : json['facebook_ad_id'],
45
+ 'fbclid': !(0, runtime_1.exists)(json, 'fbclid') ? undefined : json['fbclid'],
46
+ 'gbraid': !(0, runtime_1.exists)(json, 'gbraid') ? undefined : json['gbraid'],
47
+ 'glcid': !(0, runtime_1.exists)(json, 'glcid') ? undefined : json['glcid'],
48
+ 'itm_campaign': !(0, runtime_1.exists)(json, 'itm_campaign') ? undefined : json['itm_campaign'],
49
+ 'itm_content': !(0, runtime_1.exists)(json, 'itm_content') ? undefined : json['itm_content'],
50
+ 'itm_id': !(0, runtime_1.exists)(json, 'itm_id') ? undefined : json['itm_id'],
51
+ 'itm_medium': !(0, runtime_1.exists)(json, 'itm_medium') ? undefined : json['itm_medium'],
52
+ 'itm_source': !(0, runtime_1.exists)(json, 'itm_source') ? undefined : json['itm_source'],
53
+ 'itm_term': !(0, runtime_1.exists)(json, 'itm_term') ? undefined : json['itm_term'],
54
+ 'msclkid': !(0, runtime_1.exists)(json, 'msclkid') ? undefined : json['msclkid'],
55
+ 'short_code': !(0, runtime_1.exists)(json, 'short_code') ? undefined : json['short_code'],
56
+ 'short_code_backup': !(0, runtime_1.exists)(json, 'short_code_backup') ? undefined : json['short_code_backup'],
57
+ 'ttclid': !(0, runtime_1.exists)(json, 'ttclid') ? undefined : json['ttclid'],
58
+ 'uc_message_id': !(0, runtime_1.exists)(json, 'uc_message_id') ? undefined : json['uc_message_id'],
59
+ 'utm_campaign': !(0, runtime_1.exists)(json, 'utm_campaign') ? undefined : json['utm_campaign'],
60
+ 'utm_content': !(0, runtime_1.exists)(json, 'utm_content') ? undefined : json['utm_content'],
61
+ 'utm_id': !(0, runtime_1.exists)(json, 'utm_id') ? undefined : json['utm_id'],
62
+ 'utm_medium': !(0, runtime_1.exists)(json, 'utm_medium') ? undefined : json['utm_medium'],
63
+ 'utm_source': !(0, runtime_1.exists)(json, 'utm_source') ? undefined : json['utm_source'],
64
+ 'utm_term': !(0, runtime_1.exists)(json, 'utm_term') ? undefined : json['utm_term'],
65
+ 'vmcid': !(0, runtime_1.exists)(json, 'vmcid') ? undefined : json['vmcid'],
66
+ 'wbraid': !(0, runtime_1.exists)(json, 'wbraid') ? undefined : json['wbraid'],
67
+ };
68
+ }
69
+ exports.CartUtmFromJSONTyped = CartUtmFromJSONTyped;
70
+ function CartUtmToJSON(value) {
71
+ if (value === undefined) {
72
+ return undefined;
73
+ }
74
+ if (value === null) {
75
+ return null;
76
+ }
77
+ return {
78
+ 'attribution_first_click_subtotal': value.attribution_first_click_subtotal,
79
+ 'attribution_first_click_total': value.attribution_first_click_total,
80
+ 'attribution_last_click_subtotal': value.attribution_last_click_subtotal,
81
+ 'attribution_last_click_total': value.attribution_last_click_total,
82
+ 'attribution_linear_subtotal': value.attribution_linear_subtotal,
83
+ 'attribution_linear_total': value.attribution_linear_total,
84
+ 'attribution_position_based_subtotal': value.attribution_position_based_subtotal,
85
+ 'attribution_position_based_total': value.attribution_position_based_total,
86
+ 'click_dts': value.click_dts,
87
+ 'facebook_ad_id': value.facebook_ad_id,
88
+ 'fbclid': value.fbclid,
89
+ 'gbraid': value.gbraid,
90
+ 'glcid': value.glcid,
91
+ 'itm_campaign': value.itm_campaign,
92
+ 'itm_content': value.itm_content,
93
+ 'itm_id': value.itm_id,
94
+ 'itm_medium': value.itm_medium,
95
+ 'itm_source': value.itm_source,
96
+ 'itm_term': value.itm_term,
97
+ 'msclkid': value.msclkid,
98
+ 'short_code': value.short_code,
99
+ 'short_code_backup': value.short_code_backup,
100
+ 'ttclid': value.ttclid,
101
+ 'uc_message_id': value.uc_message_id,
102
+ 'utm_campaign': value.utm_campaign,
103
+ 'utm_content': value.utm_content,
104
+ 'utm_id': value.utm_id,
105
+ 'utm_medium': value.utm_medium,
106
+ 'utm_source': value.utm_source,
107
+ 'utm_term': value.utm_term,
108
+ 'vmcid': value.vmcid,
109
+ 'wbraid': value.wbraid,
110
+ };
111
+ }
112
+ exports.CartUtmToJSON = CartUtmToJSON;
@@ -76,6 +76,12 @@ export interface ItemContentMultimedia {
76
76
  * @memberof ItemContentMultimedia
77
77
  */
78
78
  placeholder?: boolean;
79
+ /**
80
+ * Size of the file in bytes if known
81
+ * @type {number}
82
+ * @memberof ItemContentMultimedia
83
+ */
84
+ size?: number;
79
85
  /**
80
86
  * Temporary multimedia object identifier assigned if uploading new multimedia
81
87
  * @type {number}
@@ -53,6 +53,7 @@ function ItemContentMultimediaFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'merchant_item_multimedia_oid': !(0, runtime_1.exists)(json, 'merchant_item_multimedia_oid') ? undefined : json['merchant_item_multimedia_oid'],
54
54
  'orphan': !(0, runtime_1.exists)(json, 'orphan') ? undefined : json['orphan'],
55
55
  'placeholder': !(0, runtime_1.exists)(json, 'placeholder') ? undefined : json['placeholder'],
56
+ 'size': !(0, runtime_1.exists)(json, 'size') ? undefined : json['size'],
56
57
  'temp_multimedia_oid': !(0, runtime_1.exists)(json, 'temp_multimedia_oid') ? undefined : json['temp_multimedia_oid'],
57
58
  'thumbnails': !(0, runtime_1.exists)(json, 'thumbnails') ? undefined : (json['thumbnails'].map(ItemContentMultimediaThumbnail_1.ItemContentMultimediaThumbnailFromJSON)),
58
59
  'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
@@ -79,6 +80,7 @@ function ItemContentMultimediaToJSON(value) {
79
80
  'merchant_item_multimedia_oid': value.merchant_item_multimedia_oid,
80
81
  'orphan': value.orphan,
81
82
  'placeholder': value.placeholder,
83
+ 'size': value.size,
82
84
  'temp_multimedia_oid': value.temp_multimedia_oid,
83
85
  'thumbnails': value.thumbnails === undefined ? undefined : (value.thumbnails.map(ItemContentMultimediaThumbnail_1.ItemContentMultimediaThumbnailToJSON)),
84
86
  'type': value.type,
@@ -99,6 +99,7 @@ export * from './CartShipping';
99
99
  export * from './CartSummary';
100
100
  export * from './CartTaxes';
101
101
  export * from './CartUpsellAfter';
102
+ export * from './CartUtm';
102
103
  export * from './CartValidationRequest';
103
104
  export * from './CartValidationResponse';
104
105
  export * from './ChanelPartnerReasonCodesResponse';
@@ -117,6 +117,7 @@ __exportStar(require("./CartShipping"), exports);
117
117
  __exportStar(require("./CartSummary"), exports);
118
118
  __exportStar(require("./CartTaxes"), exports);
119
119
  __exportStar(require("./CartUpsellAfter"), exports);
120
+ __exportStar(require("./CartUtm"), exports);
120
121
  __exportStar(require("./CartValidationRequest"), exports);
121
122
  __exportStar(require("./CartValidationResponse"), exports);
122
123
  __exportStar(require("./ChanelPartnerReasonCodesResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.44",
3
+ "version": "4.1.46",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -121,6 +121,12 @@ import {
121
121
  CartUpsellAfterFromJSONTyped,
122
122
  CartUpsellAfterToJSON,
123
123
  } from './CartUpsellAfter';
124
+ import {
125
+ CartUtm,
126
+ CartUtmFromJSON,
127
+ CartUtmFromJSONTyped,
128
+ CartUtmToJSON,
129
+ } from './CartUtm';
124
130
 
125
131
  /**
126
132
  *
@@ -284,6 +290,12 @@ export interface Cart {
284
290
  * @memberof Cart
285
291
  */
286
292
  upsell_after?: CartUpsellAfter;
293
+ /**
294
+ * UTM clicks. The zero index is the most recent (last) UTM click. Only available in BigQuery and on an abandon webhook.
295
+ * @type {Array<CartUtm>}
296
+ * @memberof Cart
297
+ */
298
+ utms?: Array<CartUtm>;
287
299
  }
288
300
 
289
301
 
@@ -333,6 +345,7 @@ export function CartFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cart
333
345
  'summary': !exists(json, 'summary') ? undefined : CartSummaryFromJSON(json['summary']),
334
346
  'taxes': !exists(json, 'taxes') ? undefined : CartTaxesFromJSON(json['taxes']),
335
347
  'upsell_after': !exists(json, 'upsell_after') ? undefined : CartUpsellAfterFromJSON(json['upsell_after']),
348
+ 'utms': !exists(json, 'utms') ? undefined : ((json['utms'] as Array<any>).map(CartUtmFromJSON)),
336
349
  };
337
350
  }
338
351
 
@@ -371,6 +384,7 @@ export function CartToJSON(value?: Cart | null): any {
371
384
  'summary': CartSummaryToJSON(value.summary),
372
385
  'taxes': CartTaxesToJSON(value.taxes),
373
386
  'upsell_after': CartUpsellAfterToJSON(value.upsell_after),
387
+ 'utms': value.utms === undefined ? undefined : ((value.utms as Array<any>).map(CartUtmToJSON)),
374
388
  };
375
389
  }
376
390
 
@@ -0,0 +1,315 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CartUtm
20
+ */
21
+ export interface CartUtm {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof CartUtm
26
+ */
27
+ attribution_first_click_subtotal?: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof CartUtm
32
+ */
33
+ attribution_first_click_total?: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof CartUtm
38
+ */
39
+ attribution_last_click_subtotal?: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof CartUtm
44
+ */
45
+ attribution_last_click_total?: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof CartUtm
50
+ */
51
+ attribution_linear_subtotal?: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof CartUtm
56
+ */
57
+ attribution_linear_total?: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof CartUtm
62
+ */
63
+ attribution_position_based_subtotal?: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof CartUtm
68
+ */
69
+ attribution_position_based_total?: number;
70
+ /**
71
+ * Date/time that the click happened
72
+ * @type {string}
73
+ * @memberof CartUtm
74
+ */
75
+ click_dts?: string;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof CartUtm
80
+ */
81
+ facebook_ad_id?: string;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof CartUtm
86
+ */
87
+ fbclid?: string;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof CartUtm
92
+ */
93
+ gbraid?: string;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof CartUtm
98
+ */
99
+ glcid?: string;
100
+ /**
101
+ *
102
+ * @type {string}
103
+ * @memberof CartUtm
104
+ */
105
+ itm_campaign?: string;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof CartUtm
110
+ */
111
+ itm_content?: string;
112
+ /**
113
+ *
114
+ * @type {string}
115
+ * @memberof CartUtm
116
+ */
117
+ itm_id?: string;
118
+ /**
119
+ *
120
+ * @type {string}
121
+ * @memberof CartUtm
122
+ */
123
+ itm_medium?: string;
124
+ /**
125
+ *
126
+ * @type {string}
127
+ * @memberof CartUtm
128
+ */
129
+ itm_source?: string;
130
+ /**
131
+ *
132
+ * @type {string}
133
+ * @memberof CartUtm
134
+ */
135
+ itm_term?: string;
136
+ /**
137
+ *
138
+ * @type {string}
139
+ * @memberof CartUtm
140
+ */
141
+ msclkid?: string;
142
+ /**
143
+ *
144
+ * @type {string}
145
+ * @memberof CartUtm
146
+ */
147
+ short_code?: string;
148
+ /**
149
+ *
150
+ * @type {boolean}
151
+ * @memberof CartUtm
152
+ */
153
+ short_code_backup?: boolean;
154
+ /**
155
+ *
156
+ * @type {string}
157
+ * @memberof CartUtm
158
+ */
159
+ ttclid?: string;
160
+ /**
161
+ *
162
+ * @type {string}
163
+ * @memberof CartUtm
164
+ */
165
+ uc_message_id?: string;
166
+ /**
167
+ *
168
+ * @type {string}
169
+ * @memberof CartUtm
170
+ */
171
+ utm_campaign?: string;
172
+ /**
173
+ *
174
+ * @type {string}
175
+ * @memberof CartUtm
176
+ */
177
+ utm_content?: string;
178
+ /**
179
+ *
180
+ * @type {string}
181
+ * @memberof CartUtm
182
+ */
183
+ utm_id?: string;
184
+ /**
185
+ *
186
+ * @type {string}
187
+ * @memberof CartUtm
188
+ */
189
+ utm_medium?: string;
190
+ /**
191
+ *
192
+ * @type {string}
193
+ * @memberof CartUtm
194
+ */
195
+ utm_source?: string;
196
+ /**
197
+ *
198
+ * @type {string}
199
+ * @memberof CartUtm
200
+ */
201
+ utm_term?: string;
202
+ /**
203
+ *
204
+ * @type {string}
205
+ * @memberof CartUtm
206
+ */
207
+ vmcid?: string;
208
+ /**
209
+ *
210
+ * @type {string}
211
+ * @memberof CartUtm
212
+ */
213
+ wbraid?: string;
214
+ }
215
+
216
+
217
+
218
+ /**
219
+ * Check if a given object implements the CartUtm interface.
220
+ */
221
+ export function instanceOfCartUtm(value: object): boolean {
222
+ let isInstance = true;
223
+
224
+ return isInstance;
225
+ }
226
+
227
+ export function CartUtmFromJSON(json: any): CartUtm {
228
+ return CartUtmFromJSONTyped(json, false);
229
+ }
230
+
231
+ export function CartUtmFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartUtm {
232
+ if ((json === undefined) || (json === null)) {
233
+ return json;
234
+ }
235
+ return {
236
+
237
+ 'attribution_first_click_subtotal': !exists(json, 'attribution_first_click_subtotal') ? undefined : json['attribution_first_click_subtotal'],
238
+ 'attribution_first_click_total': !exists(json, 'attribution_first_click_total') ? undefined : json['attribution_first_click_total'],
239
+ 'attribution_last_click_subtotal': !exists(json, 'attribution_last_click_subtotal') ? undefined : json['attribution_last_click_subtotal'],
240
+ 'attribution_last_click_total': !exists(json, 'attribution_last_click_total') ? undefined : json['attribution_last_click_total'],
241
+ 'attribution_linear_subtotal': !exists(json, 'attribution_linear_subtotal') ? undefined : json['attribution_linear_subtotal'],
242
+ 'attribution_linear_total': !exists(json, 'attribution_linear_total') ? undefined : json['attribution_linear_total'],
243
+ 'attribution_position_based_subtotal': !exists(json, 'attribution_position_based_subtotal') ? undefined : json['attribution_position_based_subtotal'],
244
+ 'attribution_position_based_total': !exists(json, 'attribution_position_based_total') ? undefined : json['attribution_position_based_total'],
245
+ 'click_dts': !exists(json, 'click_dts') ? undefined : json['click_dts'],
246
+ 'facebook_ad_id': !exists(json, 'facebook_ad_id') ? undefined : json['facebook_ad_id'],
247
+ 'fbclid': !exists(json, 'fbclid') ? undefined : json['fbclid'],
248
+ 'gbraid': !exists(json, 'gbraid') ? undefined : json['gbraid'],
249
+ 'glcid': !exists(json, 'glcid') ? undefined : json['glcid'],
250
+ 'itm_campaign': !exists(json, 'itm_campaign') ? undefined : json['itm_campaign'],
251
+ 'itm_content': !exists(json, 'itm_content') ? undefined : json['itm_content'],
252
+ 'itm_id': !exists(json, 'itm_id') ? undefined : json['itm_id'],
253
+ 'itm_medium': !exists(json, 'itm_medium') ? undefined : json['itm_medium'],
254
+ 'itm_source': !exists(json, 'itm_source') ? undefined : json['itm_source'],
255
+ 'itm_term': !exists(json, 'itm_term') ? undefined : json['itm_term'],
256
+ 'msclkid': !exists(json, 'msclkid') ? undefined : json['msclkid'],
257
+ 'short_code': !exists(json, 'short_code') ? undefined : json['short_code'],
258
+ 'short_code_backup': !exists(json, 'short_code_backup') ? undefined : json['short_code_backup'],
259
+ 'ttclid': !exists(json, 'ttclid') ? undefined : json['ttclid'],
260
+ 'uc_message_id': !exists(json, 'uc_message_id') ? undefined : json['uc_message_id'],
261
+ 'utm_campaign': !exists(json, 'utm_campaign') ? undefined : json['utm_campaign'],
262
+ 'utm_content': !exists(json, 'utm_content') ? undefined : json['utm_content'],
263
+ 'utm_id': !exists(json, 'utm_id') ? undefined : json['utm_id'],
264
+ 'utm_medium': !exists(json, 'utm_medium') ? undefined : json['utm_medium'],
265
+ 'utm_source': !exists(json, 'utm_source') ? undefined : json['utm_source'],
266
+ 'utm_term': !exists(json, 'utm_term') ? undefined : json['utm_term'],
267
+ 'vmcid': !exists(json, 'vmcid') ? undefined : json['vmcid'],
268
+ 'wbraid': !exists(json, 'wbraid') ? undefined : json['wbraid'],
269
+ };
270
+ }
271
+
272
+ export function CartUtmToJSON(value?: CartUtm | null): any {
273
+ if (value === undefined) {
274
+ return undefined;
275
+ }
276
+ if (value === null) {
277
+ return null;
278
+ }
279
+ return {
280
+
281
+ 'attribution_first_click_subtotal': value.attribution_first_click_subtotal,
282
+ 'attribution_first_click_total': value.attribution_first_click_total,
283
+ 'attribution_last_click_subtotal': value.attribution_last_click_subtotal,
284
+ 'attribution_last_click_total': value.attribution_last_click_total,
285
+ 'attribution_linear_subtotal': value.attribution_linear_subtotal,
286
+ 'attribution_linear_total': value.attribution_linear_total,
287
+ 'attribution_position_based_subtotal': value.attribution_position_based_subtotal,
288
+ 'attribution_position_based_total': value.attribution_position_based_total,
289
+ 'click_dts': value.click_dts,
290
+ 'facebook_ad_id': value.facebook_ad_id,
291
+ 'fbclid': value.fbclid,
292
+ 'gbraid': value.gbraid,
293
+ 'glcid': value.glcid,
294
+ 'itm_campaign': value.itm_campaign,
295
+ 'itm_content': value.itm_content,
296
+ 'itm_id': value.itm_id,
297
+ 'itm_medium': value.itm_medium,
298
+ 'itm_source': value.itm_source,
299
+ 'itm_term': value.itm_term,
300
+ 'msclkid': value.msclkid,
301
+ 'short_code': value.short_code,
302
+ 'short_code_backup': value.short_code_backup,
303
+ 'ttclid': value.ttclid,
304
+ 'uc_message_id': value.uc_message_id,
305
+ 'utm_campaign': value.utm_campaign,
306
+ 'utm_content': value.utm_content,
307
+ 'utm_id': value.utm_id,
308
+ 'utm_medium': value.utm_medium,
309
+ 'utm_source': value.utm_source,
310
+ 'utm_term': value.utm_term,
311
+ 'vmcid': value.vmcid,
312
+ 'wbraid': value.wbraid,
313
+ };
314
+ }
315
+
@@ -86,6 +86,12 @@ export interface ItemContentMultimedia {
86
86
  * @memberof ItemContentMultimedia
87
87
  */
88
88
  placeholder?: boolean;
89
+ /**
90
+ * Size of the file in bytes if known
91
+ * @type {number}
92
+ * @memberof ItemContentMultimedia
93
+ */
94
+ size?: number;
89
95
  /**
90
96
  * Temporary multimedia object identifier assigned if uploading new multimedia
91
97
  * @type {number}
@@ -162,6 +168,7 @@ export function ItemContentMultimediaFromJSONTyped(json: any, ignoreDiscriminato
162
168
  'merchant_item_multimedia_oid': !exists(json, 'merchant_item_multimedia_oid') ? undefined : json['merchant_item_multimedia_oid'],
163
169
  'orphan': !exists(json, 'orphan') ? undefined : json['orphan'],
164
170
  'placeholder': !exists(json, 'placeholder') ? undefined : json['placeholder'],
171
+ 'size': !exists(json, 'size') ? undefined : json['size'],
165
172
  'temp_multimedia_oid': !exists(json, 'temp_multimedia_oid') ? undefined : json['temp_multimedia_oid'],
166
173
  'thumbnails': !exists(json, 'thumbnails') ? undefined : ((json['thumbnails'] as Array<any>).map(ItemContentMultimediaThumbnailFromJSON)),
167
174
  'type': !exists(json, 'type') ? undefined : json['type'],
@@ -189,6 +196,7 @@ export function ItemContentMultimediaToJSON(value?: ItemContentMultimedia | null
189
196
  'merchant_item_multimedia_oid': value.merchant_item_multimedia_oid,
190
197
  'orphan': value.orphan,
191
198
  'placeholder': value.placeholder,
199
+ 'size': value.size,
192
200
  'temp_multimedia_oid': value.temp_multimedia_oid,
193
201
  'thumbnails': value.thumbnails === undefined ? undefined : ((value.thumbnails as Array<any>).map(ItemContentMultimediaThumbnailToJSON)),
194
202
  'type': value.type,
@@ -101,6 +101,7 @@ export * from './CartShipping';
101
101
  export * from './CartSummary';
102
102
  export * from './CartTaxes';
103
103
  export * from './CartUpsellAfter';
104
+ export * from './CartUtm';
104
105
  export * from './CartValidationRequest';
105
106
  export * from './CartValidationResponse';
106
107
  export * from './ChanelPartnerReasonCodesResponse';