yellowgrid-api-ts 3.2.244 → 3.2.246-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.
Files changed (145) hide show
  1. package/.openapi-generator/FILES +369 -318
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +123 -3
  4. package/api.ts +14410 -953
  5. package/base.ts +26 -2
  6. package/common.ts +39 -16
  7. package/config.json +4 -3
  8. package/configuration.ts +21 -27
  9. package/dist/api.d.ts +15808 -5240
  10. package/dist/api.js +8872 -2842
  11. package/dist/base.d.ts +25 -1
  12. package/dist/base.js +21 -2
  13. package/dist/common.d.ts +36 -5
  14. package/dist/common.js +39 -17
  15. package/dist/configuration.d.ts +18 -25
  16. package/dist/configuration.js +4 -4
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/models/ConnectionTypeEnum.d.ts +73 -0
  20. package/dist/models/ConnectionTypeEnum.js +75 -0
  21. package/dist/models/GroupEnum.d.ts +43 -0
  22. package/dist/models/GroupEnum.js +45 -0
  23. package/dist/models/HostingPriceListEnum.d.ts +5 -0
  24. package/dist/models/HostingPriceListEnum.js +5 -0
  25. package/dist/models/ReportEnum.d.ts +15 -0
  26. package/dist/models/ReportEnum.js +15 -0
  27. package/docs/AbstractItemDiscountModel.md +21 -0
  28. package/docs/AbstractOrderRequestDTO.md +1 -1
  29. package/docs/AccountDetailedSummaryDTO.md +2 -0
  30. package/docs/AccountsApi.md +1 -1
  31. package/docs/AdminOrderRequestDTO.md +1 -1
  32. package/docs/BaseService.md +36 -0
  33. package/docs/BillingApi.md +3631 -26
  34. package/docs/Bundle.md +34 -0
  35. package/docs/BundleCustomer.md +34 -0
  36. package/docs/CRMApi.md +1 -1
  37. package/docs/CallTariff.md +34 -0
  38. package/docs/CallTariffPlan.md +36 -0
  39. package/docs/CallTariffResponse.md +26 -0
  40. package/docs/Cdr.md +112 -0
  41. package/docs/Class3CXApi.md +1 -1
  42. package/docs/Class3CXInstallationWizardApi.md +1 -1
  43. package/docs/Class3CXInstallationsApi.md +1 -1
  44. package/docs/Class3CXIntegrationsApi.md +1 -1
  45. package/docs/Class3CXMultiTenantApi.md +1 -1
  46. package/docs/ConnectionRequest.md +36 -0
  47. package/docs/ConnectionType.md +28 -0
  48. package/docs/ContactDetail.md +58 -0
  49. package/docs/CrmActivityDTO.md +1 -1
  50. package/docs/CrmDateActivitiesDTO.md +1 -1
  51. package/docs/Customer.md +98 -0
  52. package/docs/CustomerOrderRequestDTO.md +1 -1
  53. package/docs/CustomerRate.md +22 -0
  54. package/docs/CustomerRateType.md +12 -0
  55. package/docs/DetailedOrderRequestDTO.md +1 -1
  56. package/docs/GetDisconnectDDIRequest.md +20 -0
  57. package/docs/InboundCli.md +50 -0
  58. package/docs/InboundTariffPlan.md +32 -0
  59. package/docs/InboundTariffPlanResponse.md +28 -0
  60. package/docs/MiscApi.md +1 -1
  61. package/docs/MultiTenantSipTrunkRequest.md +22 -0
  62. package/docs/MyPBXToolsApi.md +1 -1
  63. package/docs/NumberPortModel.md +51 -0
  64. package/docs/NumberPortingApi.md +1 -1
  65. package/docs/OAuth20Api.md +1 -1
  66. package/docs/OrdersApi.md +1 -1
  67. package/docs/OutboundCli.md +70 -0
  68. package/docs/PartnerDTO.md +1 -1
  69. package/docs/PasswordSenderDTO.md +1 -1
  70. package/docs/PatchSetTcxWizardCnameRequest.md +20 -0
  71. package/docs/PostAddAdminNoteRequest.md +20 -0
  72. package/docs/PostAddBroadbandRequest.md +28 -0
  73. package/docs/PostAddCallTariffToCallTariffPlanRequest.md +34 -0
  74. package/docs/PostAddEthernetRequest.md +28 -0
  75. package/docs/PostAddRecurringChargeRequest.md +30 -0
  76. package/docs/PostAddServiceToServicePlanRequest.md +30 -0
  77. package/docs/PostAddSipTrunkDDIsRequest.md +30 -0
  78. package/docs/PostDisconnectDDIRequest.md +20 -0
  79. package/docs/PostGetBaseServicesRequest.md +22 -0
  80. package/docs/PostGetPriceGroupsRequest.md +22 -0
  81. package/docs/PostGetProductRequest.md +24 -0
  82. package/docs/PostGetServicePlansRequest.md +22 -0
  83. package/docs/PostGetSipTrunksBillingRequest.md +34 -0
  84. package/docs/PostUpdateConnectionRequest.md +22 -0
  85. package/docs/PostUpdateRecurringChargeRequest.md +30 -0
  86. package/docs/PriceGroup.md +30 -0
  87. package/docs/PriceGroupResponse.md +24 -0
  88. package/docs/PricingApi.md +1 -1
  89. package/docs/ProcessedCdr.md +96 -0
  90. package/docs/ProductDetailedSummaryDTO.md +2 -2
  91. package/docs/ProductSearchDTO.md +37 -0
  92. package/docs/ProductSummaryDTO.md +1 -1
  93. package/docs/ProductsApi.md +1 -1
  94. package/docs/PromoCodesEntity.md +6 -6
  95. package/docs/PromoItemModel.md +35 -0
  96. package/docs/PromoModel.md +45 -0
  97. package/docs/PromoSummariesModel.md +27 -0
  98. package/docs/PromoSummaryDTO.md +29 -0
  99. package/docs/PromotionsApi.md +241 -0
  100. package/docs/ProspectDTO.md +2 -2
  101. package/docs/ProspectsApi.md +1 -1
  102. package/docs/ProvisioningApi.md +1 -1
  103. package/docs/PutAddCallTariffToCallTariffPlanRequest.md +30 -0
  104. package/docs/PutAddServiceToServicePlanRequest.md +26 -0
  105. package/docs/PutConnectionSearchRequest.md +20 -0
  106. package/docs/PutGetBaseServicesRequest.md +28 -0
  107. package/docs/PutGetCallTariffPlanRequest.md +28 -0
  108. package/docs/PutGetPriceGroupsRequest.md +28 -0
  109. package/docs/RecordingsBackupInfoDTO.md +2 -2
  110. package/docs/RecurringCharge.md +48 -0
  111. package/docs/ReportRequestDTO.md +2 -2
  112. package/docs/ReportsApi.md +1 -1
  113. package/docs/SIPTrunksApi.md +1 -1
  114. package/docs/SMSApi.md +1 -1
  115. package/docs/Sdr.md +66 -0
  116. package/docs/SdrReferenceType.md +24 -0
  117. package/docs/Service.md +42 -0
  118. package/docs/ServicePlan.md +36 -0
  119. package/docs/ServicesApi.md +1 -1
  120. package/docs/ShipmentRequestDTO.md +2 -2
  121. package/docs/ShippingApi.md +1 -1
  122. package/docs/SpecialService.md +40 -0
  123. package/docs/StockManagementApi.md +1 -1
  124. package/docs/SuppliersApi.md +1 -1
  125. package/docs/SystemApi.md +1 -1
  126. package/docs/TariffRate.md +30 -0
  127. package/docs/TcxHostingPricingEntity.md +35 -0
  128. package/docs/TcxInstallationDetailsModel.md +45 -0
  129. package/docs/TcxKeySummaryDTO.md +1 -1
  130. package/docs/TelephonySupportTicketModel.md +41 -0
  131. package/docs/TicketsApi.md +1 -1
  132. package/docs/UnconnectedSdr.md +68 -0
  133. package/docs/WebhooksApi.md +1 -1
  134. package/getEnums.php +31 -31
  135. package/hs_err_pid16044.log +249 -0
  136. package/hs_err_pid44560.log +249 -0
  137. package/hs_err_pid53988.log +249 -0
  138. package/hs_err_pid58728.log +40 -0
  139. package/index.ts +1 -1
  140. package/models/ConnectionTypeEnum.ts +74 -0
  141. package/models/GroupEnum.ts +44 -0
  142. package/models/HostingPriceListEnum.ts +5 -0
  143. package/models/ReportEnum.ts +15 -0
  144. package/openapitools.json +1 -1
  145. package/package.json +2 -2
