ultracart_rest_api_v2_typescript 4.0.242 → 4.1.0

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.
@@ -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.242
1
+ ## ultracart_rest_api_v2_typescript@4.1.0
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.242 --save
39
+ npm install ultracart_rest_api_v2_typescript@4.1.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,10 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.1.0 | 02/21/2025 | ItemApi.getInventorySnapshot had bad nickname causing bad sdk method name |
58
+ | 4.0.245 | 02/20/2025 | automation fix |
59
+ | 4.0.244 | 02/20/2025 | no change, revving sdk to troubleshoot java deployment automation |
60
+ | 4.0.243 | 02/20/2025 | no change, revving sdk to troubleshoot java deployment automation |
57
61
  | 4.0.242 | 02/18/2025 | small bug fixes for incorrect return types on several methods |
58
62
  | 4.0.241 | 02/06/2025 | added storefront_host_name to channel partner order object |
59
63
  | 4.0.240 | 01/09/2025 | fix for broken 4.0.39 due to incorrect query sig on getCustomers |
@@ -210,6 +210,19 @@ export interface ItemApiInterface {
210
210
  * Retrieves digital items from the digital library (which are digital files that may be attached to normal items) that having a matching external id
211
211
  */
212
212
  getDigitalItemsByExternalId(requestParameters: GetDigitalItemsByExternalIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemDigitalItemsResponse>;
213
+ /**
214
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
215
+ * @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ * @memberof ItemApiInterface
219
+ */
220
+ getInventorySnapshotRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ItemInventorySnapshotResponse>>;
221
+ /**
222
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
223
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
224
+ */
225
+ getInventorySnapshot(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemInventorySnapshotResponse>;
213
226
  /**
214
227
  * Retrieves a single item using the specified item oid.
215
228
  * @summary Retrieve an item
@@ -385,19 +398,6 @@ export interface ItemApiInterface {
385
398
  * Upsert an item content attribute
386
399
  */
387
400
  insertUpdateItemContentAttribute(requestParameters: InsertUpdateItemContentAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
388
- /**
389
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
390
- * @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
391
- * @param {*} [options] Override http request option.
392
- * @throws {RequiredError}
393
- * @memberof ItemApiInterface
394
- */
395
- restItemInventorySnapshotResponseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ItemInventorySnapshotResponse>>;
396
- /**
397
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
398
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
399
- */
400
- restItemInventorySnapshotResponse(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemInventorySnapshotResponse>;
401
401
  /**
402
402
  * Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
403
403
  * @summary Updates a file within the digital library
@@ -542,6 +542,16 @@ export declare class ItemApi extends runtime.BaseAPI implements ItemApiInterface
542
542
  * Retrieves digital items from the digital library (which are digital files that may be attached to normal items) that having a matching external id
543
543
  */
544
544
  getDigitalItemsByExternalId(requestParameters: GetDigitalItemsByExternalIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemDigitalItemsResponse>;
545
+ /**
546
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
547
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
548
+ */
549
+ getInventorySnapshotRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ItemInventorySnapshotResponse>>;
550
+ /**
551
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
552
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
553
+ */
554
+ getInventorySnapshot(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemInventorySnapshotResponse>;
545
555
  /**
546
556
  * Retrieves a single item using the specified item oid.
547
557
  * Retrieve an item
@@ -652,16 +662,6 @@ export declare class ItemApi extends runtime.BaseAPI implements ItemApiInterface
652
662
  * Upsert an item content attribute
653
663
  */
654
664
  insertUpdateItemContentAttribute(requestParameters: InsertUpdateItemContentAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
655
- /**
656
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
657
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
658
- */
659
- restItemInventorySnapshotResponseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ItemInventorySnapshotResponse>>;
660
- /**
661
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
662
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
663
- */
664
- restItemInventorySnapshotResponse(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemInventorySnapshotResponse>;
665
665
  /**
666
666
  * Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
667
667
  * Updates a file within the digital library
@@ -442,6 +442,62 @@ var ItemApi = /** @class */ (function (_super) {
442
442
  });
443
443
  });
444
444
  };
445
+ /**
446
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
447
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
448
+ */
449
+ ItemApi.prototype.getInventorySnapshotRaw = function (initOverrides) {
450
+ return __awaiter(this, void 0, void 0, function () {
451
+ var queryParameters, headerParameters, _a, _b, response;
452
+ return __generator(this, function (_c) {
453
+ switch (_c.label) {
454
+ case 0:
455
+ queryParameters = {};
456
+ headerParameters = {};
457
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
458
+ // oauth required
459
+ _a = headerParameters;
460
+ _b = "Authorization";
461
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["item_read"])];
462
+ case 1:
463
+ // oauth required
464
+ _a[_b] = _c.sent();
465
+ _c.label = 2;
466
+ case 2:
467
+ if (this.configuration && this.configuration.apiKey) {
468
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
469
+ }
470
+ return [4 /*yield*/, this.request({
471
+ path: "/item/items/inventory_snapshot",
472
+ method: 'GET',
473
+ headers: headerParameters,
474
+ query: queryParameters,
475
+ }, initOverrides)];
476
+ case 3:
477
+ response = _c.sent();
478
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ItemInventorySnapshotResponseFromJSON)(jsonValue); })];
479
+ }
480
+ });
481
+ });
482
+ };
483
+ /**
484
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
485
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
486
+ */
487
+ ItemApi.prototype.getInventorySnapshot = function (initOverrides) {
488
+ return __awaiter(this, void 0, void 0, function () {
489
+ var response;
490
+ return __generator(this, function (_a) {
491
+ switch (_a.label) {
492
+ case 0: return [4 /*yield*/, this.getInventorySnapshotRaw(initOverrides)];
493
+ case 1:
494
+ response = _a.sent();
495
+ return [4 /*yield*/, response.value()];
496
+ case 2: return [2 /*return*/, _a.sent()];
497
+ }
498
+ });
499
+ });
500
+ };
445
501
  /**
446
502
  * Retrieves a single item using the specified item oid.
447
503
  * Retrieve an item
@@ -1163,62 +1219,6 @@ var ItemApi = /** @class */ (function (_super) {
1163
1219
  });
