ultracart_rest_api_v2_typescript 4.0.103-RC → 4.0.104-RC

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.
@@ -593,6 +593,7 @@ src/models/OrderPaymentInsurance.ts
593
593
  src/models/OrderPaymentPurchaseOrder.ts
594
594
  src/models/OrderPaymentTransaction.ts
595
595
  src/models/OrderPaymentTransactionDetail.ts
596
+ src/models/OrderPointOfSale.ts
596
597
  src/models/OrderProcessPaymentRequest.ts
597
598
  src/models/OrderProcessPaymentResponse.ts
598
599
  src/models/OrderProperty.ts
@@ -614,6 +615,9 @@ src/models/OrderTrackingNumberDetail.ts
614
615
  src/models/OrderTrackingNumberDetails.ts
615
616
  src/models/OrdersResponse.ts
616
617
  src/models/Permission.ts
618
+ src/models/PointOfSaleLocation.ts
619
+ src/models/PointOfSaleReader.ts
620
+ src/models/PointOfSaleRegister.ts
617
621
  src/models/PricingTier.ts
618
622
  src/models/PricingTierNotification.ts
619
623
  src/models/PricingTiersResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.103-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.104-RC
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.103-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.104-RC --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.0.104-RC | 01/03/2023 | order point of sale details |
57
58
  | 4.0.103-RC | 12/27/2022 | additional loyalty related coupons |
58
59
  | 4.0.102-RC | 12/21/2022 | conversation development |
59
60
  | 4.0.101-RC | 12/20/2022 | conversation engagement update |
@@ -27,6 +27,7 @@ import { OrderItem } from './OrderItem';
27
27
  import { OrderLinkedShipment } from './OrderLinkedShipment';
28
28
  import { OrderMarketing } from './OrderMarketing';
29
29
  import { OrderPayment } from './OrderPayment';
30
+ import { OrderPointOfSale } from './OrderPointOfSale';
30
31
  import { OrderProperty } from './OrderProperty';
31
32
  import { OrderQuote } from './OrderQuote';
32
33
  import { OrderSalesforce } from './OrderSalesforce';