@@ -0,0 +1,36 @@
1
+ # ServicePlan
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **createdDate** | **string** | | [optional] [default to undefined]
9
+ **id** | **number** | | [optional] [default to undefined]
10
+ **name** | **string** | | [default to undefined]
11
+ **services** | [**Array<Service>**](Service.md) | | [optional] [readonly] [default to undefined]
12
+ **filePeriod** | **string** | | [optional] [default to undefined]
13
+ **planGroup** | **string** | | [optional] [default to undefined]
14
+ **connectionTypeId** | **number** | | [optional] [default to undefined]
15
+ **connectionType** | [**ConnectionType**](ConnectionType.md) | | [optional] [default to undefined]
16
+ **closed** | **boolean** | | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { ServicePlan } from 'yellowgrid-api-ts';
22
+
23
+ const instance: ServicePlan = {
24
+ createdDate,
25
+ id,
26
+ name,
27
+ services,
28
+ filePeriod,
29
+ planGroup,
30
+ connectionTypeId,
31
+ connectionType,
32
+ closed,
33
+ };
34
+ ```
35
+
36
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,6 +1,6 @@
1
1
  # ServicesApi
2
2
 
3
- All URIs are relative to *https://bitbucket.org*
3
+ All URIs are relative to *https://api.local.yellowgrid.co.uk*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
@@ -7,10 +7,10 @@ Shipment Request
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
9
  **courier** | **string** | Courier | [optional] [default to undefined]
10
- **address** | [**AddressModel**](AddressModel.md) | Address | [optional] [default to undefined]
10
+ **address** | [**AddressModel**](AddressModel.md) | | [optional] [default to undefined]
11
11
  **scannedLines** | **Array<string>** | Scanned Lines | [optional] [default to undefined]
12
12
  **service** | **string** | Service | [optional] [default to undefined]
13
- **shipDate** | **string** | Ship Date | [optional] [default to undefined]
13
+ **shipDate** | **string** | Date Time | [optional] [default to undefined]
14
14
  **items** | [**Array<ShipmentItemDTO>**](ShipmentItemDTO.md) | Items | [optional] [default to undefined]
15
15
 
16
16
  ## Example
@@ -1,6 +1,6 @@
1
1
  # ShippingApi
2
2
 
3
- All URIs are relative to *https://bitbucket.org*
3
+ All URIs are relative to *https://api.local.yellowgrid.co.uk*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
@@ -0,0 +1,40 @@
1
+ # SpecialService
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **createdDate** | **string** | | [optional] [default to undefined]
9
+ **id** | **number** | | [optional] [default to undefined]
10
+ **outboundCliId** | **number** | | [optional] [default to undefined]
11
+ **outboundCli** | [**OutboundCli**](OutboundCli.md) | | [default to undefined]
12
+ **baseService** | [**BaseService**](BaseService.md) | | [default to undefined]
13
+ **customerRate** | [**CustomerRate**](CustomerRate.md) | | [default to undefined]
14
+ **description** | **string** | | [default to undefined]
15
+ **hideOnInvoice** | **boolean** | | [optional] [default to undefined]
16
+ **startPeriod** | **string** | | [default to undefined]
17
+ **endPeriod** | **string** | | [optional] [default to undefined]
18
+ **filePeriod** | **string** | | [optional] [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { SpecialService } from 'yellowgrid-api-ts';
24
+
25
+ const instance: SpecialService = {
26
+ createdDate,
27
+ id,
28
+ outboundCliId,
29
+ outboundCli,
30
+ baseService,
31
+ customerRate,
32
+ description,
33
+ hideOnInvoice,
34
+ startPeriod,
35
+ endPeriod,
36
+ filePeriod,
37
+ };
38
+ ```
39
+
40
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,6 +1,6 @@
1
1
  # StockManagementApi
