yellowgrid-api-ts 3.0.79
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 +189 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +385 -0
- package/api.ts +20310 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/config.json +3 -0
- package/configuration.ts +115 -0
- package/dist/api.d.ts +14136 -0
- package/dist/api.js +14123 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +86 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +253 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +57 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AccountContactEntity.md +45 -0
- package/docs/AccountContactModel.md +45 -0
- package/docs/AccountContactRequestModel.md +37 -0
- package/docs/AccountRequestModel.md +53 -0
- package/docs/AccountSummaryDTO.md +25 -0
- package/docs/AccountsApi.md +948 -0
- package/docs/AccountsResponseModel.md +27 -0
- package/docs/AddressModel.md +45 -0
- package/docs/AddressRequestModel.md +27 -0
- package/docs/AgentHoursGraphModel.md +27 -0
- package/docs/AgentHoursGraphMonthModel.md +23 -0
- package/docs/ApiLogEntity.md +43 -0
- package/docs/AreaCodeModel.md +23 -0
- package/docs/AttachmentModel.md +29 -0
- package/docs/AttributeSetEnum.md +23 -0
- package/docs/AuthCodeResponseModel.md +25 -0
- package/docs/BatchEntity.md +53 -0
- package/docs/CallBarringModel.md +29 -0
- package/docs/Class3CXApi.md +172 -0
- package/docs/Class3CXInstallationWizardApi.md +1355 -0
- package/docs/Class3CXInstallationsApi.md +651 -0
- package/docs/Class3CXIntegrationsApi.md +344 -0
- package/docs/Class3CXMultiTenantApi.md +404 -0
- package/docs/ClientDetailsModel.md +35 -0
- package/docs/ClientModel.md +27 -0
- package/docs/CompanyContractModel.md +29 -0
- package/docs/ContactInfoModel.md +29 -0
- package/docs/ConversationModel.md +35 -0
- package/docs/CreditAccountEntity.md +61 -0
- package/docs/CustomerInformationModel.md +33 -0
- package/docs/CustomerPriceListEnum.md +23 -0
- package/docs/CustomerSummaryReportDTO.md +31 -0
- package/docs/DdiRangeRequestModel.md +25 -0
- package/docs/DdiRangesRequestModel.md +21 -0
- package/docs/DivertRequestModel.md +23 -0
- package/docs/DivertResponseModel.md +25 -0
- package/docs/EdTechProClientEntity.md +29 -0
- package/docs/EdTechProSchoolModel.md +47 -0
- package/docs/EdTechProSchoolsModel.md +27 -0
- package/docs/EdTechProSetupModel.md +29 -0
- package/docs/FraudManagementModel.md +23 -0
- package/docs/FreshdeskCompanyTicketsModel.md +27 -0
- package/docs/FreshdeskTicketEntity.md +33 -0
- package/docs/FtpAccountsEntity.md +29 -0
- package/docs/GenericFileModel.md +25 -0
- package/docs/GetGetPasswordHash200Response.md +20 -0
- package/docs/GetGetPrice200Response.md +20 -0
- package/docs/GetGetRecording200Response.md +20 -0
- package/docs/HostingChangeResponseModel.md +29 -0
- package/docs/InstanceAutoFailoverEntity.md +29 -0
- package/docs/InstanceDeletionScheduleEntity.md +27 -0
- package/docs/InstanceEntity.md +59 -0
- package/docs/InstanceFailoverEntity.md +41 -0
- package/docs/InstanceMonitoringEntity.md +25 -0
- package/docs/InstanceMonitoringLogEntity.md +31 -0
- package/docs/InstanceScheduledTasksEntity.md +31 -0
- package/docs/InstanceTcxDetailsEntity.md +39 -0
- package/docs/InstanceUserCredentialsEntity.md +29 -0
- package/docs/ItemDTO.md +41 -0
- package/docs/ItemEntity.md +61 -0
- package/docs/MFARequiredModel.md +23 -0
- package/docs/MonthlyUsageModel.md +23 -0
- package/docs/MultiTenantChangeResponseModel.md +27 -0
- package/docs/MyPBXToolsApi.md +65 -0
- package/docs/NavigationModel.md +27 -0
- package/docs/OAuth20Api.md +368 -0
- package/docs/OfflineInstancesEntity.md +29 -0
- package/docs/OrderEntity.md +135 -0
- package/docs/OrderRequestModel.md +45 -0
- package/docs/OrderSummariesModel.md +27 -0
- package/docs/OrderSummaryDTO.md +43 -0
- package/docs/OrderTotalModel.md +33 -0
- package/docs/OrderedItemEntity.md +47 -0
- package/docs/OrdersApi.md +135 -0
- package/docs/PatchSetTcxWizardCnameRequest.md +20 -0
- package/docs/PatchUpdateAccountContactPasswordRequest.md +20 -0
- package/docs/PortalAccountModel.md +67 -0
- package/docs/PortalLoginModel.md +33 -0
- package/docs/PostAddWebhook200Response.md +20 -0
- package/docs/PostGetClientCredentialsRequest.md +20 -0
- package/docs/PriceListItemModel.md +29 -0
- package/docs/PricingApi.md +138 -0
- package/docs/PrizesEntity.md +31 -0
- package/docs/ProductSearchResultsModel.md +21 -0
- package/docs/ProductSerialInfoModel.md +27 -0
- package/docs/ProductSummaryModel.md +31 -0
- package/docs/ProductsApi.md +315 -0
- package/docs/PromoCodesEntity.md +43 -0
- package/docs/PromoItemsEntity.md +35 -0
- package/docs/ProvisioningApi.md +402 -0
- package/docs/ProvisioningEntity.md +29 -0
- package/docs/ProvisioningRequestEntity.md +25 -0
- package/docs/ResourceNotReadyException.md +25 -0
- package/docs/RootAccessModel.md +25 -0
- package/docs/SIPTrunksApi.md +1258 -0
- package/docs/SMSApi.md +66 -0
- package/docs/ScannedItemModel.md +29 -0
- package/docs/ScopeModel.md +23 -0
- package/docs/ShipmentAddressEntity.md +41 -0
- package/docs/ShipmentEntity.md +43 -0
- package/docs/ShipmentItemEntity.md +29 -0
- package/docs/SipTrunkChangeResponseModel.md +29 -0
- package/docs/SipTrunkCreationRequestModel.md +31 -0
- package/docs/SipTrunkEntity.md +43 -0
- package/docs/SipTrunksResponseModel.md +27 -0
- package/docs/SmsAccountEntity.md +33 -0
- package/docs/SmsDataModel.md +21 -0
- package/docs/SmsMessageModel.md +25 -0
- package/docs/SmsNumbersEntity.md +23 -0
- package/docs/SmsPayloadModel.md +25 -0
- package/docs/SmsPhoneNumberModel.md +23 -0
- package/docs/SmsResponseModel.md +29 -0
- package/docs/SmsWhitelistEntity.md +23 -0
- package/docs/StockManagementApi.md +1380 -0
- package/docs/StockOrderCourierEntity.md +27 -0
- package/docs/StockOrderDeductionModel.md +27 -0
- package/docs/StockOrderDeductionRequestModel.md +23 -0
- package/docs/StockOrderDeductionsEntity.md +27 -0
- package/docs/StockOrderEntity.md +63 -0
- package/docs/StockOrderItemEntity.md +33 -0
- package/docs/StockOrderItemModel.md +37 -0
- package/docs/StockOrderItemRequestModel.md +27 -0
- package/docs/StockOrderModel.md +49 -0
- package/docs/StockOrderProductEntity.md +31 -0
- package/docs/StockOrderRequestModel.md +25 -0
- package/docs/StockOrderSupplierEntity.md +37 -0
- package/docs/StockOrderSupplierModel.md +37 -0
- package/docs/StockOrdersModel.md +27 -0
- package/docs/StockProductModel.md +49 -0
- package/docs/StockProductPriceModel.md +23 -0
- package/docs/StockProductSummariesModel.md +27 -0
- package/docs/StockProductSummaryModel.md +33 -0
- package/docs/StockTransactionsEntity.md +35 -0
- package/docs/SupplierEntity.md +37 -0
- package/docs/SupplierItemEntity.md +35 -0
- package/docs/SystemApi.md +80 -0
- package/docs/TcxBackupEntity.md +37 -0
- package/docs/TcxBackupModel.md +55 -0
- package/docs/TcxBillingEntity.md +39 -0
- package/docs/TcxBulkLicenceDetailsModel.md +23 -0
- package/docs/TcxDeadLicenceEntity.md +25 -0
- package/docs/TcxExtsEntity.md +35 -0
- package/docs/TcxHostingPricingEntity.md +35 -0
- package/docs/TcxInstallationDetailsModel.md +45 -0
- package/docs/TcxInstallationModel.md +75 -0
- package/docs/TcxInstallationsModel.md +27 -0
- package/docs/TcxKeySummaryDTO.md +29 -0
- package/docs/TcxKeysEntity.md +31 -0
- package/docs/TcxLicenceDetailsErrorModel.md +27 -0
- package/docs/TcxLicenceDetailsModel.md +41 -0
- package/docs/TcxMacsEntity.md +25 -0
- package/docs/TcxMultiTenantModel.md +47 -0
- package/docs/TcxMultiTenantUserModel.md +25 -0
- package/docs/TcxMultiTenantsModel.md +27 -0
- package/docs/TcxNumbersEntity.md +25 -0
- package/docs/TcxOfficeHoursEntity.md +49 -0
- package/docs/TcxPhoneModel.md +32 -0
- package/docs/TcxPhonesEntity.md +31 -0
- package/docs/TcxSbcEntity.md +51 -0
- package/docs/TcxSetupEntity.md +71 -0
- package/docs/TcxSetupsModel.md +27 -0
- package/docs/TcxSipTrunksEntity.md +45 -0
- package/docs/TcxTemplateXmlEnum.md +23 -0
- package/docs/TcxUsersEntity.md +31 -0
- package/docs/TcxWizardConfigModel.md +23 -0
- package/docs/TcxWizardModel.md +47 -0
- package/docs/TechSupportCompanySummaryDTO.md +29 -0
- package/docs/TelephonySupportTicketModel.md +41 -0
- package/docs/TicketSummaryModel.md +35 -0
- package/docs/TicketTimeDTO.md +36 -0
- package/docs/TicketsApi.md +300 -0
- package/docs/TokenResponseModel.md +25 -0
- package/docs/UpgradeOrderResponseModel.md +23 -0
- package/docs/UpgradeRequestModel.md +27 -0
- package/docs/UserEntity.md +39 -0
- package/docs/WebhooksApi.md +117 -0
- package/docs/XeroLogEntity.md +39 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/openapitools.json +7 -0
- package/package.json +31 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
# OAuth20Api
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://api.yellowgrid.local*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getGetMfaQrCode**](#getgetmfaqrcode) | **GET** /oauth2/qr/code | Get MFA QR Code|
|
|
8
|
+
|[**getGetScopes**](#getgetscopes) | **GET** /oauth2/scopes | Get Scopes|
|
|
9
|
+
|[**postAccessToken**](#postaccesstoken) | **POST** /oauth2/access_token | Validates client credentials and returns access token|
|
|
10
|
+
|[**postAuthorise**](#postauthorise) | **POST** /oauth2/authorise | Get OAuth2.0 Auth Code|
|
|
11
|
+
|[**postGetIdentity**](#postgetidentity) | **POST** /oauth2/me | Get Token Identity|
|
|
12
|
+
|[**postPortalLogin**](#postportallogin) | **POST** /oauth2/portal/login | Portal Login|
|
|
13
|
+
|
|
14
|
+
# **getGetMfaQrCode**
|
|
15
|
+
> string getGetMfaQrCode()
|
|
16
|
+
|
|
17
|
+
Get MFA QR Code
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
OAuth20Api,
|
|
24
|
+
Configuration
|
|
25
|
+
} from 'yellowgrid-api-ts';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new OAuth20Api(configuration);
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.getGetMfaQrCode();
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
This endpoint does not have any parameters.
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Return type
|
|
38
|
+
|
|
39
|
+
**string**
|
|
40
|
+
|
|
41
|
+
### Authorization
|
|
42
|
+
|
|
43
|
+
No authorization required
|
|
44
|
+
|
|
45
|
+
### HTTP request headers
|
|
46
|
+
|
|
47
|
+
- **Content-Type**: Not defined
|
|
48
|
+
- **Accept**: application/json
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### HTTP response details
|
|
52
|
+
| Status code | Description | Response headers |
|
|
53
|
+
|-------------|-------------|------------------|
|
|
54
|
+
|**200** | Base 64 encoded QR code PNG | - |
|
|
55
|
+
|**400** | Bad Request | - |
|
|
56
|
+
|**401** | Unauthorised | - |
|
|
57
|
+
|**403** | Access Denied | - |
|
|
58
|
+
|
|
59
|
+
[[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)
|
|
60
|
+
|
|
61
|
+
# **getGetScopes**
|
|
62
|
+
> Array<ScopeModel> getGetScopes()
|
|
63
|
+
|
|
64
|
+
Get Scopes
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import {
|
|
70
|
+
OAuth20Api,
|
|
71
|
+
Configuration
|
|
72
|
+
} from 'yellowgrid-api-ts';
|
|
73
|
+
|
|
74
|
+
const configuration = new Configuration();
|
|
75
|
+
const apiInstance = new OAuth20Api(configuration);
|
|
76
|
+
|
|
77
|
+
const { status, data } = await apiInstance.getGetScopes();
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Parameters
|
|
81
|
+
This endpoint does not have any parameters.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Return type
|
|
85
|
+
|
|
86
|
+
**Array<ScopeModel>**
|
|
87
|
+
|
|
88
|
+
### Authorization
|
|
89
|
+
|
|
90
|
+
No authorization required
|
|
91
|
+
|
|
92
|
+
### HTTP request headers
|
|
93
|
+
|
|
94
|
+
- **Content-Type**: Not defined
|
|
95
|
+
- **Accept**: application/json
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### HTTP response details
|
|
99
|
+
| Status code | Description | Response headers |
|
|
100
|
+
|-------------|-------------|------------------|
|
|
101
|
+
|**200** | Scopes | - |
|
|
102
|
+
|**400** | Bad Request | - |
|
|
103
|
+
|**401** | Unauthorised | - |
|
|
104
|
+
|**403** | Access Denied | - |
|
|
105
|
+
|
|
106
|
+
[[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)
|
|
107
|
+
|
|
108
|
+
# **postAccessToken**
|
|
109
|
+
> TokenResponseModel postAccessToken()
|
|
110
|
+
|
|
111
|
+
Get an OAuth 2.0 access token
|
|
112
|
+
|
|
113
|
+
### Example
|
|
114
|
+
|
|
115
|
+
```typescript
|
|
116
|
+
import {
|
|
117
|
+
OAuth20Api,
|
|
118
|
+
Configuration
|
|
119
|
+
} from 'yellowgrid-api-ts';
|
|
120
|
+
|
|
121
|
+
const configuration = new Configuration();
|
|
122
|
+
const apiInstance = new OAuth20Api(configuration);
|
|
123
|
+
|
|
124
|
+
let clientId: string; //OAuth 2.0 Client ID (optional) (default to undefined)
|
|
125
|
+
let clientSecret: string; //OAuth 2.0 Client Secret (optional) (default to undefined)
|
|
126
|
+
let grantType: string; //OAuth 2.0 Grant Type (optional) (default to undefined)
|
|
127
|
+
let scope: string; //OAuth 2.0 Scope (optional) (default to undefined)
|
|
128
|
+
let redirectUri: string; //OAuth 2.0 Redirect URI (optional) (default to undefined)
|
|
129
|
+
let code: string; //OAuth 2.0 Auth Code (optional) (default to undefined)
|
|
130
|
+
let refreshToken: string; //OAuth 2.0 Refresh Token (optional) (default to undefined)
|
|
131
|
+
let codeVerifier: string; //OAuth 2.0 Code Verifier (optional) (default to undefined)
|
|
132
|
+
let token: string; //OAuth 2.0 Token (Only used in Token Exchange) (optional) (default to undefined)
|
|
133
|
+
let tokenExchangeType: string; //Token Exchange Type (Only used in Token Exchange) (optional) (default to undefined)
|
|
134
|
+
let licenceKey: string; //3CX Licence Key (Only used in Token Exchange) (optional) (default to undefined)
|
|
135
|
+
let endUser: boolean; //End User (Only used in Token Exchange) (optional) (default to undefined)
|
|
136
|
+
|
|
137
|
+
const { status, data } = await apiInstance.postAccessToken(
|
|
138
|
+
clientId,
|
|
139
|
+
clientSecret,
|
|
140
|
+
grantType,
|
|
141
|
+
scope,
|
|
142
|
+
redirectUri,
|
|
143
|
+
code,
|
|
144
|
+
refreshToken,
|
|
145
|
+
codeVerifier,
|
|
146
|
+
token,
|
|
147
|
+
tokenExchangeType,
|
|
148
|
+
licenceKey,
|
|
149
|
+
endUser
|
|
150
|
+
);
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Parameters
|
|
154
|
+
|
|
155
|
+
|Name | Type | Description | Notes|
|
|
156
|
+
|------------- | ------------- | ------------- | -------------|
|
|
157
|
+
| **clientId** | [**string**] | OAuth 2.0 Client ID | (optional) defaults to undefined|
|
|
158
|
+
| **clientSecret** | [**string**] | OAuth 2.0 Client Secret | (optional) defaults to undefined|
|
|
159
|
+
| **grantType** | [**string**]**Array<'client_credentials' | 'code' | 'refresh_token' | 'authorization_code' | 'ms_auth' | 'token_exchange' | 'password'>** | OAuth 2.0 Grant Type | (optional) defaults to undefined|
|
|
160
|
+
| **scope** | [**string**]**Array<'*' | 'fdps' | 'scope' | 'portal' | 'tcx_wizard' | 'sms'>** | OAuth 2.0 Scope | (optional) defaults to undefined|
|
|
161
|
+
| **redirectUri** | [**string**] | OAuth 2.0 Redirect URI | (optional) defaults to undefined|
|
|
162
|
+
| **code** | [**string**] | OAuth 2.0 Auth Code | (optional) defaults to undefined|
|
|
163
|
+
| **refreshToken** | [**string**] | OAuth 2.0 Refresh Token | (optional) defaults to undefined|
|
|
164
|
+
| **codeVerifier** | [**string**] | OAuth 2.0 Code Verifier | (optional) defaults to undefined|
|
|
165
|
+
| **token** | [**string**] | OAuth 2.0 Token (Only used in Token Exchange) | (optional) defaults to undefined|
|
|
166
|
+
| **tokenExchangeType** | [**string**]**Array<'tcx_wizard' | 'portal'>** | Token Exchange Type (Only used in Token Exchange) | (optional) defaults to undefined|
|
|
167
|
+
| **licenceKey** | [**string**] | 3CX Licence Key (Only used in Token Exchange) | (optional) defaults to undefined|
|
|
168
|
+
| **endUser** | [**boolean**] | End User (Only used in Token Exchange) | (optional) defaults to undefined|
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
### Return type
|
|
172
|
+
|
|
173
|
+
**TokenResponseModel**
|
|
174
|
+
|
|
175
|
+
### Authorization
|
|
176
|
+
|
|
177
|
+
No authorization required
|
|
178
|
+
|
|
179
|
+
### HTTP request headers
|
|
180
|
+
|
|
181
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
|
182
|
+
- **Accept**: application/json
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
### HTTP response details
|
|
186
|
+
| Status code | Description | Response headers |
|
|
187
|
+
|-------------|-------------|------------------|
|
|
188
|
+
|**200** | Token Response | - |
|
|
189
|
+
|**400** | Bad Request | - |
|
|
190
|
+
|**401** | Unauthorised | - |
|
|
191
|
+
|**403** | Access Denied | - |
|
|
192
|
+
|
|
193
|
+
[[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)
|
|
194
|
+
|
|
195
|
+
# **postAuthorise**
|
|
196
|
+
> postAuthorise()
|
|
197
|
+
|
|
198
|
+
Get an OAuth 2.0 auth code
|
|
199
|
+
|
|
200
|
+
### Example
|
|
201
|
+
|
|
202
|
+
```typescript
|
|
203
|
+
import {
|
|
204
|
+
OAuth20Api,
|
|
205
|
+
Configuration
|
|
206
|
+
} from 'yellowgrid-api-ts';
|
|
207
|
+
|
|
208
|
+
const configuration = new Configuration();
|
|
209
|
+
const apiInstance = new OAuth20Api(configuration);
|
|
210
|
+
|
|
211
|
+
let clientId: string; //OAuth 2.0 Client ID (default to undefined)
|
|
212
|
+
let responseType: string; //OAuth 2.0 Response Type (default to 'code')
|
|
213
|
+
let scope: '*' | 'fdps' | 'scope' | 'portal' | 'tcx_wizard' | 'sms'; //OAuth 2.0 Scope (default to undefined)
|
|
214
|
+
let redirectUri: string; //OAuth 2.0 Redirect URI (optional) (default to undefined)
|
|
215
|
+
let state: string; //OAuth 2.0 State (optional) (default to undefined)
|
|
216
|
+
let codeChallenge: string; //OAuth 2.0 Code Challenge (optional) (default to undefined)
|
|
217
|
+
let codeChallengeMethod: string; //OAuth 2.0 Code Challenge Method (optional) (default to undefined)
|
|
218
|
+
|
|
219
|
+
const { status, data } = await apiInstance.postAuthorise(
|
|
220
|
+
clientId,
|
|
221
|
+
responseType,
|
|
222
|
+
scope,
|
|
223
|
+
redirectUri,
|
|
224
|
+
state,
|
|
225
|
+
codeChallenge,
|
|
226
|
+
codeChallengeMethod
|
|
227
|
+
);
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### Parameters
|
|
231
|
+
|
|
232
|
+
|Name | Type | Description | Notes|
|
|
233
|
+
|------------- | ------------- | ------------- | -------------|
|
|
234
|
+
| **clientId** | [**string**] | OAuth 2.0 Client ID | defaults to undefined|
|
|
235
|
+
| **responseType** | [**string**] | OAuth 2.0 Response Type | defaults to 'code'|
|
|
236
|
+
| **scope** | [**'*' | 'fdps' | 'scope' | 'portal' | 'tcx_wizard' | 'sms'**]**Array<'*' | 'fdps' | 'scope' | 'portal' | 'tcx_wizard' | 'sms'>** | OAuth 2.0 Scope | defaults to undefined|
|
|
237
|
+
| **redirectUri** | [**string**] | OAuth 2.0 Redirect URI | (optional) defaults to undefined|
|
|
238
|
+
| **state** | [**string**] | OAuth 2.0 State | (optional) defaults to undefined|
|
|
239
|
+
| **codeChallenge** | [**string**] | OAuth 2.0 Code Challenge | (optional) defaults to undefined|
|
|
240
|
+
| **codeChallengeMethod** | [**string**] | OAuth 2.0 Code Challenge Method | (optional) defaults to undefined|
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
### Return type
|
|
244
|
+
|
|
245
|
+
void (empty response body)
|
|
246
|
+
|
|
247
|
+
### Authorization
|
|
248
|
+
|
|
249
|
+
No authorization required
|
|
250
|
+
|
|
251
|
+
### HTTP request headers
|
|
252
|
+
|
|
253
|
+
- **Content-Type**: Not defined
|
|
254
|
+
- **Accept**: Not defined
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
### HTTP response details
|
|
258
|
+
| Status code | Description | Response headers |
|
|
259
|
+
|-------------|-------------|------------------|
|
|
260
|
+
|**302** | Redirect | - |
|
|
261
|
+
|**400** | Bad Request | - |
|
|
262
|
+
|**401** | Unauthorised | - |
|
|
263
|
+
|**403** | Access Denied | - |
|
|
264
|
+
|
|
265
|
+
[[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)
|
|
266
|
+
|
|
267
|
+
# **postGetIdentity**
|
|
268
|
+
> ClientDetailsModel postGetIdentity()
|
|
269
|
+
|
|
270
|
+
Get Token Identity
|
|
271
|
+
|
|
272
|
+
### Example
|
|
273
|
+
|
|
274
|
+
```typescript
|
|
275
|
+
import {
|
|
276
|
+
OAuth20Api,
|
|
277
|
+
Configuration
|
|
278
|
+
} from 'yellowgrid-api-ts';
|
|
279
|
+
|
|
280
|
+
const configuration = new Configuration();
|
|
281
|
+
const apiInstance = new OAuth20Api(configuration);
|
|
282
|
+
|
|
283
|
+
const { status, data } = await apiInstance.postGetIdentity();
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### Parameters
|
|
287
|
+
This endpoint does not have any parameters.
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
### Return type
|
|
291
|
+
|
|
292
|
+
**ClientDetailsModel**
|
|
293
|
+
|
|
294
|
+
### Authorization
|
|
295
|
+
|
|
296
|
+
No authorization required
|
|
297
|
+
|
|
298
|
+
### HTTP request headers
|
|
299
|
+
|
|
300
|
+
- **Content-Type**: Not defined
|
|
301
|
+
- **Accept**: application/json
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### HTTP response details
|
|
305
|
+
| Status code | Description | Response headers |
|
|
306
|
+
|-------------|-------------|------------------|
|
|
307
|
+
|**200** | Access Token | - |
|
|
308
|
+
|**400** | Bad Request | - |
|
|
309
|
+
|**401** | Unauthorised | - |
|
|
310
|
+
|**403** | Access Denied | - |
|
|
311
|
+
|
|
312
|
+
[[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)
|
|
313
|
+
|
|
314
|
+
# **postPortalLogin**
|
|
315
|
+
> AuthCodeResponseModel postPortalLogin()
|
|
316
|
+
|
|
317
|
+
Portal Login
|
|
318
|
+
|
|
319
|
+
### Example
|
|
320
|
+
|
|
321
|
+
```typescript
|
|
322
|
+
import {
|
|
323
|
+
OAuth20Api,
|
|
324
|
+
Configuration,
|
|
325
|
+
PortalLoginModel
|
|
326
|
+
} from 'yellowgrid-api-ts';
|
|
327
|
+
|
|
328
|
+
const configuration = new Configuration();
|
|
329
|
+
const apiInstance = new OAuth20Api(configuration);
|
|
330
|
+
|
|
331
|
+
let portalLoginModel: PortalLoginModel; //Login Credentials (optional)
|
|
332
|
+
|
|
333
|
+
const { status, data } = await apiInstance.postPortalLogin(
|
|
334
|
+
portalLoginModel
|
|
335
|
+
);
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
### Parameters
|
|
339
|
+
|
|
340
|
+
|Name | Type | Description | Notes|
|
|
341
|
+
|------------- | ------------- | ------------- | -------------|
|
|
342
|
+
| **portalLoginModel** | **PortalLoginModel**| Login Credentials | |
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
### Return type
|
|
346
|
+
|
|
347
|
+
**AuthCodeResponseModel**
|
|
348
|
+
|
|
349
|
+
### Authorization
|
|
350
|
+
|
|
351
|
+
No authorization required
|
|
352
|
+
|
|
353
|
+
### HTTP request headers
|
|
354
|
+
|
|
355
|
+
- **Content-Type**: application/json
|
|
356
|
+
- **Accept**: application/json
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
### HTTP response details
|
|
360
|
+
| Status code | Description | Response headers |
|
|
361
|
+
|-------------|-------------|------------------|
|
|
362
|
+
|**200** | Auth Code Response | - |
|
|
363
|
+
|**400** | Bad Request | - |
|
|
364
|
+
|**401** | MFA Not Setup | - |
|
|
365
|
+
|**403** | MFA Code Required | - |
|
|
366
|
+
|
|
367
|
+
[[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)
|
|
368
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# OfflineInstancesEntity
|
|
2
|
+
|
|
3
|
+
OfflineInstancesEntity
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**instanceId** | **string** | instanceId | [optional] [default to undefined]
|
|
11
|
+
**offlineSince** | **string** | offlineSince | [optional] [default to undefined]
|
|
12
|
+
**rebooted** | **number** | rebooted | [optional] [default to undefined]
|
|
13
|
+
**alerted** | **number** | alerted | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { OfflineInstancesEntity } from 'yellowgrid-api-ts';
|
|
19
|
+
|
|
20
|
+
const instance: OfflineInstancesEntity = {
|
|
21
|
+
id,
|
|
22
|
+
instanceId,
|
|
23
|
+
offlineSince,
|
|
24
|
+
rebooted,
|
|
25
|
+
alerted,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[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,135 @@
|
|
|
1
|
+
# OrderEntity
|
|
2
|
+
|
|
3
|
+
OrdersEntity
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**reference** | **string** | externalId | [optional] [default to undefined]
|
|
11
|
+
**sourceId** | **number** | sourceId | [optional] [default to undefined]
|
|
12
|
+
**invoiceNumber** | **string** | sageInv | [optional] [default to undefined]
|
|
13
|
+
**invoiceId** | **string** | invoiceId | [optional] [default to undefined]
|
|
14
|
+
**customerId** | **number** | creditAccountId | [optional] [default to undefined]
|
|
15
|
+
**orderDate** | **string** | orderDate | [optional] [default to undefined]
|
|
16
|
+
**orderPostedDate** | **string** | orderPostedDate | [optional] [default to undefined]
|
|
17
|
+
**buyerEmail** | **string** | buyerEmail | [optional] [default to undefined]
|
|
18
|
+
**buyerPhone** | **string** | buyerPhone | [optional] [default to undefined]
|
|
19
|
+
**buyerName** | **string** | buyerName | [optional] [default to undefined]
|
|
20
|
+
**buyerCompany** | **string** | buyerCompany | [optional] [default to undefined]
|
|
21
|
+
**billName** | **string** | billName | [optional] [default to undefined]
|
|
22
|
+
**billAddress1** | **string** | billAddress1 | [optional] [default to undefined]
|
|
23
|
+
**billAddress2** | **string** | billAddress2 | [optional] [default to undefined]
|
|
24
|
+
**billAddress3** | **string** | billAddress3 | [optional] [default to undefined]
|
|
25
|
+
**billCity** | **string** | billCity | [optional] [default to undefined]
|
|
26
|
+
**billStateRegion** | **string** | billStateRegion | [optional] [default to undefined]
|
|
27
|
+
**billPostalCode** | **string** | billPostalCode | [optional] [default to undefined]
|
|
28
|
+
**billCountry** | **string** | billCountry | [optional] [default to undefined]
|
|
29
|
+
**shipName** | **string** | shipName | [optional] [default to undefined]
|
|
30
|
+
**shipCompany** | **string** | shipCompany | [optional] [default to undefined]
|
|
31
|
+
**shipAddress1** | **string** | shipAddress1 | [optional] [default to undefined]
|
|
32
|
+
**shipAddress2** | **string** | shipAddress2 | [optional] [default to undefined]
|
|
33
|
+
**shipAddress3** | **string** | shipAddress3 | [optional] [default to undefined]
|
|
34
|
+
**shipCity** | **string** | shipCity | [optional] [default to undefined]
|
|
35
|
+
**shipStateRegion** | **string** | shipStateRegion | [optional] [default to undefined]
|
|
36
|
+
**shipPostalCode** | **string** | shipPostalCode | [optional] [default to undefined]
|
|
37
|
+
**shipCountry** | **string** | shipCountry | [optional] [default to undefined]
|
|
38
|
+
**shipVatNumber** | **string** | shipVatNumber | [optional] [default to undefined]
|
|
39
|
+
**shipPhoneNumber** | **string** | shipPhoneNumber | [optional] [default to undefined]
|
|
40
|
+
**shipCourier** | **string** | shipCourier | [optional] [default to undefined]
|
|
41
|
+
**shipMethod** | **string** | shipMethod | [optional] [default to undefined]
|
|
42
|
+
**shipServiceLevel** | **string** | shipServiceLevel | [optional] [default to undefined]
|
|
43
|
+
**shipTrackingId** | **string** | shipTrackingId | [optional] [default to undefined]
|
|
44
|
+
**currency** | **string** | currency | [optional] [default to undefined]
|
|
45
|
+
**taxRate** | **number** | taxRate | [optional] [default to undefined]
|
|
46
|
+
**taxAmount** | **number** | taxAmount | [optional] [default to undefined]
|
|
47
|
+
**taxAmountGbp** | **number** | taxAmountGbp | [optional] [default to undefined]
|
|
48
|
+
**paidStatus** | **number** | paidStatus | [optional] [default to undefined]
|
|
49
|
+
**invoicePaid** | **number** | invoicePaid | [optional] [default to undefined]
|
|
50
|
+
**quote** | **number** | quoteStatus | [optional] [default to undefined]
|
|
51
|
+
**sageStatus** | **string** | sageStatus | [optional] [default to undefined]
|
|
52
|
+
**transactionId** | **string** | transactionId | [optional] [default to undefined]
|
|
53
|
+
**customerInvoiceSent** | **number** | customerInvoiceSent | [optional] [default to undefined]
|
|
54
|
+
**supplierOrderedStatus** | **number** | supplierOrderedStatus | [optional] [default to undefined]
|
|
55
|
+
**supplierPaidStatus** | **number** | supplierPaidStatus | [optional] [default to undefined]
|
|
56
|
+
**supplierReceivedStatus** | **number** | supplierRecvdStatus | [optional] [default to undefined]
|
|
57
|
+
**carriageRefunded** | **number** | carriageRefunded | [optional] [default to undefined]
|
|
58
|
+
**amazonMinus** | **number** | amazonMinus | [optional] [default to undefined]
|
|
59
|
+
**currencyRate** | **number** | currencyRate | [optional] [default to undefined]
|
|
60
|
+
**hzStatus** | **number** | hzStatus | [optional] [default to undefined]
|
|
61
|
+
**prospect** | **number** | prospect | [optional] [default to undefined]
|
|
62
|
+
**provisioningUrl** | **number** | provisioningUrl | [optional] [default to undefined]
|
|
63
|
+
**uniqueId** | **string** | uniqueId | [optional] [default to undefined]
|
|
64
|
+
**notes** | **string** | notes | [optional] [default to undefined]
|
|
65
|
+
**promocode** | **string** | promocode | [optional] [default to undefined]
|
|
66
|
+
**fulfillable** | **boolean** | fulfillable | [optional] [default to undefined]
|
|
67
|
+
|
|
68
|
+
## Example
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import { OrderEntity } from 'yellowgrid-api-ts';
|
|
72
|
+
|
|
73
|
+
const instance: OrderEntity = {
|
|
74
|
+
id,
|
|
75
|
+
reference,
|
|
76
|
+
sourceId,
|
|
77
|
+
invoiceNumber,
|
|
78
|
+
invoiceId,
|
|
79
|
+
customerId,
|
|
80
|
+
orderDate,
|
|
81
|
+
orderPostedDate,
|
|
82
|
+
buyerEmail,
|
|
83
|
+
buyerPhone,
|
|
84
|
+
buyerName,
|
|
85
|
+
buyerCompany,
|
|
86
|
+
billName,
|
|
87
|
+
billAddress1,
|
|
88
|
+
billAddress2,
|
|
89
|
+
billAddress3,
|
|
90
|
+
billCity,
|
|
91
|
+
billStateRegion,
|
|
92
|
+
billPostalCode,
|
|
93
|
+
billCountry,
|
|
94
|
+
shipName,
|
|
95
|
+
shipCompany,
|
|
96
|
+
shipAddress1,
|
|
97
|
+
shipAddress2,
|
|
98
|
+
shipAddress3,
|
|
99
|
+
shipCity,
|
|
100
|
+
shipStateRegion,
|
|
101
|
+
shipPostalCode,
|
|
102
|
+
shipCountry,
|
|
103
|
+
shipVatNumber,
|
|
104
|
+
shipPhoneNumber,
|
|
105
|
+
shipCourier,
|
|
106
|
+
shipMethod,
|
|
107
|
+
shipServiceLevel,
|
|
108
|
+
shipTrackingId,
|
|
109
|
+
currency,
|
|
110
|
+
taxRate,
|
|
111
|
+
taxAmount,
|
|
112
|
+
taxAmountGbp,
|
|
113
|
+
paidStatus,
|
|
114
|
+
invoicePaid,
|
|
115
|
+
quote,
|
|
116
|
+
sageStatus,
|
|
117
|
+
transactionId,
|
|
118
|
+
customerInvoiceSent,
|
|
119
|
+
supplierOrderedStatus,
|
|
120
|
+
supplierPaidStatus,
|
|
121
|
+
supplierReceivedStatus,
|
|
122
|
+
carriageRefunded,
|
|
123
|
+
amazonMinus,
|
|
124
|
+
currencyRate,
|
|
125
|
+
hzStatus,
|
|
126
|
+
prospect,
|
|
127
|
+
provisioningUrl,
|
|
128
|
+
uniqueId,
|
|
129
|
+
notes,
|
|
130
|
+
promocode,
|
|
131
|
+
fulfillable,
|
|
132
|
+
};
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
[[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
|
+
# OrderRequestModel
|
|
2
|
+
|
|
3
|
+
EdTechPro Order Request
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**clientId** | **number** | Client/Trust ID | [optional] [default to undefined]
|
|
10
|
+
**clientName** | **string** | Client/Trust Name | [optional] [default to undefined]
|
|
11
|
+
**clientContactName** | **string** | Client/Trust Contact Name | [optional] [default to undefined]
|
|
12
|
+
**clientContactEmail** | **string** | Client/Trust Contact Email | [optional] [default to undefined]
|
|
13
|
+
**terms** | **boolean** | Agreed to Terms and Conditions | [optional] [default to undefined]
|
|
14
|
+
**schoolName** | **string** | School Name | [optional] [default to undefined]
|
|
15
|
+
**dfECode** | **string** | School DfE Code | [optional] [default to undefined]
|
|
16
|
+
**schoolContactName** | **string** | School Technical Contact Name | [optional] [default to undefined]
|
|
17
|
+
**schoolContactEmail** | **string** | School Technical Contact Email | [optional] [default to undefined]
|
|
18
|
+
**licenceType** | **string** | Licence Type | [optional] [default to undefined]
|
|
19
|
+
**schoolType** | **string** | School Type | [optional] [default to undefined]
|
|
20
|
+
**instanceId** | **string** | InstanceId | [optional] [default to undefined]
|
|
21
|
+
**orderReference** | **string** | Order Reference | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { OrderRequestModel } from 'yellowgrid-api-ts';
|
|
27
|
+
|
|
28
|
+
const instance: OrderRequestModel = {
|
|
29
|
+
clientId,
|
|
30
|
+
clientName,
|
|
31
|
+
clientContactName,
|
|
32
|
+
clientContactEmail,
|
|
33
|
+
terms,
|
|
34
|
+
schoolName,
|
|
35
|
+
dfECode,
|
|
36
|
+
schoolContactName,
|
|
37
|
+
schoolContactEmail,
|
|
38
|
+
licenceType,
|
|
39
|
+
schoolType,
|
|
40
|
+
instanceId,
|
|
41
|
+
orderReference,
|
|
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
|
+
# OrderSummariesModel
|
|
2
|
+
|
|
3
|
+
Sales Orders
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**results** | [**Array<OrderSummaryDTO>**](OrderSummaryDTO.md) | Results | [optional] [default to undefined]
|
|
10
|
+
**page** | **number** | Page | [optional] [default to undefined]
|
|
11
|
+
**perPage** | **number** | Per Page | [optional] [default to undefined]
|
|
12
|
+
**totalResults** | **number** | Total Results | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { OrderSummariesModel } from 'yellowgrid-api-ts';
|
|
18
|
+
|
|
19
|
+
const instance: OrderSummariesModel = {
|
|
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,43 @@
|
|
|
1
|
+
# OrderSummaryDTO
|
|
2
|
+
|
|
3
|
+
Order Summary
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | ID | [optional] [default to undefined]
|
|
10
|
+
**reference** | **string** | Reference | [optional] [default to undefined]
|
|
11
|
+
**invoiceNumber** | **string** | Invoice Number | [optional] [default to undefined]
|
|
12
|
+
**orderDate** | **string** | Date Time | [optional] [default to undefined]
|
|
13
|
+
**paid** | **boolean** | Paid | [optional] [default to undefined]
|
|
14
|
+
**complete** | **boolean** | Complete | [optional] [default to undefined]
|
|
15
|
+
**quote** | **boolean** | Quote | [optional] [default to undefined]
|
|
16
|
+
**customer** | [**AccountSummaryDTO**](AccountSummaryDTO.md) | | [optional] [default to undefined]
|
|
17
|
+
**shippingAddress** | [**AddressModel**](AddressModel.md) | | [optional] [default to undefined]
|
|
18
|
+
**items** | [**Array<ItemDTO>**](ItemDTO.md) | Items | [optional] [default to undefined]
|
|
19
|
+
**carriageCharge** | **number** | Carriage Charge | [optional] [default to undefined]
|
|
20
|
+
**fulfillable** | **boolean** | Fulfillable | [optional] [default to undefined]
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { OrderSummaryDTO } from 'yellowgrid-api-ts';
|
|
26
|
+
|
|
27
|
+
const instance: OrderSummaryDTO = {
|
|
28
|
+
id,
|
|
29
|
+
reference,
|
|
30
|
+
invoiceNumber,
|
|
31
|
+
orderDate,
|
|
32
|
+
paid,
|
|
33
|
+
complete,
|
|
34
|
+
quote,
|
|
35
|
+
customer,
|
|
36
|
+
shippingAddress,
|
|
37
|
+
items,
|
|
38
|
+
carriageCharge,
|
|
39
|
+
fulfillable,
|
|
40
|
+
};
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
[[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,33 @@
|
|
|
1
|
+
# OrderTotalModel
|
|
2
|
+
|
|
3
|
+
Order Totals
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**subtotal** | **number** | Subtotal | [optional] [default to undefined]
|
|
10
|
+
**vat** | **number** | VAT | [optional] [default to undefined]
|
|
11
|
+
**total** | **number** | Total | [optional] [default to undefined]
|
|
12
|
+
**totalGbp** | **number** | Total in GBP | [optional] [default to undefined]
|
|
13
|
+
**vatRate** | **number** | VAT Rate | [optional] [default to undefined]
|
|
14
|
+
**credit** | **number** | Credit | [optional] [default to undefined]
|
|
15
|
+
**currency** | **string** | Currency | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { OrderTotalModel } from 'yellowgrid-api-ts';
|
|
21
|
+
|
|
22
|
+
const instance: OrderTotalModel = {
|
|
23
|
+
subtotal,
|
|
24
|
+
vat,
|
|
25
|
+
total,
|
|
26
|
+
totalGbp,
|
|
27
|
+
vatRate,
|
|
28
|
+
credit,
|
|
29
|
+
currency,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|