1164
1220
  });
1165
1221
  };
1166
- /**
1167
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
1168
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
1169
- */
1170
- ItemApi.prototype.restItemInventorySnapshotResponseRaw = function (initOverrides) {
1171
- return __awaiter(this, void 0, void 0, function () {
1172
- var queryParameters, headerParameters, _a, _b, response;
1173
- return __generator(this, function (_c) {
1174
- switch (_c.label) {
1175
- case 0:
1176
- queryParameters = {};
1177
- headerParameters = {};
1178
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1179
- // oauth required
1180
- _a = headerParameters;
1181
- _b = "Authorization";
1182
- return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["item_read"])];
1183
- case 1:
1184
- // oauth required
1185
- _a[_b] = _c.sent();
1186
- _c.label = 2;
1187
- case 2:
1188
- if (this.configuration && this.configuration.apiKey) {
1189
- headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
1190
- }
1191
- return [4 /*yield*/, this.request({
1192
- path: "/item/items/inventory_snapshot",
1193
- method: 'GET',
1194
- headers: headerParameters,
1195
- query: queryParameters,
1196
- }, initOverrides)];
1197
- case 3:
1198
- response = _c.sent();
1199
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ItemInventorySnapshotResponseFromJSON)(jsonValue); })];
1200
- }
1201
- });
1202
- });
1203
- };
1204
- /**
1205
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
1206
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
1207
- */
1208
- ItemApi.prototype.restItemInventorySnapshotResponse = function (initOverrides) {
1209
- return __awaiter(this, void 0, void 0, function () {
1210
- var response;
1211
- return __generator(this, function (_a) {
1212
- switch (_a.label) {
1213
- case 0: return [4 /*yield*/, this.restItemInventorySnapshotResponseRaw(initOverrides)];
1214
- case 1:
1215
- response = _a.sent();
1216
- return [4 /*yield*/, response.value()];
1217
- case 2: return [2 /*return*/, _a.sent()];
1218
- }
1219
- });
1220
- });
1221
- };
1222
1222
  /**
1223
1223
  * Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
1224
1224
  * Updates a file within the digital library
@@ -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;
@@ -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';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.242",
3
+ "version": "4.1.0",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -295,6 +295,21 @@ export interface ItemApiInterface {
295
295
  */