2
2
 
3
- All URIs are relative to *https://bitbucket.org*
3
+ All URIs are relative to *https://api.local.yellowgrid.co.uk*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
@@ -1,6 +1,6 @@
1
1
  # SuppliersApi
2
2
 
3
- All URIs are relative to *https://bitbucket.org*
3
+ All URIs are relative to *https://api.local.yellowgrid.co.uk*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
package/docs/SystemApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # SystemApi
2
2
 
3
- All URIs are relative to *https://bitbucket.org*
3
+ All URIs are relative to *https://api.local.yellowgrid.co.uk*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
@@ -0,0 +1,30 @@
1
+ # TariffRate
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **markup** | [**CustomerRateType**](CustomerRateType.md) | | [optional] [default to undefined]
9
+ **day** | **number** | | [optional] [default to undefined]
10
+ **evening** | **number** | | [optional] [default to undefined]
11
+ **weekend** | **number** | | [optional] [default to undefined]
12
+ **minimum** | **number** | | [optional] [default to undefined]
13
+ **setup** | **number** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { TariffRate } from 'yellowgrid-api-ts';
19
+
20
+ const instance: TariffRate = {
21
+ markup,
22
+ day,
23
+ evening,
24
+ weekend,
25
+ minimum,
26
+ setup,
27
+ };
28
+ ```
29
+
30
+ [[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,35 @@
1
+ # TcxHostingPricingEntity
2
+
3
+ HostingPricingEntity
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **number** | id | [optional] [default to undefined]
10
+ **title** | **string** | title | [optional] [default to undefined]
11
+ **perSc** | **number** | perSc | [optional] [default to undefined]
12
+ **perMultiTenantSc** | **number** | perMultiTenantSc | [optional] [default to undefined]
13
+ **flatRate** | **number** | flatRate | [optional] [default to undefined]
14
+ **maxFlatRateSc** | **number** | maxFlatRateSc | [optional] [default to undefined]
15
+ **highScThreshold** | **number** | highScThreshold | [optional] [default to undefined]
16
+ **highScDiscount** | **number** | highScDiscount | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { TcxHostingPricingEntity } from 'yellowgrid-api-ts';
22
+
23
+ const instance: TcxHostingPricingEntity = {
24
+ id,
25
+ title,
26
+ perSc,
27
+ perMultiTenantSc,
28
+ flatRate,
29
+ maxFlatRateSc,
30
+ highScThreshold,
31
+ highScDiscount,
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
+ # TcxInstallationDetailsModel
2
+
3
+ 3CX Installation Details
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **ipAddress** | **string** | PBX IP Address | [optional] [default to undefined]
10
+ **instanceId** | **string** | Instance ID | [optional] [default to undefined]
11
+ **project** | **string** | Project ID | [optional] [default to undefined]
12
+ **privateKey** | [**GenericFileModel**](GenericFileModel.md) | | [optional] [default to undefined]
13
+ **rootPassword** | **string** | Root Password | [optional] [default to undefined]
14
+ **ownerExtension** | [**TcxUsersEntity**](TcxUsersEntity.md) | | [optional] [default to undefined]
15
+ **adminEmail** | **string** | Admin Email | [optional] [default to undefined]
16
+ **url** | **string** | Console URL | [optional] [default to undefined]
17
+ **adminUsername** | **string** | Admin Username | [optional] [default to undefined]
18
+ **adminPassword** | **string** | Admin Password | [optional] [default to undefined]
19
+ **ftpHost** | **string** | Config Backup FTP Host | [optional] [default to undefined]
20
+ **ftpUsername** | **string** | Config Backup FTP Username | [optional] [default to undefined]
21
+ **ftpPassword** | **string** | Config Backup FTP Password | [optional] [default to undefined]
22
+
23
+ ## Example
24
+
25
+ ```typescript
26
+ import { TcxInstallationDetailsModel } from 'yellowgrid-api-ts';
27
+
28
+ const instance: TcxInstallationDetailsModel = {
29
+ ipAddress,
30
+ instanceId,
31
+ project,
32
+ privateKey,
33
+ rootPassword,
34
+ ownerExtension,
35
+ adminEmail,
36
+ url,
37
+ adminUsername,
38
+ adminPassword,
39
+ ftpHost,
40
+ ftpUsername,
41
+ ftpPassword,
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)
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **endUser** | **string** | End User | [optional] [default to undefined]
11
11
  **sc** | **number** | Simultaneous Calls | [optional] [default to undefined]
