@fragus/sam-types 1.0.16 → 1.0.17

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.16",
2
+ "version": "1.0.17",
3
3
  "name": "@fragus/sam-types",
4
4
  "description": "Typescript interfaces for all types used to communicate between SAM client(s) and the SAM API",
5
5
  "author": "Fragus",
@@ -6,7 +6,7 @@ export interface IBasicContractInfo {
6
6
  contractState: ContractState
7
7
  contractStateName: string
8
8
  contractType: ContractType
9
- contractProductType: null | TV4PTProductType
9
+ contractProductType: 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: null | TV4PTProductType
13
+ contractProductType: TV4PTProductType
14
14
  contractPdfUrl: string
15
15
  duration: number // Duration [months].
16
16
  startMileage?: number // Current meter/odometer-reading [km].
@@ -10,7 +10,6 @@ import { PriceSpecification } from './../../priceSpecification'
10
10
  import { ICarCollection } from './carData'
11
11
  import { IContractCalculationResponse } from './priceCalculation'
12
12
 
13
-
14
13
  export type ContractType = 'STANDARD' | 'CUSTOM' | 'EXTERNAL'
15
14
 
16
15
  export type ServiceContractFlag = 'DISTRIBUTE_DOWNPAYMENT' | 'NULLIFY_DOWNPAYMENT'
@@ -41,7 +40,7 @@ export type ContractValueType = Exclude<ContractValueTypeEnum, 'None'> | undefin
41
40
 
42
41
  interface ICommonContractUpdateRequest {
43
42
  priceSource?: PriceSource
44
- contractProductType: TV4PTProductType | null
43
+ contractProductType: TV4PTProductType
45
44
  contractProviderId: number
46
45
  contractTemplateId: number | null
47
46
  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 | null
8
+ contractProductType: TV4PTProductType
9
9
  contractTemplateId: number
10
10
  duration: number // AKA durationMonths, in months.
11
11
  startDateISOString: string
@@ -36,5 +36,5 @@ export interface IApiOtherContract {
36
36
  paymentGateway?: PaymentGateway
37
37
  reference?: string
38
38
  extendedFrom?: number
39
- contractProductType: null | TV4PTProductType
39
+ contractProductType: TV4PTProductType
40
40
  }
@@ -50,7 +50,7 @@ export interface IApiVehicleContract {
50
50
  extendedFrom?: number
51
51
  value?: number
52
52
  valueType?: ContractValueType
53
- contractProductType: null | TV4PTProductType
53
+ contractProductType: 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: null | TV4PTProductType
26
+ contractProductType: 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: null | TV4PTProductType
42
+ contractProductType: 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 { ContractState, TCurrency, TV4PTProductType } from './index'
3
+ import { TCurrency } 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: null | TV4PTProductType
83
+ v4ProductType: 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.