yellowgrid-api-ts 3.2.247-dev.0 → 3.2.249-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -0
- package/README.md +12 -0
- package/api.ts +789 -41
- package/dist/api.d.ts +453 -26
- package/dist/api.js +745 -51
- package/dist/models/ConnectionTypeEnum.d.ts +17 -7
- package/dist/models/ConnectionTypeEnum.js +17 -7
- package/dist/models/ReasonEnum.d.ts +2 -7
- package/dist/models/ReasonEnum.js +2 -7
- package/docs/AccountDetailedSummaryDTO.md +2 -0
- package/docs/AccountsApi.md +48 -0
- package/docs/AdminRmaDTO.md +2 -0
- package/docs/BillingApi.md +61 -6
- package/docs/OrdersApi.md +55 -0
- package/docs/PromoCodesEntity.md +11 -11
- package/docs/PromoItemModel.md +35 -0
- package/docs/PromoModel.md +45 -0
- package/docs/PromoSummariesModel.md +27 -0
- package/docs/PromoSummaryDTO.md +31 -0
- package/docs/PromotionsApi.md +241 -0
- package/docs/RMAApi.md +58 -0
- package/docs/RmaDTO.md +2 -0
- package/docs/RmaOrderDTO.md +4 -0
- package/docs/RmaRequestDTO.md +2 -0
- package/models/ConnectionTypeEnum.ts +17 -7
- package/models/ReasonEnum.ts +2 -7
- package/package.json +1 -1
|
@@ -39,8 +39,8 @@ export declare const ConnectionTypeEnum: {
|
|
|
39
39
|
readonly value: "Hosting";
|
|
40
40
|
readonly publicValue: "Hosting";
|
|
41
41
|
};
|
|
42
|
-
readonly
|
|
43
|
-
readonly name: "
|
|
42
|
+
readonly CRM_INTEGRATION: {
|
|
43
|
+
readonly name: "CRM_INTEGRATION";
|
|
44
44
|
readonly value: "CRM";
|
|
45
45
|
readonly publicValue: "CRM";
|
|
46
46
|
};
|
|
@@ -49,15 +49,25 @@ export declare const ConnectionTypeEnum: {
|
|
|
49
49
|
readonly value: "Starter Bundle";
|
|
50
50
|
readonly publicValue: "Starter Bundle";
|
|
51
51
|
};
|
|
52
|
-
readonly OTHER: {
|
|
53
|
-
readonly name: "OTHER";
|
|
54
|
-
readonly value: "Other";
|
|
55
|
-
readonly publicValue: "Other";
|
|
56
|
-
};
|
|
57
52
|
readonly RECURRING_CHARGES: {
|
|
58
53
|
readonly name: "RECURRING_CHARGES";
|
|
59
54
|
readonly value: "Recurring Charges";
|
|
60
55
|
readonly publicValue: "Recurring Charges";
|
|
61
56
|
};
|
|
57
|
+
readonly TLN_SMS: {
|
|
58
|
+
readonly name: "TLN_SMS";
|
|
59
|
+
readonly value: "SMS";
|
|
60
|
+
readonly publicValue: "SMS";
|
|
61
|
+
};
|
|
62
|
+
readonly CFD: {
|
|
63
|
+
readonly name: "CFD";
|
|
64
|
+
readonly value: "CFD";
|
|
65
|
+
readonly publicValue: "CFD";
|
|
66
|
+
};
|
|
67
|
+
readonly ETP_CRM: {
|
|
68
|
+
readonly name: "ETP_CRM";
|
|
69
|
+
readonly value: "EdTechPro";
|
|
70
|
+
readonly publicValue: "EdTechPro";
|
|
71
|
+
};
|
|
62
72
|
};
|
|
63
73
|
export type ConnectionTypeEnum = typeof ConnectionTypeEnum;
|
|
@@ -42,8 +42,8 @@ exports.ConnectionTypeEnum = {
|
|
|
42
42
|
"value": "Hosting",
|
|
43
43
|
"publicValue": "Hosting"
|
|
44
44
|
},
|
|
45
|
-
"
|
|
46
|
-
"name": "
|
|
45
|
+
"CRM_INTEGRATION": {
|
|
46
|
+
"name": "CRM_INTEGRATION",
|
|
47
47
|
"value": "CRM",
|
|
48
48
|
"publicValue": "CRM"
|
|
49
49
|
},
|
|
@@ -52,14 +52,24 @@ exports.ConnectionTypeEnum = {
|
|
|
52
52
|
"value": "Starter Bundle",
|
|
53
53
|
"publicValue": "Starter Bundle"
|
|
54
54
|
},
|
|
55
|
-
"OTHER": {
|
|
56
|
-
"name": "OTHER",
|
|
57
|
-
"value": "Other",
|
|
58
|
-
"publicValue": "Other"
|
|
59
|
-
},
|
|
60
55
|
"RECURRING_CHARGES": {
|
|
61
56
|
"name": "RECURRING_CHARGES",
|
|
62
57
|
"value": "Recurring Charges",
|
|
63
58
|
"publicValue": "Recurring Charges"
|
|
59
|
+
},
|
|
60
|
+
"TLN_SMS": {
|
|
61
|
+
"name": "TLN_SMS",
|
|
62
|
+
"value": "SMS",
|
|
63
|
+
"publicValue": "SMS"
|
|
64
|
+
},
|
|
65
|
+
"CFD": {
|
|
66
|
+
"name": "CFD",
|
|
67
|
+
"value": "CFD",
|
|
68
|
+
"publicValue": "CFD"
|
|
69
|
+
},
|
|
70
|
+
"ETP_CRM": {
|
|
71
|
+
"name": "ETP_CRM",
|
|
72
|
+
"value": "EdTechPro",
|
|
73
|
+
"publicValue": "EdTechPro"
|
|
64
74
|
}
|
|
65
75
|
};
|
|
@@ -9,15 +9,10 @@ export declare const ReasonEnum: {
|
|
|
9
9
|
readonly value: 2;
|
|
10
10
|
readonly publicValue: "Faulty";
|
|
11
11
|
};
|
|
12
|
-
readonly
|
|
13
|
-
readonly name: "
|
|
12
|
+
readonly WORKING: {
|
|
13
|
+
readonly name: "WORKING";
|
|
14
14
|
readonly value: 3;
|
|
15
15
|
readonly publicValue: "Working (Good Condition)";
|
|
16
16
|
};
|
|
17
|
-
readonly WORKING_BAD_CONDITION: {
|
|
18
|
-
readonly name: "WORKING_BAD_CONDITION";
|
|
19
|
-
readonly value: 4;
|
|
20
|
-
readonly publicValue: "Working (Bad Condition)";
|
|
21
|
-
};
|
|
22
17
|
};
|
|
23
18
|
export type ReasonEnum = typeof ReasonEnum;
|
|
@@ -12,14 +12,9 @@ exports.ReasonEnum = {
|
|
|
12
12
|
"value": 2,
|
|
13
13
|
"publicValue": "Faulty"
|
|
14
14
|
},
|
|
15
|
-
"
|
|
16
|
-
"name": "
|
|
15
|
+
"WORKING": {
|
|
16
|
+
"name": "WORKING",
|
|
17
17
|
"value": 3,
|
|
18
18
|
"publicValue": "Working (Good Condition)"
|
|
19
|
-
},
|
|
20
|
-
"WORKING_BAD_CONDITION": {
|
|
21
|
-
"name": "WORKING_BAD_CONDITION",
|
|
22
|
-
"value": 4,
|
|
23
|
-
"publicValue": "Working (Bad Condition)"
|
|
24
19
|
}
|
|
25
20
|
};
|
|
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**provisioningUrls** | [**Array<ProvisioningModel>**](ProvisioningModel.md) | Provisioning URLs | [default to undefined]
|
|
17
17
|
**onHold** | **boolean** | On Hold | [default to undefined]
|
|
18
18
|
**balance** | **number** | Balance (£) | [optional] [default to undefined]
|
|
19
|
+
**firstOrder** | **boolean** | First Order | [default to undefined]
|
|
19
20
|
|
|
20
21
|
## Example
|
|
21
22
|
|
|
@@ -33,6 +34,7 @@ const instance: AccountDetailedSummaryDTO = {
|
|
|
33
34
|
provisioningUrls,
|
|
34
35
|
onHold,
|
|
35
36
|
balance,
|
|
37
|
+
firstOrder,
|
|
36
38
|
};
|
|
37
39
|
```
|
|
38
40
|
|
package/docs/AccountsApi.md
CHANGED
|
@@ -18,6 +18,7 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
|
|
|
18
18
|
|[**getGetCustomerAccountsList**](#getgetcustomeraccountslist) | **GET** /admin/accounts/customers/list | |
|
|
19
19
|
|[**getGetCustomerKeys**](#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys|
|
|
20
20
|
|[**getGetCustomerMap**](#getgetcustomermap) | **GET** /admin/accounts/customer/map | |
|
|
21
|
+
|[**getGetDeliveryAddresses**](#getgetdeliveryaddresses) | **GET** /accounts/addresses/delivery | |
|
|
21
22
|
|[**getGetFinanceSettings**](#getgetfinancesettings) | **GET** /admin/accounts/{id}/finance | |
|
|
22
23
|
|[**getGetLastAccount**](#getgetlastaccount) | **GET** /admin/accounts/last | Get Last Account|
|
|
23
24
|
|[**getGetNewPriceList**](#getgetnewpricelist) | **GET** /admin/accounts/priceList/new | Download New Price List|
|
|
@@ -786,6 +787,53 @@ No authorization required
|
|
|
786
787
|
|
|
787
788
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
788
789
|
|
|
790
|
+
# **getGetDeliveryAddresses**
|
|
791
|
+
> Array<AddressModel> getGetDeliveryAddresses()
|
|
792
|
+
|
|
793
|
+
Get account delivery addresses
|
|
794
|
+
|
|
795
|
+
### Example
|
|
796
|
+
|
|
797
|
+
```typescript
|
|
798
|
+
import {
|
|
799
|
+
AccountsApi,
|
|
800
|
+
Configuration
|
|
801
|
+
} from 'yellowgrid-api-ts';
|
|
802
|
+
|
|
803
|
+
const configuration = new Configuration();
|
|
804
|
+
const apiInstance = new AccountsApi(configuration);
|
|
805
|
+
|
|
806
|
+
const { status, data } = await apiInstance.getGetDeliveryAddresses();
|
|
807
|
+
```
|
|
808
|
+
|
|
809
|
+
### Parameters
|
|
810
|
+
This endpoint does not have any parameters.
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
### Return type
|
|
814
|
+
|
|
815
|
+
**Array<AddressModel>**
|
|
816
|
+
|
|
817
|
+
### Authorization
|
|
818
|
+
|
|
819
|
+
No authorization required
|
|
820
|
+
|
|
821
|
+
### HTTP request headers
|
|
822
|
+
|
|
823
|
+
- **Content-Type**: Not defined
|
|
824
|
+
- **Accept**: application/json
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
### HTTP response details
|
|
828
|
+
| Status code | Description | Response headers |
|
|
829
|
+
|-------------|-------------|------------------|
|
|
830
|
+
|**200** | Account Delivery Addresses | - |
|
|
831
|
+
|**400** | Bad Request | - |
|
|
832
|
+
|**401** | Unauthorised | - |
|
|
833
|
+
|**403** | Access Denied | - |
|
|
834
|
+
|
|
835
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
836
|
+
|
|
789
837
|
# **getGetFinanceSettings**
|
|
790
838
|
> AccountFinanceDTO getGetFinanceSettings()
|
|
791
839
|
|
package/docs/AdminRmaDTO.md
CHANGED
|
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
|
|
|
18
18
|
**statusText** | **string** | RMA Status Text | [default to undefined]
|
|
19
19
|
**approved** | **boolean** | RMA Approval Status | [default to undefined]
|
|
20
20
|
**address** | [**AddressDTO**](AddressDTO.md) | | [default to undefined]
|
|
21
|
+
**advanceReplacementOrderId** | **number** | Advance Replacement Order ID | [default to undefined]
|
|
21
22
|
**customerId** | **number** | Customer ID | [default to undefined]
|
|
22
23
|
**xeroId** | **string** | Customer Xero ID | [default to undefined]
|
|
23
24
|
**customerName** | **string** | Customer Name | [default to undefined]
|
|
@@ -48,6 +49,7 @@ const instance: AdminRmaDTO = {
|
|
|
48
49
|
statusText,
|
|
49
50
|
approved,
|
|
50
51
|
address,
|
|
52
|
+
advanceReplacementOrderId,
|
|
51
53
|
customerId,
|
|
52
54
|
xeroId,
|
|
53
55
|
customerName,
|
package/docs/BillingApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
|
|
|
8
8
|
|[**deleteAddRecurringCharge**](#deleteaddrecurringcharge) | **DELETE** /billing/customer/recurringCharges | |
|
|
9
9
|
|[**deleteAddServiceToServicePlan**](#deleteaddservicetoserviceplan) | **DELETE** /billing/admin/servicePlan/service | |
|
|
10
10
|
|[**deleteCloseAccount**](#deletecloseaccount) | **DELETE** /billing/customer/customer | |
|
|
11
|
+
|[**deleteDeleteCallTariffId**](#deletedeletecalltariffid) | **DELETE** /billing/admin/callTariffPlan/callTariff/{id} | |
|
|
11
12
|
|[**deleteGetBaseServices**](#deletegetbaseservices) | **DELETE** /billing/admin/baseServices | |
|
|
12
13
|
|[**deleteGetCallTariffPlan**](#deletegetcalltariffplan) | **DELETE** /billing/admin/callTariffPlan | |
|
|
13
14
|
|[**deleteGetPriceGroups**](#deletegetpricegroups) | **DELETE** /billing/admin/priceGroups | |
|
|
@@ -293,6 +294,60 @@ No authorization required
|
|
|
293
294
|
|
|
294
295
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
295
296
|
|
|
297
|
+
# **deleteDeleteCallTariffId**
|
|
298
|
+
> boolean deleteDeleteCallTariffId()
|
|
299
|
+
|
|
300
|
+
Delete Call Tariff By ID
|
|
301
|
+
|
|
302
|
+
### Example
|
|
303
|
+
|
|
304
|
+
```typescript
|
|
305
|
+
import {
|
|
306
|
+
BillingApi,
|
|
307
|
+
Configuration
|
|
308
|
+
} from 'yellowgrid-api-ts';
|
|
309
|
+
|
|
310
|
+
const configuration = new Configuration();
|
|
311
|
+
const apiInstance = new BillingApi(configuration);
|
|
312
|
+
|
|
313
|
+
let id: number; //Call Tariff ID (default to undefined)
|
|
314
|
+
|
|
315
|
+
const { status, data } = await apiInstance.deleteDeleteCallTariffId(
|
|
316
|
+
id
|
|
317
|
+
);
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### Parameters
|
|
321
|
+
|
|
322
|
+
|Name | Type | Description | Notes|
|
|
323
|
+
|------------- | ------------- | ------------- | -------------|
|
|
324
|
+
| **id** | [**number**] | Call Tariff ID | defaults to undefined|
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
### Return type
|
|
328
|
+
|
|
329
|
+
**boolean**
|
|
330
|
+
|
|
331
|
+
### Authorization
|
|
332
|
+
|
|
333
|
+
No authorization required
|
|
334
|
+
|
|
335
|
+
### HTTP request headers
|
|
336
|
+
|
|
337
|
+
- **Content-Type**: Not defined
|
|
338
|
+
- **Accept**: application/json
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
### HTTP response details
|
|
342
|
+
| Status code | Description | Response headers |
|
|
343
|
+
|-------------|-------------|------------------|
|
|
344
|
+
|**200** | Successful | - |
|
|
345
|
+
|**400** | Bad Request | - |
|
|
346
|
+
|**401** | Unauthorised | - |
|
|
347
|
+
|**403** | Access Denied | - |
|
|
348
|
+
|
|
349
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
350
|
+
|
|
296
351
|
# **deleteGetBaseServices**
|
|
297
352
|
> boolean deleteGetBaseServices()
|
|
298
353
|
|
|
@@ -946,7 +1001,7 @@ import {
|
|
|
946
1001
|
const configuration = new Configuration();
|
|
947
1002
|
const apiInstance = new BillingApi(configuration);
|
|
948
1003
|
|
|
949
|
-
let billCustomerId:
|
|
1004
|
+
let billCustomerId: string; //Customer ID (optional) (default to undefined)
|
|
950
1005
|
|
|
951
1006
|
const { status, data } = await apiInstance.getGetBillingCustomerDetails(
|
|
952
1007
|
billCustomerId
|
|
@@ -957,7 +1012,7 @@ const { status, data } = await apiInstance.getGetBillingCustomerDetails(
|
|
|
957
1012
|
|
|
958
1013
|
|Name | Type | Description | Notes|
|
|
959
1014
|
|------------- | ------------- | ------------- | -------------|
|
|
960
|
-
| **billCustomerId** | [**
|
|
1015
|
+
| **billCustomerId** | [**string**] | Customer ID | (optional) defaults to undefined|
|
|
961
1016
|
|
|
962
1017
|
|
|
963
1018
|
### Return type
|
|
@@ -1306,7 +1361,7 @@ import {
|
|
|
1306
1361
|
const configuration = new Configuration();
|
|
1307
1362
|
const apiInstance = new BillingApi(configuration);
|
|
1308
1363
|
|
|
1309
|
-
let type: 'SIP Trunks' | 'Broadband' | 'Ethernet' | 'Mobile' | 'WLR' | 'Horizon' | 'NTS' | 'Hosting' | 'CRM' | 'Starter Bundle' | '
|
|
1364
|
+
let type: 'SIP Trunks' | 'Broadband' | 'Ethernet' | 'Mobile' | 'WLR' | 'Horizon' | 'NTS' | 'Hosting' | 'CRM' | 'Starter Bundle' | 'Recurring Charges' | 'SMS' | 'CFD' | 'EdTechPro'; //Connection Type (optional) (default to undefined)
|
|
1310
1365
|
let billCustomerId: number; //Customer ID (optional) (default to undefined)
|
|
1311
1366
|
|
|
1312
1367
|
const { status, data } = await apiInstance.getGetConnections(
|
|
@@ -1319,7 +1374,7 @@ const { status, data } = await apiInstance.getGetConnections(
|
|
|
1319
1374
|
|
|
1320
1375
|
|Name | Type | Description | Notes|
|
|
1321
1376
|
|------------- | ------------- | ------------- | -------------|
|
|
1322
|
-
| **type** | [**'SIP Trunks' | 'Broadband' | 'Ethernet' | 'Mobile' | 'WLR' | 'Horizon' | 'NTS' | 'Hosting' | 'CRM' | 'Starter Bundle' | '
|
|
1377
|
+
| **type** | [**'SIP Trunks' | 'Broadband' | 'Ethernet' | 'Mobile' | 'WLR' | 'Horizon' | 'NTS' | 'Hosting' | 'CRM' | 'Starter Bundle' | 'Recurring Charges' | 'SMS' | 'CFD' | 'EdTechPro'**]**Array<'SIP Trunks' | 'Broadband' | 'Ethernet' | 'Mobile' | 'WLR' | 'Horizon' | 'NTS' | 'Hosting' | 'CRM' | 'Starter Bundle' | 'Recurring Charges' | 'SMS' | 'CFD' | 'EdTechPro'>** | Connection Type | (optional) defaults to undefined|
|
|
1323
1378
|
| **billCustomerId** | [**number**] | Customer ID | (optional) defaults to undefined|
|
|
1324
1379
|
|
|
1325
1380
|
|
|
@@ -1665,7 +1720,7 @@ import {
|
|
|
1665
1720
|
const configuration = new Configuration();
|
|
1666
1721
|
const apiInstance = new BillingApi(configuration);
|
|
1667
1722
|
|
|
1668
|
-
let type: 'SIP Trunks' | 'Broadband' | 'Ethernet' | 'Mobile' | 'WLR' | 'Horizon' | 'NTS' | 'Hosting' | 'CRM' | 'Starter Bundle' | '
|
|
1723
|
+
let type: 'SIP Trunks' | 'Broadband' | 'Ethernet' | 'Mobile' | 'WLR' | 'Horizon' | 'NTS' | 'Hosting' | 'CRM' | 'Starter Bundle' | 'Recurring Charges' | 'SMS' | 'CFD' | 'EdTechPro'; //Connection Type (optional) (default to undefined)
|
|
1669
1724
|
|
|
1670
1725
|
const { status, data } = await apiInstance.getGetServicesPlanDetails(
|
|
1671
1726
|
type
|
|
@@ -1676,7 +1731,7 @@ const { status, data } = await apiInstance.getGetServicesPlanDetails(
|
|
|
1676
1731
|
|
|
1677
1732
|
|Name | Type | Description | Notes|
|
|
1678
1733
|
|------------- | ------------- | ------------- | -------------|
|
|
1679
|
-
| **type** | [**'SIP Trunks' | 'Broadband' | 'Ethernet' | 'Mobile' | 'WLR' | 'Horizon' | 'NTS' | 'Hosting' | 'CRM' | 'Starter Bundle' | '
|
|
1734
|
+
| **type** | [**'SIP Trunks' | 'Broadband' | 'Ethernet' | 'Mobile' | 'WLR' | 'Horizon' | 'NTS' | 'Hosting' | 'CRM' | 'Starter Bundle' | 'Recurring Charges' | 'SMS' | 'CFD' | 'EdTechPro'**]**Array<'SIP Trunks' | 'Broadband' | 'Ethernet' | 'Mobile' | 'WLR' | 'Horizon' | 'NTS' | 'Hosting' | 'CRM' | 'Starter Bundle' | 'Recurring Charges' | 'SMS' | 'CFD' | 'EdTechPro'>** | Connection Type | (optional) defaults to undefined|
|
|
1680
1735
|
|
|
1681
1736
|
|
|
1682
1737
|
### Return type
|
package/docs/OrdersApi.md
CHANGED
|
@@ -10,6 +10,7 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
|
|
|
10
10
|
|[**getGetAdminEditableOrder**](#getgetadmineditableorder) | **GET** /admin/orders/{id}/views/editable | Get Editable Order (Admin)|
|
|
11
11
|
|[**getGetAdminOrderDetails**](#getgetadminorderdetails) | **GET** /admin/orders/{id}/details | Get Order Details (Admin)|
|
|
12
12
|
|[**getGetCommercialInvoice**](#getgetcommercialinvoice) | **GET** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/pdf | Get Commercial Invoice PDF|
|
|
13
|
+
|[**getGetCustomerOrderSummary**](#getgetcustomerordersummary) | **GET** /orders/{id}/summary | |
|
|
13
14
|
|[**getGetEditableOrder**](#getgeteditableorder) | **GET** /orders/{id}/views/editable | Get Editable Order (Beta)|
|
|
14
15
|
|[**getGetItemSerialInfo**](#getgetitemserialinfo) | **GET** /admin/orders/{id}/items/{item_id}/info | Get Item Serial Info (Admin)|
|
|
15
16
|
|[**getGetOrderPdf**](#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF|
|
|
@@ -375,6 +376,60 @@ No authorization required
|
|
|
375
376
|
|
|
376
377
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
377
378
|
|
|
379
|
+
# **getGetCustomerOrderSummary**
|
|
380
|
+
> OrderSummaryDTO getGetCustomerOrderSummary()
|
|
381
|
+
|
|
382
|
+
Get Order
|
|
383
|
+
|
|
384
|
+
### Example
|
|
385
|
+
|
|
386
|
+
```typescript
|
|
387
|
+
import {
|
|
388
|
+
OrdersApi,
|
|
389
|
+
Configuration
|
|
390
|
+
} from 'yellowgrid-api-ts';
|
|
391
|
+
|
|
392
|
+
const configuration = new Configuration();
|
|
393
|
+
const apiInstance = new OrdersApi(configuration);
|
|
394
|
+
|
|
395
|
+
let id: number; //Order ID (default to undefined)
|
|
396
|
+
|
|
397
|
+
const { status, data } = await apiInstance.getGetCustomerOrderSummary(
|
|
398
|
+
id
|
|
399
|
+
);
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
### Parameters
|
|
403
|
+
|
|
404
|
+
|Name | Type | Description | Notes|
|
|
405
|
+
|------------- | ------------- | ------------- | -------------|
|
|
406
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
### Return type
|
|
410
|
+
|
|
411
|
+
**OrderSummaryDTO**
|
|
412
|
+
|
|
413
|
+
### Authorization
|
|
414
|
+
|
|
415
|
+
No authorization required
|
|
416
|
+
|
|
417
|
+
### HTTP request headers
|
|
418
|
+
|
|
419
|
+
- **Content-Type**: Not defined
|
|
420
|
+
- **Accept**: application/json
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
### HTTP response details
|
|
424
|
+
| Status code | Description | Response headers |
|
|
425
|
+
|-------------|-------------|------------------|
|
|
426
|
+
|**200** | Order Summary | - |
|
|
427
|
+
|**400** | Bad Request | - |
|
|
428
|
+
|**401** | Unauthorised | - |
|
|
429
|
+
|**403** | Access Denied | - |
|
|
430
|
+
|
|
431
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
432
|
+
|
|
378
433
|
# **getGetEditableOrder**
|
|
379
434
|
> DetailedOrderRequestDTO getGetEditableOrder()
|
|
380
435
|
|
package/docs/PromoCodesEntity.md
CHANGED
|
@@ -6,18 +6,18 @@ PromoCodesEntity
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | id | [default to undefined]
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
10
|
**code** | **string** | code | [default to undefined]
|
|
11
11
|
**description** | **string** | description | [default to undefined]
|
|
12
|
-
**
|
|
13
|
-
**
|
|
14
|
-
**expiry** | **string** | expiry | [default to undefined]
|
|
12
|
+
**startDate** | **string** | start | [optional] [default to undefined]
|
|
13
|
+
**endDate** | **string** | expiry | [optional] [default to undefined]
|
|
15
14
|
**customerLimit** | **number** | customerLimit | [default to undefined]
|
|
16
15
|
**globalLimit** | **number** | globalLimit | [default to undefined]
|
|
17
|
-
**orderRestrictions** | **string
|
|
18
|
-
**includeDistribution** | **
|
|
19
|
-
**distributionOnly** | **
|
|
20
|
-
**
|
|
16
|
+
**orderRestrictions** | **Array<string>** | orderRestrictions | [default to undefined]
|
|
17
|
+
**includeDistribution** | **boolean** | includeDistribution | [default to undefined]
|
|
18
|
+
**distributionOnly** | **boolean** | distributionOnly | [default to undefined]
|
|
19
|
+
**nfr** | **boolean** | nfr | [default to undefined]
|
|
20
|
+
**note** | **string** | note | [optional] [default to undefined]
|
|
21
21
|
|
|
22
22
|
## Example
|
|
23
23
|
|
|
@@ -28,14 +28,14 @@ const instance: PromoCodesEntity = {
|
|
|
28
28
|
id,
|
|
29
29
|
code,
|
|
30
30
|
description,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
expiry,
|
|
31
|
+
startDate,
|
|
32
|
+
endDate,
|
|
34
33
|
customerLimit,
|
|
35
34
|
globalLimit,
|
|
36
35
|
orderRestrictions,
|
|
37
36
|
includeDistribution,
|
|
38
37
|
distributionOnly,
|
|
38
|
+
nfr,
|
|
39
39
|
note,
|
|
40
40
|
};
|
|
41
41
|
```
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# PromoItemModel
|
|
2
|
+
|
|
3
|
+
Promo Item
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [default to undefined]
|
|
10
|
+
**promoId** | **number** | promoId | [default to undefined]
|
|
11
|
+
**price** | **number** | price | [default to undefined]
|
|
12
|
+
**discount** | **number** | discount | [default to undefined]
|
|
13
|
+
**sku** | **string** | sku | [default to undefined]
|
|
14
|
+
**quantity** | **number** | quantity | [default to undefined]
|
|
15
|
+
**bulkQuantity** | **number** | bulkQuantity | [default to undefined]
|
|
16
|
+
**bulkAdd** | **number** | bulkAdd | [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { PromoItemModel } from 'yellowgrid-api-ts';
|
|
22
|
+
|
|
23
|
+
const instance: PromoItemModel = {
|
|
24
|
+
id,
|
|
25
|
+
promoId,
|
|
26
|
+
price,
|
|
27
|
+
discount,
|
|
28
|
+
sku,
|
|
29
|
+
quantity,
|
|
30
|
+
bulkQuantity,
|
|
31
|
+
bulkAdd,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# PromoModel
|
|
2
|
+
|
|
3
|
+
Promotion
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**code** | **string** | code | [default to undefined]
|
|
11
|
+
**description** | **string** | description | [default to undefined]
|
|
12
|
+
**startDate** | **string** | start | [optional] [default to undefined]
|
|
13
|
+
**endDate** | **string** | expiry | [optional] [default to undefined]
|
|
14
|
+
**customerLimit** | **number** | customerLimit | [default to undefined]
|
|
15
|
+
**globalLimit** | **number** | globalLimit | [default to undefined]
|
|
16
|
+
**orderRestrictions** | **Array<string>** | orderRestrictions | [default to undefined]
|
|
17
|
+
**includeDistribution** | **boolean** | includeDistribution | [default to undefined]
|
|
18
|
+
**distributionOnly** | **boolean** | distributionOnly | [default to undefined]
|
|
19
|
+
**nfr** | **boolean** | nfr | [default to undefined]
|
|
20
|
+
**note** | **string** | note | [optional] [default to undefined]
|
|
21
|
+
**items** | [**Array<PromoItemModel>**](PromoItemModel.md) | Items | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { PromoModel } from 'yellowgrid-api-ts';
|
|
27
|
+
|
|
28
|
+
const instance: PromoModel = {
|
|
29
|
+
id,
|
|
30
|
+
code,
|
|
31
|
+
description,
|
|
32
|
+
startDate,
|
|
33
|
+
endDate,
|
|
34
|
+
customerLimit,
|
|
35
|
+
globalLimit,
|
|
36
|
+
orderRestrictions,
|
|
37
|
+
includeDistribution,
|
|
38
|
+
distributionOnly,
|
|
39
|
+
nfr,
|
|
40
|
+
note,
|
|
41
|
+
items,
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# PromoSummariesModel
|
|
2
|
+
|
|
3
|
+
Promotions
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**results** | [**Array<PromoSummaryDTO>**](PromoSummaryDTO.md) | Results | [default to undefined]
|
|
10
|
+
**page** | **number** | Page | [default to undefined]
|
|
11
|
+
**perPage** | **number** | Per Page | [default to undefined]
|
|
12
|
+
**totalResults** | **number** | Total Results | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { PromoSummariesModel } from 'yellowgrid-api-ts';
|
|
18
|
+
|
|
19
|
+
const instance: PromoSummariesModel = {
|
|
20
|
+
results,
|
|
21
|
+
page,
|
|
22
|
+
perPage,
|
|
23
|
+
totalResults,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# PromoSummaryDTO
|
|
2
|
+
|
|
3
|
+
Promo Summary
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | ID | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | Description | [default to undefined]
|
|
11
|
+
**code** | **string** | Promo Code | [default to undefined]
|
|
12
|
+
**startDate** | **string** | Start Date | [optional] [default to undefined]
|
|
13
|
+
**endDate** | **string** | End Date | [optional] [default to undefined]
|
|
14
|
+
**orders** | **number** | Orders | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { PromoSummaryDTO } from 'yellowgrid-api-ts';
|
|
20
|
+
|
|
21
|
+
const instance: PromoSummaryDTO = {
|
|
22
|
+
id,
|
|
23
|
+
description,
|
|
24
|
+
code,
|
|
25
|
+
startDate,
|
|
26
|
+
endDate,
|
|
27
|
+
orders,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|