ultracart_rest_api_v2_typescript 4.1.42 → 4.1.43
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.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.43
|
|
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.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.43 --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.43 | 01/14/2026 | coupons - generate one time coupons prefix support (optional) |
|
|
88
89
|
| 4.1.42 | 01/13/2026 | conversations - pbx methods for phone number purchasing |
|
|
89
90
|
| 4.1.41 | 01/13/2026 | conversations - pbx methods for phone number purchasing |
|
|
90
91
|
| 4.1.40 | 01/07/2026 | convseration - AI agent profile voice settings |
|
|
@@ -42,6 +42,12 @@ export interface CouponCodesRequest {
|
|
|
42
42
|
* @memberof CouponCodesRequest
|
|
43
43
|
*/
|
|
44
44
|
metadata?: ResponseMetadata;
|
|
45
|
+
/**
|
|
46
|
+
* Optional prefix for generated codes
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof CouponCodesRequest
|
|
49
|
+
*/
|
|
50
|
+
prefix?: string;
|
|
45
51
|
/**
|
|
46
52
|
* Quantity
|
|
47
53
|
* @type {number}
|
|
@@ -39,6 +39,7 @@ function CouponCodesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'expiration_dts': !(0, runtime_1.exists)(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
40
40
|
'expiration_seconds': !(0, runtime_1.exists)(json, 'expiration_seconds') ? undefined : json['expiration_seconds'],
|
|
41
41
|
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
42
|
+
'prefix': !(0, runtime_1.exists)(json, 'prefix') ? undefined : json['prefix'],
|
|
42
43
|
'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
|
|
43
44
|
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
44
45
|
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
@@ -57,6 +58,7 @@ function CouponCodesRequestToJSON(value) {
|
|
|
57
58
|
'expiration_dts': value.expiration_dts,
|
|
58
59
|
'expiration_seconds': value.expiration_seconds,
|
|
59
60
|
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
61
|
+
'prefix': value.prefix,
|
|
60
62
|
'quantity': value.quantity,
|
|
61
63
|
'success': value.success,
|
|
62
64
|
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
package/package.json
CHANGED
|
@@ -62,6 +62,12 @@ export interface CouponCodesRequest {
|
|
|
62
62
|
* @memberof CouponCodesRequest
|
|
63
63
|
*/
|
|
64
64
|
metadata?: ResponseMetadata;
|
|
65
|
+
/**
|
|
66
|
+
* Optional prefix for generated codes
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof CouponCodesRequest
|
|
69
|
+
*/
|
|
70
|
+
prefix?: string;
|
|
65
71
|
/**
|
|
66
72
|
* Quantity
|
|
67
73
|
* @type {number}
|
|
@@ -107,6 +113,7 @@ export function CouponCodesRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
107
113
|
'expiration_dts': !exists(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
108
114
|
'expiration_seconds': !exists(json, 'expiration_seconds') ? undefined : json['expiration_seconds'],
|
|
109
115
|
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
116
|
+
'prefix': !exists(json, 'prefix') ? undefined : json['prefix'],
|
|
110
117
|
'quantity': !exists(json, 'quantity') ? undefined : json['quantity'],
|
|
111
118
|
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
112
119
|
'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
|
|
@@ -126,6 +133,7 @@ export function CouponCodesRequestToJSON(value?: CouponCodesRequest | null): any
|
|
|
126
133
|
'expiration_dts': value.expiration_dts,
|
|
127
134
|
'expiration_seconds': value.expiration_seconds,
|
|
128
135
|
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
136
|
+
'prefix': value.prefix,
|
|
129
137
|
'quantity': value.quantity,
|
|
130
138
|
'success': value.success,
|
|
131
139
|
'warning': WarningToJSON(value.warning),
|