ultracart_rest_api_v2_typescript 4.0.182 → 4.0.183
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/.openapi-generator/FILES +2 -0
- package/README.md +3 -2
- package/dist/models/CartPayment.d.ts +7 -0
- package/dist/models/CartPayment.js +3 -0
- package/dist/models/CartPaymentHealthBenefitCard.d.ts +57 -0
- package/dist/models/CartPaymentHealthBenefitCard.js +52 -0
- package/dist/models/OrderPayment.d.ts +8 -0
- package/dist/models/OrderPayment.js +5 -1
- package/dist/models/OrderPaymentHealthBenefitCard.d.ts +57 -0
- package/dist/models/OrderPaymentHealthBenefitCard.js +52 -0
- package/dist/models/WorkflowTasksRequest.d.ts +7 -1
- package/dist/models/WorkflowTasksRequest.js +4 -2
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/models/CartPayment.ts +14 -0
- package/src/models/CartPaymentHealthBenefitCard.ts +96 -0
- package/src/models/OrderPayment.ts +16 -1
- package/src/models/OrderPaymentHealthBenefitCard.ts +96 -0
- package/src/models/WorkflowTasksRequest.ts +11 -3
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -99,6 +99,7 @@ src/models/CartPaymentAffirm.ts
|
|
|
99
99
|
src/models/CartPaymentAmazon.ts
|
|
100
100
|
src/models/CartPaymentCheck.ts
|
|
101
101
|
src/models/CartPaymentCreditCard.ts
|
|
102
|
+
src/models/CartPaymentHealthBenefitCard.ts
|
|
102
103
|
src/models/CartPaymentPurchaseOrder.ts
|
|
103
104
|
src/models/CartProfileLoginRequest.ts
|
|
104
105
|
src/models/CartProfileLoginResponse.ts
|
|
@@ -618,6 +619,7 @@ src/models/OrderPaymentCreditCard.ts
|
|
|
618
619
|
src/models/OrderPaymentCreditCardDualVaulted.ts
|
|
619
620
|
src/models/OrderPaymentCreditCardDualVaultedProperty.ts
|
|
620
621
|
src/models/OrderPaymentECheck.ts
|
|
622
|
+
src/models/OrderPaymentHealthBenefitCard.ts
|
|
621
623
|
src/models/OrderPaymentInsurance.ts
|
|
622
624
|
src/models/OrderPaymentPurchaseOrder.ts
|
|
623
625
|
src/models/OrderPaymentTransaction.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.183
|
|
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.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.183 --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.183 | 10/27/2023 | workflow task object model refinement |
|
|
57
58
|
| 4.0.182 | 10/23/2023 | workflow tasks api |
|
|
58
59
|
| 4.0.181 | 10/23/2023 | workflow tasks api |
|
|
59
60
|
| 4.0.180 | 10/16/2023 | CartSettingsPaymentCreditCard - add collect_credit_card_verification_number_minimum |
|
|
@@ -13,6 +13,7 @@ import { CartPaymentAffirm } from './CartPaymentAffirm';
|
|
|
13
13
|
import { CartPaymentAmazon } from './CartPaymentAmazon';
|
|
14
14
|
import { CartPaymentCheck } from './CartPaymentCheck';
|
|
15
15
|
import { CartPaymentCreditCard } from './CartPaymentCreditCard';
|
|
16
|
+
import { CartPaymentHealthBenefitCard } from './CartPaymentHealthBenefitCard';
|
|
16
17
|
import { CartPaymentPurchaseOrder } from './CartPaymentPurchaseOrder';
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -44,6 +45,12 @@ export interface CartPayment {
|
|
|
44
45
|
* @memberof CartPayment
|
|
45
46
|
*/
|
|
46
47
|
credit_card?: CartPaymentCreditCard;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {CartPaymentHealthBenefitCard}
|
|
51
|
+
* @memberof CartPayment
|
|
52
|
+
*/
|
|
53
|
+
health_benefit_card?: CartPaymentHealthBenefitCard;
|
|
47
54
|
/**
|
|
48
55
|
* Payment method
|
|
49
56
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ var CartPaymentAffirm_1 = require("./CartPaymentAffirm");
|
|
|
19
19
|
var CartPaymentAmazon_1 = require("./CartPaymentAmazon");
|
|
20
20
|
var CartPaymentCheck_1 = require("./CartPaymentCheck");
|
|
21
21
|
var CartPaymentCreditCard_1 = require("./CartPaymentCreditCard");
|
|
22
|
+
var CartPaymentHealthBenefitCard_1 = require("./CartPaymentHealthBenefitCard");
|
|
22
23
|
var CartPaymentPurchaseOrder_1 = require("./CartPaymentPurchaseOrder");
|
|
23
24
|
function CartPaymentFromJSON(json) {
|
|
24
25
|
return CartPaymentFromJSONTyped(json, false);
|
|
@@ -33,6 +34,7 @@ function CartPaymentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
34
|
'amazon': !(0, runtime_1.exists)(json, 'amazon') ? undefined : (0, CartPaymentAmazon_1.CartPaymentAmazonFromJSON)(json['amazon']),
|
|
34
35
|
'check': !(0, runtime_1.exists)(json, 'check') ? undefined : (0, CartPaymentCheck_1.CartPaymentCheckFromJSON)(json['check']),
|
|
35
36
|
'credit_card': !(0, runtime_1.exists)(json, 'credit_card') ? undefined : (0, CartPaymentCreditCard_1.CartPaymentCreditCardFromJSON)(json['credit_card']),
|
|
37
|
+
'health_benefit_card': !(0, runtime_1.exists)(json, 'health_benefit_card') ? undefined : (0, CartPaymentHealthBenefitCard_1.CartPaymentHealthBenefitCardFromJSON)(json['health_benefit_card']),
|
|
36
38
|
'payment_method': !(0, runtime_1.exists)(json, 'payment_method') ? undefined : json['payment_method'],
|
|
37
39
|
'purchase_order': !(0, runtime_1.exists)(json, 'purchase_order') ? undefined : (0, CartPaymentPurchaseOrder_1.CartPaymentPurchaseOrderFromJSON)(json['purchase_order']),
|
|
38
40
|
'rtg_code': !(0, runtime_1.exists)(json, 'rtg_code') ? undefined : json['rtg_code'],
|
|
@@ -51,6 +53,7 @@ function CartPaymentToJSON(value) {
|
|
|
51
53
|
'amazon': (0, CartPaymentAmazon_1.CartPaymentAmazonToJSON)(value.amazon),
|
|
52
54
|
'check': (0, CartPaymentCheck_1.CartPaymentCheckToJSON)(value.check),
|
|
53
55
|
'credit_card': (0, CartPaymentCreditCard_1.CartPaymentCreditCardToJSON)(value.credit_card),
|
|
56
|
+
'health_benefit_card': (0, CartPaymentHealthBenefitCard_1.CartPaymentHealthBenefitCardToJSON)(value.health_benefit_card),
|
|
54
57
|
'payment_method': value.payment_method,
|
|
55
58
|
'purchase_order': (0, CartPaymentPurchaseOrder_1.CartPaymentPurchaseOrderToJSON)(value.purchase_order),
|
|
56
59
|
'rtg_code': value.rtg_code,
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CartPaymentHealthBenefitCard
|
|
16
|
+
*/
|
|
17
|
+
export interface CartPaymentHealthBenefitCard {
|
|
18
|
+
/**
|
|
19
|
+
* Health benefit expiration month (1-12)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CartPaymentHealthBenefitCard
|
|
22
|
+
*/
|
|
23
|
+
health_benefit_card_expiration_month?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Health benefit card expiration year (four digit year)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CartPaymentHealthBenefitCard
|
|
28
|
+
*/
|
|
29
|
+
health_benefit_card_expiration_year?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Health benefit card number (masked to the last 4)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CartPaymentHealthBenefitCard
|
|
34
|
+
*/
|
|
35
|
+
health_benefit_card_number?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Hosted field token for the card number
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CartPaymentHealthBenefitCard
|
|
40
|
+
*/
|
|
41
|
+
health_benefit_card_number_token?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Health benefit card verification number (masked)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CartPaymentHealthBenefitCard
|
|
46
|
+
*/
|
|
47
|
+
health_benefit_card_verification_number?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Hosted field token for the health benefit card verification number
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CartPaymentHealthBenefitCard
|
|
52
|
+
*/
|
|
53
|
+
health_benefit_card_verification_number_token?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare function CartPaymentHealthBenefitCardFromJSON(json: any): CartPaymentHealthBenefitCard;
|
|
56
|
+
export declare function CartPaymentHealthBenefitCardFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartPaymentHealthBenefitCard;
|
|
57
|
+
export declare function CartPaymentHealthBenefitCardToJSON(value?: CartPaymentHealthBenefitCard | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CartPaymentHealthBenefitCardToJSON = exports.CartPaymentHealthBenefitCardFromJSONTyped = exports.CartPaymentHealthBenefitCardFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function CartPaymentHealthBenefitCardFromJSON(json) {
|
|
19
|
+
return CartPaymentHealthBenefitCardFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.CartPaymentHealthBenefitCardFromJSON = CartPaymentHealthBenefitCardFromJSON;
|
|
22
|
+
function CartPaymentHealthBenefitCardFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'health_benefit_card_expiration_month': !(0, runtime_1.exists)(json, 'health_benefit_card_expiration_month') ? undefined : json['health_benefit_card_expiration_month'],
|
|
28
|
+
'health_benefit_card_expiration_year': !(0, runtime_1.exists)(json, 'health_benefit_card_expiration_year') ? undefined : json['health_benefit_card_expiration_year'],
|
|
29
|
+
'health_benefit_card_number': !(0, runtime_1.exists)(json, 'health_benefit_card_number') ? undefined : json['health_benefit_card_number'],
|
|
30
|
+
'health_benefit_card_number_token': !(0, runtime_1.exists)(json, 'health_benefit_card_number_token') ? undefined : json['health_benefit_card_number_token'],
|
|
31
|
+
'health_benefit_card_verification_number': !(0, runtime_1.exists)(json, 'health_benefit_card_verification_number') ? undefined : json['health_benefit_card_verification_number'],
|
|
32
|
+
'health_benefit_card_verification_number_token': !(0, runtime_1.exists)(json, 'health_benefit_card_verification_number_token') ? undefined : json['health_benefit_card_verification_number_token'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
exports.CartPaymentHealthBenefitCardFromJSONTyped = CartPaymentHealthBenefitCardFromJSONTyped;
|
|
36
|
+
function CartPaymentHealthBenefitCardToJSON(value) {
|
|
37
|
+
if (value === undefined) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (value === null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'health_benefit_card_expiration_month': value.health_benefit_card_expiration_month,
|
|
45
|
+
'health_benefit_card_expiration_year': value.health_benefit_card_expiration_year,
|
|
46
|
+
'health_benefit_card_number': value.health_benefit_card_number,
|
|
47
|
+
'health_benefit_card_number_token': value.health_benefit_card_number_token,
|
|
48
|
+
'health_benefit_card_verification_number': value.health_benefit_card_verification_number,
|
|
49
|
+
'health_benefit_card_verification_number_token': value.health_benefit_card_verification_number_token,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.CartPaymentHealthBenefitCardToJSON = CartPaymentHealthBenefitCardToJSON;
|
|
@@ -13,6 +13,7 @@ import { Currency } from './Currency';
|
|
|
13
13
|
import { OrderPaymentCheck } from './OrderPaymentCheck';
|
|
14
14
|
import { OrderPaymentCreditCard } from './OrderPaymentCreditCard';
|
|
15
15
|
import { OrderPaymentECheck } from './OrderPaymentECheck';
|
|
16
|
+
import { OrderPaymentHealthBenefitCard } from './OrderPaymentHealthBenefitCard';
|
|
16
17
|
import { OrderPaymentInsurance } from './OrderPaymentInsurance';
|
|
17
18
|
import { OrderPaymentPurchaseOrder } from './OrderPaymentPurchaseOrder';
|
|
18
19
|
import { OrderPaymentTransaction } from './OrderPaymentTransaction';
|
|
@@ -40,6 +41,12 @@ export interface OrderPayment {
|
|
|
40
41
|
* @memberof OrderPayment
|
|
41
42
|
*/
|
|
42
43
|
echeck?: OrderPaymentECheck;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {OrderPaymentHealthBenefitCard}
|
|
47
|
+
* @memberof OrderPayment
|
|
48
|
+
*/
|
|
49
|
+
health_benefit_card?: OrderPaymentHealthBenefitCard;
|
|
43
50
|
/**
|
|
44
51
|
* True if order has been held for fraud review
|
|
45
52
|
* @type {boolean}
|
|
@@ -159,6 +166,7 @@ export declare const OrderPaymentPaymentMethodEnum: {
|
|
|
159
166
|
readonly Venmo: "Venmo";
|
|
160
167
|
readonly ApplePay: "Apple Pay";
|
|
161
168
|
readonly GooglePay: "Google Pay";
|
|
169
|
+
readonly HealthBenefitCard: "Health Benefit Card";
|
|
162
170
|
};
|
|
163
171
|
export type OrderPaymentPaymentMethodEnum = typeof OrderPaymentPaymentMethodEnum[keyof typeof OrderPaymentPaymentMethodEnum];
|
|
164
172
|
/**
|
|
@@ -19,6 +19,7 @@ var Currency_1 = require("./Currency");
|
|
|
19
19
|
var OrderPaymentCheck_1 = require("./OrderPaymentCheck");
|
|
20
20
|
var OrderPaymentCreditCard_1 = require("./OrderPaymentCreditCard");
|
|
21
21
|
var OrderPaymentECheck_1 = require("./OrderPaymentECheck");
|
|
22
|
+
var OrderPaymentHealthBenefitCard_1 = require("./OrderPaymentHealthBenefitCard");
|
|
22
23
|
var OrderPaymentInsurance_1 = require("./OrderPaymentInsurance");
|
|
23
24
|
var OrderPaymentPurchaseOrder_1 = require("./OrderPaymentPurchaseOrder");
|
|
24
25
|
var OrderPaymentTransaction_1 = require("./OrderPaymentTransaction");
|
|
@@ -49,7 +50,8 @@ exports.OrderPaymentPaymentMethodEnum = {
|
|
|
49
50
|
Sezzle: 'Sezzle',
|
|
50
51
|
Venmo: 'Venmo',
|
|
51
52
|
ApplePay: 'Apple Pay',
|
|
52
|
-
GooglePay: 'Google Pay'
|
|
53
|
+
GooglePay: 'Google Pay',
|
|
54
|
+
HealthBenefitCard: 'Health Benefit Card'
|
|
53
55
|
};
|
|
54
56
|
/**
|
|
55
57
|
* @export
|
|
@@ -76,6 +78,7 @@ function OrderPaymentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
78
|
'check': !(0, runtime_1.exists)(json, 'check') ? undefined : (0, OrderPaymentCheck_1.OrderPaymentCheckFromJSON)(json['check']),
|
|
77
79
|
'credit_card': !(0, runtime_1.exists)(json, 'credit_card') ? undefined : (0, OrderPaymentCreditCard_1.OrderPaymentCreditCardFromJSON)(json['credit_card']),
|
|
78
80
|
'echeck': !(0, runtime_1.exists)(json, 'echeck') ? undefined : (0, OrderPaymentECheck_1.OrderPaymentECheckFromJSON)(json['echeck']),
|
|
81
|
+
'health_benefit_card': !(0, runtime_1.exists)(json, 'health_benefit_card') ? undefined : (0, OrderPaymentHealthBenefitCard_1.OrderPaymentHealthBenefitCardFromJSON)(json['health_benefit_card']),
|
|
79
82
|
'hold_for_fraud_review': !(0, runtime_1.exists)(json, 'hold_for_fraud_review') ? undefined : json['hold_for_fraud_review'],
|
|
80
83
|
'insurance': !(0, runtime_1.exists)(json, 'insurance') ? undefined : (0, OrderPaymentInsurance_1.OrderPaymentInsuranceFromJSON)(json['insurance']),
|
|
81
84
|
'payment_dts': !(0, runtime_1.exists)(json, 'payment_dts') ? undefined : json['payment_dts'],
|
|
@@ -105,6 +108,7 @@ function OrderPaymentToJSON(value) {
|
|
|
105
108
|
'check': (0, OrderPaymentCheck_1.OrderPaymentCheckToJSON)(value.check),
|
|
106
109
|
'credit_card': (0, OrderPaymentCreditCard_1.OrderPaymentCreditCardToJSON)(value.credit_card),
|
|
107
110
|
'echeck': (0, OrderPaymentECheck_1.OrderPaymentECheckToJSON)(value.echeck),
|
|
111
|
+
'health_benefit_card': (0, OrderPaymentHealthBenefitCard_1.OrderPaymentHealthBenefitCardToJSON)(value.health_benefit_card),
|
|
108
112
|
'hold_for_fraud_review': value.hold_for_fraud_review,
|
|
109
113
|
'insurance': (0, OrderPaymentInsurance_1.OrderPaymentInsuranceToJSON)(value.insurance),
|
|
110
114
|
'payment_dts': value.payment_dts,
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OrderPaymentHealthBenefitCard
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderPaymentHealthBenefitCard {
|
|
18
|
+
/**
|
|
19
|
+
* Health benefit card expiration month (1-12)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof OrderPaymentHealthBenefitCard
|
|
22
|
+
*/
|
|
23
|
+
health_benefit_card_expiration_month?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Health benefit card expiration year (Four digit year)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof OrderPaymentHealthBenefitCard
|
|
28
|
+
*/
|
|
29
|
+
health_benefit_card_expiration_year?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Health benefit card number (masked to last 4)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OrderPaymentHealthBenefitCard
|
|
34
|
+
*/
|
|
35
|
+
health_benefit_card_number?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Health benefit card number token from hosted fields used to update the health benefit card number
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OrderPaymentHealthBenefitCard
|
|
40
|
+
*/
|
|
41
|
+
health_benefit_card_number_token?: string;
|
|
42
|
+
/**
|
|
43
|
+
* True if the health benefit card has been truncated
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof OrderPaymentHealthBenefitCard
|
|
46
|
+
*/
|
|
47
|
+
health_benefit_card_number_truncated?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Health benefit card verification number token from hosted fields, only for import/insert of new orders, completely ignored for updates, and always null/empty for queries
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof OrderPaymentHealthBenefitCard
|
|
52
|
+
*/
|
|
53
|
+
health_benefit_card_verification_number_token?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare function OrderPaymentHealthBenefitCardFromJSON(json: any): OrderPaymentHealthBenefitCard;
|
|
56
|
+
export declare function OrderPaymentHealthBenefitCardFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderPaymentHealthBenefitCard;
|
|
57
|
+
export declare function OrderPaymentHealthBenefitCardToJSON(value?: OrderPaymentHealthBenefitCard | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OrderPaymentHealthBenefitCardToJSON = exports.OrderPaymentHealthBenefitCardFromJSONTyped = exports.OrderPaymentHealthBenefitCardFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function OrderPaymentHealthBenefitCardFromJSON(json) {
|
|
19
|
+
return OrderPaymentHealthBenefitCardFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.OrderPaymentHealthBenefitCardFromJSON = OrderPaymentHealthBenefitCardFromJSON;
|
|
22
|
+
function OrderPaymentHealthBenefitCardFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'health_benefit_card_expiration_month': !(0, runtime_1.exists)(json, 'health_benefit_card_expiration_month') ? undefined : json['health_benefit_card_expiration_month'],
|
|
28
|
+
'health_benefit_card_expiration_year': !(0, runtime_1.exists)(json, 'health_benefit_card_expiration_year') ? undefined : json['health_benefit_card_expiration_year'],
|
|
29
|
+
'health_benefit_card_number': !(0, runtime_1.exists)(json, 'health_benefit_card_number') ? undefined : json['health_benefit_card_number'],
|
|
30
|
+
'health_benefit_card_number_token': !(0, runtime_1.exists)(json, 'health_benefit_card_number_token') ? undefined : json['health_benefit_card_number_token'],
|
|
31
|
+
'health_benefit_card_number_truncated': !(0, runtime_1.exists)(json, 'health_benefit_card_number_truncated') ? undefined : json['health_benefit_card_number_truncated'],
|
|
32
|
+
'health_benefit_card_verification_number_token': !(0, runtime_1.exists)(json, 'health_benefit_card_verification_number_token') ? undefined : json['health_benefit_card_verification_number_token'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
exports.OrderPaymentHealthBenefitCardFromJSONTyped = OrderPaymentHealthBenefitCardFromJSONTyped;
|
|
36
|
+
function OrderPaymentHealthBenefitCardToJSON(value) {
|
|
37
|
+
if (value === undefined) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (value === null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'health_benefit_card_expiration_month': value.health_benefit_card_expiration_month,
|
|
45
|
+
'health_benefit_card_expiration_year': value.health_benefit_card_expiration_year,
|
|
46
|
+
'health_benefit_card_number': value.health_benefit_card_number,
|
|
47
|
+
'health_benefit_card_number_token': value.health_benefit_card_number_token,
|
|
48
|
+
'health_benefit_card_number_truncated': value.health_benefit_card_number_truncated,
|
|
49
|
+
'health_benefit_card_verification_number_token': value.health_benefit_card_verification_number_token,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.OrderPaymentHealthBenefitCardToJSON = OrderPaymentHealthBenefitCardToJSON;
|
|
@@ -57,7 +57,13 @@ export interface WorkflowTasksRequest {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof WorkflowTasksRequest
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
delay_until_dts_begin?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Date/time that the workflow task should delay until
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof WorkflowTasksRequest
|
|
65
|
+
*/
|
|
66
|
+
delay_until_dts_end?: string;
|
|
61
67
|
/**
|
|
62
68
|
* Date/time that the workflow task is due
|
|
63
69
|
* @type {string}
|
|
@@ -58,7 +58,8 @@ function WorkflowTasksRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
58
|
'created_by': !(0, runtime_1.exists)(json, 'created_by') ? undefined : (0, WorkflowUser_1.WorkflowUserFromJSON)(json['created_by']),
|
|
59
59
|
'created_dts_begin': !(0, runtime_1.exists)(json, 'created_dts_begin') ? undefined : json['created_dts_begin'],
|
|
60
60
|
'created_dts_end': !(0, runtime_1.exists)(json, 'created_dts_end') ? undefined : json['created_dts_end'],
|
|
61
|
-
'
|
|
61
|
+
'delay_until_dts_begin': !(0, runtime_1.exists)(json, 'delay_until_dts_begin') ? undefined : json['delay_until_dts_begin'],
|
|
62
|
+
'delay_until_dts_end': !(0, runtime_1.exists)(json, 'delay_until_dts_end') ? undefined : json['delay_until_dts_end'],
|
|
62
63
|
'due_dts_begin': !(0, runtime_1.exists)(json, 'due_dts_begin') ? undefined : json['due_dts_begin'],
|
|
63
64
|
'due_dts_end': !(0, runtime_1.exists)(json, 'due_dts_end') ? undefined : json['due_dts_end'],
|
|
64
65
|
'last_update_dts_begin': !(0, runtime_1.exists)(json, 'last_update_dts_begin') ? undefined : json['last_update_dts_begin'],
|
|
@@ -85,7 +86,8 @@ function WorkflowTasksRequestToJSON(value) {
|
|
|
85
86
|
'created_by': (0, WorkflowUser_1.WorkflowUserToJSON)(value.created_by),
|
|
86
87
|
'created_dts_begin': value.created_dts_begin,
|
|
87
88
|
'created_dts_end': value.created_dts_end,
|
|
88
|
-
'
|
|
89
|
+
'delay_until_dts_begin': value.delay_until_dts_begin,
|
|
90
|
+
'delay_until_dts_end': value.delay_until_dts_end,
|
|
89
91
|
'due_dts_begin': value.due_dts_begin,
|
|
90
92
|
'due_dts_end': value.due_dts_end,
|
|
91
93
|
'last_update_dts_begin': value.last_update_dts_begin,
|
package/dist/models/index.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export * from './CartPaymentAffirm';
|
|
|
72
72
|
export * from './CartPaymentAmazon';
|
|
73
73
|
export * from './CartPaymentCheck';
|
|
74
74
|
export * from './CartPaymentCreditCard';
|
|
75
|
+
export * from './CartPaymentHealthBenefitCard';
|
|
75
76
|
export * from './CartPaymentPurchaseOrder';
|
|
76
77
|
export * from './CartProfileLoginRequest';
|
|
77
78
|
export * from './CartProfileLoginResponse';
|
|
@@ -591,6 +592,7 @@ export * from './OrderPaymentCreditCard';
|
|
|
591
592
|
export * from './OrderPaymentCreditCardDualVaulted';
|
|
592
593
|
export * from './OrderPaymentCreditCardDualVaultedProperty';
|
|
593
594
|
export * from './OrderPaymentECheck';
|
|
595
|
+
export * from './OrderPaymentHealthBenefitCard';
|
|
594
596
|
export * from './OrderPaymentInsurance';
|
|
595
597
|
export * from './OrderPaymentPurchaseOrder';
|
|
596
598
|
export * from './OrderPaymentTransaction';
|
package/dist/models/index.js
CHANGED
|
@@ -90,6 +90,7 @@ __exportStar(require("./CartPaymentAffirm"), exports);
|
|
|
90
90
|
__exportStar(require("./CartPaymentAmazon"), exports);
|
|
91
91
|
__exportStar(require("./CartPaymentCheck"), exports);
|
|
92
92
|
__exportStar(require("./CartPaymentCreditCard"), exports);
|
|
93
|
+
__exportStar(require("./CartPaymentHealthBenefitCard"), exports);
|
|
93
94
|
__exportStar(require("./CartPaymentPurchaseOrder"), exports);
|
|
94
95
|
__exportStar(require("./CartProfileLoginRequest"), exports);
|
|
95
96
|
__exportStar(require("./CartProfileLoginResponse"), exports);
|
|
@@ -609,6 +610,7 @@ __exportStar(require("./OrderPaymentCreditCard"), exports);
|
|
|
609
610
|
__exportStar(require("./OrderPaymentCreditCardDualVaulted"), exports);
|
|
610
611
|
__exportStar(require("./OrderPaymentCreditCardDualVaultedProperty"), exports);
|
|
611
612
|
__exportStar(require("./OrderPaymentECheck"), exports);
|
|
613
|
+
__exportStar(require("./OrderPaymentHealthBenefitCard"), exports);
|
|
612
614
|
__exportStar(require("./OrderPaymentInsurance"), exports);
|
|
613
615
|
__exportStar(require("./OrderPaymentPurchaseOrder"), exports);
|
|
614
616
|
__exportStar(require("./OrderPaymentTransaction"), exports);
|
package/package.json
CHANGED
|
@@ -37,6 +37,12 @@ import {
|
|
|
37
37
|
CartPaymentCreditCardFromJSONTyped,
|
|
38
38
|
CartPaymentCreditCardToJSON,
|
|
39
39
|
} from './CartPaymentCreditCard';
|
|
40
|
+
import {
|
|
41
|
+
CartPaymentHealthBenefitCard,
|
|
42
|
+
CartPaymentHealthBenefitCardFromJSON,
|
|
43
|
+
CartPaymentHealthBenefitCardFromJSONTyped,
|
|
44
|
+
CartPaymentHealthBenefitCardToJSON,
|
|
45
|
+
} from './CartPaymentHealthBenefitCard';
|
|
40
46
|
import {
|
|
41
47
|
CartPaymentPurchaseOrder,
|
|
42
48
|
CartPaymentPurchaseOrderFromJSON,
|
|
@@ -74,6 +80,12 @@ export interface CartPayment {
|
|
|
74
80
|
* @memberof CartPayment
|
|
75
81
|
*/
|
|
76
82
|
credit_card?: CartPaymentCreditCard;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {CartPaymentHealthBenefitCard}
|
|
86
|
+
* @memberof CartPayment
|
|
87
|
+
*/
|
|
88
|
+
health_benefit_card?: CartPaymentHealthBenefitCard;
|
|
77
89
|
/**
|
|
78
90
|
* Payment method
|
|
79
91
|
* @type {string}
|
|
@@ -108,6 +120,7 @@ export function CartPaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
108
120
|
'amazon': !exists(json, 'amazon') ? undefined : CartPaymentAmazonFromJSON(json['amazon']),
|
|
109
121
|
'check': !exists(json, 'check') ? undefined : CartPaymentCheckFromJSON(json['check']),
|
|
110
122
|
'credit_card': !exists(json, 'credit_card') ? undefined : CartPaymentCreditCardFromJSON(json['credit_card']),
|
|
123
|
+
'health_benefit_card': !exists(json, 'health_benefit_card') ? undefined : CartPaymentHealthBenefitCardFromJSON(json['health_benefit_card']),
|
|
111
124
|
'payment_method': !exists(json, 'payment_method') ? undefined : json['payment_method'],
|
|
112
125
|
'purchase_order': !exists(json, 'purchase_order') ? undefined : CartPaymentPurchaseOrderFromJSON(json['purchase_order']),
|
|
113
126
|
'rtg_code': !exists(json, 'rtg_code') ? undefined : json['rtg_code'],
|
|
@@ -127,6 +140,7 @@ export function CartPaymentToJSON(value?: CartPayment | null): any {
|
|
|
127
140
|
'amazon': CartPaymentAmazonToJSON(value.amazon),
|
|
128
141
|
'check': CartPaymentCheckToJSON(value.check),
|
|
129
142
|
'credit_card': CartPaymentCreditCardToJSON(value.credit_card),
|
|
143
|
+
'health_benefit_card': CartPaymentHealthBenefitCardToJSON(value.health_benefit_card),
|
|
130
144
|
'payment_method': value.payment_method,
|
|
131
145
|
'purchase_order': CartPaymentPurchaseOrderToJSON(value.purchase_order),
|
|
132
146
|
'rtg_code': value.rtg_code,
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UltraCart Rest API V2
|
|
5
|
+
* UltraCart REST API Version 2
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
* Contact: support@ultracart.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CartPaymentHealthBenefitCard
|
|
20
|
+
*/
|
|
21
|
+
export interface CartPaymentHealthBenefitCard {
|
|
22
|
+
/**
|
|
23
|
+
* Health benefit expiration month (1-12)
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CartPaymentHealthBenefitCard
|
|
26
|
+
*/
|
|
27
|
+
health_benefit_card_expiration_month?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Health benefit card expiration year (four digit year)
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CartPaymentHealthBenefitCard
|
|
32
|
+
*/
|
|
33
|
+
health_benefit_card_expiration_year?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Health benefit card number (masked to the last 4)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CartPaymentHealthBenefitCard
|
|
38
|
+
*/
|
|
39
|
+
health_benefit_card_number?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Hosted field token for the card number
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CartPaymentHealthBenefitCard
|
|
44
|
+
*/
|
|
45
|
+
health_benefit_card_number_token?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Health benefit card verification number (masked)
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CartPaymentHealthBenefitCard
|
|
50
|
+
*/
|
|
51
|
+
health_benefit_card_verification_number?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Hosted field token for the health benefit card verification number
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CartPaymentHealthBenefitCard
|
|
56
|
+
*/
|
|
57
|
+
health_benefit_card_verification_number_token?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CartPaymentHealthBenefitCardFromJSON(json: any): CartPaymentHealthBenefitCard {
|
|
61
|
+
return CartPaymentHealthBenefitCardFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CartPaymentHealthBenefitCardFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartPaymentHealthBenefitCard {
|
|
65
|
+
if ((json === undefined) || (json === null)) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'health_benefit_card_expiration_month': !exists(json, 'health_benefit_card_expiration_month') ? undefined : json['health_benefit_card_expiration_month'],
|
|
71
|
+
'health_benefit_card_expiration_year': !exists(json, 'health_benefit_card_expiration_year') ? undefined : json['health_benefit_card_expiration_year'],
|
|
72
|
+
'health_benefit_card_number': !exists(json, 'health_benefit_card_number') ? undefined : json['health_benefit_card_number'],
|
|
73
|
+
'health_benefit_card_number_token': !exists(json, 'health_benefit_card_number_token') ? undefined : json['health_benefit_card_number_token'],
|
|
74
|
+
'health_benefit_card_verification_number': !exists(json, 'health_benefit_card_verification_number') ? undefined : json['health_benefit_card_verification_number'],
|
|
75
|
+
'health_benefit_card_verification_number_token': !exists(json, 'health_benefit_card_verification_number_token') ? undefined : json['health_benefit_card_verification_number_token'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CartPaymentHealthBenefitCardToJSON(value?: CartPaymentHealthBenefitCard | null): any {
|
|
80
|
+
if (value === undefined) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
if (value === null) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'health_benefit_card_expiration_month': value.health_benefit_card_expiration_month,
|
|
89
|
+
'health_benefit_card_expiration_year': value.health_benefit_card_expiration_year,
|
|
90
|
+
'health_benefit_card_number': value.health_benefit_card_number,
|
|
91
|
+
'health_benefit_card_number_token': value.health_benefit_card_number_token,
|
|
92
|
+
'health_benefit_card_verification_number': value.health_benefit_card_verification_number,
|
|
93
|
+
'health_benefit_card_verification_number_token': value.health_benefit_card_verification_number_token,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -37,6 +37,12 @@ import {
|
|
|
37
37
|
OrderPaymentECheckFromJSONTyped,
|
|
38
38
|
OrderPaymentECheckToJSON,
|
|
39
39
|
} from './OrderPaymentECheck';
|
|
40
|
+
import {
|
|
41
|
+
OrderPaymentHealthBenefitCard,
|
|
42
|
+
OrderPaymentHealthBenefitCardFromJSON,
|
|
43
|
+
OrderPaymentHealthBenefitCardFromJSONTyped,
|
|
44
|
+
OrderPaymentHealthBenefitCardToJSON,
|
|
45
|
+
} from './OrderPaymentHealthBenefitCard';
|
|
40
46
|
import {
|
|
41
47
|
OrderPaymentInsurance,
|
|
42
48
|
OrderPaymentInsuranceFromJSON,
|
|
@@ -80,6 +86,12 @@ export interface OrderPayment {
|
|
|
80
86
|
* @memberof OrderPayment
|
|
81
87
|
*/
|
|
82
88
|
echeck?: OrderPaymentECheck;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {OrderPaymentHealthBenefitCard}
|
|
92
|
+
* @memberof OrderPayment
|
|
93
|
+
*/
|
|
94
|
+
health_benefit_card?: OrderPaymentHealthBenefitCard;
|
|
83
95
|
/**
|
|
84
96
|
* True if order has been held for fraud review
|
|
85
97
|
* @type {boolean}
|
|
@@ -200,7 +212,8 @@ export const OrderPaymentPaymentMethodEnum = {
|
|
|
200
212
|
Sezzle: 'Sezzle',
|
|
201
213
|
Venmo: 'Venmo',
|
|
202
214
|
ApplePay: 'Apple Pay',
|
|
203
|
-
GooglePay: 'Google Pay'
|
|
215
|
+
GooglePay: 'Google Pay',
|
|
216
|
+
HealthBenefitCard: 'Health Benefit Card'
|
|
204
217
|
} as const;
|
|
205
218
|
export type OrderPaymentPaymentMethodEnum = typeof OrderPaymentPaymentMethodEnum[keyof typeof OrderPaymentPaymentMethodEnum];
|
|
206
219
|
|
|
@@ -233,6 +246,7 @@ export function OrderPaymentFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
233
246
|
'check': !exists(json, 'check') ? undefined : OrderPaymentCheckFromJSON(json['check']),
|
|
234
247
|
'credit_card': !exists(json, 'credit_card') ? undefined : OrderPaymentCreditCardFromJSON(json['credit_card']),
|
|
235
248
|
'echeck': !exists(json, 'echeck') ? undefined : OrderPaymentECheckFromJSON(json['echeck']),
|
|
249
|
+
'health_benefit_card': !exists(json, 'health_benefit_card') ? undefined : OrderPaymentHealthBenefitCardFromJSON(json['health_benefit_card']),
|
|
236
250
|
'hold_for_fraud_review': !exists(json, 'hold_for_fraud_review') ? undefined : json['hold_for_fraud_review'],
|
|
237
251
|
'insurance': !exists(json, 'insurance') ? undefined : OrderPaymentInsuranceFromJSON(json['insurance']),
|
|
238
252
|
'payment_dts': !exists(json, 'payment_dts') ? undefined : json['payment_dts'],
|
|
@@ -263,6 +277,7 @@ export function OrderPaymentToJSON(value?: OrderPayment | null): any {
|
|
|
263
277
|
'check': OrderPaymentCheckToJSON(value.check),
|
|
264
278
|
'credit_card': OrderPaymentCreditCardToJSON(value.credit_card),
|
|
265
279
|
'echeck': OrderPaymentECheckToJSON(value.echeck),
|
|
280
|
+
'health_benefit_card': OrderPaymentHealthBenefitCardToJSON(value.health_benefit_card),
|
|
266
281
|
'hold_for_fraud_review': value.hold_for_fraud_review,
|
|
267
282
|
'insurance': OrderPaymentInsuranceToJSON(value.insurance),
|
|
268
283
|
'payment_dts': value.payment_dts,
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UltraCart Rest API V2
|
|
5
|
+
* UltraCart REST API Version 2
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
* Contact: support@ultracart.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OrderPaymentHealthBenefitCard
|
|
20
|
+
*/
|
|
21
|
+
export interface OrderPaymentHealthBenefitCard {
|
|
22
|
+
/**
|
|
23
|
+
* Health benefit card expiration month (1-12)
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof OrderPaymentHealthBenefitCard
|
|
26
|
+
*/
|
|
27
|
+
health_benefit_card_expiration_month?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Health benefit card expiration year (Four digit year)
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof OrderPaymentHealthBenefitCard
|
|
32
|
+
*/
|
|
33
|
+
health_benefit_card_expiration_year?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Health benefit card number (masked to last 4)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof OrderPaymentHealthBenefitCard
|
|
38
|
+
*/
|
|
39
|
+
health_benefit_card_number?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Health benefit card number token from hosted fields used to update the health benefit card number
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof OrderPaymentHealthBenefitCard
|
|
44
|
+
*/
|
|
45
|
+
health_benefit_card_number_token?: string;
|
|
46
|
+
/**
|
|
47
|
+
* True if the health benefit card has been truncated
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof OrderPaymentHealthBenefitCard
|
|
50
|
+
*/
|
|
51
|
+
health_benefit_card_number_truncated?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Health benefit card verification number token from hosted fields, only for import/insert of new orders, completely ignored for updates, and always null/empty for queries
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof OrderPaymentHealthBenefitCard
|
|
56
|
+
*/
|
|
57
|
+
health_benefit_card_verification_number_token?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function OrderPaymentHealthBenefitCardFromJSON(json: any): OrderPaymentHealthBenefitCard {
|
|
61
|
+
return OrderPaymentHealthBenefitCardFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function OrderPaymentHealthBenefitCardFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderPaymentHealthBenefitCard {
|
|
65
|
+
if ((json === undefined) || (json === null)) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'health_benefit_card_expiration_month': !exists(json, 'health_benefit_card_expiration_month') ? undefined : json['health_benefit_card_expiration_month'],
|
|
71
|
+
'health_benefit_card_expiration_year': !exists(json, 'health_benefit_card_expiration_year') ? undefined : json['health_benefit_card_expiration_year'],
|
|
72
|
+
'health_benefit_card_number': !exists(json, 'health_benefit_card_number') ? undefined : json['health_benefit_card_number'],
|
|
73
|
+
'health_benefit_card_number_token': !exists(json, 'health_benefit_card_number_token') ? undefined : json['health_benefit_card_number_token'],
|
|
74
|
+
'health_benefit_card_number_truncated': !exists(json, 'health_benefit_card_number_truncated') ? undefined : json['health_benefit_card_number_truncated'],
|
|
75
|
+
'health_benefit_card_verification_number_token': !exists(json, 'health_benefit_card_verification_number_token') ? undefined : json['health_benefit_card_verification_number_token'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function OrderPaymentHealthBenefitCardToJSON(value?: OrderPaymentHealthBenefitCard | null): any {
|
|
80
|
+
if (value === undefined) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
if (value === null) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'health_benefit_card_expiration_month': value.health_benefit_card_expiration_month,
|
|
89
|
+
'health_benefit_card_expiration_year': value.health_benefit_card_expiration_year,
|
|
90
|
+
'health_benefit_card_number': value.health_benefit_card_number,
|
|
91
|
+
'health_benefit_card_number_token': value.health_benefit_card_number_token,
|
|
92
|
+
'health_benefit_card_number_truncated': value.health_benefit_card_number_truncated,
|
|
93
|
+
'health_benefit_card_verification_number_token': value.health_benefit_card_verification_number_token,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -67,7 +67,13 @@ export interface WorkflowTasksRequest {
|
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof WorkflowTasksRequest
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
delay_until_dts_begin?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Date/time that the workflow task should delay until
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof WorkflowTasksRequest
|
|
75
|
+
*/
|
|
76
|
+
delay_until_dts_end?: string;
|
|
71
77
|
/**
|
|
72
78
|
* Date/time that the workflow task is due
|
|
73
79
|
* @type {string}
|
|
@@ -175,7 +181,8 @@ export function WorkflowTasksRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
175
181
|
'created_by': !exists(json, 'created_by') ? undefined : WorkflowUserFromJSON(json['created_by']),
|
|
176
182
|
'created_dts_begin': !exists(json, 'created_dts_begin') ? undefined : json['created_dts_begin'],
|
|
177
183
|
'created_dts_end': !exists(json, 'created_dts_end') ? undefined : json['created_dts_end'],
|
|
178
|
-
'
|
|
184
|
+
'delay_until_dts_begin': !exists(json, 'delay_until_dts_begin') ? undefined : json['delay_until_dts_begin'],
|
|
185
|
+
'delay_until_dts_end': !exists(json, 'delay_until_dts_end') ? undefined : json['delay_until_dts_end'],
|
|
179
186
|
'due_dts_begin': !exists(json, 'due_dts_begin') ? undefined : json['due_dts_begin'],
|
|
180
187
|
'due_dts_end': !exists(json, 'due_dts_end') ? undefined : json['due_dts_end'],
|
|
181
188
|
'last_update_dts_begin': !exists(json, 'last_update_dts_begin') ? undefined : json['last_update_dts_begin'],
|
|
@@ -203,7 +210,8 @@ export function WorkflowTasksRequestToJSON(value?: WorkflowTasksRequest | null):
|
|
|
203
210
|
'created_by': WorkflowUserToJSON(value.created_by),
|
|
204
211
|
'created_dts_begin': value.created_dts_begin,
|
|
205
212
|
'created_dts_end': value.created_dts_end,
|
|
206
|
-
'
|
|
213
|
+
'delay_until_dts_begin': value.delay_until_dts_begin,
|
|
214
|
+
'delay_until_dts_end': value.delay_until_dts_end,
|
|
207
215
|
'due_dts_begin': value.due_dts_begin,
|
|
208
216
|
'due_dts_end': value.due_dts_end,
|
|
209
217
|
'last_update_dts_begin': value.last_update_dts_begin,
|
package/src/models/index.ts
CHANGED
|
@@ -74,6 +74,7 @@ export * from './CartPaymentAffirm';
|
|
|
74
74
|
export * from './CartPaymentAmazon';
|
|
75
75
|
export * from './CartPaymentCheck';
|
|
76
76
|
export * from './CartPaymentCreditCard';
|
|
77
|
+
export * from './CartPaymentHealthBenefitCard';
|
|
77
78
|
export * from './CartPaymentPurchaseOrder';
|
|
78
79
|
export * from './CartProfileLoginRequest';
|
|
79
80
|
export * from './CartProfileLoginResponse';
|
|
@@ -593,6 +594,7 @@ export * from './OrderPaymentCreditCard';
|
|
|
593
594
|
export * from './OrderPaymentCreditCardDualVaulted';
|
|
594
595
|
export * from './OrderPaymentCreditCardDualVaultedProperty';
|
|
595
596
|
export * from './OrderPaymentECheck';
|
|
597
|
+
export * from './OrderPaymentHealthBenefitCard';
|
|
596
598
|
export * from './OrderPaymentInsurance';
|
|
597
599
|
export * from './OrderPaymentPurchaseOrder';
|
|
598
600
|
export * from './OrderPaymentTransaction';
|