@@ -190,6 +191,12 @@ export interface Order {
190
191
  * @memberof Order
191
192
  */
192
193
  payment?: OrderPayment;
194
+ /**
195
+ *
196
+ * @type {OrderPointOfSale}
197
+ * @memberof Order
198
+ */
199
+ point_of_sale?: OrderPointOfSale;
193
200
  /**
194
201
  * Properties, available only through update, not through insert due to the nature of how properties are handled internally
195
202
  * @type {Array<OrderProperty>}
@@ -33,6 +33,7 @@ var OrderItem_1 = require("./OrderItem");
33
33
  var OrderLinkedShipment_1 = require("./OrderLinkedShipment");
34
34
  var OrderMarketing_1 = require("./OrderMarketing");
35
35
  var OrderPayment_1 = require("./OrderPayment");
36
+ var OrderPointOfSale_1 = require("./OrderPointOfSale");
36
37
  var OrderProperty_1 = require("./OrderProperty");
37
38
  var OrderQuote_1 = require("./OrderQuote");
38
39
  var OrderSalesforce_1 = require("./OrderSalesforce");
@@ -91,6 +92,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
91
92
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
92
93
  'order_id': !(0, runtime_1.exists)(json, 'order_id') ? undefined : json['order_id'],
93
94
  'payment': !(0, runtime_1.exists)(json, 'payment') ? undefined : (0, OrderPayment_1.OrderPaymentFromJSON)(json['payment']),
95
+ 'point_of_sale': !(0, runtime_1.exists)(json, 'point_of_sale') ? undefined : (0, OrderPointOfSale_1.OrderPointOfSaleFromJSON)(json['point_of_sale']),
94
96
  'properties': !(0, runtime_1.exists)(json, 'properties') ? undefined : (json['properties'].map(OrderProperty_1.OrderPropertyFromJSON)),
95
97
  'quote': !(0, runtime_1.exists)(json, 'quote') ? undefined : (0, OrderQuote_1.OrderQuoteFromJSON)(json['quote']),
96
98
  'refund_dts': !(0, runtime_1.exists)(json, 'refund_dts') ? undefined : json['refund_dts'],
@@ -136,6 +138,7 @@ function OrderToJSON(value) {
136
138
  'merchant_id': value.merchant_id,
137
139
  'order_id': value.order_id,
138
140
  'payment': (0, OrderPayment_1.OrderPaymentToJSON)(value.payment),
141
+ 'point_of_sale': (0, OrderPointOfSale_1.OrderPointOfSaleToJSON)(value.point_of_sale),
139
142
  'properties': value.properties === undefined ? undefined : (value.properties.map(OrderProperty_1.OrderPropertyToJSON)),
140
143
  'quote': (0, OrderQuote_1.OrderQuoteToJSON)(value.quote),
141
144
  'refund_dts': value.refund_dts,
@@ -0,0 +1,42 @@
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 { PointOfSaleLocation } from './PointOfSaleLocation';
13
+ import { PointOfSaleReader } from './PointOfSaleReader';
14
+ import { PointOfSaleRegister } from './PointOfSaleRegister';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface OrderPointOfSale
19
+ */
20
+ export interface OrderPointOfSale {
21
+ /**
22
+ *
23
+ * @type {PointOfSaleLocation}
24
+ * @memberof OrderPointOfSale
25
+ */
26
+ location?: PointOfSaleLocation;
27
+ /**
28
+ *
29
+ * @type {PointOfSaleReader}
30
+ * @memberof OrderPointOfSale
31
+ */
32
+ reader?: PointOfSaleReader;
33
+ /**
34
+ *
35
+ * @type {PointOfSaleRegister}
36
+ * @memberof OrderPointOfSale
37
+ */
38
+ register?: PointOfSaleRegister;
39
+ }
40
+ export declare function OrderPointOfSaleFromJSON(json: any): OrderPointOfSale;
41
+ export declare function OrderPointOfSaleFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderPointOfSale;
42
+ export declare function OrderPointOfSaleToJSON(value?: OrderPointOfSale | null): any;
@@ -0,0 +1,49 @@
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.OrderPointOfSaleToJSON = exports.OrderPointOfSaleFromJSONTyped = exports.OrderPointOfSaleFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var PointOfSaleLocation_1 = require("./PointOfSaleLocation");
19
+ var PointOfSaleReader_1 = require("./PointOfSaleReader");
20
+ var PointOfSaleRegister_1 = require("./PointOfSaleRegister");
21
+ function OrderPointOfSaleFromJSON(json) {
22
+ return OrderPointOfSaleFromJSONTyped(json, false);
23
+ }
24
+ exports.OrderPointOfSaleFromJSON = OrderPointOfSaleFromJSON;
25
+ function OrderPointOfSaleFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'location': !(0, runtime_1.exists)(json, 'location') ? undefined : (0, PointOfSaleLocation_1.PointOfSaleLocationFromJSON)(json['location']),
31
+ 'reader': !(0, runtime_1.exists)(json, 'reader') ? undefined : (0, PointOfSaleReader_1.PointOfSaleReaderFromJSON)(json['reader']),
32
+ 'register': !(0, runtime_1.exists)(json, 'register') ? undefined : (0, PointOfSaleRegister_1.PointOfSaleRegisterFromJSON)(json['register']),
33
+ };
34
+ }
35
+ exports.OrderPointOfSaleFromJSONTyped = OrderPointOfSaleFromJSONTyped;
36
+ function OrderPointOfSaleToJSON(value) {
37
+ if (value === undefined) {
38
+ return undefined;
39
+ }
40
+ if (value === null) {
41
+ return null;
42
+ }
43
+ return {
44
+ 'location': (0, PointOfSaleLocation_1.PointOfSaleLocationToJSON)(value.location),
45
+ 'reader': (0, PointOfSaleReader_1.PointOfSaleReaderToJSON)(value.reader),
46
+ 'register': (0, PointOfSaleRegister_1.PointOfSaleRegisterToJSON)(value.register),
47
+ };
48
+ }
49
+ exports.OrderPointOfSaleToJSON = OrderPointOfSaleToJSON;
@@ -0,0 +1,75 @@
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 PointOfSaleLocation
16
+ */
17
+ export interface PointOfSaleLocation {
18
+ /**
19
+ * Address line 2
20
+ * @type {string}
21
+ * @memberof PointOfSaleLocation
22
+ */
23
+ adddress2?: string;
24
+ /**
25
+ * Address line 1
26
+ * @type {string}
27
+ * @memberof PointOfSaleLocation
28
+ */
29
+ address1?: string;
30
+ /**
31
+ * City
32
+ * @type {string}
33
+ * @memberof PointOfSaleLocation
34
+ */
35
+ city?: string;
36
+ /**
37
+ * Country
38
+ * @type {string}
39
+ * @memberof PointOfSaleLocation
40
+ */
41
+ country?: string;
42
+ /**
43
+ * The distribution center code where inventory is reduced from for this sale.
44
+ * @type {string}
45
+ * @memberof PointOfSaleLocation
46
+ */
47
+ distribution_center_code?: string;
48
+ /**
49
+ * Merchant ID that owns this location
50
+ * @type {string}
51
+ * @memberof PointOfSaleLocation
52
+ */
53
+ merchant_id?: string;
54
+ /**
55
+ * Object identifier of the point of sale location.
56
+ * @type {number}
57
+ * @memberof PointOfSaleLocation
58
+ */
59
+ pos_location_oid?: number;
60
+ /**
61
+ * Postal code
62
+ * @type {string}
63
+ * @memberof PointOfSaleLocation
64
+ */
65
+ postal_code?: string;
66
+ /**
67
+ * State/province
68
+ * @type {string}
69
+ * @memberof PointOfSaleLocation
70
+ */
71
+ state_province?: string;
72
+ }
73
+ export declare function PointOfSaleLocationFromJSON(json: any): PointOfSaleLocation;
74
+ export declare function PointOfSaleLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointOfSaleLocation;
75
+ export declare function PointOfSaleLocationToJSON(value?: PointOfSaleLocation | null): any;
@@ -0,0 +1,58 @@
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.PointOfSaleLocationToJSON = exports.PointOfSaleLocationFromJSONTyped = exports.PointOfSaleLocationFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function PointOfSaleLocationFromJSON(json) {
19
+ return PointOfSaleLocationFromJSONTyped(json, false);
20
+ }
21
+ exports.PointOfSaleLocationFromJSON = PointOfSaleLocationFromJSON;
22
+ function PointOfSaleLocationFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'adddress2': !(0, runtime_1.exists)(json, 'adddress2') ? undefined : json['adddress2'],
28
+ 'address1': !(0, runtime_1.exists)(json, 'address1') ? undefined : json['address1'],
29
+ 'city': !(0, runtime_1.exists)(json, 'city') ? undefined : json['city'],
30
+ 'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
31
+ 'distribution_center_code': !(0, runtime_1.exists)(json, 'distribution_center_code') ? undefined : json['distribution_center_code'],
32
+ 'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
33
+ 'pos_location_oid': !(0, runtime_1.exists)(json, 'pos_location_oid') ? undefined : json['pos_location_oid'],
34
+ 'postal_code': !(0, runtime_1.exists)(json, 'postal_code') ? undefined : json['postal_code'],
35
+ 'state_province': !(0, runtime_1.exists)(json, 'state_province') ? undefined : json['state_province'],
36
+ };
37
+ }
38
+ exports.PointOfSaleLocationFromJSONTyped = PointOfSaleLocationFromJSONTyped;
39
+ function PointOfSaleLocationToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'adddress2': value.adddress2,
48
+ 'address1': value.address1,
49
+ 'city': value.city,
50
+ 'country': value.country,
51
+ 'distribution_center_code': value.distribution_center_code,
52
+ 'merchant_id': value.merchant_id,
53
+ 'pos_location_oid': value.pos_location_oid,
54
+ 'postal_code': value.postal_code,
55
+ 'state_province': value.state_province,
56
+ };
57
+ }
58
+ exports.PointOfSaleLocationToJSON = PointOfSaleLocationToJSON;
@@ -0,0 +1,82 @@
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 PointOfSaleReader
16
+ */
17
+ export interface PointOfSaleReader {
18
+ /**
19
+ * The device type of the reader.
20
+ * @type {string}
21
+ * @memberof PointOfSaleReader
22
+ */
23
+ device_type?: string;
24
+ /**
25
+ * The label of the reader.
26
+ * @type {string}
27
+ * @memberof PointOfSaleReader
28
+ */
29
+ label?: string;
30
+ /**
31
+ * The merchant id that owns this point of sale reader.
32
+ * @type {string}
33
+ * @memberof PointOfSaleReader
34
+ */
35
+ merchant_id?: string;
36
+ /**
37
+ * The payment provider for the card reader.
38
+ * @type {string}
39
+ * @memberof PointOfSaleReader
40
+ */
41
+ payment_provider?: PointOfSaleReaderPaymentProviderEnum;
42
+ /**
43
+ * Object identifier of the point of sale reader.
44
+ * @type {number}
45
+ * @memberof PointOfSaleReader
46
+ */
47
+ pos_reader_id?: number;
48
+ /**
49
+ * Object identifier of the point of sale register this reader is assigned to.
50
+ * @type {number}
51
+ * @memberof PointOfSaleReader
52
+ */
53
+ pos_register_oid?: number;
54
+ /**
55
+ * The serial number of the reader.
56
+ * @type {string}
57
+ * @memberof PointOfSaleReader
58
+ */
59
+ serial_number?: string;
60
+ /**
61
+ * If the payment provider is Stripe, this is the Stripe account id
62
+ * @type {string}
63
+ * @memberof PointOfSaleReader
64
+ */
65
+ stripe_account_id?: string;
66
+ /**
67
+ * If the payment provide is Stripe, this is the Stripe terminal reader id
68
+ * @type {string}
69
+ * @memberof PointOfSaleReader
70
+ */
71
+ stripe_reader_id?: string;
72
+ }
73
+ /**
74
+ * @export
75
+ */
76
+ export declare const PointOfSaleReaderPaymentProviderEnum: {
77
+ readonly Stripe: "stripe";
78
+ };
79
+ export type PointOfSaleReaderPaymentProviderEnum = typeof PointOfSaleReaderPaymentProviderEnum[keyof typeof PointOfSaleReaderPaymentProviderEnum];
80
+ export declare function PointOfSaleReaderFromJSON(json: any): PointOfSaleReader;
81
+ export declare function PointOfSaleReaderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointOfSaleReader;
82
+ export declare function PointOfSaleReaderToJSON(value?: PointOfSaleReader | null): any;
@@ -0,0 +1,64 @@
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.PointOfSaleReaderToJSON = exports.PointOfSaleReaderFromJSONTyped = exports.PointOfSaleReaderFromJSON = exports.PointOfSaleReaderPaymentProviderEnum = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.PointOfSaleReaderPaymentProviderEnum = {
22
+ Stripe: 'stripe'
23
+ };
24
+ function PointOfSaleReaderFromJSON(json) {
25
+ return PointOfSaleReaderFromJSONTyped(json, false);
26
+ }
27
+ exports.PointOfSaleReaderFromJSON = PointOfSaleReaderFromJSON;
28
+ function PointOfSaleReaderFromJSONTyped(json, ignoreDiscriminator) {
29
+ if ((json === undefined) || (json === null)) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'device_type': !(0, runtime_1.exists)(json, 'device_type') ? undefined : json['device_type'],
34
+ 'label': !(0, runtime_1.exists)(json, 'label') ? undefined : json['label'],
35
+ 'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
36
+ 'payment_provider': !(0, runtime_1.exists)(json, 'payment_provider') ? undefined : json['payment_provider'],
37
+ 'pos_reader_id': !(0, runtime_1.exists)(json, 'pos_reader_id') ? undefined : json['pos_reader_id'],
38
+ 'pos_register_oid': !(0, runtime_1.exists)(json, 'pos_register_oid') ? undefined : json['pos_register_oid'],
39
+ 'serial_number': !(0, runtime_1.exists)(json, 'serial_number') ? undefined : json['serial_number'],
40
+ 'stripe_account_id': !(0, runtime_1.exists)(json, 'stripe_account_id') ? undefined : json['stripe_account_id'],
41
+ 'stripe_reader_id': !(0, runtime_1.exists)(json, 'stripe_reader_id') ? undefined : json['stripe_reader_id'],
42
+ };
43
+ }
44
+ exports.PointOfSaleReaderFromJSONTyped = PointOfSaleReaderFromJSONTyped;
45
+ function PointOfSaleReaderToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'device_type': value.device_type,
54
+ 'label': value.label,
55
+ 'merchant_id': value.merchant_id,
56
+ 'payment_provider': value.payment_provider,
57
+ 'pos_reader_id': value.pos_reader_id,
58
+ 'pos_register_oid': value.pos_register_oid,
59
+ 'serial_number': value.serial_number,
60
+ 'stripe_account_id': value.stripe_account_id,
61
+ 'stripe_reader_id': value.stripe_reader_id,
62
+ };
63
+ }
64
+ exports.PointOfSaleReaderToJSON = PointOfSaleReaderToJSON;
@@ -0,0 +1,45 @@
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 PointOfSaleRegister
16
+ */
17
+ export interface PointOfSaleRegister {
18
+ /**
19
+ * The merchant id that owns this point of sale register.
20
+ * @type {string}
21
+ * @memberof PointOfSaleRegister
22
+ */
23
+ merchant_id?: string;
24
+ /**
25
+ * Name of the register.
26
+ * @type {string}
27
+ * @memberof PointOfSaleRegister
28
+ */
29
+ name?: string;
30
+ /**
31
+ * Object identifier of the point of sale location where this register is located.
32
+ * @type {number}
33
+ * @memberof PointOfSaleRegister
34
+ */
35
+ pos_location_oid?: number;
36
+ /**
37
+ * Object identifier of the point of sale register.
38
+ * @type {number}
39
+ * @memberof PointOfSaleRegister
40
+ */
41
+ pos_register_oid?: number;
42
+ }
43
+ export declare function PointOfSaleRegisterFromJSON(json: any): PointOfSaleRegister;
44
+ export declare function PointOfSaleRegisterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointOfSaleRegister;
45
+ export declare function PointOfSaleRegisterToJSON(value?: PointOfSaleRegister | null): any;
@@ -0,0 +1,48 @@
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.PointOfSaleRegisterToJSON = exports.PointOfSaleRegisterFromJSONTyped = exports.PointOfSaleRegisterFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function PointOfSaleRegisterFromJSON(json) {
19
+ return PointOfSaleRegisterFromJSONTyped(json, false);
20
+ }
21
+ exports.PointOfSaleRegisterFromJSON = PointOfSaleRegisterFromJSON;
22
+ function PointOfSaleRegisterFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
28
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
29
+ 'pos_location_oid': !(0, runtime_1.exists)(json, 'pos_location_oid') ? undefined : json['pos_location_oid'],
30
+ 'pos_register_oid': !(0, runtime_1.exists)(json, 'pos_register_oid') ? undefined : json['pos_register_oid'],
31
+ };
32
+ }
33
+ exports.PointOfSaleRegisterFromJSONTyped = PointOfSaleRegisterFromJSONTyped;
34
+ function PointOfSaleRegisterToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'merchant_id': value.merchant_id,
43
+ 'name': value.name,
44
+ 'pos_location_oid': value.pos_location_oid,
45
+ 'pos_register_oid': value.pos_register_oid,
46
+ };
47
+ }
48
+ exports.PointOfSaleRegisterToJSON = PointOfSaleRegisterToJSON;
@@ -568,6 +568,7 @@ export * from './OrderPaymentInsurance';
568
568
  export * from './OrderPaymentPurchaseOrder';
