@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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
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:
|
|
29
|
-
vat: number
|
|
30
|
-
currency: TCurrency
|
|
25
|
+
amount: PriceSpecification
|
|
31
26
|
}
|
|
32
27
|
|
|
33
28
|
export interface IProviderInvoiceDetails extends IProviderInvoiceListRecord {
|