ultracart_rest_api_v2_typescript 4.0.151 → 4.0.153
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 +4 -2
- package/dist/models/ItemPricingTierLimit.d.ts +6 -0
- package/dist/models/ItemPricingTierLimit.js +2 -0
- package/dist/models/OrderPaymentCreditCard.d.ts +7 -0
- package/dist/models/OrderPaymentCreditCard.js +3 -0
- package/dist/models/OrderPaymentCreditCardDualVaulted.d.ts +40 -0
- package/dist/models/OrderPaymentCreditCardDualVaulted.js +47 -0
- package/dist/models/OrderPaymentCreditCardDualVaultedProperty.d.ts +33 -0
- package/dist/models/OrderPaymentCreditCardDualVaultedProperty.js +44 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/models/ItemPricingTierLimit.ts +8 -0
- package/src/models/OrderPaymentCreditCard.ts +15 -0
- package/src/models/OrderPaymentCreditCardDualVaulted.ts +79 -0
- package/src/models/OrderPaymentCreditCardDualVaultedProperty.ts +64 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -608,6 +608,8 @@ src/models/OrderPackingSlipResponse.ts
|
|
|
608
608
|
src/models/OrderPayment.ts
|
|
609
609
|
src/models/OrderPaymentCheck.ts
|
|
610
610
|
src/models/OrderPaymentCreditCard.ts
|
|
611
|
+
src/models/OrderPaymentCreditCardDualVaulted.ts
|
|
612
|
+
src/models/OrderPaymentCreditCardDualVaultedProperty.ts
|
|
611
613
|
src/models/OrderPaymentECheck.ts
|
|
612
614
|
src/models/OrderPaymentInsurance.ts
|
|
613
615
|
src/models/OrderPaymentPurchaseOrder.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.153
|
|
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.153 --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.153 | 04/28/2023 | item - pricing tier level flag for exempt from min item count |
|
|
58
|
+
| 4.0.152 | 04/27/2023 | order - expose dual vaulted identifiers |
|
|
57
59
|
| 4.0.151 | 04/24/2023 | internal development - data warehouse |
|
|
58
60
|
| 4.0.150 | 04/21/2023 | internal development - data warehouse |
|
|
59
61
|
| 4.0.149 | 04/19/2023 | internal development - data warehouse |
|
|
@@ -21,6 +21,12 @@ export interface ItemPricingTierLimit {
|
|
|
21
21
|
* @memberof ItemPricingTierLimit
|
|
22
22
|
*/
|
|
23
23
|
cumulative_order_limit?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Exempt from Minimum Item Count
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ItemPricingTierLimit
|
|
28
|
+
*/
|
|
29
|
+
exempt_from_minimum_item_count?: boolean;
|
|
24
30
|
/**
|
|
25
31
|
* Individual order limit
|
|
26
32
|
* @type {number}
|
|
@@ -25,6 +25,7 @@ function ItemPricingTierLimitFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
'cumulative_order_limit': !(0, runtime_1.exists)(json, 'cumulative_order_limit') ? undefined : json['cumulative_order_limit'],
|
|
28
|
+
'exempt_from_minimum_item_count': !(0, runtime_1.exists)(json, 'exempt_from_minimum_item_count') ? undefined : json['exempt_from_minimum_item_count'],
|
|
28
29
|
'individual_order_limit': !(0, runtime_1.exists)(json, 'individual_order_limit') ? undefined : json['individual_order_limit'],
|
|
29
30
|
'multiple_quantity': !(0, runtime_1.exists)(json, 'multiple_quantity') ? undefined : json['multiple_quantity'],
|
|
30
31
|
};
|
|
@@ -39,6 +40,7 @@ function ItemPricingTierLimitToJSON(value) {
|
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
42
|
'cumulative_order_limit': value.cumulative_order_limit,
|
|
43
|
+
'exempt_from_minimum_item_count': value.exempt_from_minimum_item_count,
|
|
42
44
|
'individual_order_limit': value.individual_order_limit,
|
|
43
45
|
'multiple_quantity': value.multiple_quantity,
|
|
44
46
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { OrderPaymentCreditCardDualVaulted } from './OrderPaymentCreditCardDualVaulted';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -81,6 +82,12 @@ export interface OrderPaymentCreditCard {
|
|
|
81
82
|
* @memberof OrderPaymentCreditCard
|
|
82
83
|
*/
|
|
83
84
|
card_verification_number_token?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {OrderPaymentCreditCardDualVaulted}
|
|
88
|
+
* @memberof OrderPaymentCreditCard
|
|
89
|
+
*/
|
|
90
|
+
dual_vaulted?: OrderPaymentCreditCardDualVaulted;
|
|
84
91
|
}
|
|
85
92
|
/**
|
|
86
93
|
* @export
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.OrderPaymentCreditCardToJSON = exports.OrderPaymentCreditCardFromJSONTyped = exports.OrderPaymentCreditCardFromJSON = exports.OrderPaymentCreditCardCardTypeEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var OrderPaymentCreditCardDualVaulted_1 = require("./OrderPaymentCreditCardDualVaulted");
|
|
18
19
|
/**
|
|
19
20
|
* @export
|
|
20
21
|
*/
|
|
@@ -46,6 +47,7 @@ function OrderPaymentCreditCardFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
47
|
'card_number_truncated': !(0, runtime_1.exists)(json, 'card_number_truncated') ? undefined : json['card_number_truncated'],
|
|
47
48
|
'card_type': !(0, runtime_1.exists)(json, 'card_type') ? undefined : json['card_type'],
|
|
48
49
|
'card_verification_number_token': !(0, runtime_1.exists)(json, 'card_verification_number_token') ? undefined : json['card_verification_number_token'],
|
|
50
|
+
'dual_vaulted': !(0, runtime_1.exists)(json, 'dual_vaulted') ? undefined : (0, OrderPaymentCreditCardDualVaulted_1.OrderPaymentCreditCardDualVaultedFromJSON)(json['dual_vaulted']),
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
53
|
exports.OrderPaymentCreditCardFromJSONTyped = OrderPaymentCreditCardFromJSONTyped;
|
|
@@ -68,6 +70,7 @@ function OrderPaymentCreditCardToJSON(value) {
|
|
|
68
70
|
'card_number_truncated': value.card_number_truncated,
|
|
69
71
|
'card_type': value.card_type,
|
|
70
72
|
'card_verification_number_token': value.card_verification_number_token,
|
|
73
|
+
'dual_vaulted': (0, OrderPaymentCreditCardDualVaulted_1.OrderPaymentCreditCardDualVaultedToJSON)(value.dual_vaulted),
|
|
71
74
|
};
|
|
72
75
|
}
|
|
73
76
|
exports.OrderPaymentCreditCardToJSON = OrderPaymentCreditCardToJSON;
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
import { OrderPaymentCreditCardDualVaultedProperty } from './OrderPaymentCreditCardDualVaultedProperty';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OrderPaymentCreditCardDualVaulted
|
|
17
|
+
*/
|
|
18
|
+
export interface OrderPaymentCreditCardDualVaulted {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof OrderPaymentCreditCardDualVaulted
|
|
23
|
+
*/
|
|
24
|
+
gateway_name?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<OrderPaymentCreditCardDualVaultedProperty>}
|
|
28
|
+
* @memberof OrderPaymentCreditCardDualVaulted
|
|
29
|
+
*/
|
|
30
|
+
properties?: Array<OrderPaymentCreditCardDualVaultedProperty>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof OrderPaymentCreditCardDualVaulted
|
|
35
|
+
*/
|
|
36
|
+
rotating_transaction_gateway_code?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function OrderPaymentCreditCardDualVaultedFromJSON(json: any): OrderPaymentCreditCardDualVaulted;
|
|
39
|
+
export declare function OrderPaymentCreditCardDualVaultedFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderPaymentCreditCardDualVaulted;
|
|
40
|
+
export declare function OrderPaymentCreditCardDualVaultedToJSON(value?: OrderPaymentCreditCardDualVaulted | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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.OrderPaymentCreditCardDualVaultedToJSON = exports.OrderPaymentCreditCardDualVaultedFromJSONTyped = exports.OrderPaymentCreditCardDualVaultedFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var OrderPaymentCreditCardDualVaultedProperty_1 = require("./OrderPaymentCreditCardDualVaultedProperty");
|
|
19
|
+
function OrderPaymentCreditCardDualVaultedFromJSON(json) {
|
|
20
|
+
return OrderPaymentCreditCardDualVaultedFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.OrderPaymentCreditCardDualVaultedFromJSON = OrderPaymentCreditCardDualVaultedFromJSON;
|
|
23
|
+
function OrderPaymentCreditCardDualVaultedFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'gateway_name': !(0, runtime_1.exists)(json, 'gateway_name') ? undefined : json['gateway_name'],
|
|
29
|
+
'properties': !(0, runtime_1.exists)(json, 'properties') ? undefined : (json['properties'].map(OrderPaymentCreditCardDualVaultedProperty_1.OrderPaymentCreditCardDualVaultedPropertyFromJSON)),
|
|
30
|
+
'rotating_transaction_gateway_code': !(0, runtime_1.exists)(json, 'rotating_transaction_gateway_code') ? undefined : json['rotating_transaction_gateway_code'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
exports.OrderPaymentCreditCardDualVaultedFromJSONTyped = OrderPaymentCreditCardDualVaultedFromJSONTyped;
|
|
34
|
+
function OrderPaymentCreditCardDualVaultedToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'gateway_name': value.gateway_name,
|
|
43
|
+
'properties': value.properties === undefined ? undefined : (value.properties.map(OrderPaymentCreditCardDualVaultedProperty_1.OrderPaymentCreditCardDualVaultedPropertyToJSON)),
|
|
44
|
+
'rotating_transaction_gateway_code': value.rotating_transaction_gateway_code,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.OrderPaymentCreditCardDualVaultedToJSON = OrderPaymentCreditCardDualVaultedToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 OrderPaymentCreditCardDualVaultedProperty
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderPaymentCreditCardDualVaultedProperty {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrderPaymentCreditCardDualVaultedProperty
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrderPaymentCreditCardDualVaultedProperty
|
|
28
|
+
*/
|
|
29
|
+
value?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function OrderPaymentCreditCardDualVaultedPropertyFromJSON(json: any): OrderPaymentCreditCardDualVaultedProperty;
|
|
32
|
+
export declare function OrderPaymentCreditCardDualVaultedPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderPaymentCreditCardDualVaultedProperty;
|
|
33
|
+
export declare function OrderPaymentCreditCardDualVaultedPropertyToJSON(value?: OrderPaymentCreditCardDualVaultedProperty | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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.OrderPaymentCreditCardDualVaultedPropertyToJSON = exports.OrderPaymentCreditCardDualVaultedPropertyFromJSONTyped = exports.OrderPaymentCreditCardDualVaultedPropertyFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function OrderPaymentCreditCardDualVaultedPropertyFromJSON(json) {
|
|
19
|
+
return OrderPaymentCreditCardDualVaultedPropertyFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.OrderPaymentCreditCardDualVaultedPropertyFromJSON = OrderPaymentCreditCardDualVaultedPropertyFromJSON;
|
|
22
|
+
function OrderPaymentCreditCardDualVaultedPropertyFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
28
|
+
'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.OrderPaymentCreditCardDualVaultedPropertyFromJSONTyped = OrderPaymentCreditCardDualVaultedPropertyFromJSONTyped;
|
|
32
|
+
function OrderPaymentCreditCardDualVaultedPropertyToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': value.name,
|
|
41
|
+
'value': value.value,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.OrderPaymentCreditCardDualVaultedPropertyToJSON = OrderPaymentCreditCardDualVaultedPropertyToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -582,6 +582,8 @@ export * from './OrderPackingSlipResponse';
|
|
|
582
582
|
export * from './OrderPayment';
|
|
583
583
|
export * from './OrderPaymentCheck';
|
|
584
584
|
export * from './OrderPaymentCreditCard';
|
|
585
|
+
export * from './OrderPaymentCreditCardDualVaulted';
|
|
586
|
+
export * from './OrderPaymentCreditCardDualVaultedProperty';
|
|
585
587
|
export * from './OrderPaymentECheck';
|
|
586
588
|
export * from './OrderPaymentInsurance';
|
|
587
589
|
export * from './OrderPaymentPurchaseOrder';
|
package/dist/models/index.js
CHANGED
|
@@ -600,6 +600,8 @@ __exportStar(require("./OrderPackingSlipResponse"), exports);
|
|
|
600
600
|
__exportStar(require("./OrderPayment"), exports);
|
|
601
601
|
__exportStar(require("./OrderPaymentCheck"), exports);
|
|
602
602
|
__exportStar(require("./OrderPaymentCreditCard"), exports);
|
|
603
|
+
__exportStar(require("./OrderPaymentCreditCardDualVaulted"), exports);
|
|
604
|
+
__exportStar(require("./OrderPaymentCreditCardDualVaultedProperty"), exports);
|
|
603
605
|
__exportStar(require("./OrderPaymentECheck"), exports);
|
|
604
606
|
__exportStar(require("./OrderPaymentInsurance"), exports);
|
|
605
607
|
__exportStar(require("./OrderPaymentPurchaseOrder"), exports);
|
package/package.json
CHANGED
|
@@ -25,6 +25,12 @@ export interface ItemPricingTierLimit {
|
|
|
25
25
|
* @memberof ItemPricingTierLimit
|
|
26
26
|
*/
|
|
27
27
|
cumulative_order_limit?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Exempt from Minimum Item Count
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof ItemPricingTierLimit
|
|
32
|
+
*/
|
|
33
|
+
exempt_from_minimum_item_count?: boolean;
|
|
28
34
|
/**
|
|
29
35
|
* Individual order limit
|
|
30
36
|
* @type {number}
|
|
@@ -50,6 +56,7 @@ export function ItemPricingTierLimitFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
50
56
|
return {
|
|
51
57
|
|
|
52
58
|
'cumulative_order_limit': !exists(json, 'cumulative_order_limit') ? undefined : json['cumulative_order_limit'],
|
|
59
|
+
'exempt_from_minimum_item_count': !exists(json, 'exempt_from_minimum_item_count') ? undefined : json['exempt_from_minimum_item_count'],
|
|
53
60
|
'individual_order_limit': !exists(json, 'individual_order_limit') ? undefined : json['individual_order_limit'],
|
|
54
61
|
'multiple_quantity': !exists(json, 'multiple_quantity') ? undefined : json['multiple_quantity'],
|
|
55
62
|
};
|
|
@@ -65,6 +72,7 @@ export function ItemPricingTierLimitToJSON(value?: ItemPricingTierLimit | null):
|
|
|
65
72
|
return {
|
|
66
73
|
|
|
67
74
|
'cumulative_order_limit': value.cumulative_order_limit,
|
|
75
|
+
'exempt_from_minimum_item_count': value.exempt_from_minimum_item_count,
|
|
68
76
|
'individual_order_limit': value.individual_order_limit,
|
|
69
77
|
'multiple_quantity': value.multiple_quantity,
|
|
70
78
|
};
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
OrderPaymentCreditCardDualVaulted,
|
|
18
|
+
OrderPaymentCreditCardDualVaultedFromJSON,
|
|
19
|
+
OrderPaymentCreditCardDualVaultedFromJSONTyped,
|
|
20
|
+
OrderPaymentCreditCardDualVaultedToJSON,
|
|
21
|
+
} from './OrderPaymentCreditCardDualVaulted';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -85,6 +92,12 @@ export interface OrderPaymentCreditCard {
|
|
|
85
92
|
* @memberof OrderPaymentCreditCard
|
|
86
93
|
*/
|
|
87
94
|
card_verification_number_token?: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {OrderPaymentCreditCardDualVaulted}
|
|
98
|
+
* @memberof OrderPaymentCreditCard
|
|
99
|
+
*/
|
|
100
|
+
dual_vaulted?: OrderPaymentCreditCardDualVaulted;
|
|
88
101
|
}
|
|
89
102
|
|
|
90
103
|
|
|
@@ -123,6 +136,7 @@ export function OrderPaymentCreditCardFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
123
136
|
'card_number_truncated': !exists(json, 'card_number_truncated') ? undefined : json['card_number_truncated'],
|
|
124
137
|
'card_type': !exists(json, 'card_type') ? undefined : json['card_type'],
|
|
125
138
|
'card_verification_number_token': !exists(json, 'card_verification_number_token') ? undefined : json['card_verification_number_token'],
|
|
139
|
+
'dual_vaulted': !exists(json, 'dual_vaulted') ? undefined : OrderPaymentCreditCardDualVaultedFromJSON(json['dual_vaulted']),
|
|
126
140
|
};
|
|
127
141
|
}
|
|
128
142
|
|
|
@@ -146,6 +160,7 @@ export function OrderPaymentCreditCardToJSON(value?: OrderPaymentCreditCard | nu
|
|
|
146
160
|
'card_number_truncated': value.card_number_truncated,
|
|
147
161
|
'card_type': value.card_type,
|
|
148
162
|
'card_verification_number_token': value.card_verification_number_token,
|
|
163
|
+
'dual_vaulted': OrderPaymentCreditCardDualVaultedToJSON(value.dual_vaulted),
|
|
149
164
|
};
|
|
150
165
|
}
|
|
151
166
|
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
import {
|
|
17
|
+
OrderPaymentCreditCardDualVaultedProperty,
|
|
18
|
+
OrderPaymentCreditCardDualVaultedPropertyFromJSON,
|
|
19
|
+
OrderPaymentCreditCardDualVaultedPropertyFromJSONTyped,
|
|
20
|
+
OrderPaymentCreditCardDualVaultedPropertyToJSON,
|
|
21
|
+
} from './OrderPaymentCreditCardDualVaultedProperty';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface OrderPaymentCreditCardDualVaulted
|
|
27
|
+
*/
|
|
28
|
+
export interface OrderPaymentCreditCardDualVaulted {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof OrderPaymentCreditCardDualVaulted
|
|
33
|
+
*/
|
|
34
|
+
gateway_name?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<OrderPaymentCreditCardDualVaultedProperty>}
|
|
38
|
+
* @memberof OrderPaymentCreditCardDualVaulted
|
|
39
|
+
*/
|
|
40
|
+
properties?: Array<OrderPaymentCreditCardDualVaultedProperty>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof OrderPaymentCreditCardDualVaulted
|
|
45
|
+
*/
|
|
46
|
+
rotating_transaction_gateway_code?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function OrderPaymentCreditCardDualVaultedFromJSON(json: any): OrderPaymentCreditCardDualVaulted {
|
|
50
|
+
return OrderPaymentCreditCardDualVaultedFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function OrderPaymentCreditCardDualVaultedFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderPaymentCreditCardDualVaulted {
|
|
54
|
+
if ((json === undefined) || (json === null)) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'gateway_name': !exists(json, 'gateway_name') ? undefined : json['gateway_name'],
|
|
60
|
+
'properties': !exists(json, 'properties') ? undefined : ((json['properties'] as Array<any>).map(OrderPaymentCreditCardDualVaultedPropertyFromJSON)),
|
|
61
|
+
'rotating_transaction_gateway_code': !exists(json, 'rotating_transaction_gateway_code') ? undefined : json['rotating_transaction_gateway_code'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function OrderPaymentCreditCardDualVaultedToJSON(value?: OrderPaymentCreditCardDualVaulted | null): any {
|
|
66
|
+
if (value === undefined) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
if (value === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'gateway_name': value.gateway_name,
|
|
75
|
+
'properties': value.properties === undefined ? undefined : ((value.properties as Array<any>).map(OrderPaymentCreditCardDualVaultedPropertyToJSON)),
|
|
76
|
+
'rotating_transaction_gateway_code': value.rotating_transaction_gateway_code,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
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 OrderPaymentCreditCardDualVaultedProperty
|
|
20
|
+
*/
|
|
21
|
+
export interface OrderPaymentCreditCardDualVaultedProperty {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OrderPaymentCreditCardDualVaultedProperty
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OrderPaymentCreditCardDualVaultedProperty
|
|
32
|
+
*/
|
|
33
|
+
value?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function OrderPaymentCreditCardDualVaultedPropertyFromJSON(json: any): OrderPaymentCreditCardDualVaultedProperty {
|
|
37
|
+
return OrderPaymentCreditCardDualVaultedPropertyFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function OrderPaymentCreditCardDualVaultedPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderPaymentCreditCardDualVaultedProperty {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
47
|
+
'value': !exists(json, 'value') ? undefined : json['value'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function OrderPaymentCreditCardDualVaultedPropertyToJSON(value?: OrderPaymentCreditCardDualVaultedProperty | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'name': value.name,
|
|
61
|
+
'value': value.value,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -584,6 +584,8 @@ export * from './OrderPackingSlipResponse';
|
|
|
584
584
|
export * from './OrderPayment';
|
|
585
585
|
export * from './OrderPaymentCheck';
|
|
586
586
|
export * from './OrderPaymentCreditCard';
|
|
587
|
+
export * from './OrderPaymentCreditCardDualVaulted';
|
|
588
|
+
export * from './OrderPaymentCreditCardDualVaultedProperty';
|
|
587
589
|
export * from './OrderPaymentECheck';
|
|
588
590
|
export * from './OrderPaymentInsurance';
|
|
589
591
|
export * from './OrderPaymentPurchaseOrder';
|