@fragus/sam-types 1.0.17 → 1.0.18
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/package.json +1 -1
- package/types/admin/chart/contractCharts.d.ts +1 -0
- package/types/admin/contract/basicInfo.d.ts +1 -1
- package/types/admin/contract/contractDetails.d.ts +1 -1
- package/types/admin/contractCreation/contractCreation.d.ts +2 -1
- package/types/admin/contractCreation/priceCalculation.d.ts +1 -1
- package/types/admin/product/product.d.ts +1 -1
- package/types/admin/vehicle/vehicle.d.ts +1 -1
- package/types/contract/contract.d.ts +2 -2
- package/types/contractProvider.d.ts +1 -1
- package/types/contractTemplate.d.ts +1 -1
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ export interface IPaymentChart {
|
|
|
10
10
|
totalEarnings: PriceSpecification // summary.
|
|
11
11
|
totalCosts: PriceSpecification // summary.
|
|
12
12
|
totalBalance: PriceSpecification // summary.
|
|
13
|
+
providerShare: PriceSpecification // summary.
|
|
13
14
|
contractStartDate: Date | string // chart legend.
|
|
14
15
|
contractEndDate: Date | string // chart legend.
|
|
15
16
|
duration: {
|
|
@@ -6,7 +6,7 @@ export interface IBasicContractInfo {
|
|
|
6
6
|
contractState: ContractState
|
|
7
7
|
contractStateName: string
|
|
8
8
|
contractType: ContractType
|
|
9
|
-
contractProductType: TV4PTProductType
|
|
9
|
+
contractProductType: null | TV4PTProductType
|
|
10
10
|
priceSource: PriceSource | null
|
|
11
11
|
extendedFromId: number | null
|
|
12
12
|
extendedToId: number | null
|
|
@@ -10,7 +10,7 @@ import { PriceSpecification } from './../../priceSpecification'
|
|
|
10
10
|
export interface IContractDetailsRecord {
|
|
11
11
|
serviceContractId?: number // Note: Do not expose this id for non-Devs/normal users, use the pretty-id for those. For debugging purposes, etc.
|
|
12
12
|
contractType: ContractType
|
|
13
|
-
contractProductType: TV4PTProductType
|
|
13
|
+
contractProductType: null | TV4PTProductType
|
|
14
14
|
contractPdfUrl: string
|
|
15
15
|
duration: number // Duration [months].
|
|
16
16
|
startMileage?: number // Current meter/odometer-reading [km].
|
|
@@ -10,6 +10,7 @@ import { PriceSpecification } from './../../priceSpecification'
|
|
|
10
10
|
import { ICarCollection } from './carData'
|
|
11
11
|
import { IContractCalculationResponse } from './priceCalculation'
|
|
12
12
|
|
|
13
|
+
|
|
13
14
|
export type ContractType = 'STANDARD' | 'CUSTOM' | 'EXTERNAL'
|
|
14
15
|
|
|
15
16
|
export type ServiceContractFlag = 'DISTRIBUTE_DOWNPAYMENT' | 'NULLIFY_DOWNPAYMENT'
|
|
@@ -40,7 +41,7 @@ export type ContractValueType = Exclude<ContractValueTypeEnum, 'None'> | undefin
|
|
|
40
41
|
|
|
41
42
|
interface ICommonContractUpdateRequest {
|
|
42
43
|
priceSource?: PriceSource
|
|
43
|
-
contractProductType: TV4PTProductType
|
|
44
|
+
contractProductType: TV4PTProductType | null
|
|
44
45
|
contractProviderId: number
|
|
45
46
|
contractTemplateId: number | null
|
|
46
47
|
serviceVariantId: string
|
|
@@ -5,7 +5,7 @@ import { ContractType, ContractValueType } from './contractCreation'
|
|
|
5
5
|
|
|
6
6
|
export interface IContractCalculationRequest {
|
|
7
7
|
priceSource?: PriceSource
|
|
8
|
-
contractProductType: TV4PTProductType
|
|
8
|
+
contractProductType: TV4PTProductType | null
|
|
9
9
|
contractTemplateId: number
|
|
10
10
|
duration: number // AKA durationMonths, in months.
|
|
11
11
|
startDateISOString: string
|
|
@@ -50,7 +50,7 @@ export interface IApiVehicleContract {
|
|
|
50
50
|
extendedFrom?: number
|
|
51
51
|
value?: number
|
|
52
52
|
valueType?: ContractValueType
|
|
53
|
-
contractProductType: TV4PTProductType
|
|
53
|
+
contractProductType: null | TV4PTProductType
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export interface IApiVehicleIncludedContractOption {
|
|
@@ -23,7 +23,7 @@ export interface IEssentialContract {
|
|
|
23
23
|
contractStartDate: Date | string
|
|
24
24
|
contractEndDate: Date | string
|
|
25
25
|
contractName: string
|
|
26
|
-
contractProductType: TV4PTProductType
|
|
26
|
+
contractProductType: null | TV4PTProductType
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface IContractDetailsForCustomer extends IEssentialContract {
|
|
@@ -39,7 +39,7 @@ export interface IContractDetailsForCustomer extends IEssentialContract {
|
|
|
39
39
|
provider: IEssentialContractProviderInfo
|
|
40
40
|
paymentGateway: PaymentGateway
|
|
41
41
|
priceSource: PriceSource
|
|
42
|
-
contractProductType: TV4PTProductType
|
|
42
|
+
contractProductType: null | TV4PTProductType
|
|
43
43
|
offerExpiresAt?: Date | string
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IContactPersonRequest, IContactPersonResponse } from './contactPerson'
|
|
2
2
|
import { ICountryRequest, ICountryResponse } from './country'
|
|
3
|
-
import { TCurrency } from './index'
|
|
3
|
+
import { ContractState, TCurrency, TV4PTProductType } from './index'
|
|
4
4
|
import { PaymentGateway } from './payment'
|
|
5
5
|
import { IProviderCustomizationResponse } from './providerBranding'
|
|
6
6
|
|
|
@@ -80,7 +80,7 @@ export interface IContractTemplateResponse extends IGenericContractTemplateRespo
|
|
|
80
80
|
underdrivenCharge: PriceSpecification
|
|
81
81
|
overdrivenCharge: PriceSpecification
|
|
82
82
|
showOnWebcalc: boolean
|
|
83
|
-
v4ProductType: TV4PTProductType
|
|
83
|
+
v4ProductType: null | TV4PTProductType
|
|
84
84
|
v4SupportedPaymentTypes: TV4PTPaymentType[]
|
|
85
85
|
// v4FilesForCustomerAtActivation: { name: string; url: string }[] // Files attached in activation email to end-customer.
|
|
86
86
|
filesContainerAlongContract: null | IFileItem[] // Optional extra files, except the TOS file.
|