ultracart_rest_api_v2_typescript 4.0.121-RC → 4.0.122-RC

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,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.121-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.122-RC
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install ultracart_rest_api_v2_typescript@4.0.121-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.122-RC --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.0.122-RC | 01/24/2023 | auto order - cancel minimum and change balance options |
57
58
  | 4.0.121-RC | 01/23/2023 | conversation - method to fetch single engagement record |
58
59
  | 4.0.120-RC | 01/19/2023 | added skip_on_rebill field to coupon object |
59
60
  | 4.0.119-RC | 01/19/2023 | convo - getConversationPermissions added |
@@ -28,6 +28,12 @@ export interface ItemAutoOrder {
28
28
  * @memberof ItemAutoOrder
29
29
  */
30
30
  auth_test_amount?: number;
31
+ /**
32
+ * If true, the cost of the cancel item will be the remaining balance of the minimum rebill or lifetime value
33
+ * @type {boolean}
34
+ * @memberof ItemAutoOrder
35
+ */
36
+ auto_order_cancel_charge_minimum_balance?: boolean;
31
37
  /**
32
38
  * Item id to attempt charging the customer for if they cancel
33
39
  * @type {string}
@@ -40,6 +46,18 @@ export interface ItemAutoOrder {
40
46
  * @memberof ItemAutoOrder
41
47
  */
42
48
  auto_order_cancel_item_oid?: number;
49
+ /**
50
+ * The minimum life time value that must be paid in order to not be charged the cancellation item.
51
+ * @type {number}
52
+ * @memberof ItemAutoOrder
53
+ */
54
+ auto_order_cancel_minimum_life_time_value?: number;
55
+ /**
56
+ * The minimum rebill value that must be paid in order to not be charged the cancellation item.
57
+ * @type {number}
58
+ * @memberof ItemAutoOrder
59
+ */
60
+ auto_order_cancel_minimum_rebill_value?: number;
43
61
  /**
44
62
  * List of downgrade items presented to customer service representatives
45
63
  * @type {Array<string>}
@@ -27,8 +27,11 @@ function ItemAutoOrderFromJSONTyped(json, ignoreDiscriminator) {
27
27
  return {
28
28
  'auth_future_amount': !(0, runtime_1.exists)(json, 'auth_future_amount') ? undefined : json['auth_future_amount'],
29
29
  'auth_test_amount': !(0, runtime_1.exists)(json, 'auth_test_amount') ? undefined : json['auth_test_amount'],
30
+ 'auto_order_cancel_charge_minimum_balance': !(0, runtime_1.exists)(json, 'auto_order_cancel_charge_minimum_balance') ? undefined : json['auto_order_cancel_charge_minimum_balance'],
30
31
  'auto_order_cancel_item_id': !(0, runtime_1.exists)(json, 'auto_order_cancel_item_id') ? undefined : json['auto_order_cancel_item_id'],
31
32
  'auto_order_cancel_item_oid': !(0, runtime_1.exists)(json, 'auto_order_cancel_item_oid') ? undefined : json['auto_order_cancel_item_oid'],
33
+ 'auto_order_cancel_minimum_life_time_value': !(0, runtime_1.exists)(json, 'auto_order_cancel_minimum_life_time_value') ? undefined : json['auto_order_cancel_minimum_life_time_value'],
34
+ 'auto_order_cancel_minimum_rebill_value': !(0, runtime_1.exists)(json, 'auto_order_cancel_minimum_rebill_value') ? undefined : json['auto_order_cancel_minimum_rebill_value'],
32
35
  'auto_order_downgrade_items': !(0, runtime_1.exists)(json, 'auto_order_downgrade_items') ? undefined : json['auto_order_downgrade_items'],
33
36
  'auto_order_paused': !(0, runtime_1.exists)(json, 'auto_order_paused') ? undefined : json['auto_order_paused'],
34
37
  'auto_order_prohibit_expiring_cards': !(0, runtime_1.exists)(json, 'auto_order_prohibit_expiring_cards') ? undefined : json['auto_order_prohibit_expiring_cards'],
@@ -55,8 +58,11 @@ function ItemAutoOrderToJSON(value) {
55
58
  return {
56
59
  'auth_future_amount': value.auth_future_amount,
57
60
  'auth_test_amount': value.auth_test_amount,
61
+ 'auto_order_cancel_charge_minimum_balance': value.auto_order_cancel_charge_minimum_balance,
58
62
  'auto_order_cancel_item_id': value.auto_order_cancel_item_id,
59
63
  'auto_order_cancel_item_oid': value.auto_order_cancel_item_oid,
64
+ 'auto_order_cancel_minimum_life_time_value': value.auto_order_cancel_minimum_life_time_value,
65
+ 'auto_order_cancel_minimum_rebill_value': value.auto_order_cancel_minimum_rebill_value,
60
66
  'auto_order_downgrade_items': value.auto_order_downgrade_items,
61
67
  'auto_order_paused': value.auto_order_paused,
62
68
  'auto_order_prohibit_expiring_cards': value.auto_order_prohibit_expiring_cards,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.121-RC",
3
+ "version": "4.0.122-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -38,6 +38,12 @@ export interface ItemAutoOrder {
38
38
  * @memberof ItemAutoOrder
39
39
  */
40
40
  auth_test_amount?: number;
41
+ /**
42
+ * If true, the cost of the cancel item will be the remaining balance of the minimum rebill or lifetime value
43
+ * @type {boolean}
44
+ * @memberof ItemAutoOrder
45
+ */
46
+ auto_order_cancel_charge_minimum_balance?: boolean;
41
47
  /**
42
48
  * Item id to attempt charging the customer for if they cancel
43
49
  * @type {string}
@@ -50,6 +56,18 @@ export interface ItemAutoOrder {
50
56
  * @memberof ItemAutoOrder
51
57
  */
52
58
  auto_order_cancel_item_oid?: number;
59
+ /**
60
+ * The minimum life time value that must be paid in order to not be charged the cancellation item.
61
+ * @type {number}
62
+ * @memberof ItemAutoOrder
63
+ */
64
+ auto_order_cancel_minimum_life_time_value?: number;
65
+ /**
66
+ * The minimum rebill value that must be paid in order to not be charged the cancellation item.
67
+ * @type {number}
68
+ * @memberof ItemAutoOrder
69
+ */
70
+ auto_order_cancel_minimum_rebill_value?: number;
53
71
  /**
54
72
  * List of downgrade items presented to customer service representatives
55
73
  * @type {Array<string>}
@@ -142,8 +160,11 @@ export function ItemAutoOrderFromJSONTyped(json: any, ignoreDiscriminator: boole
142
160
 
143
161
  'auth_future_amount': !exists(json, 'auth_future_amount') ? undefined : json['auth_future_amount'],
144
162
  'auth_test_amount': !exists(json, 'auth_test_amount') ? undefined : json['auth_test_amount'],
163
+ 'auto_order_cancel_charge_minimum_balance': !exists(json, 'auto_order_cancel_charge_minimum_balance') ? undefined : json['auto_order_cancel_charge_minimum_balance'],
145
164
  'auto_order_cancel_item_id': !exists(json, 'auto_order_cancel_item_id') ? undefined : json['auto_order_cancel_item_id'],
146
165
  'auto_order_cancel_item_oid': !exists(json, 'auto_order_cancel_item_oid') ? undefined : json['auto_order_cancel_item_oid'],
166
+ 'auto_order_cancel_minimum_life_time_value': !exists(json, 'auto_order_cancel_minimum_life_time_value') ? undefined : json['auto_order_cancel_minimum_life_time_value'],
167
+ 'auto_order_cancel_minimum_rebill_value': !exists(json, 'auto_order_cancel_minimum_rebill_value') ? undefined : json['auto_order_cancel_minimum_rebill_value'],
147
168
  'auto_order_downgrade_items': !exists(json, 'auto_order_downgrade_items') ? undefined : json['auto_order_downgrade_items'],
148
169
  'auto_order_paused': !exists(json, 'auto_order_paused') ? undefined : json['auto_order_paused'],
149
170
  'auto_order_prohibit_expiring_cards': !exists(json, 'auto_order_prohibit_expiring_cards') ? undefined : json['auto_order_prohibit_expiring_cards'],
@@ -171,8 +192,11 @@ export function ItemAutoOrderToJSON(value?: ItemAutoOrder | null): any {
171
192
 
172
193
  'auth_future_amount': value.auth_future_amount,
173
194
  'auth_test_amount': value.auth_test_amount,
195
+ 'auto_order_cancel_charge_minimum_balance': value.auto_order_cancel_charge_minimum_balance,
174
196
  'auto_order_cancel_item_id': value.auto_order_cancel_item_id,
175
197
  'auto_order_cancel_item_oid': value.auto_order_cancel_item_oid,
198
+ 'auto_order_cancel_minimum_life_time_value': value.auto_order_cancel_minimum_life_time_value,
199
+ 'auto_order_cancel_minimum_rebill_value': value.auto_order_cancel_minimum_rebill_value,
176
200
  'auto_order_downgrade_items': value.auto_order_downgrade_items,
177
201
  'auto_order_paused': value.auto_order_paused,
178
202
  'auto_order_prohibit_expiring_cards': value.auto_order_prohibit_expiring_cards,