296
296
  getDigitalItemsByExternalId(requestParameters: GetDigitalItemsByExternalIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemDigitalItemsResponse>;
297
297
 
298
+ /**
299
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
300
+ * @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
301
+ * @param {*} [options] Override http request option.
302
+ * @throws {RequiredError}
303
+ * @memberof ItemApiInterface
304
+ */
305
+ getInventorySnapshotRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ItemInventorySnapshotResponse>>;
306
+
307
+ /**
308
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
309
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
310
+ */
311
+ getInventorySnapshot(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemInventorySnapshotResponse>;
312
+
298
313
  /**
299
314
  * Retrieves a single item using the specified item oid.
300
315
  * @summary Retrieve an item
@@ -492,21 +507,6 @@ export interface ItemApiInterface {
492
507
  */
493
508
  insertUpdateItemContentAttribute(requestParameters: InsertUpdateItemContentAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
494
509
 
495
- /**
496
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
497
- * @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
498
- * @param {*} [options] Override http request option.
499
- * @throws {RequiredError}
500
- * @memberof ItemApiInterface
501
- */
502
- restItemInventorySnapshotResponseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ItemInventorySnapshotResponse>>;
503
-
504
- /**
505
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
506
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
507
- */
508
- restItemInventorySnapshotResponse(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemInventorySnapshotResponse>;
509
-
510
510
  /**
511
511
  * Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
512
512
  * @summary Updates a file within the digital library
@@ -870,6 +870,43 @@ export class ItemApi extends runtime.BaseAPI implements ItemApiInterface {
870
870
  return await response.value();
871
871
  }
872
872
 
873
+ /**
874
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
875
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
876
+ */
877
+ async getInventorySnapshotRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ItemInventorySnapshotResponse>> {
878
+ const queryParameters: any = {};
879
+
880
+ const headerParameters: runtime.HTTPHeaders = {};
881
+
882
+ if (this.configuration && this.configuration.accessToken) {
883
+ // oauth required
884
+ headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["item_read"]);
885
+ }
886
+
887
+ if (this.configuration && this.configuration.apiKey) {
888
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
889
+ }
890
+
891
+ const response = await this.request({
892
+ path: `/item/items/inventory_snapshot`,
893
+ method: 'GET',
894
+ headers: headerParameters,
895
+ query: queryParameters,
896
+ }, initOverrides);
897
+
898
+ return new runtime.JSONApiResponse(response, (jsonValue) => ItemInventorySnapshotResponseFromJSON(jsonValue));
899
+ }
900
+
901
+ /**
902
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
903
+ * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
904
+ */
905
+ async getInventorySnapshot(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemInventorySnapshotResponse> {
906
+ const response = await this.getInventorySnapshotRaw(initOverrides);
907
+ return await response.value();
908
+ }
909
+
873
910
  /**
874
911
  * Retrieves a single item using the specified item oid.
875
912
  * Retrieve an item
@@ -1416,43 +1453,6 @@ export class ItemApi extends runtime.BaseAPI implements ItemApiInterface {
1416
1453
  await this.insertUpdateItemContentAttributeRaw(requestParameters, initOverrides);
1417
1454
  }
1418
1455
 
1419
- /**
1420
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
1421
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
1422
- */
1423
- async restItemInventorySnapshotResponseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ItemInventorySnapshotResponse>> {
1424
- const queryParameters: any = {};
1425
-
1426
- const headerParameters: runtime.HTTPHeaders = {};
1427
-
1428
- if (this.configuration && this.configuration.accessToken) {
1429
- // oauth required
1430
- headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["item_read"]);
1431
- }
1432
-
1433
- if (this.configuration && this.configuration.apiKey) {
1434
- headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
1435
- }
1436
-
1437
- const response = await this.request({
1438
- path: `/item/items/inventory_snapshot`,
1439
- method: 'GET',
1440
- headers: headerParameters,
1441
- query: queryParameters,
1442
- }, initOverrides);
1443
-
1444
- return new runtime.JSONApiResponse(response, (jsonValue) => ItemInventorySnapshotResponseFromJSON(jsonValue));
1445
- }
1446
-
1447
- /**
1448
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
1449
- * Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
1450
- */
1451
- async restItemInventorySnapshotResponse(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemInventorySnapshotResponse> {
1452
- const response = await this.restItemInventorySnapshotResponseRaw(initOverrides);
1453
- return await response.value();
1454
- }
1455
-
1456
1456
  /**
1457
1457
  * Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
1458
1458
  * Updates a file within the digital library
@@ -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
+
@@ -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';