ultracart_rest_api_v2_typescript 4.0.242 → 4.0.245
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 +1 -0
- package/README.md +5 -2
- package/dist/models/OrderPayment.d.ts +7 -0
- package/dist/models/OrderPayment.js +3 -0
- package/dist/models/OrderPaymentPayPal.d.ts +33 -0
- package/dist/models/OrderPaymentPayPal.js +44 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/OrderPayment.ts +14 -0
- package/src/models/OrderPaymentPayPal.ts +64 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -674,6 +674,7 @@ src/models/OrderPaymentCreditCardDualVaultedProperty.ts
|
|
|
674
674
|
src/models/OrderPaymentECheck.ts
|
|
675
675
|
src/models/OrderPaymentHealthBenefitCard.ts
|
|
676
676
|
src/models/OrderPaymentInsurance.ts
|
|
677
|
+
src/models/OrderPaymentPayPal.ts
|
|
677
678
|
src/models/OrderPaymentPurchaseOrder.ts
|
|
678
679
|
src/models/OrderPaymentTransaction.ts
|
|
679
680
|
src/models/OrderPaymentTransactionDetail.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.245
|
|
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.245 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,9 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.245 | 02/20/2025 | automation fix |
|
|
58
|
+
| 4.0.244 | 02/20/2025 | no change, revving sdk to troubleshoot java deployment automation |
|
|
59
|
+
| 4.0.243 | 02/20/2025 | no change, revving sdk to troubleshoot java deployment automation |
|
|
57
60
|
| 4.0.242 | 02/18/2025 | small bug fixes for incorrect return types on several methods |
|
|
58
61
|
| 4.0.241 | 02/06/2025 | added storefront_host_name to channel partner order object |
|
|
59
62
|
| 4.0.240 | 01/09/2025 | fix for broken 4.0.39 due to incorrect query sig on getCustomers |
|
|
@@ -15,6 +15,7 @@ import { OrderPaymentCreditCard } from './OrderPaymentCreditCard';
|
|
|
15
15
|
import { OrderPaymentECheck } from './OrderPaymentECheck';
|
|
16
16
|
import { OrderPaymentHealthBenefitCard } from './OrderPaymentHealthBenefitCard';
|
|
17
17
|
import { OrderPaymentInsurance } from './OrderPaymentInsurance';
|
|
18
|
+
import { OrderPaymentPayPal } from './OrderPaymentPayPal';
|
|
18
19
|
import { OrderPaymentPurchaseOrder } from './OrderPaymentPurchaseOrder';
|
|
19
20
|
import { OrderPaymentTransaction } from './OrderPaymentTransaction';
|
|
20
21
|
/**
|
|
@@ -89,6 +90,12 @@ export interface OrderPayment {
|
|
|
89
90
|
* @memberof OrderPayment
|
|
90
91
|
*/
|
|
91
92
|
payment_status?: OrderPaymentPaymentStatusEnum;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {OrderPaymentPayPal}
|
|
96
|
+
* @memberof OrderPayment
|
|
97
|
+
*/
|
|
98
|
+
paypal?: OrderPaymentPayPal;
|
|
92
99
|
/**
|
|
93
100
|
*
|
|
94
101
|
* @type {OrderPaymentPurchaseOrder}
|
|
@@ -21,6 +21,7 @@ var OrderPaymentCreditCard_1 = require("./OrderPaymentCreditCard");
|
|
|
21
21
|
var OrderPaymentECheck_1 = require("./OrderPaymentECheck");
|
|
22
22
|
var OrderPaymentHealthBenefitCard_1 = require("./OrderPaymentHealthBenefitCard");
|
|
23
23
|
var OrderPaymentInsurance_1 = require("./OrderPaymentInsurance");
|
|
24
|
+
var OrderPaymentPayPal_1 = require("./OrderPaymentPayPal");
|
|
24
25
|
var OrderPaymentPurchaseOrder_1 = require("./OrderPaymentPurchaseOrder");
|
|
25
26
|
var OrderPaymentTransaction_1 = require("./OrderPaymentTransaction");
|
|
26
27
|
/**
|
|
@@ -88,6 +89,7 @@ function OrderPaymentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
88
89
|
'payment_method_accounting_code': !(0, runtime_1.exists)(json, 'payment_method_accounting_code') ? undefined : json['payment_method_accounting_code'],
|
|
89
90
|
'payment_method_deposit_to_account': !(0, runtime_1.exists)(json, 'payment_method_deposit_to_account') ? undefined : json['payment_method_deposit_to_account'],
|
|
90
91
|
'payment_status': !(0, runtime_1.exists)(json, 'payment_status') ? undefined : json['payment_status'],
|
|
92
|
+
'paypal': !(0, runtime_1.exists)(json, 'paypal') ? undefined : (0, OrderPaymentPayPal_1.OrderPaymentPayPalFromJSON)(json['paypal']),
|
|
91
93
|
'purchase_order': !(0, runtime_1.exists)(json, 'purchase_order') ? undefined : (0, OrderPaymentPurchaseOrder_1.OrderPaymentPurchaseOrderFromJSON)(json['purchase_order']),
|
|
92
94
|
'rotating_transaction_gateway_code': !(0, runtime_1.exists)(json, 'rotating_transaction_gateway_code') ? undefined : json['rotating_transaction_gateway_code'],
|
|
93
95
|
'surcharge': !(0, runtime_1.exists)(json, 'surcharge') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['surcharge']),
|
|
@@ -118,6 +120,7 @@ function OrderPaymentToJSON(value) {
|
|
|
118
120
|
'payment_method_accounting_code': value.payment_method_accounting_code,
|
|
119
121
|
'payment_method_deposit_to_account': value.payment_method_deposit_to_account,
|
|
120
122
|
'payment_status': value.payment_status,
|
|
123
|
+
'paypal': (0, OrderPaymentPayPal_1.OrderPaymentPayPalToJSON)(value.paypal),
|
|
121
124
|
'purchase_order': (0, OrderPaymentPurchaseOrder_1.OrderPaymentPurchaseOrderToJSON)(value.purchase_order),
|
|
122
125
|
'rotating_transaction_gateway_code': value.rotating_transaction_gateway_code,
|
|
123
126
|
'surcharge': (0, Currency_1.CurrencyToJSON)(value.surcharge),
|
|
@@ -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 OrderPaymentPayPal
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderPaymentPayPal {
|
|
18
|
+
/**
|
|
19
|
+
* PayPal Customer ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrderPaymentPayPal
|
|
22
|
+
*/
|
|
23
|
+
customer_id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* PayPal Vault ID
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrderPaymentPayPal
|
|
28
|
+
*/
|
|
29
|
+
vault_id?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function OrderPaymentPayPalFromJSON(json: any): OrderPaymentPayPal;
|
|
32
|
+
export declare function OrderPaymentPayPalFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderPaymentPayPal;
|
|
33
|
+
export declare function OrderPaymentPayPalToJSON(value?: OrderPaymentPayPal | 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.OrderPaymentPayPalToJSON = exports.OrderPaymentPayPalFromJSONTyped = exports.OrderPaymentPayPalFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function OrderPaymentPayPalFromJSON(json) {
|
|
19
|
+
return OrderPaymentPayPalFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.OrderPaymentPayPalFromJSON = OrderPaymentPayPalFromJSON;
|
|
22
|
+
function OrderPaymentPayPalFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'customer_id': !(0, runtime_1.exists)(json, 'customer_id') ? undefined : json['customer_id'],
|
|
28
|
+
'vault_id': !(0, runtime_1.exists)(json, 'vault_id') ? undefined : json['vault_id'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.OrderPaymentPayPalFromJSONTyped = OrderPaymentPayPalFromJSONTyped;
|
|
32
|
+
function OrderPaymentPayPalToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'customer_id': value.customer_id,
|
|
41
|
+
'vault_id': value.vault_id,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.OrderPaymentPayPalToJSON = OrderPaymentPayPalToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -647,6 +647,7 @@ export * from './OrderPaymentCreditCardDualVaultedProperty';
|
|
|
647
647
|
export * from './OrderPaymentECheck';
|
|
648
648
|
export * from './OrderPaymentHealthBenefitCard';
|
|
649
649
|
export * from './OrderPaymentInsurance';
|
|
650
|
+
export * from './OrderPaymentPayPal';
|
|
650
651
|
export * from './OrderPaymentPurchaseOrder';
|
|
651
652
|
export * from './OrderPaymentTransaction';
|
|
652
653
|
export * from './OrderPaymentTransactionDetail';
|
package/dist/models/index.js
CHANGED
|
@@ -665,6 +665,7 @@ __exportStar(require("./OrderPaymentCreditCardDualVaultedProperty"), exports);
|
|
|
665
665
|
__exportStar(require("./OrderPaymentECheck"), exports);
|
|
666
666
|
__exportStar(require("./OrderPaymentHealthBenefitCard"), exports);
|
|
667
667
|
__exportStar(require("./OrderPaymentInsurance"), exports);
|
|
668
|
+
__exportStar(require("./OrderPaymentPayPal"), exports);
|
|
668
669
|
__exportStar(require("./OrderPaymentPurchaseOrder"), exports);
|
|
669
670
|
__exportStar(require("./OrderPaymentTransaction"), exports);
|
|
670
671
|
__exportStar(require("./OrderPaymentTransactionDetail"), exports);
|
package/package.json
CHANGED
|
@@ -49,6 +49,12 @@ import {
|
|
|
49
49
|
OrderPaymentInsuranceFromJSONTyped,
|
|
50
50
|
OrderPaymentInsuranceToJSON,
|
|
51
51
|
} from './OrderPaymentInsurance';
|
|
52
|
+
import {
|
|
53
|
+
OrderPaymentPayPal,
|
|
54
|
+
OrderPaymentPayPalFromJSON,
|
|
55
|
+
OrderPaymentPayPalFromJSONTyped,
|
|
56
|
+
OrderPaymentPayPalToJSON,
|
|
57
|
+
} from './OrderPaymentPayPal';
|
|
52
58
|
import {
|
|
53
59
|
OrderPaymentPurchaseOrder,
|
|
54
60
|
OrderPaymentPurchaseOrderFromJSON,
|
|
@@ -134,6 +140,12 @@ export interface OrderPayment {
|
|
|
134
140
|
* @memberof OrderPayment
|
|
135
141
|
*/
|
|
136
142
|
payment_status?: OrderPaymentPaymentStatusEnum;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @type {OrderPaymentPayPal}
|
|
146
|
+
* @memberof OrderPayment
|
|
147
|
+
*/
|
|
148
|
+
paypal?: OrderPaymentPayPal;
|
|
137
149
|
/**
|
|
138
150
|
*
|
|
139
151
|
* @type {OrderPaymentPurchaseOrder}
|
|
@@ -256,6 +268,7 @@ export function OrderPaymentFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
256
268
|
'payment_method_accounting_code': !exists(json, 'payment_method_accounting_code') ? undefined : json['payment_method_accounting_code'],
|
|
257
269
|
'payment_method_deposit_to_account': !exists(json, 'payment_method_deposit_to_account') ? undefined : json['payment_method_deposit_to_account'],
|
|
258
270
|
'payment_status': !exists(json, 'payment_status') ? undefined : json['payment_status'],
|
|
271
|
+
'paypal': !exists(json, 'paypal') ? undefined : OrderPaymentPayPalFromJSON(json['paypal']),
|
|
259
272
|
'purchase_order': !exists(json, 'purchase_order') ? undefined : OrderPaymentPurchaseOrderFromJSON(json['purchase_order']),
|
|
260
273
|
'rotating_transaction_gateway_code': !exists(json, 'rotating_transaction_gateway_code') ? undefined : json['rotating_transaction_gateway_code'],
|
|
261
274
|
'surcharge': !exists(json, 'surcharge') ? undefined : CurrencyFromJSON(json['surcharge']),
|
|
@@ -287,6 +300,7 @@ export function OrderPaymentToJSON(value?: OrderPayment | null): any {
|
|
|
287
300
|
'payment_method_accounting_code': value.payment_method_accounting_code,
|
|
288
301
|
'payment_method_deposit_to_account': value.payment_method_deposit_to_account,
|
|
289
302
|
'payment_status': value.payment_status,
|
|
303
|
+
'paypal': OrderPaymentPayPalToJSON(value.paypal),
|
|
290
304
|
'purchase_order': OrderPaymentPurchaseOrderToJSON(value.purchase_order),
|
|
291
305
|
'rotating_transaction_gateway_code': value.rotating_transaction_gateway_code,
|
|
292
306
|
'surcharge': CurrencyToJSON(value.surcharge),
|
|
@@ -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 OrderPaymentPayPal
|
|
20
|
+
*/
|
|
21
|
+
export interface OrderPaymentPayPal {
|
|
22
|
+
/**
|
|
23
|
+
* PayPal Customer ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OrderPaymentPayPal
|
|
26
|
+
*/
|
|
27
|
+
customer_id?: string;
|
|
28
|
+
/**
|
|
29
|
+
* PayPal Vault ID
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OrderPaymentPayPal
|
|
32
|
+
*/
|
|
33
|
+
vault_id?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function OrderPaymentPayPalFromJSON(json: any): OrderPaymentPayPal {
|
|
37
|
+
return OrderPaymentPayPalFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function OrderPaymentPayPalFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderPaymentPayPal {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'customer_id': !exists(json, 'customer_id') ? undefined : json['customer_id'],
|
|
47
|
+
'vault_id': !exists(json, 'vault_id') ? undefined : json['vault_id'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function OrderPaymentPayPalToJSON(value?: OrderPaymentPayPal | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'customer_id': value.customer_id,
|
|
61
|
+
'vault_id': value.vault_id,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -649,6 +649,7 @@ export * from './OrderPaymentCreditCardDualVaultedProperty';
|
|
|
649
649
|
export * from './OrderPaymentECheck';
|
|
650
650
|
export * from './OrderPaymentHealthBenefitCard';
|
|
651
651
|
export * from './OrderPaymentInsurance';
|
|
652
|
+
export * from './OrderPaymentPayPal';
|
|
652
653
|
export * from './OrderPaymentPurchaseOrder';
|
|
653
654
|
export * from './OrderPaymentTransaction';
|
|
654
655
|
export * from './OrderPaymentTransactionDetail';
|