569
569
  export * from './OrderPaymentTransaction';
570
570
  export * from './OrderPaymentTransactionDetail';
571
+ export * from './OrderPointOfSale';
571
572
  export * from './OrderProcessPaymentRequest';
572
573
  export * from './OrderProcessPaymentResponse';
573
574
  export * from './OrderProperty';
@@ -589,6 +590,9 @@ export * from './OrderTrackingNumberDetail';
589
590
  export * from './OrderTrackingNumberDetails';
590
591
  export * from './OrdersResponse';
591
592
  export * from './Permission';
593
+ export * from './PointOfSaleLocation';
594
+ export * from './PointOfSaleReader';
595
+ export * from './PointOfSaleRegister';
592
596
  export * from './PricingTier';
593
597
  export * from './PricingTierNotification';
594
598
  export * from './PricingTiersResponse';
@@ -586,6 +586,7 @@ __exportStar(require("./OrderPaymentInsurance"), exports);
586
586
  __exportStar(require("./OrderPaymentPurchaseOrder"), exports);
587
587
  __exportStar(require("./OrderPaymentTransaction"), exports);
588
588
  __exportStar(require("./OrderPaymentTransactionDetail"), exports);
589
+ __exportStar(require("./OrderPointOfSale"), exports);
589
590
  __exportStar(require("./OrderProcessPaymentRequest"), exports);
