ultracart_rest_api_v2_typescript 4.1.70 → 4.1.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +4 -2
- package/dist/apis/ConversationApi.d.ts +24 -1
- package/dist/apis/ConversationApi.js +56 -0
- package/dist/models/ConversationPbxVoicemailCapabilitiesResponse.d.ts +65 -0
- package/dist/models/ConversationPbxVoicemailCapabilitiesResponse.js +64 -0
- package/dist/models/ConversationPbxVoicemailMailbox.d.ts +22 -0
- package/dist/models/ConversationPbxVoicemailMailbox.js +14 -1
- package/dist/models/Coupon.d.ts +7 -0
- package/dist/models/Coupon.js +3 -0
- package/dist/models/CouponPercentOffItemsWithMinimumItemAmount.d.ts +73 -0
- package/dist/models/CouponPercentOffItemsWithMinimumItemAmount.js +64 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/ConversationApi.ts +55 -0
- package/src/models/ConversationPbxVoicemailCapabilitiesResponse.ts +132 -0
- package/src/models/ConversationPbxVoicemailMailbox.ts +27 -0
- package/src/models/Coupon.ts +14 -0
- package/src/models/CouponPercentOffItemsWithMinimumItemAmount.ts +123 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -275,6 +275,7 @@ src/models/ConversationPbxTimeRange.ts
|
|
|
275
275
|
src/models/ConversationPbxTimeRangeConfig.ts
|
|
276
276
|
src/models/ConversationPbxTimeRangeResponse.ts
|
|
277
277
|
src/models/ConversationPbxTimeRangesResponse.ts
|
|
278
|
+
src/models/ConversationPbxVoicemailCapabilitiesResponse.ts
|
|
278
279
|
src/models/ConversationPbxVoicemailMailbox.ts
|
|
279
280
|
src/models/ConversationPbxVoicemailMailboxResponse.ts
|
|
280
281
|
src/models/ConversationPbxVoicemailMailboxesResponse.ts
|
|
@@ -351,6 +352,7 @@ src/models/CouponPercentOffItemWithItemsQuantityPurchase.ts
|
|
|
351
352
|
src/models/CouponPercentOffItems.ts
|
|
352
353
|
src/models/CouponPercentOffItemsAndFreeShipping.ts
|
|
353
354
|
src/models/CouponPercentOffItemsWithItemsPurchase.ts
|
|
355
|
+
src/models/CouponPercentOffItemsWithMinimumItemAmount.ts
|
|
354
356
|
src/models/CouponPercentOffMsrpItems.ts
|
|
355
357
|
src/models/CouponPercentOffRetailPriceItems.ts
|
|
356
358
|
src/models/CouponPercentOffShipping.ts
|
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.72
|
|
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.72 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.72 | 04/11/2026 | conversation pbx - voicemail notification channels |
|
|
89
|
+
| 4.1.71 | 04/06/2026 | coupons - new percent_off_items_with_minimum_item_amount |
|
|
88
90
|
| 4.1.70 | 04/03/2026 | conversation pbx - queue callback settings |
|
|
89
91
|
| 4.1.69 | 03/31/2026 | conversations - user specific audio methods |
|
|
90
92
|
| 4.1.68 | 03/31/2026 | oauth - device support |
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { BaseResponse, ConversationAgentAuthResponse, ConversationAgentProfile, ConversationAgentProfileResponse, ConversationAgentProfilesResponse, ConversationAutocompleteRequest, ConversationAutocompleteResponse, ConversationCannedMessage, ConversationCannedMessageResponse, ConversationCannedMessagesResponse, ConversationCannedMessagesSearch, ConversationDeleteKnowledgeBaseDocumentResponse, ConversationDepartment, ConversationDepartmentMembersResponse, ConversationDepartmentResponse, ConversationDepartmentsResponse, ConversationEngagement, ConversationEngagementResponse, ConversationEngagementsResponse, ConversationInsertKnowledgeBaseDocumentRequest, ConversationInsertKnowledgeBaseDocumentResponse, ConversationJoinRequest, ConversationKnowledgeBaseDocumentUploadUrlResponse, ConversationKnowledgeBaseDocumentsResponse, ConversationLocationsResponse, ConversationMcpServer, ConversationMcpServerResponse, ConversationMcpServerToolsResponse, ConversationMcpServersResponse, ConversationMessagesResponse, ConversationMultimediaUploadUrlResponse, ConversationPbxAddress, ConversationPbxAddressResponse, ConversationPbxAddressesResponse, ConversationPbxAgent, ConversationPbxAgentResponse, ConversationPbxAgentsResponse, ConversationPbxAudio, ConversationPbxAudioResponse, ConversationPbxAudioUploadUrlResponse, ConversationPbxAudioUsageResponse, ConversationPbxAudiosResponse, ConversationPbxAvailablePhoneNumbersResponse, ConversationPbxCallResponse, ConversationPbxCallSearchRequest, ConversationPbxCallSearchResponse, ConversationPbxClassOfService, ConversationPbxClassOfServiceResponse, ConversationPbxClassOfServicesResponse, ConversationPbxCosAuditLogsResponse, ConversationPbxCustomerSnapshotRequest, ConversationPbxCustomerSnapshotResponse, ConversationPbxHardwarePhone, ConversationPbxHardwarePhoneResponse, ConversationPbxHardwarePhonesResponse, ConversationPbxMenu, ConversationPbxMenuResponse, ConversationPbxMenusResponse, ConversationPbxPhoneManufacturersResponse, ConversationPbxPhoneNumber, ConversationPbxPhoneNumberPurchaseRequest, ConversationPbxPhoneNumberResponse, ConversationPbxPhoneNumbersResponse, ConversationPbxQueue, ConversationPbxQueueResponse, ConversationPbxQueuesResponse, ConversationPbxTimeBased, ConversationPbxTimeBasedResponse, ConversationPbxTimeBasedsResponse, ConversationPbxTimeRange, ConversationPbxTimeRangeResponse, ConversationPbxTimeRangesResponse, ConversationPbxVoicemailMailbox, ConversationPbxVoicemailMailboxResponse, ConversationPbxVoicemailMailboxesResponse, ConversationPbxVoicemailMessageResponse, ConversationPbxVoicemailMessageSummariesResponse, ConversationPermissionsResponse, ConversationResponse, ConversationSearchRequest, ConversationSearchResponse, ConversationStartRequest, ConversationStartResponse, ConversationVirtualAgentBudget, ConversationVirtualAgentBudgetResponse, ConversationVirtualAgentCapabilities, ConversationVirtualAgentCapabilitiesResponse, ConversationWebchatContext, ConversationWebchatQueueStatusUpdateRequest, ConversationWebchatQueueStatusesResponse, ConversationsResponse, ItemResponse } from '../models';
|
|
13
|
+
import { BaseResponse, ConversationAgentAuthResponse, ConversationAgentProfile, ConversationAgentProfileResponse, ConversationAgentProfilesResponse, ConversationAutocompleteRequest, ConversationAutocompleteResponse, ConversationCannedMessage, ConversationCannedMessageResponse, ConversationCannedMessagesResponse, ConversationCannedMessagesSearch, ConversationDeleteKnowledgeBaseDocumentResponse, ConversationDepartment, ConversationDepartmentMembersResponse, ConversationDepartmentResponse, ConversationDepartmentsResponse, ConversationEngagement, ConversationEngagementResponse, ConversationEngagementsResponse, ConversationInsertKnowledgeBaseDocumentRequest, ConversationInsertKnowledgeBaseDocumentResponse, ConversationJoinRequest, ConversationKnowledgeBaseDocumentUploadUrlResponse, ConversationKnowledgeBaseDocumentsResponse, ConversationLocationsResponse, ConversationMcpServer, ConversationMcpServerResponse, ConversationMcpServerToolsResponse, ConversationMcpServersResponse, ConversationMessagesResponse, ConversationMultimediaUploadUrlResponse, ConversationPbxAddress, ConversationPbxAddressResponse, ConversationPbxAddressesResponse, ConversationPbxAgent, ConversationPbxAgentResponse, ConversationPbxAgentsResponse, ConversationPbxAudio, ConversationPbxAudioResponse, ConversationPbxAudioUploadUrlResponse, ConversationPbxAudioUsageResponse, ConversationPbxAudiosResponse, ConversationPbxAvailablePhoneNumbersResponse, ConversationPbxCallResponse, ConversationPbxCallSearchRequest, ConversationPbxCallSearchResponse, ConversationPbxClassOfService, ConversationPbxClassOfServiceResponse, ConversationPbxClassOfServicesResponse, ConversationPbxCosAuditLogsResponse, ConversationPbxCustomerSnapshotRequest, ConversationPbxCustomerSnapshotResponse, ConversationPbxHardwarePhone, ConversationPbxHardwarePhoneResponse, ConversationPbxHardwarePhonesResponse, ConversationPbxMenu, ConversationPbxMenuResponse, ConversationPbxMenusResponse, ConversationPbxPhoneManufacturersResponse, ConversationPbxPhoneNumber, ConversationPbxPhoneNumberPurchaseRequest, ConversationPbxPhoneNumberResponse, ConversationPbxPhoneNumbersResponse, ConversationPbxQueue, ConversationPbxQueueResponse, ConversationPbxQueuesResponse, ConversationPbxTimeBased, ConversationPbxTimeBasedResponse, ConversationPbxTimeBasedsResponse, ConversationPbxTimeRange, ConversationPbxTimeRangeResponse, ConversationPbxTimeRangesResponse, ConversationPbxVoicemailCapabilitiesResponse, ConversationPbxVoicemailMailbox, ConversationPbxVoicemailMailboxResponse, ConversationPbxVoicemailMailboxesResponse, ConversationPbxVoicemailMessageResponse, ConversationPbxVoicemailMessageSummariesResponse, ConversationPermissionsResponse, ConversationResponse, ConversationSearchRequest, ConversationSearchResponse, ConversationStartRequest, ConversationStartResponse, ConversationVirtualAgentBudget, ConversationVirtualAgentBudgetResponse, ConversationVirtualAgentCapabilities, ConversationVirtualAgentCapabilitiesResponse, ConversationWebchatContext, ConversationWebchatQueueStatusUpdateRequest, ConversationWebchatQueueStatusesResponse, ConversationsResponse, ItemResponse } from '../models';
|
|
14
14
|
export interface DeleteAgentProfileKnowledgeBaseDocumentRequest {
|
|
15
15
|
userId: number;
|
|
16
16
|
documentUuid: string;
|
|
@@ -1384,6 +1384,19 @@ export interface ConversationApiInterface {
|
|
|
1384
1384
|
* Get pbx timeRanges
|
|
1385
1385
|
*/
|
|
1386
1386
|
getPbxTimeRanges(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxTimeRangesResponse>;
|
|
1387
|
+
/**
|
|
1388
|
+
* Retrieve voicemail notification capabilities including available channels
|
|
1389
|
+
* @summary Get pbx voicemail capabilities
|
|
1390
|
+
* @param {*} [options] Override http request option.
|
|
1391
|
+
* @throws {RequiredError}
|
|
1392
|
+
* @memberof ConversationApiInterface
|
|
1393
|
+
*/
|
|
1394
|
+
getPbxVoicemailCapabilitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxVoicemailCapabilitiesResponse>>;
|
|
1395
|
+
/**
|
|
1396
|
+
* Retrieve voicemail notification capabilities including available channels
|
|
1397
|
+
* Get pbx voicemail capabilities
|
|
1398
|
+
*/
|
|
1399
|
+
getPbxVoicemailCapabilities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxVoicemailCapabilitiesResponse>;
|
|
1387
1400
|
/**
|
|
1388
1401
|
* Retrieve a pbx voicemailMailbox
|
|
1389
1402
|
* @summary Get pbx voicemailMailbox
|
|
@@ -2917,6 +2930,16 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
|
|
|
2917
2930
|
* Get pbx timeRanges
|
|
2918
2931
|
*/
|
|
2919
2932
|
getPbxTimeRanges(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxTimeRangesResponse>;
|
|
2933
|
+
/**
|
|
2934
|
+
* Retrieve voicemail notification capabilities including available channels
|
|
2935
|
+
* Get pbx voicemail capabilities
|
|
2936
|
+
*/
|
|
2937
|
+
getPbxVoicemailCapabilitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxVoicemailCapabilitiesResponse>>;
|
|
2938
|
+
/**
|
|
2939
|
+
* Retrieve voicemail notification capabilities including available channels
|
|
2940
|
+
* Get pbx voicemail capabilities
|
|
2941
|
+
*/
|
|
2942
|
+
getPbxVoicemailCapabilities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxVoicemailCapabilitiesResponse>;
|
|
2920
2943
|
/**
|
|
2921
2944
|
* Retrieve a pbx voicemailMailbox
|
|
2922
2945
|
* Get pbx voicemailMailbox
|
|
@@ -4353,6 +4353,62 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
4353
4353
|
});
|
|
4354
4354
|
});
|
|
4355
4355
|
};
|
|
4356
|
+
/**
|
|
4357
|
+
* Retrieve voicemail notification capabilities including available channels
|
|
4358
|
+
* Get pbx voicemail capabilities
|
|
4359
|
+
*/
|
|
4360
|
+
ConversationApi.prototype.getPbxVoicemailCapabilitiesRaw = function (initOverrides) {
|
|
4361
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4362
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
4363
|
+
return __generator(this, function (_c) {
|
|
4364
|
+
switch (_c.label) {
|
|
4365
|
+
case 0:
|
|
4366
|
+
queryParameters = {};
|
|
4367
|
+
headerParameters = {};
|
|
4368
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
4369
|
+
// oauth required
|
|
4370
|
+
_a = headerParameters;
|
|
4371
|
+
_b = "Authorization";
|
|
4372
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_read"])];
|
|
4373
|
+
case 1:
|
|
4374
|
+
// oauth required
|
|
4375
|
+
_a[_b] = _c.sent();
|
|
4376
|
+
_c.label = 2;
|
|
4377
|
+
case 2:
|
|
4378
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
4379
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
4380
|
+
}
|
|
4381
|
+
return [4 /*yield*/, this.request({
|
|
4382
|
+
path: "/conversation/pbx/voicemail/capabilities",
|
|
4383
|
+
method: 'GET',
|
|
4384
|
+
headers: headerParameters,
|
|
4385
|
+
query: queryParameters,
|
|
4386
|
+
}, initOverrides)];
|
|
4387
|
+
case 3:
|
|
4388
|
+
response = _c.sent();
|
|
4389
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationPbxVoicemailCapabilitiesResponseFromJSON)(jsonValue); })];
|
|
4390
|
+
}
|
|
4391
|
+
});
|
|
4392
|
+
});
|
|
4393
|
+
};
|
|
4394
|
+
/**
|
|
4395
|
+
* Retrieve voicemail notification capabilities including available channels
|
|
4396
|
+
* Get pbx voicemail capabilities
|
|
4397
|
+
*/
|
|
4398
|
+
ConversationApi.prototype.getPbxVoicemailCapabilities = function (initOverrides) {
|
|
4399
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4400
|
+
var response;
|
|
4401
|
+
return __generator(this, function (_a) {
|
|
4402
|
+
switch (_a.label) {
|
|
4403
|
+
case 0: return [4 /*yield*/, this.getPbxVoicemailCapabilitiesRaw(initOverrides)];
|
|
4404
|
+
case 1:
|
|
4405
|
+
response = _a.sent();
|
|
4406
|
+
return [4 /*yield*/, response.value()];
|
|
4407
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
4408
|
+
}
|
|
4409
|
+
});
|
|
4410
|
+
});
|
|
4411
|
+
};
|
|
4356
4412
|
/**
|
|
4357
4413
|
* Retrieve a pbx voicemailMailbox
|
|
4358
4414
|
* Get pbx voicemailMailbox
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { ConversationVirtualAgentCapabilityZohoDeskDepartment } from './ConversationVirtualAgentCapabilityZohoDeskDepartment';
|
|
13
|
+
import { ModelError } from './ModelError';
|
|
14
|
+
import { ResponseMetadata } from './ResponseMetadata';
|
|
15
|
+
import { Warning } from './Warning';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ConversationPbxVoicemailCapabilitiesResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationPbxVoicemailCapabilitiesResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {ModelError}
|
|
25
|
+
* @memberof ConversationPbxVoicemailCapabilitiesResponse
|
|
26
|
+
*/
|
|
27
|
+
error?: ModelError;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ResponseMetadata}
|
|
31
|
+
* @memberof ConversationPbxVoicemailCapabilitiesResponse
|
|
32
|
+
*/
|
|
33
|
+
metadata?: ResponseMetadata;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates if API call was successful
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof ConversationPbxVoicemailCapabilitiesResponse
|
|
38
|
+
*/
|
|
39
|
+
success?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Warning}
|
|
43
|
+
* @memberof ConversationPbxVoicemailCapabilitiesResponse
|
|
44
|
+
*/
|
|
45
|
+
warning?: Warning;
|
|
46
|
+
/**
|
|
47
|
+
* True if Zoho Desk is connected to UltraCart
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof ConversationPbxVoicemailCapabilitiesResponse
|
|
50
|
+
*/
|
|
51
|
+
zoho_desk_available?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Array of Zoho Desk Departments if Zoho Desk is connected to UltraCart
|
|
54
|
+
* @type {Array<ConversationVirtualAgentCapabilityZohoDeskDepartment>}
|
|
55
|
+
* @memberof ConversationPbxVoicemailCapabilitiesResponse
|
|
56
|
+
*/
|
|
57
|
+
zoho_desk_departments?: Array<ConversationVirtualAgentCapabilityZohoDeskDepartment>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the ConversationPbxVoicemailCapabilitiesResponse interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfConversationPbxVoicemailCapabilitiesResponse(value: object): boolean;
|
|
63
|
+
export declare function ConversationPbxVoicemailCapabilitiesResponseFromJSON(json: any): ConversationPbxVoicemailCapabilitiesResponse;
|
|
64
|
+
export declare function ConversationPbxVoicemailCapabilitiesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxVoicemailCapabilitiesResponse;
|
|
65
|
+
export declare function ConversationPbxVoicemailCapabilitiesResponseToJSON(value?: ConversationPbxVoicemailCapabilitiesResponse | 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.ConversationPbxVoicemailCapabilitiesResponseToJSON = exports.ConversationPbxVoicemailCapabilitiesResponseFromJSONTyped = exports.ConversationPbxVoicemailCapabilitiesResponseFromJSON = exports.instanceOfConversationPbxVoicemailCapabilitiesResponse = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ConversationVirtualAgentCapabilityZohoDeskDepartment_1 = require("./ConversationVirtualAgentCapabilityZohoDeskDepartment");
|
|
19
|
+
var ModelError_1 = require("./ModelError");
|
|
20
|
+
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
21
|
+
var Warning_1 = require("./Warning");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ConversationPbxVoicemailCapabilitiesResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfConversationPbxVoicemailCapabilitiesResponse(value) {
|
|
26
|
+
var isInstance = true;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfConversationPbxVoicemailCapabilitiesResponse = instanceOfConversationPbxVoicemailCapabilitiesResponse;
|
|
30
|
+
function ConversationPbxVoicemailCapabilitiesResponseFromJSON(json) {
|
|
31
|
+
return ConversationPbxVoicemailCapabilitiesResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.ConversationPbxVoicemailCapabilitiesResponseFromJSON = ConversationPbxVoicemailCapabilitiesResponseFromJSON;
|
|
34
|
+
function ConversationPbxVoicemailCapabilitiesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
40
|
+
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
41
|
+
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
42
|
+
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
43
|
+
'zoho_desk_available': !(0, runtime_1.exists)(json, 'zoho_desk_available') ? undefined : json['zoho_desk_available'],
|
|
44
|
+
'zoho_desk_departments': !(0, runtime_1.exists)(json, 'zoho_desk_departments') ? undefined : (json['zoho_desk_departments'].map(ConversationVirtualAgentCapabilityZohoDeskDepartment_1.ConversationVirtualAgentCapabilityZohoDeskDepartmentFromJSON)),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.ConversationPbxVoicemailCapabilitiesResponseFromJSONTyped = ConversationPbxVoicemailCapabilitiesResponseFromJSONTyped;
|
|
48
|
+
function ConversationPbxVoicemailCapabilitiesResponseToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
57
|
+
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
58
|
+
'success': value.success,
|
|
59
|
+
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
60
|
+
'zoho_desk_available': value.zoho_desk_available,
|
|
61
|
+
'zoho_desk_departments': value.zoho_desk_departments === undefined ? undefined : (value.zoho_desk_departments.map(ConversationVirtualAgentCapabilityZohoDeskDepartment_1.ConversationVirtualAgentCapabilityZohoDeskDepartmentToJSON)),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.ConversationPbxVoicemailCapabilitiesResponseToJSON = ConversationPbxVoicemailCapabilitiesResponseToJSON;
|
|
@@ -27,12 +27,24 @@ export interface ConversationPbxVoicemailMailbox {
|
|
|
27
27
|
* @memberof ConversationPbxVoicemailMailbox
|
|
28
28
|
*/
|
|
29
29
|
merchant_id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Send notices to channel
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ConversationPbxVoicemailMailbox
|
|
34
|
+
*/
|
|
35
|
+
send_notices_to_channel?: ConversationPbxVoicemailMailboxSendNoticesToChannelEnum;
|
|
30
36
|
/**
|
|
31
37
|
* Send notices to email
|
|
32
38
|
* @type {string}
|
|
33
39
|
* @memberof ConversationPbxVoicemailMailbox
|
|
34
40
|
*/
|
|
35
41
|
send_notices_to_email?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Send notices to Zoho Desk department id
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ConversationPbxVoicemailMailbox
|
|
46
|
+
*/
|
|
47
|
+
send_notices_to_zoho_desk_department_id?: string;
|
|
36
48
|
/**
|
|
37
49
|
* User Id
|
|
38
50
|
* @type {number}
|
|
@@ -88,6 +100,16 @@ export interface ConversationPbxVoicemailMailbox {
|
|
|
88
100
|
*/
|
|
89
101
|
voicemail_prompt_say_voice?: ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum;
|
|
90
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* @export
|
|
105
|
+
*/
|
|
106
|
+
export declare const ConversationPbxVoicemailMailboxSendNoticesToChannelEnum: {
|
|
107
|
+
readonly None: "none";
|
|
108
|
+
readonly Email: "email";
|
|
109
|
+
readonly ZohoDeskTicket: "zoho_desk_ticket";
|
|
110
|
+
readonly UltracartTask: "ultracart_task";
|
|
111
|
+
};
|
|
112
|
+
export type ConversationPbxVoicemailMailboxSendNoticesToChannelEnum = typeof ConversationPbxVoicemailMailboxSendNoticesToChannelEnum[keyof typeof ConversationPbxVoicemailMailboxSendNoticesToChannelEnum];
|
|
91
113
|
/**
|
|
92
114
|
* @export
|
|
93
115
|
*/
|
|
@@ -13,8 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConversationPbxVoicemailMailboxToJSON = exports.ConversationPbxVoicemailMailboxFromJSONTyped = exports.ConversationPbxVoicemailMailboxFromJSON = exports.instanceOfConversationPbxVoicemailMailbox = exports.ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum = exports.ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum = exports.ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum = void 0;
|
|
16
|
+
exports.ConversationPbxVoicemailMailboxToJSON = exports.ConversationPbxVoicemailMailboxFromJSONTyped = exports.ConversationPbxVoicemailMailboxFromJSON = exports.instanceOfConversationPbxVoicemailMailbox = exports.ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum = exports.ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum = exports.ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum = exports.ConversationPbxVoicemailMailboxSendNoticesToChannelEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ConversationPbxVoicemailMailboxSendNoticesToChannelEnum = {
|
|
22
|
+
None: 'none',
|
|
23
|
+
Email: 'email',
|
|
24
|
+
ZohoDeskTicket: 'zoho_desk_ticket',
|
|
25
|
+
UltracartTask: 'ultracart_task'
|
|
26
|
+
};
|
|
18
27
|
/**
|
|
19
28
|
* @export
|
|
20
29
|
*/
|
|
@@ -55,7 +64,9 @@ function ConversationPbxVoicemailMailboxFromJSONTyped(json, ignoreDiscriminator)
|
|
|
55
64
|
return {
|
|
56
65
|
'conversation_pbx_voicemail_mailbox_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_voicemail_mailbox_uuid') ? undefined : json['conversation_pbx_voicemail_mailbox_uuid'],
|
|
57
66
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
67
|
+
'send_notices_to_channel': !(0, runtime_1.exists)(json, 'send_notices_to_channel') ? undefined : json['send_notices_to_channel'],
|
|
58
68
|
'send_notices_to_email': !(0, runtime_1.exists)(json, 'send_notices_to_email') ? undefined : json['send_notices_to_email'],
|
|
69
|
+
'send_notices_to_zoho_desk_department_id': !(0, runtime_1.exists)(json, 'send_notices_to_zoho_desk_department_id') ? undefined : json['send_notices_to_zoho_desk_department_id'],
|
|
59
70
|
'user_id': !(0, runtime_1.exists)(json, 'user_id') ? undefined : json['user_id'],
|
|
60
71
|
'voicemail_followup_play_audio_uuid': !(0, runtime_1.exists)(json, 'voicemail_followup_play_audio_uuid') ? undefined : json['voicemail_followup_play_audio_uuid'],
|
|
61
72
|
'voicemail_followup_say': !(0, runtime_1.exists)(json, 'voicemail_followup_say') ? undefined : json['voicemail_followup_say'],
|
|
@@ -78,7 +89,9 @@ function ConversationPbxVoicemailMailboxToJSON(value) {
|
|
|
78
89
|
return {
|
|
79
90
|
'conversation_pbx_voicemail_mailbox_uuid': value.conversation_pbx_voicemail_mailbox_uuid,
|
|
80
91
|
'merchant_id': value.merchant_id,
|
|
92
|
+
'send_notices_to_channel': value.send_notices_to_channel,
|
|
81
93
|
'send_notices_to_email': value.send_notices_to_email,
|
|
94
|
+
'send_notices_to_zoho_desk_department_id': value.send_notices_to_zoho_desk_department_id,
|
|
82
95
|
'user_id': value.user_id,
|
|
83
96
|
'voicemail_followup_play_audio_uuid': value.voicemail_followup_play_audio_uuid,
|
|
84
97
|
'voicemail_followup_say': value.voicemail_followup_say,
|
package/dist/models/Coupon.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ import { CouponPercentOffItemWithItemsQuantityPurchase } from './CouponPercentOf
|
|
|
43
43
|
import { CouponPercentOffItems } from './CouponPercentOffItems';
|
|
44
44
|
import { CouponPercentOffItemsAndFreeShipping } from './CouponPercentOffItemsAndFreeShipping';
|
|
45
45
|
import { CouponPercentOffItemsWithItemsPurchase } from './CouponPercentOffItemsWithItemsPurchase';
|
|
46
|
+
import { CouponPercentOffItemsWithMinimumItemAmount } from './CouponPercentOffItemsWithMinimumItemAmount';
|
|
46
47
|
import { CouponPercentOffMsrpItems } from './CouponPercentOffMsrpItems';
|
|
47
48
|
import { CouponPercentOffRetailPriceItems } from './CouponPercentOffRetailPriceItems';
|
|
48
49
|
import { CouponPercentOffShipping } from './CouponPercentOffShipping';
|
|
@@ -334,6 +335,12 @@ export interface Coupon {
|
|
|
334
335
|
* @memberof Coupon
|
|
335
336
|
*/
|
|
336
337
|
percent_off_items_with_items_purchase?: CouponPercentOffItemsWithItemsPurchase;
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @type {CouponPercentOffItemsWithMinimumItemAmount}
|
|
341
|
+
* @memberof Coupon
|
|
342
|
+
*/
|
|
343
|
+
percent_off_items_with_minimum_item_amount?: CouponPercentOffItemsWithMinimumItemAmount;
|
|
337
344
|
/**
|
|
338
345
|
*
|
|
339
346
|
* @type {CouponPercentOffMsrpItems}
|
package/dist/models/Coupon.js
CHANGED
|
@@ -49,6 +49,7 @@ var CouponPercentOffItemWithItemsQuantityPurchase_1 = require("./CouponPercentOf
|
|
|
49
49
|
var CouponPercentOffItems_1 = require("./CouponPercentOffItems");
|
|
50
50
|
var CouponPercentOffItemsAndFreeShipping_1 = require("./CouponPercentOffItemsAndFreeShipping");
|
|
51
51
|
var CouponPercentOffItemsWithItemsPurchase_1 = require("./CouponPercentOffItemsWithItemsPurchase");
|
|
52
|
+
var CouponPercentOffItemsWithMinimumItemAmount_1 = require("./CouponPercentOffItemsWithMinimumItemAmount");
|
|
52
53
|
var CouponPercentOffMsrpItems_1 = require("./CouponPercentOffMsrpItems");
|
|
53
54
|
var CouponPercentOffRetailPriceItems_1 = require("./CouponPercentOffRetailPriceItems");
|
|
54
55
|
var CouponPercentOffShipping_1 = require("./CouponPercentOffShipping");
|
|
@@ -136,6 +137,7 @@ function CouponFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
136
137
|
'percent_off_items': !(0, runtime_1.exists)(json, 'percent_off_items') ? undefined : (0, CouponPercentOffItems_1.CouponPercentOffItemsFromJSON)(json['percent_off_items']),
|
|
137
138
|
'percent_off_items_and_free_shipping': !(0, runtime_1.exists)(json, 'percent_off_items_and_free_shipping') ? undefined : (0, CouponPercentOffItemsAndFreeShipping_1.CouponPercentOffItemsAndFreeShippingFromJSON)(json['percent_off_items_and_free_shipping']),
|
|
138
139
|
'percent_off_items_with_items_purchase': !(0, runtime_1.exists)(json, 'percent_off_items_with_items_purchase') ? undefined : (0, CouponPercentOffItemsWithItemsPurchase_1.CouponPercentOffItemsWithItemsPurchaseFromJSON)(json['percent_off_items_with_items_purchase']),
|
|
140
|
+
'percent_off_items_with_minimum_item_amount': !(0, runtime_1.exists)(json, 'percent_off_items_with_minimum_item_amount') ? undefined : (0, CouponPercentOffItemsWithMinimumItemAmount_1.CouponPercentOffItemsWithMinimumItemAmountFromJSON)(json['percent_off_items_with_minimum_item_amount']),
|
|
139
141
|
'percent_off_msrp_items': !(0, runtime_1.exists)(json, 'percent_off_msrp_items') ? undefined : (0, CouponPercentOffMsrpItems_1.CouponPercentOffMsrpItemsFromJSON)(json['percent_off_msrp_items']),
|
|
140
142
|
'percent_off_retail_price_items': !(0, runtime_1.exists)(json, 'percent_off_retail_price_items') ? undefined : (0, CouponPercentOffRetailPriceItems_1.CouponPercentOffRetailPriceItemsFromJSON)(json['percent_off_retail_price_items']),
|
|
141
143
|
'percent_off_shipping': !(0, runtime_1.exists)(json, 'percent_off_shipping') ? undefined : (0, CouponPercentOffShipping_1.CouponPercentOffShippingFromJSON)(json['percent_off_shipping']),
|
|
@@ -214,6 +216,7 @@ function CouponToJSON(value) {
|
|
|
214
216
|
'percent_off_items': (0, CouponPercentOffItems_1.CouponPercentOffItemsToJSON)(value.percent_off_items),
|
|
215
217
|
'percent_off_items_and_free_shipping': (0, CouponPercentOffItemsAndFreeShipping_1.CouponPercentOffItemsAndFreeShippingToJSON)(value.percent_off_items_and_free_shipping),
|
|
216
218
|
'percent_off_items_with_items_purchase': (0, CouponPercentOffItemsWithItemsPurchase_1.CouponPercentOffItemsWithItemsPurchaseToJSON)(value.percent_off_items_with_items_purchase),
|
|
219
|
+
'percent_off_items_with_minimum_item_amount': (0, CouponPercentOffItemsWithMinimumItemAmount_1.CouponPercentOffItemsWithMinimumItemAmountToJSON)(value.percent_off_items_with_minimum_item_amount),
|
|
217
220
|
'percent_off_msrp_items': (0, CouponPercentOffMsrpItems_1.CouponPercentOffMsrpItemsToJSON)(value.percent_off_msrp_items),
|
|
218
221
|
'percent_off_retail_price_items': (0, CouponPercentOffRetailPriceItems_1.CouponPercentOffRetailPriceItemsToJSON)(value.percent_off_retail_price_items),
|
|
219
222
|
'percent_off_shipping': (0, CouponPercentOffShipping_1.CouponPercentOffShippingToJSON)(value.percent_off_shipping),
|
|
@@ -0,0 +1,73 @@
|
|
|
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 CouponPercentOffItemsWithMinimumItemAmount
|
|
16
|
+
*/
|
|
17
|
+
export interface CouponPercentOffItemsWithMinimumItemAmount {
|
|
18
|
+
/**
|
|
19
|
+
* The ISO-4217 three letter currency code the customer is viewing prices in
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
22
|
+
*/
|
|
23
|
+
currency_code?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The percentage of subtotal discount
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
28
|
+
*/
|
|
29
|
+
discount_percent?: number;
|
|
30
|
+
/**
|
|
31
|
+
* A list of item tags which cannot be discounted.
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
34
|
+
*/
|
|
35
|
+
excluded_item_tags?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* A list of items which cannot be discounted.
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
40
|
+
*/
|
|
41
|
+
excluded_items?: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
46
|
+
*/
|
|
47
|
+
item_tags?: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
52
|
+
*/
|
|
53
|
+
items?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The (optional) maximum quantity of discounted items.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
58
|
+
*/
|
|
59
|
+
limit?: number;
|
|
60
|
+
/**
|
|
61
|
+
* The minimum item amount (dollars) required for the discount to apply
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
64
|
+
*/
|
|
65
|
+
minimum_item_amount?: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the CouponPercentOffItemsWithMinimumItemAmount interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfCouponPercentOffItemsWithMinimumItemAmount(value: object): boolean;
|
|
71
|
+
export declare function CouponPercentOffItemsWithMinimumItemAmountFromJSON(json: any): CouponPercentOffItemsWithMinimumItemAmount;
|
|
72
|
+
export declare function CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponPercentOffItemsWithMinimumItemAmount;
|
|
73
|
+
export declare function CouponPercentOffItemsWithMinimumItemAmountToJSON(value?: CouponPercentOffItemsWithMinimumItemAmount | 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.CouponPercentOffItemsWithMinimumItemAmountToJSON = exports.CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped = exports.CouponPercentOffItemsWithMinimumItemAmountFromJSON = exports.instanceOfCouponPercentOffItemsWithMinimumItemAmount = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the CouponPercentOffItemsWithMinimumItemAmount interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfCouponPercentOffItemsWithMinimumItemAmount(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCouponPercentOffItemsWithMinimumItemAmount = instanceOfCouponPercentOffItemsWithMinimumItemAmount;
|
|
26
|
+
function CouponPercentOffItemsWithMinimumItemAmountFromJSON(json) {
|
|
27
|
+
return CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CouponPercentOffItemsWithMinimumItemAmountFromJSON = CouponPercentOffItemsWithMinimumItemAmountFromJSON;
|
|
30
|
+
function CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'currency_code': !(0, runtime_1.exists)(json, 'currency_code') ? undefined : json['currency_code'],
|
|
36
|
+
'discount_percent': !(0, runtime_1.exists)(json, 'discount_percent') ? undefined : json['discount_percent'],
|
|
37
|
+
'excluded_item_tags': !(0, runtime_1.exists)(json, 'excluded_item_tags') ? undefined : json['excluded_item_tags'],
|
|
38
|
+
'excluded_items': !(0, runtime_1.exists)(json, 'excluded_items') ? undefined : json['excluded_items'],
|
|
39
|
+
'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
|
|
40
|
+
'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
|
|
41
|
+
'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
|
|
42
|
+
'minimum_item_amount': !(0, runtime_1.exists)(json, 'minimum_item_amount') ? undefined : json['minimum_item_amount'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped = CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped;
|
|
46
|
+
function CouponPercentOffItemsWithMinimumItemAmountToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'currency_code': value.currency_code,
|
|
55
|
+
'discount_percent': value.discount_percent,
|
|
56
|
+
'excluded_item_tags': value.excluded_item_tags,
|
|
57
|
+
'excluded_items': value.excluded_items,
|
|
58
|
+
'item_tags': value.item_tags,
|
|
59
|
+
'items': value.items,
|
|
60
|
+
'limit': value.limit,
|
|
61
|
+
'minimum_item_amount': value.minimum_item_amount,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.CouponPercentOffItemsWithMinimumItemAmountToJSON = CouponPercentOffItemsWithMinimumItemAmountToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -249,6 +249,7 @@ export * from './ConversationPbxTimeRange';
|
|
|
249
249
|
export * from './ConversationPbxTimeRangeConfig';
|
|
250
250
|
export * from './ConversationPbxTimeRangeResponse';
|
|
251
251
|
export * from './ConversationPbxTimeRangesResponse';
|
|
252
|
+
export * from './ConversationPbxVoicemailCapabilitiesResponse';
|
|
252
253
|
export * from './ConversationPbxVoicemailMailbox';
|
|
253
254
|
export * from './ConversationPbxVoicemailMailboxResponse';
|
|
254
255
|
export * from './ConversationPbxVoicemailMailboxesResponse';
|
|
@@ -325,6 +326,7 @@ export * from './CouponPercentOffItemWithItemsQuantityPurchase';
|
|
|
325
326
|
export * from './CouponPercentOffItems';
|
|
326
327
|
export * from './CouponPercentOffItemsAndFreeShipping';
|
|
327
328
|
export * from './CouponPercentOffItemsWithItemsPurchase';
|
|
329
|
+
export * from './CouponPercentOffItemsWithMinimumItemAmount';
|
|
328
330
|
export * from './CouponPercentOffMsrpItems';
|
|
329
331
|
export * from './CouponPercentOffRetailPriceItems';
|
|
330
332
|
export * from './CouponPercentOffShipping';
|
package/dist/models/index.js
CHANGED
|
@@ -267,6 +267,7 @@ __exportStar(require("./ConversationPbxTimeRange"), exports);
|
|
|
267
267
|
__exportStar(require("./ConversationPbxTimeRangeConfig"), exports);
|
|
268
268
|
__exportStar(require("./ConversationPbxTimeRangeResponse"), exports);
|
|
269
269
|
__exportStar(require("./ConversationPbxTimeRangesResponse"), exports);
|
|
270
|
+
__exportStar(require("./ConversationPbxVoicemailCapabilitiesResponse"), exports);
|
|
270
271
|
__exportStar(require("./ConversationPbxVoicemailMailbox"), exports);
|
|
271
272
|
__exportStar(require("./ConversationPbxVoicemailMailboxResponse"), exports);
|
|
272
273
|
__exportStar(require("./ConversationPbxVoicemailMailboxesResponse"), exports);
|
|
@@ -343,6 +344,7 @@ __exportStar(require("./CouponPercentOffItemWithItemsQuantityPurchase"), exports
|
|
|
343
344
|
__exportStar(require("./CouponPercentOffItems"), exports);
|
|
344
345
|
__exportStar(require("./CouponPercentOffItemsAndFreeShipping"), exports);
|
|
345
346
|
__exportStar(require("./CouponPercentOffItemsWithItemsPurchase"), exports);
|
|
347
|
+
__exportStar(require("./CouponPercentOffItemsWithMinimumItemAmount"), exports);
|
|
346
348
|
__exportStar(require("./CouponPercentOffMsrpItems"), exports);
|
|
347
349
|
__exportStar(require("./CouponPercentOffRetailPriceItems"), exports);
|
|
348
350
|
__exportStar(require("./CouponPercentOffShipping"), exports);
|
package/package.json
CHANGED
|
@@ -231,6 +231,9 @@ import {
|
|
|
231
231
|
ConversationPbxTimeRangesResponse,
|
|
232
232
|
ConversationPbxTimeRangesResponseFromJSON,
|
|
233
233
|
ConversationPbxTimeRangesResponseToJSON,
|
|
234
|
+
ConversationPbxVoicemailCapabilitiesResponse,
|
|
235
|
+
ConversationPbxVoicemailCapabilitiesResponseFromJSON,
|
|
236
|
+
ConversationPbxVoicemailCapabilitiesResponseToJSON,
|
|
234
237
|
ConversationPbxVoicemailMailbox,
|
|
235
238
|
ConversationPbxVoicemailMailboxFromJSON,
|
|
236
239
|
ConversationPbxVoicemailMailboxToJSON,
|
|
@@ -1916,6 +1919,21 @@ export interface ConversationApiInterface {
|
|
|
1916
1919
|
*/
|
|
1917
1920
|
getPbxTimeRanges(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxTimeRangesResponse>;
|
|
1918
1921
|
|
|
1922
|
+
/**
|
|
1923
|
+
* Retrieve voicemail notification capabilities including available channels
|
|
1924
|
+
* @summary Get pbx voicemail capabilities
|
|
1925
|
+
* @param {*} [options] Override http request option.
|
|
1926
|
+
* @throws {RequiredError}
|
|
1927
|
+
* @memberof ConversationApiInterface
|
|
1928
|
+
*/
|
|
1929
|
+
getPbxVoicemailCapabilitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxVoicemailCapabilitiesResponse>>;
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* Retrieve voicemail notification capabilities including available channels
|
|
1933
|
+
* Get pbx voicemail capabilities
|
|
1934
|
+
*/
|
|
1935
|
+
getPbxVoicemailCapabilities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxVoicemailCapabilitiesResponse>;
|
|
1936
|
+
|
|
1919
1937
|
/**
|
|
1920
1938
|
* Retrieve a pbx voicemailMailbox
|
|
1921
1939
|
* @summary Get pbx voicemailMailbox
|
|
@@ -5797,6 +5815,43 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
|
|
|
5797
5815
|
return await response.value();
|
|
5798
5816
|
}
|
|
5799
5817
|
|
|
5818
|
+
/**
|
|
5819
|
+
* Retrieve voicemail notification capabilities including available channels
|
|
5820
|
+
* Get pbx voicemail capabilities
|
|
5821
|
+
*/
|
|
5822
|
+
async getPbxVoicemailCapabilitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxVoicemailCapabilitiesResponse>> {
|
|
5823
|
+
const queryParameters: any = {};
|
|
5824
|
+
|
|
5825
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
5826
|
+
|
|
5827
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5828
|
+
// oauth required
|
|
5829
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["conversation_read"]);
|
|
5830
|
+
}
|
|
5831
|
+
|
|
5832
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
5833
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
5834
|
+
}
|
|
5835
|
+
|
|
5836
|
+
const response = await this.request({
|
|
5837
|
+
path: `/conversation/pbx/voicemail/capabilities`,
|
|
5838
|
+
method: 'GET',
|
|
5839
|
+
headers: headerParameters,
|
|
5840
|
+
query: queryParameters,
|
|
5841
|
+
}, initOverrides);
|
|
5842
|
+
|
|
5843
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ConversationPbxVoicemailCapabilitiesResponseFromJSON(jsonValue));
|
|
5844
|
+
}
|
|
5845
|
+
|
|
5846
|
+
/**
|
|
5847
|
+
* Retrieve voicemail notification capabilities including available channels
|
|
5848
|
+
* Get pbx voicemail capabilities
|
|
5849
|
+
*/
|
|
5850
|
+
async getPbxVoicemailCapabilities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxVoicemailCapabilitiesResponse> {
|
|
5851
|
+
const response = await this.getPbxVoicemailCapabilitiesRaw(initOverrides);
|
|
5852
|
+
return await response.value();
|
|
5853
|
+
}
|
|
5854
|
+
|
|
5800
5855
|
/**
|
|
5801
5856
|
* Retrieve a pbx voicemailMailbox
|
|
5802
5857
|
* Get pbx voicemailMailbox
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
ConversationVirtualAgentCapabilityZohoDeskDepartment,
|
|
18
|
+
ConversationVirtualAgentCapabilityZohoDeskDepartmentFromJSON,
|
|
19
|
+
ConversationVirtualAgentCapabilityZohoDeskDepartmentFromJSONTyped,
|
|
20
|
+
ConversationVirtualAgentCapabilityZohoDeskDepartmentToJSON,
|
|
21
|
+
} from './ConversationVirtualAgentCapabilityZohoDeskDepartment';
|
|
22
|
+
import {
|
|
23
|
+
ModelError,
|
|
24
|
+
ModelErrorFromJSON,
|
|
25
|
+
ModelErrorFromJSONTyped,
|
|
26
|
+
ModelErrorToJSON,
|
|
27
|
+
} from './ModelError';
|
|
28
|
+
import {
|
|
29
|
+
ResponseMetadata,
|
|
30
|
+
ResponseMetadataFromJSON,
|
|
31
|
+
ResponseMetadataFromJSONTyped,
|
|
32
|
+
ResponseMetadataToJSON,
|
|
33
|
+
} from './ResponseMetadata';
|
|
34
|
+
import {
|
|
35
|
+
Warning,
|
|
36
|
+
WarningFromJSON,
|
|
37
|
+
WarningFromJSONTyped,
|
|
38
|
+
WarningToJSON,
|
|
39
|
+
} from './Warning';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @interface ConversationPbxVoicemailCapabilitiesResponse
|
|
45
|
+
*/
|
|
46
|
+
export interface ConversationPbxVoicemailCapabilitiesResponse {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {ModelError}
|
|
50
|
+
* @memberof ConversationPbxVoicemailCapabilitiesResponse
|
|
51
|
+
*/
|
|
52
|
+
error?: ModelError;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {ResponseMetadata}
|
|
56
|
+
* @memberof ConversationPbxVoicemailCapabilitiesResponse
|
|
57
|
+
*/
|
|
58
|
+
metadata?: ResponseMetadata;
|
|
59
|
+
/**
|
|
60
|
+
* Indicates if API call was successful
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof ConversationPbxVoicemailCapabilitiesResponse
|
|
63
|
+
*/
|
|
64
|
+
success?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Warning}
|
|
68
|
+
* @memberof ConversationPbxVoicemailCapabilitiesResponse
|
|
69
|
+
*/
|
|
70
|
+
warning?: Warning;
|
|
71
|
+
/**
|
|
72
|
+
* True if Zoho Desk is connected to UltraCart
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof ConversationPbxVoicemailCapabilitiesResponse
|
|
75
|
+
*/
|
|
76
|
+
zoho_desk_available?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Array of Zoho Desk Departments if Zoho Desk is connected to UltraCart
|
|
79
|
+
* @type {Array<ConversationVirtualAgentCapabilityZohoDeskDepartment>}
|
|
80
|
+
* @memberof ConversationPbxVoicemailCapabilitiesResponse
|
|
81
|
+
*/
|
|
82
|
+
zoho_desk_departments?: Array<ConversationVirtualAgentCapabilityZohoDeskDepartment>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the ConversationPbxVoicemailCapabilitiesResponse interface.
|
|
89
|
+
*/
|
|
90
|
+
export function instanceOfConversationPbxVoicemailCapabilitiesResponse(value: object): boolean {
|
|
91
|
+
let isInstance = true;
|
|
92
|
+
|
|
93
|
+
return isInstance;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ConversationPbxVoicemailCapabilitiesResponseFromJSON(json: any): ConversationPbxVoicemailCapabilitiesResponse {
|
|
97
|
+
return ConversationPbxVoicemailCapabilitiesResponseFromJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function ConversationPbxVoicemailCapabilitiesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxVoicemailCapabilitiesResponse {
|
|
101
|
+
if ((json === undefined) || (json === null)) {
|
|
102
|
+
return json;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
|
|
107
|
+
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
108
|
+
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
109
|
+
'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
|
|
110
|
+
'zoho_desk_available': !exists(json, 'zoho_desk_available') ? undefined : json['zoho_desk_available'],
|
|
111
|
+
'zoho_desk_departments': !exists(json, 'zoho_desk_departments') ? undefined : ((json['zoho_desk_departments'] as Array<any>).map(ConversationVirtualAgentCapabilityZohoDeskDepartmentFromJSON)),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ConversationPbxVoicemailCapabilitiesResponseToJSON(value?: ConversationPbxVoicemailCapabilitiesResponse | null): any {
|
|
116
|
+
if (value === undefined) {
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
if (value === null) {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'error': ModelErrorToJSON(value.error),
|
|
125
|
+
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
126
|
+
'success': value.success,
|
|
127
|
+
'warning': WarningToJSON(value.warning),
|
|
128
|
+
'zoho_desk_available': value.zoho_desk_available,
|
|
129
|
+
'zoho_desk_departments': value.zoho_desk_departments === undefined ? undefined : ((value.zoho_desk_departments as Array<any>).map(ConversationVirtualAgentCapabilityZohoDeskDepartmentToJSON)),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
@@ -31,12 +31,24 @@ export interface ConversationPbxVoicemailMailbox {
|
|
|
31
31
|
* @memberof ConversationPbxVoicemailMailbox
|
|
32
32
|
*/
|
|
33
33
|
merchant_id?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Send notices to channel
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ConversationPbxVoicemailMailbox
|
|
38
|
+
*/
|
|
39
|
+
send_notices_to_channel?: ConversationPbxVoicemailMailboxSendNoticesToChannelEnum;
|
|
34
40
|
/**
|
|
35
41
|
* Send notices to email
|
|
36
42
|
* @type {string}
|
|
37
43
|
* @memberof ConversationPbxVoicemailMailbox
|
|
38
44
|
*/
|
|
39
45
|
send_notices_to_email?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Send notices to Zoho Desk department id
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ConversationPbxVoicemailMailbox
|
|
50
|
+
*/
|
|
51
|
+
send_notices_to_zoho_desk_department_id?: string;
|
|
40
52
|
/**
|
|
41
53
|
* User Id
|
|
42
54
|
* @type {number}
|
|
@@ -95,6 +107,17 @@ export interface ConversationPbxVoicemailMailbox {
|
|
|
95
107
|
|
|
96
108
|
|
|
97
109
|
|
|
110
|
+
/**
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export const ConversationPbxVoicemailMailboxSendNoticesToChannelEnum = {
|
|
114
|
+
None: 'none',
|
|
115
|
+
Email: 'email',
|
|
116
|
+
ZohoDeskTicket: 'zoho_desk_ticket',
|
|
117
|
+
UltracartTask: 'ultracart_task'
|
|
118
|
+
} as const;
|
|
119
|
+
export type ConversationPbxVoicemailMailboxSendNoticesToChannelEnum = typeof ConversationPbxVoicemailMailboxSendNoticesToChannelEnum[keyof typeof ConversationPbxVoicemailMailboxSendNoticesToChannelEnum];
|
|
120
|
+
|
|
98
121
|
/**
|
|
99
122
|
* @export
|
|
100
123
|
*/
|
|
@@ -144,7 +167,9 @@ export function ConversationPbxVoicemailMailboxFromJSONTyped(json: any, ignoreDi
|
|
|
144
167
|
|
|
145
168
|
'conversation_pbx_voicemail_mailbox_uuid': !exists(json, 'conversation_pbx_voicemail_mailbox_uuid') ? undefined : json['conversation_pbx_voicemail_mailbox_uuid'],
|
|
146
169
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
170
|
+
'send_notices_to_channel': !exists(json, 'send_notices_to_channel') ? undefined : json['send_notices_to_channel'],
|
|
147
171
|
'send_notices_to_email': !exists(json, 'send_notices_to_email') ? undefined : json['send_notices_to_email'],
|
|
172
|
+
'send_notices_to_zoho_desk_department_id': !exists(json, 'send_notices_to_zoho_desk_department_id') ? undefined : json['send_notices_to_zoho_desk_department_id'],
|
|
148
173
|
'user_id': !exists(json, 'user_id') ? undefined : json['user_id'],
|
|
149
174
|
'voicemail_followup_play_audio_uuid': !exists(json, 'voicemail_followup_play_audio_uuid') ? undefined : json['voicemail_followup_play_audio_uuid'],
|
|
150
175
|
'voicemail_followup_say': !exists(json, 'voicemail_followup_say') ? undefined : json['voicemail_followup_say'],
|
|
@@ -168,7 +193,9 @@ export function ConversationPbxVoicemailMailboxToJSON(value?: ConversationPbxVoi
|
|
|
168
193
|
|
|
169
194
|
'conversation_pbx_voicemail_mailbox_uuid': value.conversation_pbx_voicemail_mailbox_uuid,
|
|
170
195
|
'merchant_id': value.merchant_id,
|
|
196
|
+
'send_notices_to_channel': value.send_notices_to_channel,
|
|
171
197
|
'send_notices_to_email': value.send_notices_to_email,
|
|
198
|
+
'send_notices_to_zoho_desk_department_id': value.send_notices_to_zoho_desk_department_id,
|
|
172
199
|
'user_id': value.user_id,
|
|
173
200
|
'voicemail_followup_play_audio_uuid': value.voicemail_followup_play_audio_uuid,
|
|
174
201
|
'voicemail_followup_say': value.voicemail_followup_say,
|
package/src/models/Coupon.ts
CHANGED
|
@@ -217,6 +217,12 @@ import {
|
|
|
217
217
|
CouponPercentOffItemsWithItemsPurchaseFromJSONTyped,
|
|
218
218
|
CouponPercentOffItemsWithItemsPurchaseToJSON,
|
|
219
219
|
} from './CouponPercentOffItemsWithItemsPurchase';
|
|
220
|
+
import {
|
|
221
|
+
CouponPercentOffItemsWithMinimumItemAmount,
|
|
222
|
+
CouponPercentOffItemsWithMinimumItemAmountFromJSON,
|
|
223
|
+
CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped,
|
|
224
|
+
CouponPercentOffItemsWithMinimumItemAmountToJSON,
|
|
225
|
+
} from './CouponPercentOffItemsWithMinimumItemAmount';
|
|
220
226
|
import {
|
|
221
227
|
CouponPercentOffMsrpItems,
|
|
222
228
|
CouponPercentOffMsrpItemsFromJSON,
|
|
@@ -584,6 +590,12 @@ export interface Coupon {
|
|
|
584
590
|
* @memberof Coupon
|
|
585
591
|
*/
|
|
586
592
|
percent_off_items_with_items_purchase?: CouponPercentOffItemsWithItemsPurchase;
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @type {CouponPercentOffItemsWithMinimumItemAmount}
|
|
596
|
+
* @memberof Coupon
|
|
597
|
+
*/
|
|
598
|
+
percent_off_items_with_minimum_item_amount?: CouponPercentOffItemsWithMinimumItemAmount;
|
|
587
599
|
/**
|
|
588
600
|
*
|
|
589
601
|
* @type {CouponPercentOffMsrpItems}
|
|
@@ -797,6 +809,7 @@ export function CouponFromJSONTyped(json: any, ignoreDiscriminator: boolean): Co
|
|
|
797
809
|
'percent_off_items': !exists(json, 'percent_off_items') ? undefined : CouponPercentOffItemsFromJSON(json['percent_off_items']),
|
|
798
810
|
'percent_off_items_and_free_shipping': !exists(json, 'percent_off_items_and_free_shipping') ? undefined : CouponPercentOffItemsAndFreeShippingFromJSON(json['percent_off_items_and_free_shipping']),
|
|
799
811
|
'percent_off_items_with_items_purchase': !exists(json, 'percent_off_items_with_items_purchase') ? undefined : CouponPercentOffItemsWithItemsPurchaseFromJSON(json['percent_off_items_with_items_purchase']),
|
|
812
|
+
'percent_off_items_with_minimum_item_amount': !exists(json, 'percent_off_items_with_minimum_item_amount') ? undefined : CouponPercentOffItemsWithMinimumItemAmountFromJSON(json['percent_off_items_with_minimum_item_amount']),
|
|
800
813
|
'percent_off_msrp_items': !exists(json, 'percent_off_msrp_items') ? undefined : CouponPercentOffMsrpItemsFromJSON(json['percent_off_msrp_items']),
|
|
801
814
|
'percent_off_retail_price_items': !exists(json, 'percent_off_retail_price_items') ? undefined : CouponPercentOffRetailPriceItemsFromJSON(json['percent_off_retail_price_items']),
|
|
802
815
|
'percent_off_shipping': !exists(json, 'percent_off_shipping') ? undefined : CouponPercentOffShippingFromJSON(json['percent_off_shipping']),
|
|
@@ -876,6 +889,7 @@ export function CouponToJSON(value?: Coupon | null): any {
|
|
|
876
889
|
'percent_off_items': CouponPercentOffItemsToJSON(value.percent_off_items),
|
|
877
890
|
'percent_off_items_and_free_shipping': CouponPercentOffItemsAndFreeShippingToJSON(value.percent_off_items_and_free_shipping),
|
|
878
891
|
'percent_off_items_with_items_purchase': CouponPercentOffItemsWithItemsPurchaseToJSON(value.percent_off_items_with_items_purchase),
|
|
892
|
+
'percent_off_items_with_minimum_item_amount': CouponPercentOffItemsWithMinimumItemAmountToJSON(value.percent_off_items_with_minimum_item_amount),
|
|
879
893
|
'percent_off_msrp_items': CouponPercentOffMsrpItemsToJSON(value.percent_off_msrp_items),
|
|
880
894
|
'percent_off_retail_price_items': CouponPercentOffRetailPriceItemsToJSON(value.percent_off_retail_price_items),
|
|
881
895
|
'percent_off_shipping': CouponPercentOffShippingToJSON(value.percent_off_shipping),
|
|
@@ -0,0 +1,123 @@
|
|
|
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 CouponPercentOffItemsWithMinimumItemAmount
|
|
20
|
+
*/
|
|
21
|
+
export interface CouponPercentOffItemsWithMinimumItemAmount {
|
|
22
|
+
/**
|
|
23
|
+
* The ISO-4217 three letter currency code the customer is viewing prices in
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
26
|
+
*/
|
|
27
|
+
currency_code?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The percentage of subtotal discount
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
32
|
+
*/
|
|
33
|
+
discount_percent?: number;
|
|
34
|
+
/**
|
|
35
|
+
* A list of item tags which cannot be discounted.
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
38
|
+
*/
|
|
39
|
+
excluded_item_tags?: Array<string>;
|
|
40
|
+
/**
|
|
41
|
+
* A list of items which cannot be discounted.
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
44
|
+
*/
|
|
45
|
+
excluded_items?: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
50
|
+
*/
|
|
51
|
+
item_tags?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
56
|
+
*/
|
|
57
|
+
items?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The (optional) maximum quantity of discounted items.
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
62
|
+
*/
|
|
63
|
+
limit?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The minimum item amount (dollars) required for the discount to apply
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
68
|
+
*/
|
|
69
|
+
minimum_item_amount?: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the CouponPercentOffItemsWithMinimumItemAmount interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfCouponPercentOffItemsWithMinimumItemAmount(value: object): boolean {
|
|
78
|
+
let isInstance = true;
|
|
79
|
+
|
|
80
|
+
return isInstance;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function CouponPercentOffItemsWithMinimumItemAmountFromJSON(json: any): CouponPercentOffItemsWithMinimumItemAmount {
|
|
84
|
+
return CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponPercentOffItemsWithMinimumItemAmount {
|
|
88
|
+
if ((json === undefined) || (json === null)) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'currency_code': !exists(json, 'currency_code') ? undefined : json['currency_code'],
|
|
94
|
+
'discount_percent': !exists(json, 'discount_percent') ? undefined : json['discount_percent'],
|
|
95
|
+
'excluded_item_tags': !exists(json, 'excluded_item_tags') ? undefined : json['excluded_item_tags'],
|
|
96
|
+
'excluded_items': !exists(json, 'excluded_items') ? undefined : json['excluded_items'],
|
|
97
|
+
'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
|
|
98
|
+
'items': !exists(json, 'items') ? undefined : json['items'],
|
|
99
|
+
'limit': !exists(json, 'limit') ? undefined : json['limit'],
|
|
100
|
+
'minimum_item_amount': !exists(json, 'minimum_item_amount') ? undefined : json['minimum_item_amount'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function CouponPercentOffItemsWithMinimumItemAmountToJSON(value?: CouponPercentOffItemsWithMinimumItemAmount | null): any {
|
|
105
|
+
if (value === undefined) {
|
|
106
|
+
return undefined;
|
|
107
|
+
}
|
|
108
|
+
if (value === null) {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'currency_code': value.currency_code,
|
|
114
|
+
'discount_percent': value.discount_percent,
|
|
115
|
+
'excluded_item_tags': value.excluded_item_tags,
|
|
116
|
+
'excluded_items': value.excluded_items,
|
|
117
|
+
'item_tags': value.item_tags,
|
|
118
|
+
'items': value.items,
|
|
119
|
+
'limit': value.limit,
|
|
120
|
+
'minimum_item_amount': value.minimum_item_amount,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -251,6 +251,7 @@ export * from './ConversationPbxTimeRange';
|
|
|
251
251
|
export * from './ConversationPbxTimeRangeConfig';
|
|
252
252
|
export * from './ConversationPbxTimeRangeResponse';
|
|
253
253
|
export * from './ConversationPbxTimeRangesResponse';
|
|
254
|
+
export * from './ConversationPbxVoicemailCapabilitiesResponse';
|
|
254
255
|
export * from './ConversationPbxVoicemailMailbox';
|
|
255
256
|
export * from './ConversationPbxVoicemailMailboxResponse';
|
|
256
257
|
export * from './ConversationPbxVoicemailMailboxesResponse';
|
|
@@ -327,6 +328,7 @@ export * from './CouponPercentOffItemWithItemsQuantityPurchase';
|
|
|
327
328
|
export * from './CouponPercentOffItems';
|
|
328
329
|
export * from './CouponPercentOffItemsAndFreeShipping';
|
|
329
330
|
export * from './CouponPercentOffItemsWithItemsPurchase';
|
|
331
|
+
export * from './CouponPercentOffItemsWithMinimumItemAmount';
|
|
330
332
|
export * from './CouponPercentOffMsrpItems';
|
|
331
333
|
export * from './CouponPercentOffRetailPriceItems';
|
|
332
334
|
export * from './CouponPercentOffShipping';
|