ultracart_rest_api_v2_typescript 4.1.41 → 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.41
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.41 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.43 --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.43 | 01/14/2026 | coupons - generate one time coupons prefix support (optional) |
89
+ | 4.1.42 | 01/13/2026 | conversations - pbx methods for phone number purchasing |
88
90
  | 4.1.41 | 01/13/2026 | conversations - pbx methods for phone number purchasing |
89
91
  | 4.1.40 | 01/07/2026 | convseration - AI agent profile voice settings |
90
92
  | 4.1.39 | 12/31/2025 | conversations AI - queue AI settings |
@@ -75,6 +75,12 @@ export interface ConversationPbxAddress {
75
75
  * @memberof ConversationPbxAddress
76
76
  */
77
77
  street?: string;
78
+ /**
79
+ * Whether the address is valid (validated or verified)
80
+ * @type {boolean}
81
+ * @memberof ConversationPbxAddress
82
+ */
83
+ valid?: boolean;
78
84
  /**
79
85
  * Whether the address has been validated by Twilio
80
86
  * @type {boolean}
@@ -42,6 +42,7 @@ function ConversationPbxAddressFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'postal_code': !(0, runtime_1.exists)(json, 'postal_code') ? undefined : json['postal_code'],
43
43
  'region': !(0, runtime_1.exists)(json, 'region') ? undefined : json['region'],
44
44
  'street': !(0, runtime_1.exists)(json, 'street') ? undefined : json['street'],
45
+ 'valid': !(0, runtime_1.exists)(json, 'valid') ? undefined : json['valid'],
45
46
  'validated': !(0, runtime_1.exists)(json, 'validated') ? undefined : json['validated'],
46
47
  'verified': !(0, runtime_1.exists)(json, 'verified') ? undefined : json['verified'],
47
48
  };
@@ -65,6 +66,7 @@ function ConversationPbxAddressToJSON(value) {
65
66
  'postal_code': value.postal_code,
66
67
  'region': value.region,
67
68
  'street': value.street,
69
+ 'valid': value.valid,
68
70
  'validated': value.validated,
69
71
  'verified': value.verified,
70
72
  };
@@ -45,6 +45,12 @@ export interface ConversationPbxAvailablePhoneNumber {
45
45
  * @memberof ConversationPbxAvailablePhoneNumber
46
46
  */
47
47
  mms?: boolean;
48
+ /**
49
+ * Monthly cost for this phone number
50
+ * @type {number}
51
+ * @memberof ConversationPbxAvailablePhoneNumber
52
+ */
53
+ monthly_cost?: number;
48
54
  /**
49
55
  * Phone number in E.164 format
50
56
  * @type {string}
@@ -46,6 +46,7 @@ function ConversationPbxAvailablePhoneNumberFromJSONTyped(json, ignoreDiscrimina
46
46
  'friendly_name': !(0, runtime_1.exists)(json, 'friendly_name') ? undefined : json['friendly_name'],
47
47
  'locality': !(0, runtime_1.exists)(json, 'locality') ? undefined : json['locality'],
48
48
  'mms': !(0, runtime_1.exists)(json, 'mms') ? undefined : json['mms'],
49
+ 'monthly_cost': !(0, runtime_1.exists)(json, 'monthly_cost') ? undefined : json['monthly_cost'],
49
50
  'phone_number': !(0, runtime_1.exists)(json, 'phone_number') ? undefined : json['phone_number'],
50
51
  'region': !(0, runtime_1.exists)(json, 'region') ? undefined : json['region'],
51
52
  'sms': !(0, runtime_1.exists)(json, 'sms') ? undefined : json['sms'],
@@ -66,6 +67,7 @@ function ConversationPbxAvailablePhoneNumberToJSON(value) {
66
67
  'friendly_name': value.friendly_name,
67
68
  'locality': value.locality,
68
69
  'mms': value.mms,
70
+ 'monthly_cost': value.monthly_cost,
69
71
  'phone_number': value.phone_number,
70
72
  'region': value.region,
71
73
  'sms': value.sms,
@@ -27,6 +27,12 @@ export interface ConversationPbxPhoneNumber {
27
27
  * @memberof ConversationPbxPhoneNumber
28
28
  */
29
29
  action_target?: string;
30
+ /**
31
+ * Twilio Address SID linked to this phone number for regulatory compliance
32
+ * @type {string}
33
+ * @memberof ConversationPbxPhoneNumber
34
+ */
35
+ address_sid?: string;
30
36
  /**
31
37
  * Conversation Pbx Phone Number UUID
32
38
  * @type {string}
@@ -44,6 +44,7 @@ function ConversationPbxPhoneNumberFromJSONTyped(json, ignoreDiscriminator) {
44
44
  return {
45
45
  'action': !(0, runtime_1.exists)(json, 'action') ? undefined : json['action'],
46
46
  'action_target': !(0, runtime_1.exists)(json, 'action_target') ? undefined : json['action_target'],
47
+ 'address_sid': !(0, runtime_1.exists)(json, 'address_sid') ? undefined : json['address_sid'],
47
48
  'conversation_pbx_phone_number_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_phone_number_uuid') ? undefined : json['conversation_pbx_phone_number_uuid'],
48
49
  'deletion_protected': !(0, runtime_1.exists)(json, 'deletion_protected') ? undefined : json['deletion_protected'],
49
50
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
@@ -61,6 +62,7 @@ function ConversationPbxPhoneNumberToJSON(value) {
61
62
  return {
62
63
  'action': value.action,
63
64
  'action_target': value.action_target,
65
+ 'address_sid': value.address_sid,
64
66
  'conversation_pbx_phone_number_uuid': value.conversation_pbx_phone_number_uuid,
65
67
  'deletion_protected': value.deletion_protected,
66
68
  'merchant_id': value.merchant_id,
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.41",
3
+ "version": "4.1.43",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -79,6 +79,12 @@ export interface ConversationPbxAddress {
79
79
  * @memberof ConversationPbxAddress
80
80
  */
81
81
  street?: string;
82
+ /**
83
+ * Whether the address is valid (validated or verified)
84
+ * @type {boolean}
85
+ * @memberof ConversationPbxAddress
86
+ */
87
+ valid?: boolean;
82
88
  /**
83
89
  * Whether the address has been validated by Twilio
84
90
  * @type {boolean}
@@ -124,6 +130,7 @@ export function ConversationPbxAddressFromJSONTyped(json: any, ignoreDiscriminat
124
130
  'postal_code': !exists(json, 'postal_code') ? undefined : json['postal_code'],
125
131
  'region': !exists(json, 'region') ? undefined : json['region'],
126
132
  'street': !exists(json, 'street') ? undefined : json['street'],
133
+ 'valid': !exists(json, 'valid') ? undefined : json['valid'],
127
134
  'validated': !exists(json, 'validated') ? undefined : json['validated'],
128
135
  'verified': !exists(json, 'verified') ? undefined : json['verified'],
129
136
  };
@@ -148,6 +155,7 @@ export function ConversationPbxAddressToJSON(value?: ConversationPbxAddress | nu
148
155
  'postal_code': value.postal_code,
149
156
  'region': value.region,
150
157
  'street': value.street,
158
+ 'valid': value.valid,
151
159
  'validated': value.validated,
152
160
  'verified': value.verified,
153
161
  };
@@ -49,6 +49,12 @@ export interface ConversationPbxAvailablePhoneNumber {
49
49
  * @memberof ConversationPbxAvailablePhoneNumber
50
50
  */
51
51
  mms?: boolean;
52
+ /**
53
+ * Monthly cost for this phone number
54
+ * @type {number}
55
+ * @memberof ConversationPbxAvailablePhoneNumber
56
+ */
57
+ monthly_cost?: number;
52
58
  /**
53
59
  * Phone number in E.164 format
54
60
  * @type {string}
@@ -113,6 +119,7 @@ export function ConversationPbxAvailablePhoneNumberFromJSONTyped(json: any, igno
113
119
  'friendly_name': !exists(json, 'friendly_name') ? undefined : json['friendly_name'],
114
120
  'locality': !exists(json, 'locality') ? undefined : json['locality'],
115
121
  'mms': !exists(json, 'mms') ? undefined : json['mms'],
122
+ 'monthly_cost': !exists(json, 'monthly_cost') ? undefined : json['monthly_cost'],
116
123
  'phone_number': !exists(json, 'phone_number') ? undefined : json['phone_number'],
117
124
  'region': !exists(json, 'region') ? undefined : json['region'],
118
125
  'sms': !exists(json, 'sms') ? undefined : json['sms'],
@@ -134,6 +141,7 @@ export function ConversationPbxAvailablePhoneNumberToJSON(value?: ConversationPb
134
141
  'friendly_name': value.friendly_name,
135
142
  'locality': value.locality,
136
143
  'mms': value.mms,
144
+ 'monthly_cost': value.monthly_cost,
137
145
  'phone_number': value.phone_number,
138
146
  'region': value.region,
139
147
  'sms': value.sms,
@@ -31,6 +31,12 @@ export interface ConversationPbxPhoneNumber {
31
31
  * @memberof ConversationPbxPhoneNumber
32
32
  */
33
33
  action_target?: string;
34
+ /**
35
+ * Twilio Address SID linked to this phone number for regulatory compliance
36
+ * @type {string}
37
+ * @memberof ConversationPbxPhoneNumber
38
+ */
39
+ address_sid?: string;
34
40
  /**
35
41
  * Conversation Pbx Phone Number UUID
36
42
  * @type {string}
@@ -93,6 +99,7 @@ export function ConversationPbxPhoneNumberFromJSONTyped(json: any, ignoreDiscrim
93
99
 
94
100
  'action': !exists(json, 'action') ? undefined : json['action'],
95
101
  'action_target': !exists(json, 'action_target') ? undefined : json['action_target'],
102
+ 'address_sid': !exists(json, 'address_sid') ? undefined : json['address_sid'],
96
103
  'conversation_pbx_phone_number_uuid': !exists(json, 'conversation_pbx_phone_number_uuid') ? undefined : json['conversation_pbx_phone_number_uuid'],
97
104
  'deletion_protected': !exists(json, 'deletion_protected') ? undefined : json['deletion_protected'],
98
105
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
@@ -111,6 +118,7 @@ export function ConversationPbxPhoneNumberToJSON(value?: ConversationPbxPhoneNum
111
118
 
112
119
  'action': value.action,
113
120
  'action_target': value.action_target,
121
+ 'address_sid': value.address_sid,
114
122
  'conversation_pbx_phone_number_uuid': value.conversation_pbx_phone_number_uuid,
115
123
  'deletion_protected': value.deletion_protected,
116
124
  'merchant_id': value.merchant_id,
@@ -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),