@fragus/sam-types 1.2.0 → 1.2.1

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.2.0",
2
+ "version": "1.2.1",
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",
@@ -110,6 +110,7 @@ export interface IFixedCustomerData {
110
110
  companyName: string
111
111
  cvr: string
112
112
  phone: string
113
+ email: string
113
114
  address1: string
114
115
  postalCode: string
115
116
  city: string
@@ -1,4 +1,4 @@
1
- import { TCurrency } from './currency'
1
+ import { PriceSpecification } from './priceSpecification'
2
2
 
3
3
  export type ProviderInvoiceState = 'Pending' | 'Paid' | 'Canceled'
4
4
 
@@ -6,14 +6,11 @@ export type BillingEntrySource = 'Stripe' | 'Fragus'
6
6
 
7
7
  export type BillingEntryKind = 'Subscription' | 'PrePaid'
8
8
 
9
- // Amounts are in cents, excl. VAT.
10
9
  export interface IProviderInvoiceListRecord {
11
10
  id: number
12
11
  period: string // YYYY-MM
13
12
  state: ProviderInvoiceState
14
- amount: number
15
- vat: number
16
- currency: TCurrency
13
+ amount: PriceSpecification
17
14
  contractCount: number
18
15
  created: string // ISO
19
16
  }
@@ -25,9 +22,7 @@ export interface IContractBillingEntry {
25
22
  kind: BillingEntryKind
26
23
  coverageStart: string // ISO
27
24
  coverageEnd: string // ISO, exclusive
28
- amount: number
29
- vat: number
30
- currency: TCurrency
25
+ amount: PriceSpecification
31
26
  }
32
27
 
33
28
  export interface IProviderInvoiceDetails extends IProviderInvoiceListRecord {