12
12
  **edition** | **string** | Edition | [optional] [default to undefined]
13
- **expiry** | **string** | Expiry Date | [optional] [default to undefined]
13
+ **expiry** | **string** | Date Time | [optional] [default to undefined]
14
14
 
15
15
  ## Example
16
16
 
@@ -0,0 +1,41 @@
1
+ # TelephonySupportTicketModel
2
+
3
+ Telephony Support Ticket
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **number** | Ticket ID | [optional] [default to undefined]
10
+ **status** | **string** | Ticket status | [optional] [default to undefined]
11
+ **statusId** | **number** | Ticket status ID | [optional] [default to undefined]
12
+ **subject** | **string** | Ticket subject | [optional] [default to undefined]
13
+ **supportEmail** | **string** | Support email address | [optional] [default to undefined]
14
+ **toEmails** | **Array<string>** | Recipient emails | [optional] [default to undefined]
15
+ **description** | **string** | Ticket description (HTML) | [optional] [default to undefined]
16
+ **descriptionText** | **string** | Ticket description (plain text) | [optional] [default to undefined]
17
+ **createdAt** | **string** | Creation timestamp | [optional] [default to undefined]
18
+ **attachments** | [**Array<AttachmentModel>**](AttachmentModel.md) | Attachments | [optional] [default to undefined]
19
+ **conversations** | [**Array<ConversationModel>**](ConversationModel.md) | Conversations | [optional] [default to undefined]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { TelephonySupportTicketModel } from 'yellowgrid-api-ts';
25
+
26
+ const instance: TelephonySupportTicketModel = {
27
+ id,
28
+ status,
29
+ statusId,
30
+ subject,
31
+ supportEmail,
32
+ toEmails,
33
+ description,
34
+ descriptionText,
35
+ createdAt,
36
+ attachments,
37
+ conversations,
38
+ };
39
+ ```
40
+
41
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,6 +1,6 @@
1
1
  # TicketsApi
2
2
 
3
- All URIs are relative to *https://bitbucket.org*
3
+ All URIs are relative to *https://api.local.yellowgrid.co.uk*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
@@ -0,0 +1,68 @@
1
+ # UnconnectedSdr
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [optional] [default to undefined]
9
+ **sdrId** | **number** | | [optional] [default to undefined]
10
+ **sdr** | [**Sdr**](Sdr.md) | | [default to undefined]
11
+ **productCode** | **string** | | [default to undefined]
12
+ **cli** | **string** | | [optional] [default to undefined]
13
+ **outboundCliId** | **number** | | [optional] [default to undefined]
14
+ **outboundCli** | [**OutboundCli**](OutboundCli.md) | | [optional] [default to undefined]
15
+ **servicePlanId** | **number** | | [optional] [default to undefined]
16
+ **servicePlan** | [**ServicePlan**](ServicePlan.md) | | [optional] [default to undefined]
17
+ **serviceId** | **number** | | [optional] [default to undefined]
18
+ **service** | [**Service**](Service.md) | | [optional] [default to undefined]
19
+ **specialServiceId** | **number** | | [optional] [default to undefined]
20
+ **specialService** | [**SpecialService**](SpecialService.md) | | [optional] [default to undefined]
21
+ **customerCharge** | **number** | | [optional] [default to undefined]
22
+ **customerRate** | [**CustomerRate**](CustomerRate.md) | | [optional] [default to undefined]
23
+ **description** | **string** | | [optional] [default to undefined]
24
+ **hideOnInvoice** | **boolean** | | [optional] [default to undefined]
25
+ **unitCharge** | **number** | | [optional] [default to undefined]
26
+ **customerId** | **number** | | [optional] [default to undefined]
27
+ **servicePlanName** | **string** | | [optional] [default to undefined]
28
+ **serviceCode** | **string** | | [optional] [default to undefined]
29
+ **sdrDescription** | **string** | | [optional] [default to undefined]
30
+ **sdrCost** | **number** | | [optional] [default to undefined]
31
+ **remarks** | **string** | | [optional] [default to undefined]
32
+ **filePeriod** | **string** | | [default to undefined]
33
+
34
+ ## Example
35
+
36
+ ```typescript
37
+ import { UnconnectedSdr } from 'yellowgrid-api-ts';
38
+
39
+ const instance: UnconnectedSdr = {
40
+ id,
41
+ sdrId,
42
+ sdr,
43
+ productCode,
44
+ cli,
45
+ outboundCliId,
46
+ outboundCli,
47
+ servicePlanId,
48
+ servicePlan,
49
+ serviceId,
50
+ service,
51
+ specialServiceId,
52
+ specialService,
53
+ customerCharge,
54
+ customerRate,
55
+ description,
56
+ hideOnInvoice,
57
+ unitCharge,
58
+ customerId,
59
+ servicePlanName,
60
+ serviceCode,
61
+ sdrDescription,
62
+ sdrCost,
63
+ remarks,
64
+ filePeriod,
65
+ };
66
+ ```
67
+
68
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,6 +1,6 @@
1
1
  # WebhooksApi
2
2
 
3
- All URIs are relative to *https://bitbucket.org*
3
+ All URIs are relative to *https://api.local.yellowgrid.co.uk*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
package/getEnums.php CHANGED
@@ -1,31 +1,31 @@
1
- <?php
2
-
3
- use App\Contracts\Enums\PublicEnumInterface;
4
-
5
- require_once __DIR__."/../../../../vendor/autoload.php";
6
-
7
- $dir = __DIR__."/models";
8
- if (!is_dir($dir)) {
9
- mkdir($dir);
10
- }
11
- foreach (\App\Enums\Router\PublicEnumEnum::cases() as $publicEnum) {
12
- $ref = new ReflectionEnum($publicEnum->value);
13
- $cases = [];
14
- foreach ($ref->getCases() as $c) {
15
- /** @var BackedEnum $enum */
16
- $enum = $c->getEnum()->getName();
17
- $value = $c->getBackingValue();
18
- /** @var PublicEnumInterface $case */
19
- $case = $enum::from($value);
20
- $cases[$c->getName()] = [
21
- "name" => $case->name,
22
- "value" => $case->value,
23
- "publicValue" => $case->getPublicValue()
24
- ];
25
- }
26
- $enumName = $ref->getShortName();
27
- $enumString = json_encode($cases, JSON_PRETTY_PRINT);
28
- $content = "export const $enumName = $enumString as const;".
29
- "\n\n export type $enumName = typeof $enumName;";
30
- file_put_contents("$dir/$enumName.ts", $content);
31
- }
1
+ <?php
2
+
3
+ use App\Contracts\Enums\PublicEnumInterface;
4
+
5
+ require_once __DIR__."/../../../../vendor/autoload.php";
6
+
7
+ $dir = __DIR__."/models";
8
+ if (!is_dir($dir)) {
9
+ mkdir($dir);
10
+ }
11
+ foreach (\App\Enums\Router\PublicEnumEnum::cases() as $publicEnum) {
12
+ $ref = new ReflectionEnum($publicEnum->value);
13
+ $cases = [];
14
+ foreach ($ref->getCases() as $c) {
15
+ /** @var BackedEnum $enum */
16
+ $enum = $c->getEnum()->getName();
17
+ $value = $c->getBackingValue();
18
+ /** @var PublicEnumInterface $case */
19
+ $case = $enum::from($value);
20
+ $cases[$c->getName()] = [
21
+ "name" => $case->name,
22
+ "value" => $case->value,
23
+ "publicValue" => $case->getPublicValue()
24
+ ];
25
+ }
26
+ $enumName = $ref->getShortName();
27
+ $enumString = json_encode($cases, JSON_PRETTY_PRINT);
28
+ $content = "export const $enumName = $enumString as const;".
29
+ "\n\n export type $enumName = typeof $enumName;";
30
+ file_put_contents("$dir/$enumName.ts", $content);
31
+ }