ultracart_rest_api_v2_typescript 4.1.84 → 4.1.85
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/README.md +3 -2
- package/dist/apis/OrderApi.d.ts +52 -0
- package/dist/apis/OrderApi.js +117 -0
- package/dist/models/Warning.d.ts +6 -0
- package/dist/models/Warning.js +2 -0
- package/package.json +1 -1
- package/src/apis/OrderApi.ts +121 -0
- package/src/models/Warning.ts +8 -0
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.85
|
|
3
3
|
|
|
4
4
|
Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
|
|
5
5
|
|
|
6
6
|
Installation
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
npm install ultracart_rest_api_v2_typescript@4.1.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.85 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,7 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.85 | 05/05/2026 | improved warning object for customer insertCustomer and updateCustomer |
|
|
88
89
|
| 4.1.84 | 05/04/2026 | Order API - add hold stage to allowed values on order query request |
|
|
89
90
|
| 4.1.83 | 04/29/2026 | AO support for item appending on cancel request, order payment method test routing on hold release |
|
|
90
91
|
| 4.1.82 | 04/27/2026 | converation - agent status and availability |
|
package/dist/apis/OrderApi.d.ts
CHANGED
|
@@ -53,6 +53,10 @@ export interface GeneratePackingSlipSpecificDCRequest {
|
|
|
53
53
|
distributionCenterCode: string;
|
|
54
54
|
orderId: string;
|
|
55
55
|
}
|
|
56
|
+
export interface GetAccountsReceivableDetailValueHistogramRequest {
|
|
57
|
+
detail: string;
|
|
58
|
+
gateway?: string;
|
|
59
|
+
}
|
|
56
60
|
export interface GetAccountsReceivableRetryStatsRequest {
|
|
57
61
|
from?: string;
|
|
58
62
|
to?: string;
|
|
@@ -348,6 +352,34 @@ export interface OrderApiInterface {
|
|
|
348
352
|
* Generate a packing slip for this order for the given distribution center.
|
|
349
353
|
*/
|
|
350
354
|
generatePackingSlipSpecificDC(requestParameters: GeneratePackingSlipSpecificDCRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderPackingSlipResponse>;
|
|
355
|
+
/**
|
|
356
|
+
* For the calling merchant\'s Accounts Receivable orders, returns a value -> document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal\'s autocomplete on the detail-value input.
|
|
357
|
+
* @summary Retrieve a value histogram for a given AR transaction-detail name
|
|
358
|
+
* @param {string} detail The transaction-detail name to histogram.
|
|
359
|
+
* @param {string} [gateway] The gateway name to scope to (optional).
|
|
360
|
+
* @param {*} [options] Override http request option.
|
|
361
|
+
* @throws {RequiredError}
|
|
362
|
+
* @memberof OrderApiInterface
|
|
363
|
+
*/
|
|
364
|
+
getAccountsReceivableDetailValueHistogramRaw(requestParameters: GetAccountsReceivableDetailValueHistogramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
365
|
+
/**
|
|
366
|
+
* For the calling merchant\'s Accounts Receivable orders, returns a value -> document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal\'s autocomplete on the detail-value input.
|
|
367
|
+
* Retrieve a value histogram for a given AR transaction-detail name
|
|
368
|
+
*/
|
|
369
|
+
getAccountsReceivableDetailValueHistogram(requestParameters: GetAccountsReceivableDetailValueHistogramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
370
|
+
/**
|
|
371
|
+
* For the calling merchant\'s Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
|
|
372
|
+
* @summary Retrieve gateway / detail-name picker data for the AR filter modal
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
* @memberof OrderApiInterface
|
|
376
|
+
*/
|
|
377
|
+
getAccountsReceivableGatewayDetailNamesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
378
|
+
/**
|
|
379
|
+
* For the calling merchant\'s Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
|
|
380
|
+
* Retrieve gateway / detail-name picker data for the AR filter modal
|
|
381
|
+
*/
|
|
382
|
+
getAccountsReceivableGatewayDetailNames(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
351
383
|
/**
|
|
352
384
|
* Retrieve A/R Retry Configuration. This is primarily an internal API call. It is doubtful you would ever need to use it.
|
|
353
385
|
* @summary Retrieve A/R Retry Configuration
|
|
@@ -843,6 +875,26 @@ export declare class OrderApi extends runtime.BaseAPI implements OrderApiInterfa
|
|
|
843
875
|
* Generate a packing slip for this order for the given distribution center.
|
|
844
876
|
*/
|
|
845
877
|
generatePackingSlipSpecificDC(requestParameters: GeneratePackingSlipSpecificDCRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderPackingSlipResponse>;
|
|
878
|
+
/**
|
|
879
|
+
* For the calling merchant\'s Accounts Receivable orders, returns a value -> document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal\'s autocomplete on the detail-value input.
|
|
880
|
+
* Retrieve a value histogram for a given AR transaction-detail name
|
|
881
|
+
*/
|
|
882
|
+
getAccountsReceivableDetailValueHistogramRaw(requestParameters: GetAccountsReceivableDetailValueHistogramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
883
|
+
/**
|
|
884
|
+
* For the calling merchant\'s Accounts Receivable orders, returns a value -> document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal\'s autocomplete on the detail-value input.
|
|
885
|
+
* Retrieve a value histogram for a given AR transaction-detail name
|
|
886
|
+
*/
|
|
887
|
+
getAccountsReceivableDetailValueHistogram(requestParameters: GetAccountsReceivableDetailValueHistogramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
888
|
+
/**
|
|
889
|
+
* For the calling merchant\'s Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
|
|
890
|
+
* Retrieve gateway / detail-name picker data for the AR filter modal
|
|
891
|
+
*/
|
|
892
|
+
getAccountsReceivableGatewayDetailNamesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
893
|
+
/**
|
|
894
|
+
* For the calling merchant\'s Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
|
|
895
|
+
* Retrieve gateway / detail-name picker data for the AR filter modal
|
|
896
|
+
*/
|
|
897
|
+
getAccountsReceivableGatewayDetailNames(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
846
898
|
/**
|
|
847
899
|
* Retrieve A/R Retry Configuration. This is primarily an internal API call. It is doubtful you would ever need to use it.
|
|
848
900
|
* Retrieve A/R Retry Configuration
|
package/dist/apis/OrderApi.js
CHANGED
|
@@ -751,6 +751,123 @@ var OrderApi = /** @class */ (function (_super) {
|
|
|
751
751
|
});
|
|
752
752
|
});
|
|
753
753
|
};
|
|
754
|
+
/**
|
|
755
|
+
* For the calling merchant\'s Accounts Receivable orders, returns a value -> document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal\'s autocomplete on the detail-value input.
|
|
756
|
+
* Retrieve a value histogram for a given AR transaction-detail name
|
|
757
|
+
*/
|
|
758
|
+
OrderApi.prototype.getAccountsReceivableDetailValueHistogramRaw = function (requestParameters, initOverrides) {
|
|
759
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
760
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
761
|
+
return __generator(this, function (_c) {
|
|
762
|
+
switch (_c.label) {
|
|
763
|
+
case 0:
|
|
764
|
+
if (requestParameters.detail === null || requestParameters.detail === undefined) {
|
|
765
|
+
throw new runtime.RequiredError('detail', 'Required parameter requestParameters.detail was null or undefined when calling getAccountsReceivableDetailValueHistogram.');
|
|
766
|
+
}
|
|
767
|
+
queryParameters = {};
|
|
768
|
+
if (requestParameters.gateway !== undefined) {
|
|
769
|
+
queryParameters['gateway'] = requestParameters.gateway;
|
|
770
|
+
}
|
|
771
|
+
if (requestParameters.detail !== undefined) {
|
|
772
|
+
queryParameters['detail'] = requestParameters.detail;
|
|
773
|
+
}
|
|
774
|
+
headerParameters = {};
|
|
775
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
776
|
+
// oauth required
|
|
777
|
+
_a = headerParameters;
|
|
778
|
+
_b = "Authorization";
|
|
779
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["order_read"])];
|
|
780
|
+
case 1:
|
|
781
|
+
// oauth required
|
|
782
|
+
_a[_b] = _c.sent();
|
|
783
|
+
_c.label = 2;
|
|
784
|
+
case 2:
|
|
785
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
786
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
787
|
+
}
|
|
788
|
+
return [4 /*yield*/, this.request({
|
|
789
|
+
path: "/order/accounts_receivable/detail_value_histogram",
|
|
790
|
+
method: 'GET',
|
|
791
|
+
headers: headerParameters,
|
|
792
|
+
query: queryParameters,
|
|
793
|
+
}, initOverrides)];
|
|
794
|
+
case 3:
|
|
795
|
+
response = _c.sent();
|
|
796
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
797
|
+
}
|
|
798
|
+
});
|
|
799
|
+
});
|
|
800
|
+
};
|
|
801
|
+
/**
|
|
802
|
+
* For the calling merchant\'s Accounts Receivable orders, returns a value -> document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal\'s autocomplete on the detail-value input.
|
|
803
|
+
* Retrieve a value histogram for a given AR transaction-detail name
|
|
804
|
+
*/
|
|
805
|
+
OrderApi.prototype.getAccountsReceivableDetailValueHistogram = function (requestParameters, initOverrides) {
|
|
806
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
807
|
+
return __generator(this, function (_a) {
|
|
808
|
+
switch (_a.label) {
|
|
809
|
+
case 0: return [4 /*yield*/, this.getAccountsReceivableDetailValueHistogramRaw(requestParameters, initOverrides)];
|
|
810
|
+
case 1:
|
|
811
|
+
_a.sent();
|
|
812
|
+
return [2 /*return*/];
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
});
|
|
816
|
+
};
|
|
817
|
+
/**
|
|
818
|
+
* For the calling merchant\'s Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
|
|
819
|
+
* Retrieve gateway / detail-name picker data for the AR filter modal
|
|
820
|
+
*/
|
|
821
|
+
OrderApi.prototype.getAccountsReceivableGatewayDetailNamesRaw = function (initOverrides) {
|
|
822
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
823
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
824
|
+
return __generator(this, function (_c) {
|
|
825
|
+
switch (_c.label) {
|
|
826
|
+
case 0:
|
|
827
|
+
queryParameters = {};
|
|
828
|
+
headerParameters = {};
|
|
829
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
830
|
+
// oauth required
|
|
831
|
+
_a = headerParameters;
|
|
832
|
+
_b = "Authorization";
|
|
833
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["order_read"])];
|
|
834
|
+
case 1:
|
|
835
|
+
// oauth required
|
|
836
|
+
_a[_b] = _c.sent();
|
|
837
|
+
_c.label = 2;
|
|
838
|
+
case 2:
|
|
839
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
840
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
841
|
+
}
|
|
842
|
+
return [4 /*yield*/, this.request({
|
|
843
|
+
path: "/order/accounts_receivable/gateway_detail_names",
|
|
844
|
+
method: 'GET',
|
|
845
|
+
headers: headerParameters,
|
|
846
|
+
query: queryParameters,
|
|
847
|
+
}, initOverrides)];
|
|
848
|
+
case 3:
|
|
849
|
+
response = _c.sent();
|
|
850
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
851
|
+
}
|
|
852
|
+
});
|
|
853
|
+
});
|
|
854
|
+
};
|
|
855
|
+
/**
|
|
856
|
+
* For the calling merchant\'s Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
|
|
857
|
+
* Retrieve gateway / detail-name picker data for the AR filter modal
|
|
858
|
+
*/
|
|
859
|
+
OrderApi.prototype.getAccountsReceivableGatewayDetailNames = function (initOverrides) {
|
|
860
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
861
|
+
return __generator(this, function (_a) {
|
|
862
|
+
switch (_a.label) {
|
|
863
|
+
case 0: return [4 /*yield*/, this.getAccountsReceivableGatewayDetailNamesRaw(initOverrides)];
|
|
864
|
+
case 1:
|
|
865
|
+
_a.sent();
|
|
866
|
+
return [2 /*return*/];
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
});
|
|
870
|
+
};
|
|
754
871
|
/**
|
|
755
872
|
* Retrieve A/R Retry Configuration. This is primarily an internal API call. It is doubtful you would ever need to use it.
|
|
756
873
|
* Retrieve A/R Retry Configuration
|
package/dist/models/Warning.d.ts
CHANGED
|
@@ -21,6 +21,12 @@ export interface Warning {
|
|
|
21
21
|
* @memberof Warning
|
|
22
22
|
*/
|
|
23
23
|
more_info?: string;
|
|
24
|
+
/**
|
|
25
|
+
* A stable machine-readable code identifying the warning. See API docs for known values.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Warning
|
|
28
|
+
*/
|
|
29
|
+
warning_code?: string;
|
|
24
30
|
/**
|
|
25
31
|
* A technical message meant to be read by a developer
|
|
26
32
|
* @type {string}
|
package/dist/models/Warning.js
CHANGED
|
@@ -33,6 +33,7 @@ function WarningFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'more_info': !(0, runtime_1.exists)(json, 'more_info') ? undefined : json['more_info'],
|
|
36
|
+
'warning_code': !(0, runtime_1.exists)(json, 'warning_code') ? undefined : json['warning_code'],
|
|
36
37
|
'warning_message': !(0, runtime_1.exists)(json, 'warning_message') ? undefined : json['warning_message'],
|
|
37
38
|
};
|
|
38
39
|
}
|
|
@@ -46,6 +47,7 @@ function WarningToJSON(value) {
|
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
49
|
'more_info': value.more_info,
|
|
50
|
+
'warning_code': value.warning_code,
|
|
49
51
|
'warning_message': value.warning_message,
|
|
50
52
|
};
|
|
51
53
|
}
|
package/package.json
CHANGED
package/src/apis/OrderApi.ts
CHANGED
|
@@ -154,6 +154,11 @@ export interface GeneratePackingSlipSpecificDCRequest {
|
|
|
154
154
|
orderId: string;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
export interface GetAccountsReceivableDetailValueHistogramRequest {
|
|
158
|
+
detail: string;
|
|
159
|
+
gateway?: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
157
162
|
export interface GetAccountsReceivableRetryStatsRequest {
|
|
158
163
|
from?: string;
|
|
159
164
|
to?: string;
|
|
@@ -493,6 +498,38 @@ export interface OrderApiInterface {
|
|
|
493
498
|
*/
|
|
494
499
|
generatePackingSlipSpecificDC(requestParameters: GeneratePackingSlipSpecificDCRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderPackingSlipResponse>;
|
|
495
500
|
|
|
501
|
+
/**
|
|
502
|
+
* For the calling merchant\'s Accounts Receivable orders, returns a value -> document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal\'s autocomplete on the detail-value input.
|
|
503
|
+
* @summary Retrieve a value histogram for a given AR transaction-detail name
|
|
504
|
+
* @param {string} detail The transaction-detail name to histogram.
|
|
505
|
+
* @param {string} [gateway] The gateway name to scope to (optional).
|
|
506
|
+
* @param {*} [options] Override http request option.
|
|
507
|
+
* @throws {RequiredError}
|
|
508
|
+
* @memberof OrderApiInterface
|
|
509
|
+
*/
|
|
510
|
+
getAccountsReceivableDetailValueHistogramRaw(requestParameters: GetAccountsReceivableDetailValueHistogramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* For the calling merchant\'s Accounts Receivable orders, returns a value -> document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal\'s autocomplete on the detail-value input.
|
|
514
|
+
* Retrieve a value histogram for a given AR transaction-detail name
|
|
515
|
+
*/
|
|
516
|
+
getAccountsReceivableDetailValueHistogram(requestParameters: GetAccountsReceivableDetailValueHistogramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* For the calling merchant\'s Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
|
|
520
|
+
* @summary Retrieve gateway / detail-name picker data for the AR filter modal
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
* @memberof OrderApiInterface
|
|
524
|
+
*/
|
|
525
|
+
getAccountsReceivableGatewayDetailNamesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* For the calling merchant\'s Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
|
|
529
|
+
* Retrieve gateway / detail-name picker data for the AR filter modal
|
|
530
|
+
*/
|
|
531
|
+
getAccountsReceivableGatewayDetailNames(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
532
|
+
|
|
496
533
|
/**
|
|
497
534
|
* Retrieve A/R Retry Configuration. This is primarily an internal API call. It is doubtful you would ever need to use it.
|
|
498
535
|
* @summary Retrieve A/R Retry Configuration
|
|
@@ -1417,6 +1454,90 @@ export class OrderApi extends runtime.BaseAPI implements OrderApiInterface {
|
|
|
1417
1454
|
return await response.value();
|
|
1418
1455
|
}
|
|
1419
1456
|
|
|
1457
|
+
/**
|
|
1458
|
+
* For the calling merchant\'s Accounts Receivable orders, returns a value -> document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal\'s autocomplete on the detail-value input.
|
|
1459
|
+
* Retrieve a value histogram for a given AR transaction-detail name
|
|
1460
|
+
*/
|
|
1461
|
+
async getAccountsReceivableDetailValueHistogramRaw(requestParameters: GetAccountsReceivableDetailValueHistogramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1462
|
+
if (requestParameters.detail === null || requestParameters.detail === undefined) {
|
|
1463
|
+
throw new runtime.RequiredError('detail','Required parameter requestParameters.detail was null or undefined when calling getAccountsReceivableDetailValueHistogram.');
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
const queryParameters: any = {};
|
|
1467
|
+
|
|
1468
|
+
if (requestParameters.gateway !== undefined) {
|
|
1469
|
+
queryParameters['gateway'] = requestParameters.gateway;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
if (requestParameters.detail !== undefined) {
|
|
1473
|
+
queryParameters['detail'] = requestParameters.detail;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1477
|
+
|
|
1478
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1479
|
+
// oauth required
|
|
1480
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["order_read"]);
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1484
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
const response = await this.request({
|
|
1488
|
+
path: `/order/accounts_receivable/detail_value_histogram`,
|
|
1489
|
+
method: 'GET',
|
|
1490
|
+
headers: headerParameters,
|
|
1491
|
+
query: queryParameters,
|
|
1492
|
+
}, initOverrides);
|
|
1493
|
+
|
|
1494
|
+
return new runtime.VoidApiResponse(response);
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* For the calling merchant\'s Accounts Receivable orders, returns a value -> document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal\'s autocomplete on the detail-value input.
|
|
1499
|
+
* Retrieve a value histogram for a given AR transaction-detail name
|
|
1500
|
+
*/
|
|
1501
|
+
async getAccountsReceivableDetailValueHistogram(requestParameters: GetAccountsReceivableDetailValueHistogramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1502
|
+
await this.getAccountsReceivableDetailValueHistogramRaw(requestParameters, initOverrides);
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* For the calling merchant\'s Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
|
|
1507
|
+
* Retrieve gateway / detail-name picker data for the AR filter modal
|
|
1508
|
+
*/
|
|
1509
|
+
async getAccountsReceivableGatewayDetailNamesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1510
|
+
const queryParameters: any = {};
|
|
1511
|
+
|
|
1512
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1513
|
+
|
|
1514
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1515
|
+
// oauth required
|
|
1516
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["order_read"]);
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1520
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
const response = await this.request({
|
|
1524
|
+
path: `/order/accounts_receivable/gateway_detail_names`,
|
|
1525
|
+
method: 'GET',
|
|
1526
|
+
headers: headerParameters,
|
|
1527
|
+
query: queryParameters,
|
|
1528
|
+
}, initOverrides);
|
|
1529
|
+
|
|
1530
|
+
return new runtime.VoidApiResponse(response);
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* For the calling merchant\'s Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
|
|
1535
|
+
* Retrieve gateway / detail-name picker data for the AR filter modal
|
|
1536
|
+
*/
|
|
1537
|
+
async getAccountsReceivableGatewayDetailNames(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1538
|
+
await this.getAccountsReceivableGatewayDetailNamesRaw(initOverrides);
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1420
1541
|
/**
|
|
1421
1542
|
* Retrieve A/R Retry Configuration. This is primarily an internal API call. It is doubtful you would ever need to use it.
|
|
1422
1543
|
* Retrieve A/R Retry Configuration
|
package/src/models/Warning.ts
CHANGED
|
@@ -25,6 +25,12 @@ export interface Warning {
|
|
|
25
25
|
* @memberof Warning
|
|
26
26
|
*/
|
|
27
27
|
more_info?: string;
|
|
28
|
+
/**
|
|
29
|
+
* A stable machine-readable code identifying the warning. See API docs for known values.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Warning
|
|
32
|
+
*/
|
|
33
|
+
warning_code?: string;
|
|
28
34
|
/**
|
|
29
35
|
* A technical message meant to be read by a developer
|
|
30
36
|
* @type {string}
|
|
@@ -55,6 +61,7 @@ export function WarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): W
|
|
|
55
61
|
return {
|
|
56
62
|
|
|
57
63
|
'more_info': !exists(json, 'more_info') ? undefined : json['more_info'],
|
|
64
|
+
'warning_code': !exists(json, 'warning_code') ? undefined : json['warning_code'],
|
|
58
65
|
'warning_message': !exists(json, 'warning_message') ? undefined : json['warning_message'],
|
|
59
66
|
};
|
|
60
67
|
}
|
|
@@ -69,6 +76,7 @@ export function WarningToJSON(value?: Warning | null): any {
|
|
|
69
76
|
return {
|
|
70
77
|
|
|
71
78
|
'more_info': value.more_info,
|
|
79
|
+
'warning_code': value.warning_code,
|
|
72
80
|
'warning_message': value.warning_message,
|
|
73
81
|
};
|
|
74
82
|
}
|