ultracart_rest_api_v2_typescript 4.1.127 → 4.1.128

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.127
2
+ ## ultracart_rest_api_v2_typescript@4.1.128
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.127 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.128 --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.128 | 08/13/2026 | channel partner - added arbitrary discount to ChannelPartnerOrder |
88
89
  | 4.1.127 | 08/13/2026 | added arbitrary discounts to order creation for historical imports |
89
90
  | 4.1.126 | 08/10/2026 | oauth - add /oauth/me method to assist application in indentifying the connected account |
90
91
  | 4.1.125 | 08/06/2026 | order api - ability to query by bin and last 4 in unlimited scenarios for chargeback order association |
@@ -41,6 +41,12 @@ export interface ChannelPartnerOrder {
41
41
  * @memberof ChannelPartnerOrder
42
42
  */
43
43
  arbitrary_shipping_handling_total?: number;
44
+ /**
45
+ * Arbitrary subtotal discount for overriding the calculated subtotal discount. Send the gross price in the item arbitrary unit cost and the discount here.
46
+ * @type {number}
47
+ * @memberof ChannelPartnerOrder
48
+ */
49
+ arbitrary_subtotal_discount?: number;
44
50
  /**
45
51
  * Arbitrary tax for overriding calculated taxes
46
52
  * @type {number}
@@ -59,6 +65,12 @@ export interface ChannelPartnerOrder {
59
65
  * @memberof ChannelPartnerOrder
60
66
  */
61
67
  arbitrary_taxable_subtotal?: number;
68
+ /**
69
+ * Arbitrary taxable subtotal discount. If an arbitrary subtotal discount is supplied without this field, the arbitrary subtotal discount is used for both.
70
+ * @type {number}
71
+ * @memberof ChannelPartnerOrder
72
+ */
73
+ arbitrary_taxable_subtotal_discount?: number;
62
74
  /**
63
75
  * If true any matching customer profile based on email is associated with this order
64
76
  * @type {boolean}
@@ -70,9 +70,11 @@ function ChannelPartnerOrderFromJSONTyped(json, ignoreDiscriminator) {
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
72
  'arbitrary_shipping_handling_total': !(0, runtime_1.exists)(json, 'arbitrary_shipping_handling_total') ? undefined : json['arbitrary_shipping_handling_total'],
73
+ 'arbitrary_subtotal_discount': !(0, runtime_1.exists)(json, 'arbitrary_subtotal_discount') ? undefined : json['arbitrary_subtotal_discount'],
73
74
  'arbitrary_tax': !(0, runtime_1.exists)(json, 'arbitrary_tax') ? undefined : json['arbitrary_tax'],
74
75
  'arbitrary_tax_rate': !(0, runtime_1.exists)(json, 'arbitrary_tax_rate') ? undefined : json['arbitrary_tax_rate'],
75
76
  'arbitrary_taxable_subtotal': !(0, runtime_1.exists)(json, 'arbitrary_taxable_subtotal') ? undefined : json['arbitrary_taxable_subtotal'],
77
+ 'arbitrary_taxable_subtotal_discount': !(0, runtime_1.exists)(json, 'arbitrary_taxable_subtotal_discount') ? undefined : json['arbitrary_taxable_subtotal_discount'],
76
78
  'associate_with_customer_profile_if_present': !(0, runtime_1.exists)(json, 'associate_with_customer_profile_if_present') ? undefined : json['associate_with_customer_profile_if_present'],
77
79
  'auto_approve_purchase_order': !(0, runtime_1.exists)(json, 'auto_approve_purchase_order') ? undefined : json['auto_approve_purchase_order'],
78
80
  'billto_address1': !(0, runtime_1.exists)(json, 'billto_address1') ? undefined : json['billto_address1'],
@@ -175,9 +177,11 @@ function ChannelPartnerOrderToJSON(value) {
175
177
  'affiliate_id': value.affiliate_id,
176
178
  'affiliate_sub_id': value.affiliate_sub_id,
177
179
  'arbitrary_shipping_handling_total': value.arbitrary_shipping_handling_total,
180
+ 'arbitrary_subtotal_discount': value.arbitrary_subtotal_discount,
178
181
  'arbitrary_tax': value.arbitrary_tax,
179
182
  'arbitrary_tax_rate': value.arbitrary_tax_rate,
180
183
  'arbitrary_taxable_subtotal': value.arbitrary_taxable_subtotal,
184
+ 'arbitrary_taxable_subtotal_discount': value.arbitrary_taxable_subtotal_discount,
181
185
  'associate_with_customer_profile_if_present': value.associate_with_customer_profile_if_present,
182
186
  'auto_approve_purchase_order': value.auto_approve_purchase_order,
183
187
  'billto_address1': value.billto_address1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.127",
3
+ "version": "4.1.128",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -56,6 +56,12 @@ export interface ChannelPartnerOrder {
56
56
  * @memberof ChannelPartnerOrder
57
57
  */
58
58
  arbitrary_shipping_handling_total?: number;
59
+ /**
60
+ * Arbitrary subtotal discount for overriding the calculated subtotal discount. Send the gross price in the item arbitrary unit cost and the discount here.
61
+ * @type {number}
62
+ * @memberof ChannelPartnerOrder
63
+ */
64
+ arbitrary_subtotal_discount?: number;
59
65
  /**
60
66
  * Arbitrary tax for overriding calculated taxes
61
67
  * @type {number}
@@ -74,6 +80,12 @@ export interface ChannelPartnerOrder {
74
80
  * @memberof ChannelPartnerOrder
75
81
  */
76
82
  arbitrary_taxable_subtotal?: number;
83
+ /**
84
+ * Arbitrary taxable subtotal discount. If an arbitrary subtotal discount is supplied without this field, the arbitrary subtotal discount is used for both.
85
+ * @type {number}
86
+ * @memberof ChannelPartnerOrder
87
+ */
88
+ arbitrary_taxable_subtotal_discount?: number;
77
89
  /**
78
90
  * If true any matching customer profile based on email is associated with this order
79
91
  * @type {boolean}
@@ -662,9 +674,11 @@ export function ChannelPartnerOrderFromJSONTyped(json: any, ignoreDiscriminator:
662
674
  'affiliate_id': !exists(json, 'affiliate_id') ? undefined : json['affiliate_id'],
663
675
  'affiliate_sub_id': !exists(json, 'affiliate_sub_id') ? undefined : json['affiliate_sub_id'],
664
676
  'arbitrary_shipping_handling_total': !exists(json, 'arbitrary_shipping_handling_total') ? undefined : json['arbitrary_shipping_handling_total'],
677
+ 'arbitrary_subtotal_discount': !exists(json, 'arbitrary_subtotal_discount') ? undefined : json['arbitrary_subtotal_discount'],
665
678
  'arbitrary_tax': !exists(json, 'arbitrary_tax') ? undefined : json['arbitrary_tax'],
666
679
  'arbitrary_tax_rate': !exists(json, 'arbitrary_tax_rate') ? undefined : json['arbitrary_tax_rate'],
667
680
  'arbitrary_taxable_subtotal': !exists(json, 'arbitrary_taxable_subtotal') ? undefined : json['arbitrary_taxable_subtotal'],
681
+ 'arbitrary_taxable_subtotal_discount': !exists(json, 'arbitrary_taxable_subtotal_discount') ? undefined : json['arbitrary_taxable_subtotal_discount'],
668
682
  'associate_with_customer_profile_if_present': !exists(json, 'associate_with_customer_profile_if_present') ? undefined : json['associate_with_customer_profile_if_present'],
669
683
  'auto_approve_purchase_order': !exists(json, 'auto_approve_purchase_order') ? undefined : json['auto_approve_purchase_order'],
670
684
  'billto_address1': !exists(json, 'billto_address1') ? undefined : json['billto_address1'],
@@ -768,9 +782,11 @@ export function ChannelPartnerOrderToJSON(value?: ChannelPartnerOrder | null): a
768
782
  'affiliate_id': value.affiliate_id,
769
783
  'affiliate_sub_id': value.affiliate_sub_id,
770
784
  'arbitrary_shipping_handling_total': value.arbitrary_shipping_handling_total,
785
+ 'arbitrary_subtotal_discount': value.arbitrary_subtotal_discount,
771
786
  'arbitrary_tax': value.arbitrary_tax,
772
787
  'arbitrary_tax_rate': value.arbitrary_tax_rate,
773
788
  'arbitrary_taxable_subtotal': value.arbitrary_taxable_subtotal,
789
+ 'arbitrary_taxable_subtotal_discount': value.arbitrary_taxable_subtotal_discount,
774
790
  'associate_with_customer_profile_if_present': value.associate_with_customer_profile_if_present,
775
791
  'auto_approve_purchase_order': value.auto_approve_purchase_order,
776
792
  'billto_address1': value.billto_address1,