ultracart_rest_api_v2_typescript 4.1.136 → 4.1.137

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.136
2
+ ## ultracart_rest_api_v2_typescript@4.1.137
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.136 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.137 --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.137 | 08/24/2026 | order api - arbitrary pricing tier for order creation |
88
89
  | 4.1.136 | 08/24/2026 | customer api - adjust method for loyalty points |
89
90
  | 4.1.135 | 08/21/2026 | conversation pbx - support send text operation as a menu item froma different phone number |
90
91
  | 4.1.134 | 08/21/2026 | conversation - pbx menu mapping for send text |
@@ -35,6 +35,12 @@ export interface ChannelPartnerOrder {
35
35
  * @memberof ChannelPartnerOrder
36
36
  */
37
37
  affiliate_sub_id?: string;
38
+ /**
39
+ * Names of pricing tiers to price this order against, without associating a customer profile. An unknown tier name will fail the import. An item that also supplies arbitrary_unit_cost keeps that cost and ignores the tier. If a customer profile is attached to this order during checkout, these tiers are granted to that profile permanently.
40
+ * @type {Array<string>}
41
+ * @memberof ChannelPartnerOrder
42
+ */
43
+ arbitrary_pricing_tier_names?: Array<string>;
38
44
  /**
39
45
  * Arbitrary shipping handling total
40
46
  * @type {number}
@@ -69,6 +69,7 @@ function ChannelPartnerOrderFromJSONTyped(json, ignoreDiscriminator) {
69
69
  'advertisingSource': !(0, runtime_1.exists)(json, 'advertisingSource') ? undefined : json['advertisingSource'],
70
70
  'affiliate_id': !(0, runtime_1.exists)(json, 'affiliate_id') ? undefined : json['affiliate_id'],
71
71
  'affiliate_sub_id': !(0, runtime_1.exists)(json, 'affiliate_sub_id') ? undefined : json['affiliate_sub_id'],
72
+ 'arbitrary_pricing_tier_names': !(0, runtime_1.exists)(json, 'arbitrary_pricing_tier_names') ? undefined : json['arbitrary_pricing_tier_names'],
72
73
  'arbitrary_shipping_handling_total': !(0, runtime_1.exists)(json, 'arbitrary_shipping_handling_total') ? undefined : json['arbitrary_shipping_handling_total'],
73
74
  'arbitrary_subtotal_discount': !(0, runtime_1.exists)(json, 'arbitrary_subtotal_discount') ? undefined : json['arbitrary_subtotal_discount'],
74
75
  'arbitrary_tax': !(0, runtime_1.exists)(json, 'arbitrary_tax') ? undefined : json['arbitrary_tax'],
@@ -177,6 +178,7 @@ function ChannelPartnerOrderToJSON(value) {
177
178
  'advertisingSource': value.advertisingSource,
178
179
  'affiliate_id': value.affiliate_id,
179
180
  'affiliate_sub_id': value.affiliate_sub_id,
181
+ 'arbitrary_pricing_tier_names': value.arbitrary_pricing_tier_names,
180
182
  'arbitrary_shipping_handling_total': value.arbitrary_shipping_handling_total,
181
183
  'arbitrary_subtotal_discount': value.arbitrary_subtotal_discount,
182
184
  'arbitrary_tax': value.arbitrary_tax,
@@ -15,6 +15,12 @@
15
15
  * @interface OrderChannelPartner
16
16
  */
17
17
  export interface OrderChannelPartner {
18
+ /**
19
+ * Names of pricing tiers to price this order against, without associating a customer profile. An unknown tier name will fail the import. An item that also supplies arbitrary_unit_cost keeps that cost and ignores the tier. If a customer profile is attached to this order during checkout, these tiers are granted to that profile permanently. Only applicable on inserting orders.
20
+ * @type {Array<string>}
21
+ * @memberof OrderChannelPartner
22
+ */
23
+ arbitrary_pricing_tier_names?: Array<string>;
18
24
  /**
19
25
  * If true, any purchase order submitted is automatically approved
20
26
  * @type {boolean}
@@ -32,6 +32,7 @@ function OrderChannelPartnerFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return json;
33
33
  }
34
34
  return {
35
+ 'arbitrary_pricing_tier_names': !(0, runtime_1.exists)(json, 'arbitrary_pricing_tier_names') ? undefined : json['arbitrary_pricing_tier_names'],
35
36
  'auto_approve_purchase_order': !(0, runtime_1.exists)(json, 'auto_approve_purchase_order') ? undefined : json['auto_approve_purchase_order'],
36
37
  'channel_partner_code': !(0, runtime_1.exists)(json, 'channel_partner_code') ? undefined : json['channel_partner_code'],
37
38
  'channel_partner_data': !(0, runtime_1.exists)(json, 'channel_partner_data') ? undefined : json['channel_partner_data'],
@@ -55,6 +56,7 @@ function OrderChannelPartnerToJSON(value) {
55
56
  return null;
56
57
  }
57
58
  return {
59
+ 'arbitrary_pricing_tier_names': value.arbitrary_pricing_tier_names,
58
60
  'auto_approve_purchase_order': value.auto_approve_purchase_order,
59
61
  'channel_partner_code': value.channel_partner_code,
60
62
  'channel_partner_data': value.channel_partner_data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.136",
3
+ "version": "4.1.137",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -50,6 +50,12 @@ export interface ChannelPartnerOrder {
50
50
  * @memberof ChannelPartnerOrder
51
51
  */
52
52
  affiliate_sub_id?: string;
53
+ /**
54
+ * Names of pricing tiers to price this order against, without associating a customer profile. An unknown tier name will fail the import. An item that also supplies arbitrary_unit_cost keeps that cost and ignores the tier. If a customer profile is attached to this order during checkout, these tiers are granted to that profile permanently.
55
+ * @type {Array<string>}
56
+ * @memberof ChannelPartnerOrder
57
+ */
58
+ arbitrary_pricing_tier_names?: Array<string>;
53
59
  /**
54
60
  * Arbitrary shipping handling total
55
61
  * @type {number}
@@ -679,6 +685,7 @@ export function ChannelPartnerOrderFromJSONTyped(json: any, ignoreDiscriminator:
679
685
  'advertisingSource': !exists(json, 'advertisingSource') ? undefined : json['advertisingSource'],
680
686
  'affiliate_id': !exists(json, 'affiliate_id') ? undefined : json['affiliate_id'],
681
687
  'affiliate_sub_id': !exists(json, 'affiliate_sub_id') ? undefined : json['affiliate_sub_id'],
688
+ 'arbitrary_pricing_tier_names': !exists(json, 'arbitrary_pricing_tier_names') ? undefined : json['arbitrary_pricing_tier_names'],
682
689
  'arbitrary_shipping_handling_total': !exists(json, 'arbitrary_shipping_handling_total') ? undefined : json['arbitrary_shipping_handling_total'],
683
690
  'arbitrary_subtotal_discount': !exists(json, 'arbitrary_subtotal_discount') ? undefined : json['arbitrary_subtotal_discount'],
684
691
  'arbitrary_tax': !exists(json, 'arbitrary_tax') ? undefined : json['arbitrary_tax'],
@@ -788,6 +795,7 @@ export function ChannelPartnerOrderToJSON(value?: ChannelPartnerOrder | null): a
788
795
  'advertisingSource': value.advertisingSource,
789
796
  'affiliate_id': value.affiliate_id,
790
797
  'affiliate_sub_id': value.affiliate_sub_id,
798
+ 'arbitrary_pricing_tier_names': value.arbitrary_pricing_tier_names,
791
799
  'arbitrary_shipping_handling_total': value.arbitrary_shipping_handling_total,
792
800
  'arbitrary_subtotal_discount': value.arbitrary_subtotal_discount,
793
801
  'arbitrary_tax': value.arbitrary_tax,
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface OrderChannelPartner
20
20
  */
21
21
  export interface OrderChannelPartner {
22
+ /**
23
+ * Names of pricing tiers to price this order against, without associating a customer profile. An unknown tier name will fail the import. An item that also supplies arbitrary_unit_cost keeps that cost and ignores the tier. If a customer profile is attached to this order during checkout, these tiers are granted to that profile permanently. Only applicable on inserting orders.
24
+ * @type {Array<string>}
25
+ * @memberof OrderChannelPartner
26
+ */
27
+ arbitrary_pricing_tier_names?: Array<string>;
22
28
  /**
23
29
  * If true, any purchase order submitted is automatically approved
24
30
  * @type {boolean}
@@ -114,6 +120,7 @@ export function OrderChannelPartnerFromJSONTyped(json: any, ignoreDiscriminator:
114
120
  }
115
121
  return {
116
122
 
123
+ 'arbitrary_pricing_tier_names': !exists(json, 'arbitrary_pricing_tier_names') ? undefined : json['arbitrary_pricing_tier_names'],
117
124
  'auto_approve_purchase_order': !exists(json, 'auto_approve_purchase_order') ? undefined : json['auto_approve_purchase_order'],
118
125
  'channel_partner_code': !exists(json, 'channel_partner_code') ? undefined : json['channel_partner_code'],
119
126
  'channel_partner_data': !exists(json, 'channel_partner_data') ? undefined : json['channel_partner_data'],
@@ -138,6 +145,7 @@ export function OrderChannelPartnerToJSON(value?: OrderChannelPartner | null): a
138
145
  }
139
146
  return {
140
147
 
148
+ 'arbitrary_pricing_tier_names': value.arbitrary_pricing_tier_names,
141
149
  'auto_approve_purchase_order': value.auto_approve_purchase_order,
142
150
  'channel_partner_code': value.channel_partner_code,
143
151
  'channel_partner_data': value.channel_partner_data,