ultracart_rest_api_v2_typescript 3.10.177 → 3.10.179
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 +4 -2
- package/api.ts +49 -6
- package/dist/api.d.ts +49 -6
- package/dist/api.js +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.10.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.10.179
|
|
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@3.10.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.10.179 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.10.179 | 01/10/2024 | workflow task - add uuids of related tasks and tags |
|
|
58
|
+
| 3.10.178 | 01/03/2024 | workflow - add task_context field to task obj |
|
|
57
59
|
| 3.10.177 | 12/15/2023 | bug fix on bad docs breaking yaml schema |
|
|
58
60
|
| 3.10.176 | 12/12/2023 | webhook - added event ruler property |
|
|
59
61
|
| 3.10.175 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
|
package/api.ts
CHANGED
|
@@ -5107,6 +5107,18 @@ export interface CartSummary {
|
|
|
5107
5107
|
* @memberof CartSummary
|
|
5108
5108
|
*/
|
|
5109
5109
|
health_benefit_card_amount?: Currency;
|
|
5110
|
+
/**
|
|
5111
|
+
*
|
|
5112
|
+
* @type {Currency}
|
|
5113
|
+
* @memberof CartSummary
|
|
5114
|
+
*/
|
|
5115
|
+
health_benefit_card_balance?: Currency;
|
|
5116
|
+
/**
|
|
5117
|
+
* Health benefit card requirements
|
|
5118
|
+
* @type {string}
|
|
5119
|
+
* @memberof CartSummary
|
|
5120
|
+
*/
|
|
5121
|
+
health_benefit_card_requirements?: string;
|
|
5110
5122
|
/**
|
|
5111
5123
|
*
|
|
5112
5124
|
* @type {Currency}
|
|
@@ -41411,6 +41423,12 @@ export interface WorkflowTask {
|
|
|
41411
41423
|
* @memberof WorkflowTask
|
|
41412
41424
|
*/
|
|
41413
41425
|
delay_until_dts?: string;
|
|
41426
|
+
/**
|
|
41427
|
+
* Dependant Workflow Task UUID (must be completed before this task can be completed)
|
|
41428
|
+
* @type {string}
|
|
41429
|
+
* @memberof WorkflowTask
|
|
41430
|
+
*/
|
|
41431
|
+
dependant_workflow_task_uuid?: string;
|
|
41414
41432
|
/**
|
|
41415
41433
|
* Date/time that the workflow task is due
|
|
41416
41434
|
* @type {string}
|
|
@@ -41471,12 +41489,30 @@ export interface WorkflowTask {
|
|
|
41471
41489
|
* @memberof WorkflowTask
|
|
41472
41490
|
*/
|
|
41473
41491
|
priority?: WorkflowTask.PriorityEnum;
|
|
41492
|
+
/**
|
|
41493
|
+
* Related Workflow Task UUID
|
|
41494
|
+
* @type {string}
|
|
41495
|
+
* @memberof WorkflowTask
|
|
41496
|
+
*/
|
|
41497
|
+
related_workflow_task_uuid?: string;
|
|
41474
41498
|
/**
|
|
41475
41499
|
* Status of the workflow task
|
|
41476
41500
|
* @type {string}
|
|
41477
41501
|
* @memberof WorkflowTask
|
|
41478
41502
|
*/
|
|
41479
41503
|
status?: WorkflowTask.StatusEnum;
|
|
41504
|
+
/**
|
|
41505
|
+
* Tags
|
|
41506
|
+
* @type {Array<string>}
|
|
41507
|
+
* @memberof WorkflowTask
|
|
41508
|
+
*/
|
|
41509
|
+
tags?: Array<string>;
|
|
41510
|
+
/**
|
|
41511
|
+
* User friendly string of the task context
|
|
41512
|
+
* @type {string}
|
|
41513
|
+
* @memberof WorkflowTask
|
|
41514
|
+
*/
|
|
41515
|
+
task_context?: string;
|
|
41480
41516
|
/**
|
|
41481
41517
|
* Task Details
|
|
41482
41518
|
* @type {string}
|
|
@@ -41510,7 +41546,8 @@ export namespace WorkflowTask {
|
|
|
41510
41546
|
Order = <any> 'order',
|
|
41511
41547
|
AutoOrder = <any> 'auto order',
|
|
41512
41548
|
Item = <any> 'item',
|
|
41513
|
-
CustomerProfile = <any> 'customer profile'
|
|
41549
|
+
CustomerProfile = <any> 'customer profile',
|
|
41550
|
+
Storefront = <any> 'storefront'
|
|
41514
41551
|
}
|
|
41515
41552
|
/**
|
|
41516
41553
|
* @export
|
|
@@ -41775,6 +41812,12 @@ export interface WorkflowTasksResponse {
|
|
|
41775
41812
|
* @memberof WorkflowTasksResponse
|
|
41776
41813
|
*/
|
|
41777
41814
|
success?: boolean;
|
|
41815
|
+
/**
|
|
41816
|
+
* User friendly string of the task context if querying for a specific object type/id
|
|
41817
|
+
* @type {string}
|
|
41818
|
+
* @memberof WorkflowTasksResponse
|
|
41819
|
+
*/
|
|
41820
|
+
task_context?: string;
|
|
41778
41821
|
/**
|
|
41779
41822
|
* tasks
|
|
41780
41823
|
* @type {Array<WorkflowTask>}
|
|
@@ -64623,7 +64666,7 @@ export const OrderApiFetchParamCreator = function (configuration?: Configuration
|
|
|
64623
64666
|
};
|
|
64624
64667
|
},
|
|
64625
64668
|
/**
|
|
64626
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
64669
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
64627
64670
|
* @summary Refund an order
|
|
64628
64671
|
* @param {Order} order Order to refund
|
|
64629
64672
|
* @param {string} order_id The order id to refund.
|
|
@@ -65534,7 +65577,7 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
|
65534
65577
|
};
|
|
65535
65578
|
},
|
|
65536
65579
|
/**
|
|
65537
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
65580
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
65538
65581
|
* @summary Refund an order
|
|
65539
65582
|
* @param {Order} order Order to refund
|
|
65540
65583
|
* @param {string} order_id The order id to refund.
|
|
@@ -65946,7 +65989,7 @@ export const OrderApiFactory = function (configuration?: Configuration, fetch?:
|
|
|
65946
65989
|
return OrderApiFp(configuration).processPayment(order_id, process_payment_request, options)(fetch, basePath);
|
|
65947
65990
|
},
|
|
65948
65991
|
/**
|
|
65949
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
65992
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
65950
65993
|
* @summary Refund an order
|
|
65951
65994
|
* @param {Order} order Order to refund
|
|
65952
65995
|
* @param {string} order_id The order id to refund.
|
|
@@ -66281,7 +66324,7 @@ export interface OrderApiInterface {
|
|
|
66281
66324
|
processPayment(order_id: string, process_payment_request: OrderProcessPaymentRequest, options?: any): Promise<OrderProcessPaymentResponse>;
|
|
66282
66325
|
|
|
66283
66326
|
/**
|
|
66284
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
66327
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
66285
66328
|
* @summary Refund an order
|
|
66286
66329
|
* @param {Order} order Order to refund
|
|
66287
66330
|
* @param {string} order_id The order id to refund.
|
|
@@ -66656,7 +66699,7 @@ export class OrderApi extends BaseAPI implements OrderApiInterface {
|
|
|
66656
66699
|
}
|
|
66657
66700
|
|
|
66658
66701
|
/**
|
|
66659
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
66702
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
66660
66703
|
* @summary Refund an order
|
|
66661
66704
|
* @param {Order} order Order to refund
|
|
66662
66705
|
* @param {string} order_id The order id to refund.
|
package/dist/api.d.ts
CHANGED
|
@@ -4983,6 +4983,18 @@ export interface CartSummary {
|
|
|
4983
4983
|
* @memberof CartSummary
|
|
4984
4984
|
*/
|
|
4985
4985
|
health_benefit_card_amount?: Currency;
|
|
4986
|
+
/**
|
|
4987
|
+
*
|
|
4988
|
+
* @type {Currency}
|
|
4989
|
+
* @memberof CartSummary
|
|
4990
|
+
*/
|
|
4991
|
+
health_benefit_card_balance?: Currency;
|
|
4992
|
+
/**
|
|
4993
|
+
* Health benefit card requirements
|
|
4994
|
+
* @type {string}
|
|
4995
|
+
* @memberof CartSummary
|
|
4996
|
+
*/
|
|
4997
|
+
health_benefit_card_requirements?: string;
|
|
4986
4998
|
/**
|
|
4987
4999
|
*
|
|
4988
5000
|
* @type {Currency}
|
|
@@ -40532,6 +40544,12 @@ export interface WorkflowTask {
|
|
|
40532
40544
|
* @memberof WorkflowTask
|
|
40533
40545
|
*/
|
|
40534
40546
|
delay_until_dts?: string;
|
|
40547
|
+
/**
|
|
40548
|
+
* Dependant Workflow Task UUID (must be completed before this task can be completed)
|
|
40549
|
+
* @type {string}
|
|
40550
|
+
* @memberof WorkflowTask
|
|
40551
|
+
*/
|
|
40552
|
+
dependant_workflow_task_uuid?: string;
|
|
40535
40553
|
/**
|
|
40536
40554
|
* Date/time that the workflow task is due
|
|
40537
40555
|
* @type {string}
|
|
@@ -40592,12 +40610,30 @@ export interface WorkflowTask {
|
|
|
40592
40610
|
* @memberof WorkflowTask
|
|
40593
40611
|
*/
|
|
40594
40612
|
priority?: WorkflowTask.PriorityEnum;
|
|
40613
|
+
/**
|
|
40614
|
+
* Related Workflow Task UUID
|
|
40615
|
+
* @type {string}
|
|
40616
|
+
* @memberof WorkflowTask
|
|
40617
|
+
*/
|
|
40618
|
+
related_workflow_task_uuid?: string;
|
|
40595
40619
|
/**
|
|
40596
40620
|
* Status of the workflow task
|
|
40597
40621
|
* @type {string}
|
|
40598
40622
|
* @memberof WorkflowTask
|
|
40599
40623
|
*/
|
|
40600
40624
|
status?: WorkflowTask.StatusEnum;
|
|
40625
|
+
/**
|
|
40626
|
+
* Tags
|
|
40627
|
+
* @type {Array<string>}
|
|
40628
|
+
* @memberof WorkflowTask
|
|
40629
|
+
*/
|
|
40630
|
+
tags?: Array<string>;
|
|
40631
|
+
/**
|
|
40632
|
+
* User friendly string of the task context
|
|
40633
|
+
* @type {string}
|
|
40634
|
+
* @memberof WorkflowTask
|
|
40635
|
+
*/
|
|
40636
|
+
task_context?: string;
|
|
40601
40637
|
/**
|
|
40602
40638
|
* Task Details
|
|
40603
40639
|
* @type {string}
|
|
@@ -40630,7 +40666,8 @@ export declare namespace WorkflowTask {
|
|
|
40630
40666
|
Order,
|
|
40631
40667
|
AutoOrder,
|
|
40632
40668
|
Item,
|
|
40633
|
-
CustomerProfile
|
|
40669
|
+
CustomerProfile,
|
|
40670
|
+
Storefront
|
|
40634
40671
|
}
|
|
40635
40672
|
/**
|
|
40636
40673
|
* @export
|
|
@@ -40890,6 +40927,12 @@ export interface WorkflowTasksResponse {
|
|
|
40890
40927
|
* @memberof WorkflowTasksResponse
|
|
40891
40928
|
*/
|
|
40892
40929
|
success?: boolean;
|
|
40930
|
+
/**
|
|
40931
|
+
* User friendly string of the task context if querying for a specific object type/id
|
|
40932
|
+
* @type {string}
|
|
40933
|
+
* @memberof WorkflowTasksResponse
|
|
40934
|
+
*/
|
|
40935
|
+
task_context?: string;
|
|
40893
40936
|
/**
|
|
40894
40937
|
* tasks
|
|
40895
40938
|
* @type {Array<WorkflowTask>}
|
|
@@ -50122,7 +50165,7 @@ export declare const OrderApiFetchParamCreator: (configuration?: Configuration)
|
|
|
50122
50165
|
*/
|
|
50123
50166
|
processPayment(order_id: string, process_payment_request: OrderProcessPaymentRequest, options?: any): FetchArgs;
|
|
50124
50167
|
/**
|
|
50125
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
50168
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
50126
50169
|
* @summary Refund an order
|
|
50127
50170
|
* @param {Order} order Order to refund
|
|
50128
50171
|
* @param {string} order_id The order id to refund.
|
|
@@ -50400,7 +50443,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
50400
50443
|
*/
|
|
50401
50444
|
processPayment(order_id: string, process_payment_request: OrderProcessPaymentRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderProcessPaymentResponse>;
|
|
50402
50445
|
/**
|
|
50403
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
50446
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
50404
50447
|
* @summary Refund an order
|
|
50405
50448
|
* @param {Order} order Order to refund
|
|
50406
50449
|
* @param {string} order_id The order id to refund.
|
|
@@ -50678,7 +50721,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
50678
50721
|
*/
|
|
50679
50722
|
processPayment(order_id: string, process_payment_request: OrderProcessPaymentRequest, options?: any): Promise<OrderProcessPaymentResponse>;
|
|
50680
50723
|
/**
|
|
50681
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
50724
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
50682
50725
|
* @summary Refund an order
|
|
50683
50726
|
* @param {Order} order Order to refund
|
|
50684
50727
|
* @param {string} order_id The order id to refund.
|
|
@@ -50977,7 +51020,7 @@ export interface OrderApiInterface {
|
|
|
50977
51020
|
*/
|
|
50978
51021
|
processPayment(order_id: string, process_payment_request: OrderProcessPaymentRequest, options?: any): Promise<OrderProcessPaymentResponse>;
|
|
50979
51022
|
/**
|
|
50980
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
51023
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
50981
51024
|
* @summary Refund an order
|
|
50982
51025
|
* @param {Order} order Order to refund
|
|
50983
51026
|
* @param {string} order_id The order id to refund.
|
|
@@ -51284,7 +51327,7 @@ export declare class OrderApi extends BaseAPI implements OrderApiInterface {
|
|
|
51284
51327
|
*/
|
|
51285
51328
|
processPayment(order_id: string, process_payment_request: OrderProcessPaymentRequest, options?: any): Promise<OrderProcessPaymentResponse>;
|
|
51286
51329
|
/**
|
|
51287
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
51330
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
51288
51331
|
* @summary Refund an order
|
|
51289
51332
|
* @param {Order} order Order to refund
|
|
51290
51333
|
* @param {string} order_id The order id to refund.
|
package/dist/api.js
CHANGED
|
@@ -1592,6 +1592,7 @@ var WorkflowTask;
|
|
|
1592
1592
|
ObjectTypeEnum[ObjectTypeEnum["AutoOrder"] = 'auto order'] = "AutoOrder";
|
|
1593
1593
|
ObjectTypeEnum[ObjectTypeEnum["Item"] = 'item'] = "Item";
|
|
1594
1594
|
ObjectTypeEnum[ObjectTypeEnum["CustomerProfile"] = 'customer profile'] = "CustomerProfile";
|
|
1595
|
+
ObjectTypeEnum[ObjectTypeEnum["Storefront"] = 'storefront'] = "Storefront";
|
|
1595
1596
|
})(ObjectTypeEnum = WorkflowTask.ObjectTypeEnum || (WorkflowTask.ObjectTypeEnum = {}));
|
|
1596
1597
|
/**
|
|
1597
1598
|
* @export
|
|
@@ -20847,7 +20848,7 @@ var OrderApiFetchParamCreator = function (configuration) {
|
|
|
20847
20848
|
};
|
|
20848
20849
|
},
|
|
20849
20850
|
/**
|
|
20850
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
20851
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
20851
20852
|
* @summary Refund an order
|
|
20852
20853
|
* @param {Order} order Order to refund
|
|
20853
20854
|
* @param {string} order_id The order id to refund.
|
|
@@ -21723,7 +21724,7 @@ var OrderApiFp = function (configuration) {
|
|
|
21723
21724
|
};
|
|
21724
21725
|
},
|
|
21725
21726
|
/**
|
|
21726
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
21727
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
21727
21728
|
* @summary Refund an order
|
|
21728
21729
|
* @param {Order} order Order to refund
|
|
21729
21730
|
* @param {string} order_id The order id to refund.
|
|
@@ -22142,7 +22143,7 @@ var OrderApiFactory = function (configuration, fetch, basePath) {
|
|
|
22142
22143
|
return (0, exports.OrderApiFp)(configuration).processPayment(order_id, process_payment_request, options)(fetch, basePath);
|
|
22143
22144
|
},
|
|
22144
22145
|
/**
|
|
22145
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
22146
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
22146
22147
|
* @summary Refund an order
|
|
22147
22148
|
* @param {Order} order Order to refund
|
|
22148
22149
|
* @param {string} order_id The order id to refund.
|
|
@@ -22502,7 +22503,7 @@ var OrderApi = /** @class */ (function (_super) {
|
|
|
22502
22503
|
return (0, exports.OrderApiFp)(this.configuration).processPayment(order_id, process_payment_request, options)(this.fetch, this.basePath);
|
|
22503
22504
|
};
|
|
22504
22505
|
/**
|
|
22505
|
-
* Perform a refund operation on an order and then update the order if successful
|
|
22506
|
+
* Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
|
22506
22507
|
* @summary Refund an order
|
|
22507
22508
|
* @param {Order} order Order to refund
|
|
22508
22509
|
* @param {string} order_id The order id to refund.
|