ultracart_rest_api_v2_typescript 4.0.182 → 4.0.184

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.
@@ -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.182
1
+ ## ultracart_rest_api_v2_typescript@4.0.184
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.182 --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.184 --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
+ | 4.0.184 | 10/30/2023 | cart/order fields for health benefit card values in summary expansion objects |
58
+ | 4.0.183 | 10/27/2023 | workflow task object model refinement |
57
59
  | 4.0.182 | 10/23/2023 | workflow tasks api |
58
60
  | 4.0.181 | 10/23/2023 | workflow tasks api |
59
61
  | 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;
@@ -40,6 +40,18 @@ export interface CartSummary {
40
40
  * @memberof CartSummary
41
41
  */
42
42
  arbitrary_taxable_subtotal?: Currency;
43
+ /**
44
+ *
45
+ * @type {Currency}
46
+ * @memberof CartSummary
47
+ */
48
+ health_benefit_card_amount?: Currency;
49
+ /**
50
+ *
51
+ * @type {Currency}
52
+ * @memberof CartSummary
53
+ */
54
+ internal_gift_certificate_amount?: Currency;
43
55
  /**
44
56
  *
45
57
  * @type {Currency}
@@ -29,6 +29,8 @@ function CartSummaryFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'arbitrary_tax': !(0, runtime_1.exists)(json, 'arbitrary_tax') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['arbitrary_tax']),
30
30
  'arbitrary_tax_rate': !(0, runtime_1.exists)(json, 'arbitrary_tax_rate') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['arbitrary_tax_rate']),
31
31
  'arbitrary_taxable_subtotal': !(0, runtime_1.exists)(json, 'arbitrary_taxable_subtotal') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['arbitrary_taxable_subtotal']),
32
+ 'health_benefit_card_amount': !(0, runtime_1.exists)(json, 'health_benefit_card_amount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['health_benefit_card_amount']),
33
+ 'internal_gift_certificate_amount': !(0, runtime_1.exists)(json, 'internal_gift_certificate_amount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['internal_gift_certificate_amount']),
32
34
  'shipping_handling': !(0, runtime_1.exists)(json, 'shipping_handling') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['shipping_handling']),
33
35
  'shipping_handling_discount': !(0, runtime_1.exists)(json, 'shipping_handling_discount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['shipping_handling_discount']),
34
36
  'shipping_handling_with_discount': !(0, runtime_1.exists)(json, 'shipping_handling_with_discount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['shipping_handling_with_discount']),
@@ -56,6 +58,8 @@ function CartSummaryToJSON(value) {
56
58
  'arbitrary_tax': (0, Currency_1.CurrencyToJSON)(value.arbitrary_tax),
57
59
  'arbitrary_tax_rate': (0, Currency_1.CurrencyToJSON)(value.arbitrary_tax_rate),
58
60
  'arbitrary_taxable_subtotal': (0, Currency_1.CurrencyToJSON)(value.arbitrary_taxable_subtotal),
61
+ 'health_benefit_card_amount': (0, Currency_1.CurrencyToJSON)(value.health_benefit_card_amount),
62
+ 'internal_gift_certificate_amount': (0, Currency_1.CurrencyToJSON)(value.internal_gift_certificate_amount),
59
63
  'shipping_handling': (0, Currency_1.CurrencyToJSON)(value.shipping_handling),
60
64
  'shipping_handling_discount': (0, Currency_1.CurrencyToJSON)(value.shipping_handling_discount),
61
65
  'shipping_handling_with_discount': (0, Currency_1.CurrencyToJSON)(value.shipping_handling_with_discount),
@@ -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;
@@ -40,6 +40,18 @@ export interface OrderSummary {
40
40
  * @memberof OrderSummary
41
41
  */
42
42
  arbitrary_shipping_handling_total?: Currency;
43
+ /**
44
+ *
45
+ * @type {Currency}
46
+ * @memberof OrderSummary
47
+ */
48
+ health_benefit_card_amount?: Currency;
49
+ /**
50
+ *
51
+ * @type {Currency}
52
+ * @memberof OrderSummary
53
+ */
54
+ health_benefit_card_refunded?: Currency;
43
55
  /**
44
56
  *
45
57
  * @type {Currency}
@@ -29,6 +29,8 @@ function OrderSummaryFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'actual_payment_processing': !(0, runtime_1.exists)(json, 'actual_payment_processing') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['actual_payment_processing']),
30
30
  'actual_shipping': !(0, runtime_1.exists)(json, 'actual_shipping') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['actual_shipping']),
31
31
  'arbitrary_shipping_handling_total': !(0, runtime_1.exists)(json, 'arbitrary_shipping_handling_total') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['arbitrary_shipping_handling_total']),
32
+ 'health_benefit_card_amount': !(0, runtime_1.exists)(json, 'health_benefit_card_amount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['health_benefit_card_amount']),
33
+ 'health_benefit_card_refunded': !(0, runtime_1.exists)(json, 'health_benefit_card_refunded') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['health_benefit_card_refunded']),
32
34
  'internal_gift_certificate_amount': !(0, runtime_1.exists)(json, 'internal_gift_certificate_amount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['internal_gift_certificate_amount']),
33
35
  'internal_gift_certificate_refunded': !(0, runtime_1.exists)(json, 'internal_gift_certificate_refunded') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['internal_gift_certificate_refunded']),
34
36
  'other_refunded': !(0, runtime_1.exists)(json, 'other_refunded') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['other_refunded']),
@@ -60,6 +62,8 @@ function OrderSummaryToJSON(value) {
60
62
  'actual_payment_processing': (0, Currency_1.CurrencyToJSON)(value.actual_payment_processing),
61
63
  'actual_shipping': (0, Currency_1.CurrencyToJSON)(value.actual_shipping),
62
64
  'arbitrary_shipping_handling_total': (0, Currency_1.CurrencyToJSON)(value.arbitrary_shipping_handling_total),
65
+ 'health_benefit_card_amount': (0, Currency_1.CurrencyToJSON)(value.health_benefit_card_amount),
66
+ 'health_benefit_card_refunded': (0, Currency_1.CurrencyToJSON)(value.health_benefit_card_refunded),
63
67
  'internal_gift_certificate_amount': (0, Currency_1.CurrencyToJSON)(value.internal_gift_certificate_amount),
64
68
  'internal_gift_certificate_refunded': (0, Currency_1.CurrencyToJSON)(value.internal_gift_certificate_refunded),
65
69
  'other_refunded': (0, Currency_1.CurrencyToJSON)(value.other_refunded),
@@ -57,7 +57,13 @@ export interface WorkflowTasksRequest {
57
57
  * @type {string}
58
58
  * @memberof WorkflowTasksRequest
59
59
  */
60
- delay_until_dts?: string;
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
- 'delay_until_dts': !(0, runtime_1.exists)(json, 'delay_until_dts') ? undefined : json['delay_until_dts'],
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
- 'delay_until_dts': value.delay_until_dts,
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,
@@ -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';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.182",
3
+ "version": "4.0.184",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -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
+
@@ -50,6 +50,18 @@ export interface CartSummary {
50
50
  * @memberof CartSummary
51
51
  */
52
52
  arbitrary_taxable_subtotal?: Currency;
53
+ /**
54
+ *
55
+ * @type {Currency}
56
+ * @memberof CartSummary
57
+ */
58
+ health_benefit_card_amount?: Currency;
59
+ /**
60
+ *
61
+ * @type {Currency}
62
+ * @memberof CartSummary
63
+ */
64
+ internal_gift_certificate_amount?: Currency;
53
65
  /**
54
66
  *
55
67
  * @type {Currency}
@@ -138,6 +150,8 @@ export function CartSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean
138
150
  'arbitrary_tax': !exists(json, 'arbitrary_tax') ? undefined : CurrencyFromJSON(json['arbitrary_tax']),
139
151
  'arbitrary_tax_rate': !exists(json, 'arbitrary_tax_rate') ? undefined : CurrencyFromJSON(json['arbitrary_tax_rate']),
140
152
  'arbitrary_taxable_subtotal': !exists(json, 'arbitrary_taxable_subtotal') ? undefined : CurrencyFromJSON(json['arbitrary_taxable_subtotal']),
153
+ 'health_benefit_card_amount': !exists(json, 'health_benefit_card_amount') ? undefined : CurrencyFromJSON(json['health_benefit_card_amount']),
154
+ 'internal_gift_certificate_amount': !exists(json, 'internal_gift_certificate_amount') ? undefined : CurrencyFromJSON(json['internal_gift_certificate_amount']),
141
155
  'shipping_handling': !exists(json, 'shipping_handling') ? undefined : CurrencyFromJSON(json['shipping_handling']),
142
156
  'shipping_handling_discount': !exists(json, 'shipping_handling_discount') ? undefined : CurrencyFromJSON(json['shipping_handling_discount']),
143
157
  'shipping_handling_with_discount': !exists(json, 'shipping_handling_with_discount') ? undefined : CurrencyFromJSON(json['shipping_handling_with_discount']),
@@ -166,6 +180,8 @@ export function CartSummaryToJSON(value?: CartSummary | null): any {
166
180
  'arbitrary_tax': CurrencyToJSON(value.arbitrary_tax),
167
181
  'arbitrary_tax_rate': CurrencyToJSON(value.arbitrary_tax_rate),
168
182
  'arbitrary_taxable_subtotal': CurrencyToJSON(value.arbitrary_taxable_subtotal),
183
+ 'health_benefit_card_amount': CurrencyToJSON(value.health_benefit_card_amount),
184
+ 'internal_gift_certificate_amount': CurrencyToJSON(value.internal_gift_certificate_amount),
169
185
  'shipping_handling': CurrencyToJSON(value.shipping_handling),
170
186
  'shipping_handling_discount': CurrencyToJSON(value.shipping_handling_discount),
171
187
  'shipping_handling_with_discount': CurrencyToJSON(value.shipping_handling_with_discount),
@@ -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
+
@@ -50,6 +50,18 @@ export interface OrderSummary {
50
50
  * @memberof OrderSummary
51
51
  */
52
52
  arbitrary_shipping_handling_total?: Currency;
53
+ /**
54
+ *
55
+ * @type {Currency}
56
+ * @memberof OrderSummary
57
+ */
58
+ health_benefit_card_amount?: Currency;
59
+ /**
60
+ *
61
+ * @type {Currency}
62
+ * @memberof OrderSummary
63
+ */
64
+ health_benefit_card_refunded?: Currency;
53
65
  /**
54
66
  *
55
67
  * @type {Currency}
@@ -162,6 +174,8 @@ export function OrderSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolea
162
174
  'actual_payment_processing': !exists(json, 'actual_payment_processing') ? undefined : CurrencyFromJSON(json['actual_payment_processing']),
163
175
  'actual_shipping': !exists(json, 'actual_shipping') ? undefined : CurrencyFromJSON(json['actual_shipping']),
164
176
  'arbitrary_shipping_handling_total': !exists(json, 'arbitrary_shipping_handling_total') ? undefined : CurrencyFromJSON(json['arbitrary_shipping_handling_total']),
177
+ 'health_benefit_card_amount': !exists(json, 'health_benefit_card_amount') ? undefined : CurrencyFromJSON(json['health_benefit_card_amount']),
178
+ 'health_benefit_card_refunded': !exists(json, 'health_benefit_card_refunded') ? undefined : CurrencyFromJSON(json['health_benefit_card_refunded']),
165
179
  'internal_gift_certificate_amount': !exists(json, 'internal_gift_certificate_amount') ? undefined : CurrencyFromJSON(json['internal_gift_certificate_amount']),
166
180
  'internal_gift_certificate_refunded': !exists(json, 'internal_gift_certificate_refunded') ? undefined : CurrencyFromJSON(json['internal_gift_certificate_refunded']),
167
181
  'other_refunded': !exists(json, 'other_refunded') ? undefined : CurrencyFromJSON(json['other_refunded']),
@@ -194,6 +208,8 @@ export function OrderSummaryToJSON(value?: OrderSummary | null): any {
194
208
  'actual_payment_processing': CurrencyToJSON(value.actual_payment_processing),
195
209
  'actual_shipping': CurrencyToJSON(value.actual_shipping),
196
210
  'arbitrary_shipping_handling_total': CurrencyToJSON(value.arbitrary_shipping_handling_total),
211
+ 'health_benefit_card_amount': CurrencyToJSON(value.health_benefit_card_amount),
212
+ 'health_benefit_card_refunded': CurrencyToJSON(value.health_benefit_card_refunded),
197
213
  'internal_gift_certificate_amount': CurrencyToJSON(value.internal_gift_certificate_amount),
198
214
  'internal_gift_certificate_refunded': CurrencyToJSON(value.internal_gift_certificate_refunded),
199
215
  'other_refunded': CurrencyToJSON(value.other_refunded),
@@ -67,7 +67,13 @@ export interface WorkflowTasksRequest {
67
67
  * @type {string}
68
68
  * @memberof WorkflowTasksRequest
69
69
  */
70
- delay_until_dts?: string;
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
- 'delay_until_dts': !exists(json, 'delay_until_dts') ? undefined : json['delay_until_dts'],
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
- 'delay_until_dts': value.delay_until_dts,
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,
@@ -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';