ultracart_rest_api_v2_typescript 4.1.98 → 4.1.99

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/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # UltraCart Typescript SDK
2
- ## ultracart_rest_api_v2_typescript@4.1.98
2
+ ## ultracart_rest_api_v2_typescript@4.1.99
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.98 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.99 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -85,6 +85,7 @@ Not every change is committed to every SDK.
85
85
 
86
86
  | Version | Date | Comments |
87
87
  | --: | :-: | --- |
88
+ | 4.1.99 | 06/05/2026 | added webhook name and merchant_comments |
88
89
  | 4.1.98 | 06/04/2026 | coupon - new coupon type for amount off items with free shipping |
89
90
  | 4.1.97 | 06/03/2026 | fraud api alpha version |
90
91
  | 4.1.96 | 06/03/2026 | fraud api alpha build |
@@ -101,12 +101,24 @@ export interface Webhook {
101
101
  * @memberof Webhook
102
102
  */
103
103
  maximum_size?: number;
104
+ /**
105
+ * Merchant comments about this webhook
106
+ * @type {string}
107
+ * @memberof Webhook
108
+ */
109
+ merchant_comments?: string;
104
110
  /**
105
111
  * The UltraCart merchant ID that owns this webhook
106
112
  * @type {string}
107
113
  * @memberof Webhook
108
114
  */
109
115
  merchant_id?: string;
116
+ /**
117
+ * Friendly name to help identify this webhook
118
+ * @type {string}
119
+ * @memberof Webhook
120
+ */
121
+ name?: string;
110
122
  /**
111
123
  * The next time UltraCart will attempt delivery if failures have been occurring
112
124
  * @type {string}
@@ -63,7 +63,9 @@ function WebhookFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'iam_secret_key': !(0, runtime_1.exists)(json, 'iam_secret_key') ? undefined : json['iam_secret_key'],
64
64
  'maximum_events': !(0, runtime_1.exists)(json, 'maximum_events') ? undefined : json['maximum_events'],
65
65
  'maximum_size': !(0, runtime_1.exists)(json, 'maximum_size') ? undefined : json['maximum_size'],
66
+ 'merchant_comments': !(0, runtime_1.exists)(json, 'merchant_comments') ? undefined : json['merchant_comments'],
66
67
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
68
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
67
69
  'next_retry_after': !(0, runtime_1.exists)(json, 'next_retry_after') ? undefined : json['next_retry_after'],
68
70
  'pending': !(0, runtime_1.exists)(json, 'pending') ? undefined : json['pending'],
69
71
  'webhook_oid': !(0, runtime_1.exists)(json, 'webhook_oid') ? undefined : json['webhook_oid'],
@@ -93,7 +95,9 @@ function WebhookToJSON(value) {
93
95
  'iam_secret_key': value.iam_secret_key,
94
96
  'maximum_events': value.maximum_events,
95
97
  'maximum_size': value.maximum_size,
98
+ 'merchant_comments': value.merchant_comments,
96
99
  'merchant_id': value.merchant_id,
100
+ 'name': value.name,
97
101
  'next_retry_after': value.next_retry_after,
98
102
  'pending': value.pending,
99
103
  'webhook_oid': value.webhook_oid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.98",
3
+ "version": "4.1.99",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -116,12 +116,24 @@ export interface Webhook {
116
116
  * @memberof Webhook
117
117
  */
118
118
  maximum_size?: number;
119
+ /**
120
+ * Merchant comments about this webhook
121
+ * @type {string}
122
+ * @memberof Webhook
123
+ */
124
+ merchant_comments?: string;
119
125
  /**
120
126
  * The UltraCart merchant ID that owns this webhook
121
127
  * @type {string}
122
128
  * @memberof Webhook
123
129
  */
124
130
  merchant_id?: string;
131
+ /**
132
+ * Friendly name to help identify this webhook
133
+ * @type {string}
134
+ * @memberof Webhook
135
+ */
136
+ name?: string;
125
137
  /**
126
138
  * The next time UltraCart will attempt delivery if failures have been occurring
127
139
  * @type {string}
@@ -203,7 +215,9 @@ export function WebhookFromJSONTyped(json: any, ignoreDiscriminator: boolean): W
203
215
  'iam_secret_key': !exists(json, 'iam_secret_key') ? undefined : json['iam_secret_key'],
204
216
  'maximum_events': !exists(json, 'maximum_events') ? undefined : json['maximum_events'],
205
217
  'maximum_size': !exists(json, 'maximum_size') ? undefined : json['maximum_size'],
218
+ 'merchant_comments': !exists(json, 'merchant_comments') ? undefined : json['merchant_comments'],
206
219
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
220
+ 'name': !exists(json, 'name') ? undefined : json['name'],
207
221
  'next_retry_after': !exists(json, 'next_retry_after') ? undefined : json['next_retry_after'],
208
222
  'pending': !exists(json, 'pending') ? undefined : json['pending'],
209
223
  'webhook_oid': !exists(json, 'webhook_oid') ? undefined : json['webhook_oid'],
@@ -234,7 +248,9 @@ export function WebhookToJSON(value?: Webhook | null): any {
234
248
  'iam_secret_key': value.iam_secret_key,
235
249
  'maximum_events': value.maximum_events,
236
250
  'maximum_size': value.maximum_size,
251
+ 'merchant_comments': value.merchant_comments,
237
252
  'merchant_id': value.merchant_id,
253
+ 'name': value.name,
238
254
  'next_retry_after': value.next_retry_after,
239
255
  'pending': value.pending,
240
256
  'webhook_oid': value.webhook_oid,