590
591
  __exportStar(require("./OrderProcessPaymentResponse"), exports);
591
592
  __exportStar(require("./OrderProperty"), exports);
@@ -607,6 +608,9 @@ __exportStar(require("./OrderTrackingNumberDetail"), exports);
607
608
  __exportStar(require("./OrderTrackingNumberDetails"), exports);
608
609
  __exportStar(require("./OrdersResponse"), exports);
609
610
  __exportStar(require("./Permission"), exports);
611
+ __exportStar(require("./PointOfSaleLocation"), exports);
612
+ __exportStar(require("./PointOfSaleReader"), exports);
613
+ __exportStar(require("./PointOfSaleRegister"), exports);
610
614
  __exportStar(require("./PricingTier"), exports);
611
615
  __exportStar(require("./PricingTierNotification"), exports);
612
616
  __exportStar(require("./PricingTiersResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.103-RC",
3
+ "version": "4.0.104-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -121,6 +121,12 @@ import {
121
121
  OrderPaymentFromJSONTyped,
122
122
  OrderPaymentToJSON,
123
123
  } from './OrderPayment';
124
+ import {
125
+ OrderPointOfSale,
126
+ OrderPointOfSaleFromJSON,
127
+ OrderPointOfSaleFromJSONTyped,
128
+ OrderPointOfSaleToJSON,
129
+ } from './OrderPointOfSale';
124
130
  import {
125
131
  OrderProperty,
126
132
  OrderPropertyFromJSON,
@@ -320,6 +326,12 @@ export interface Order {
320
326
  * @memberof Order
321
327
  */
322
328
  payment?: OrderPayment;
329
+ /**
330
+ *
331
+ * @type {OrderPointOfSale}
332
+ * @memberof Order
333
+ */
334
+ point_of_sale?: OrderPointOfSale;
323
335
  /**
324
336
  * Properties, available only through update, not through insert due to the nature of how properties are handled internally
325
337
  * @type {Array<OrderProperty>}
@@ -432,6 +444,7 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
432
444
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
433
445
  'order_id': !exists(json, 'order_id') ? undefined : json['order_id'],
434
446
  'payment': !exists(json, 'payment') ? undefined : OrderPaymentFromJSON(json['payment']),
447
+ 'point_of_sale': !exists(json, 'point_of_sale') ? undefined : OrderPointOfSaleFromJSON(json['point_of_sale']),
435
448
  'properties': !exists(json, 'properties') ? undefined : ((json['properties'] as Array<any>).map(OrderPropertyFromJSON)),
436
449
  'quote': !exists(json, 'quote') ? undefined : OrderQuoteFromJSON(json['quote']),
437
450
  'refund_dts': !exists(json, 'refund_dts') ? undefined : json['refund_dts'],
@@ -478,6 +491,7 @@ export function OrderToJSON(value?: Order | null): any {
478
491
  'merchant_id': value.merchant_id,
479
492
  'order_id': value.order_id,
480
493
  'payment': OrderPaymentToJSON(value.payment),
494
+ 'point_of_sale': OrderPointOfSaleToJSON(value.point_of_sale),
481
495
  'properties': value.properties === undefined ? undefined : ((value.properties as Array<any>).map(OrderPropertyToJSON)),
482
496
  'quote': OrderQuoteToJSON(value.quote),
483
497
  'refund_dts': value.refund_dts,
@@ -0,0 +1,91 @@
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
+ PointOfSaleLocation,
18
+ PointOfSaleLocationFromJSON,
19
+ PointOfSaleLocationFromJSONTyped,
20
+ PointOfSaleLocationToJSON,
21
+ } from './PointOfSaleLocation';
22
+ import {
23
+ PointOfSaleReader,
24
+ PointOfSaleReaderFromJSON,
25
+ PointOfSaleReaderFromJSONTyped,
26
+ PointOfSaleReaderToJSON,
27
+ } from './PointOfSaleReader';
28
+ import {
29
+ PointOfSaleRegister,
30
+ PointOfSaleRegisterFromJSON,
31
+ PointOfSaleRegisterFromJSONTyped,
32
+ PointOfSaleRegisterToJSON,
33
+ } from './PointOfSaleRegister';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface OrderPointOfSale
39
+ */
40
+ export interface OrderPointOfSale {
41
+ /**
42
+ *
43
+ * @type {PointOfSaleLocation}
44
+ * @memberof OrderPointOfSale
45
+ */
46
+ location?: PointOfSaleLocation;
47
+ /**
48
+ *
49
+ * @type {PointOfSaleReader}
50
+ * @memberof OrderPointOfSale
51
+ */
52
+ reader?: PointOfSaleReader;
53
+ /**
54
+ *
55
+ * @type {PointOfSaleRegister}
56
+ * @memberof OrderPointOfSale
57
+ */
58
+ register?: PointOfSaleRegister;
59
+ }
60
+
61
+ export function OrderPointOfSaleFromJSON(json: any): OrderPointOfSale {
62
+ return OrderPointOfSaleFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function OrderPointOfSaleFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderPointOfSale {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'location': !exists(json, 'location') ? undefined : PointOfSaleLocationFromJSON(json['location']),
72
+ 'reader': !exists(json, 'reader') ? undefined : PointOfSaleReaderFromJSON(json['reader']),
73
+ 'register': !exists(json, 'register') ? undefined : PointOfSaleRegisterFromJSON(json['register']),
74
+ };
75
+ }
76
+
77
+ export function OrderPointOfSaleToJSON(value?: OrderPointOfSale | null): any {
78
+ if (value === undefined) {
79
+ return undefined;
80
+ }
81
+ if (value === null) {
82
+ return null;
83
+ }
84
+ return {
85
+
86
+ 'location': PointOfSaleLocationToJSON(value.location),
87
+ 'reader': PointOfSaleReaderToJSON(value.reader),
88
+ 'register': PointOfSaleRegisterToJSON(value.register),
89
+ };
90
+ }
91
+
@@ -0,0 +1,120 @@
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 PointOfSaleLocation
20
+ */
21
+ export interface PointOfSaleLocation {
22
+ /**
23
+ * Address line 2
24
+ * @type {string}
25
+ * @memberof PointOfSaleLocation
26
+ */
27
+ adddress2?: string;
28
+ /**
29
+ * Address line 1
30
+ * @type {string}
31
+ * @memberof PointOfSaleLocation
32
+ */
33
+ address1?: string;
34
+ /**
35
+ * City
36
+ * @type {string}
37
+ * @memberof PointOfSaleLocation
38
+ */
39
+ city?: string;
40
+ /**
41
+ * Country
42
+ * @type {string}
43
+ * @memberof PointOfSaleLocation
44
+ */
45
+ country?: string;
46
+ /**
47
+ * The distribution center code where inventory is reduced from for this sale.
48
+ * @type {string}
49
+ * @memberof PointOfSaleLocation
50
+ */
51
+ distribution_center_code?: string;
52
+ /**
53
+ * Merchant ID that owns this location
54
+ * @type {string}
55
+ * @memberof PointOfSaleLocation
56
+ */
57
+ merchant_id?: string;
58
+ /**
59
+ * Object identifier of the point of sale location.
60
+ * @type {number}
61
+ * @memberof PointOfSaleLocation
62
+ */
63
+ pos_location_oid?: number;
64
+ /**
65
+ * Postal code
66
+ * @type {string}
67
+ * @memberof PointOfSaleLocation
68
+ */
69
+ postal_code?: string;
70
+ /**
71
+ * State/province
72
+ * @type {string}
73
+ * @memberof PointOfSaleLocation
74
+ */
75
+ state_province?: string;
76
+ }
77
+
78
+ export function PointOfSaleLocationFromJSON(json: any): PointOfSaleLocation {
79
+ return PointOfSaleLocationFromJSONTyped(json, false);
80
+ }
81
+
82
+ export function PointOfSaleLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointOfSaleLocation {
83
+ if ((json === undefined) || (json === null)) {
84
+ return json;
85
+ }
86
+ return {
87
+
88
+ 'adddress2': !exists(json, 'adddress2') ? undefined : json['adddress2'],
89
+ 'address1': !exists(json, 'address1') ? undefined : json['address1'],
90
+ 'city': !exists(json, 'city') ? undefined : json['city'],
91
+ 'country': !exists(json, 'country') ? undefined : json['country'],
92
+ 'distribution_center_code': !exists(json, 'distribution_center_code') ? undefined : json['distribution_center_code'],
93
+ 'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
94
+ 'pos_location_oid': !exists(json, 'pos_location_oid') ? undefined : json['pos_location_oid'],
95
+ 'postal_code': !exists(json, 'postal_code') ? undefined : json['postal_code'],
96
+ 'state_province': !exists(json, 'state_province') ? undefined : json['state_province'],
97
+ };
98
+ }
99
+
100
+ export function PointOfSaleLocationToJSON(value?: PointOfSaleLocation | null): any {
101
+ if (value === undefined) {
102
+ return undefined;
103
+ }
104
+ if (value === null) {
105
+ return null;
106
+ }
107
+ return {
108
+
109
+ 'adddress2': value.adddress2,
110
+ 'address1': value.address1,
111
+ 'city': value.city,
112
+ 'country': value.country,
113
+ 'distribution_center_code': value.distribution_center_code,
114
+ 'merchant_id': value.merchant_id,
115
+ 'pos_location_oid': value.pos_location_oid,
116
+ 'postal_code': value.postal_code,
117
+ 'state_province': value.state_province,
118
+ };
119
+ }
120
+
@@ -0,0 +1,130 @@
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 PointOfSaleReader
20
+ */
21
+ export interface PointOfSaleReader {
22
+ /**
23
+ * The device type of the reader.
24
+ * @type {string}
25
+ * @memberof PointOfSaleReader
26
+ */
27
+ device_type?: string;
28
+ /**
29
+ * The label of the reader.
30
+ * @type {string}
31
+ * @memberof PointOfSaleReader
32
+ */
33
+ label?: string;
34
+ /**
35
+ * The merchant id that owns this point of sale reader.
36
+ * @type {string}
37
+ * @memberof PointOfSaleReader
38
+ */
39
+ merchant_id?: string;
40
+ /**
41
+ * The payment provider for the card reader.
42
+ * @type {string}
43
+ * @memberof PointOfSaleReader
44
+ */
45
+ payment_provider?: PointOfSaleReaderPaymentProviderEnum;
46
+ /**
47
+ * Object identifier of the point of sale reader.
48
+ * @type {number}
49
+ * @memberof PointOfSaleReader
50
+ */
51
+ pos_reader_id?: number;
52
+ /**
53
+ * Object identifier of the point of sale register this reader is assigned to.
54
+ * @type {number}
55
+ * @memberof PointOfSaleReader
56
+ */
57
+ pos_register_oid?: number;
58
+ /**
59
+ * The serial number of the reader.
60
+ * @type {string}
61
+ * @memberof PointOfSaleReader
62
+ */
63
+ serial_number?: string;
64
+ /**
65
+ * If the payment provider is Stripe, this is the Stripe account id
66
+ * @type {string}
67
+ * @memberof PointOfSaleReader
68
+ */
69
+ stripe_account_id?: string;
70
+ /**
71
+ * If the payment provide is Stripe, this is the Stripe terminal reader id
72
+ * @type {string}
73
+ * @memberof PointOfSaleReader
74
+ */
75
+ stripe_reader_id?: string;
76
+ }
77
+
78
+
79
+ /**
80
+ * @export
81
+ */
82
+ export const PointOfSaleReaderPaymentProviderEnum = {
83
+ Stripe: 'stripe'
84
+ } as const;
85
+ export type PointOfSaleReaderPaymentProviderEnum = typeof PointOfSaleReaderPaymentProviderEnum[keyof typeof PointOfSaleReaderPaymentProviderEnum];
86
+
87
+
88
+ export function PointOfSaleReaderFromJSON(json: any): PointOfSaleReader {
89
+ return PointOfSaleReaderFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function PointOfSaleReaderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointOfSaleReader {
93
+ if ((json === undefined) || (json === null)) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'device_type': !exists(json, 'device_type') ? undefined : json['device_type'],
99
+ 'label': !exists(json, 'label') ? undefined : json['label'],
100
+ 'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
101
+ 'payment_provider': !exists(json, 'payment_provider') ? undefined : json['payment_provider'],
102
+ 'pos_reader_id': !exists(json, 'pos_reader_id') ? undefined : json['pos_reader_id'],
103
+ 'pos_register_oid': !exists(json, 'pos_register_oid') ? undefined : json['pos_register_oid'],
104
+ 'serial_number': !exists(json, 'serial_number') ? undefined : json['serial_number'],
105
+ 'stripe_account_id': !exists(json, 'stripe_account_id') ? undefined : json['stripe_account_id'],
106
+ 'stripe_reader_id': !exists(json, 'stripe_reader_id') ? undefined : json['stripe_reader_id'],
107
+ };
108
+ }
109
+
110
+ export function PointOfSaleReaderToJSON(value?: PointOfSaleReader | null): any {
111
+ if (value === undefined) {
112
+ return undefined;
113
+ }
114
+ if (value === null) {
115
+ return null;
116
+ }
117
+ return {
118
+
119
+ 'device_type': value.device_type,
120
+ 'label': value.label,
121
+ 'merchant_id': value.merchant_id,
122
+ 'payment_provider': value.payment_provider,
123
+ 'pos_reader_id': value.pos_reader_id,
124
+ 'pos_register_oid': value.pos_register_oid,
125
+ 'serial_number': value.serial_number,
126
+ 'stripe_account_id': value.stripe_account_id,
127
+ 'stripe_reader_id': value.stripe_reader_id,
128
+ };
129
+ }
130
+
@@ -0,0 +1,80 @@
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 PointOfSaleRegister
20
+ */
21
+ export interface PointOfSaleRegister {
22
+ /**
23
+ * The merchant id that owns this point of sale register.
24
+ * @type {string}
25
+ * @memberof PointOfSaleRegister
26
+ */
27
+ merchant_id?: string;
28
+ /**
29
+ * Name of the register.
30
+ * @type {string}
31
+ * @memberof PointOfSaleRegister
32
+ */
33
+ name?: string;
34
+ /**
35
+ * Object identifier of the point of sale location where this register is located.
36
+ * @type {number}
37
+ * @memberof PointOfSaleRegister
38
+ */
39
+ pos_location_oid?: number;
40
+ /**
41
+ * Object identifier of the point of sale register.
42
+ * @type {number}
43
+ * @memberof PointOfSaleRegister
44
+ */
45
+ pos_register_oid?: number;
46
+ }
47
+
48
+ export function PointOfSaleRegisterFromJSON(json: any): PointOfSaleRegister {
49
+ return PointOfSaleRegisterFromJSONTyped(json, false);
50
+ }
51
+
52
+ export function PointOfSaleRegisterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointOfSaleRegister {
53
+ if ((json === undefined) || (json === null)) {
54
+ return json;
55
+ }
56
+ return {
57
+
58
+ 'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
59
+ 'name': !exists(json, 'name') ? undefined : json['name'],
60
+ 'pos_location_oid': !exists(json, 'pos_location_oid') ? undefined : json['pos_location_oid'],
61
+ 'pos_register_oid': !exists(json, 'pos_register_oid') ? undefined : json['pos_register_oid'],
62
+ };
63
+ }
64
+
65
+ export function PointOfSaleRegisterToJSON(value?: PointOfSaleRegister | null): any {
66
+ if (value === undefined) {
67
+ return undefined;
68
+ }
69
+ if (value === null) {
70
+ return null;
71
+ }
72
+ return {
73
+
74
+ 'merchant_id': value.merchant_id,
75
+ 'name': value.name,
76
+ 'pos_location_oid': value.pos_location_oid,
77
+ 'pos_register_oid': value.pos_register_oid,
78
+ };
79
+ }
80
+
@@ -570,6 +570,7 @@ export * from './OrderPaymentInsurance';
570
570
  export * from './OrderPaymentPurchaseOrder';
571
571
  export * from './OrderPaymentTransaction';
572
572
  export * from './OrderPaymentTransactionDetail';
573
+ export * from './OrderPointOfSale';
573
574
  export * from './OrderProcessPaymentRequest';
574
575
  export * from './OrderProcessPaymentResponse';
575
576
  export * from './OrderProperty';
@@ -591,6 +592,9 @@ export * from './OrderTrackingNumberDetail';
591
592
  export * from './OrderTrackingNumberDetails';
592
593
  export * from './OrdersResponse';
593
594
  export * from './Permission';
595
+ export * from './PointOfSaleLocation';
596
+ export * from './PointOfSaleReader';
597
+ export * from './PointOfSaleRegister';
594
598
  export * from './PricingTier';
595
599
  export * from './PricingTierNotification';
596
600
  export * from './PricingTiersResponse';