@quickpipeaiab/domain 0.0.0-stage → 0.9.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.
package/billing.ttl ADDED
@@ -0,0 +1,3732 @@
1
+ @prefix billing: <https://id.quickpipe.ai/domain/billing#> .
2
+ @prefix billing-vocab: <https://id.quickpipe.ai/domain/vocab/billing#> .
3
+ @prefix billing-shapes: <https://id.quickpipe.ai/domain/shapes/billing#> .
4
+ @prefix identity: <https://id.quickpipe.ai/domain/identity#> .
5
+ @prefix core: <https://id.quickpipe.ai/domain/core#> .
6
+ @prefix core-vocab: <https://id.quickpipe.ai/domain/vocab/core#> .
7
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
8
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
12
+
13
+ <https://id.quickpipe.ai/domain/billing> a owl:Ontology ;
14
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.9.0/billing> ;
15
+ owl:versionInfo "0.9.0" ;
16
+ core:title "QuickPipe domain model: billing"@en ;
17
+ core:preferred-prefix "billing" ;
18
+ core:preferred-namespace "https://id.quickpipe.ai/domain/billing#" ;
19
+ owl:imports <https://id.quickpipe.ai/domain/core> , <https://id.quickpipe.ai/domain/vocab/core> , <https://id.quickpipe.ai/domain/vocab/billing> , <https://id.quickpipe.ai/domain/identity> .
20
+
21
+ # Classes
22
+
23
+ billing:balance a owl:Class ;
24
+ rdfs:subClassOf core:entity ;
25
+ core:label "balance"@en ;
26
+ core:definition "The credits of one workspace. It has one row for each workspace, with the parts, the held credits and the month charges. The workspace id is unique."@en ;
27
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
28
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
29
+ core:owner core:billing ;
30
+ core:has-contract true ;
31
+ core:retention "P7Y" ;
32
+ core:retention-clock core-vocab:retention-clock-since-closed ;
33
+ core:controller-role core-vocab:controller-role-controller .
34
+
35
+ billing:entry a owl:Class ;
36
+ rdfs:subClassOf core:entity ;
37
+ core:label "entry"@en ;
38
+ core:definition "One change of a balance, with one entry kind and a unique idempotency key. It has the change of each part, of the held credits and of the month charges."@en ;
39
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
40
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
41
+ core:owner core:billing ;
42
+ core:division core-vocab:division-disjoint-closed ;
43
+ core:retention "P7Y" ;
44
+ core:retention-clock core-vocab:retention-clock-since-closed ;
45
+ core:controller-role core-vocab:controller-role-controller ;
46
+ owl:disjointUnionOf ( billing:grant-entry billing:top-up-entry billing:hold-entry billing:settle-entry billing:release-entry billing:refund-entry billing:expire-entry ) .
47
+
48
+ billing:grant-entry a owl:Class ;
49
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:entry [ a owl:Restriction ; owl:onProperty billing:has-entry-kind ; owl:hasValue billing-vocab:entry-kind-grant ] ) ] ;
50
+ core:label "grant entry"@en ;
51
+ core:definition "An entry of kind `grant`. It adds credits to one part. Its writer is the plan job, the trial claim or an admin."@en ;
52
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
53
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
54
+ core:owner core:billing .
55
+
56
+ billing:top-up-entry a owl:Class ;
57
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:entry [ a owl:Restriction ; owl:onProperty billing:has-entry-kind ; owl:hasValue billing-vocab:entry-kind-top-up ] ) ] ;
58
+ core:label "top-up entry"@en ;
59
+ core:definition "An entry of kind `top-up`. It adds credits to the part `bought`. Its writer is the Stripe webhook."@en ;
60
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
61
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
62
+ core:owner core:billing .
63
+
64
+ billing:hold-entry a owl:Class ;
65
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:entry [ a owl:Restriction ; owl:onProperty billing:has-entry-kind ; owl:hasValue billing-vocab:entry-kind-hold ] ) ] ;
66
+ core:label "hold entry"@en ;
67
+ core:definition "An entry of kind `hold`. It moves credits from the parts to the held credits. Its writer is a spender."@en ;
68
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
69
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
70
+ core:owner core:billing .
71
+
72
+ billing:settle-entry a owl:Class ;
73
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:entry [ a owl:Restriction ; owl:onProperty billing:has-entry-kind ; owl:hasValue billing-vocab:entry-kind-settle ] ) ] ;
74
+ core:label "settle entry"@en ;
75
+ core:definition "An entry of kind `settle`. It removes the charge from the held credits and adds it to the month charges. Its writer is a spender."@en ;
76
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
77
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
78
+ core:owner core:billing .
79
+
80
+ billing:release-entry a owl:Class ;
81
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:entry [ a owl:Restriction ; owl:onProperty billing:has-entry-kind ; owl:hasValue billing-vocab:entry-kind-release ] ) ] ;
82
+ core:label "release entry"@en ;
83
+ core:definition "An entry of kind `release`. It moves the rest of a hold back to the parts that the hold took. Its writer is a spender, the transaction of a settle, or the worker at the expiry of a hold."@en ;
84
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
85
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
86
+ core:owner core:billing .
87
+
88
+ billing:refund-entry a owl:Class ;
89
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:entry [ a owl:Restriction ; owl:onProperty billing:has-entry-kind ; owl:hasValue billing-vocab:entry-kind-refund ] ) ] ;
90
+ core:label "refund entry"@en ;
91
+ core:definition "An entry of kind `refund`. It removes the credits of a refunded payment from the part `bought`. Its writer is the Stripe webhook."@en ;
92
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
93
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
94
+ core:owner core:billing .
95
+
96
+ billing:expire-entry a owl:Class ;
97
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:entry [ a owl:Restriction ; owl:onProperty billing:has-entry-kind ; owl:hasValue billing-vocab:entry-kind-expire ] ) ] ;
98
+ core:label "expire entry"@en ;
99
+ core:definition "An entry of kind `expire`. It removes the credits of the part `plan` at the expiry. Its writer is the plan job, or the transaction of a release that returns credits of the part `plan` after its expiry."@en ;
100
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
101
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
102
+ core:owner core:billing .
103
+
104
+ billing:work a owl:Class ;
105
+ rdfs:subClassOf core:activity ;
106
+ core:label "work"@en ;
107
+ core:definition "Work of a spender for a workspace. Paid work and free work are disjoint and exhaustive."@en ;
108
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
109
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
110
+ core:owner core:billing ;
111
+ core:division core-vocab:division-disjoint-closed ;
112
+ owl:disjointUnionOf ( billing:paid-work billing:free-work ) .
113
+
114
+ billing:paid-work a owl:Class ;
115
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:work [ a owl:Restriction ; owl:onProperty billing:has-cost ; owl:someValuesFrom [ a rdfs:Datatype ; owl:onDatatype xsd:long ; owl:withRestrictions ( [ xsd:minExclusive "0"^^xsd:long ] ) ] ] ) ] ;
116
+ core:label "paid work"@en ;
117
+ core:definition "Work of a spender for a workspace with a cost above 0. Each other work of a spender is free work."@en ;
118
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
119
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
120
+ core:owner core:billing .
121
+
122
+ billing:free-work a owl:Class ;
123
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:work [ a owl:Restriction ; owl:onProperty billing:has-cost ; owl:hasValue "0"^^xsd:long ] ) ] ;
124
+ core:label "free work"@en ;
125
+ core:definition "Free work has a cost of 0, and thus a charge of 0. Examples are a result from a cache and a free count."@en ;
126
+ core:source "docs/specs/billing/docs/internal/decisions/0005-rates-and-charges.md#Decision" ;
127
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
128
+ core:owner core:billing .
129
+
130
+ billing:source a owl:Class ;
131
+ rdfs:subClassOf core:agent ;
132
+ core:label "source of paid work"@en ;
133
+ core:definition "A source of paid work. Unit costs refer to it."@en ;
134
+ core:source "docs/decisions/0003-modelling-patterns.md#Sources (Q4, Q4b)" ;
135
+ core:decided-in "docs/decisions/0003-modelling-patterns.md" ;
136
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
137
+ core:owner core:billing ;
138
+ core:division core-vocab:division-open ;
139
+ owl:disjointWith identity:source .
140
+
141
+ billing:unit-cost a owl:Class ;
142
+ rdfs:subClassOf core:entity ;
143
+ core:label "unit cost"@en ;
144
+ core:definition "The cost to QuickPipe of one unit of paid work from one source. It is an integer number of micro-USD for one million cost units. The cost of a call is its units times the unit cost divided by 1,000,000, rounded up to the next integer micro-USD."@en ;
145
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
146
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
147
+ core:owner core:billing .
148
+
149
+ billing:charge a owl:Class ;
150
+ rdfs:subClassOf core:entity ;
151
+ core:label "charge"@en ;
152
+ core:definition "The amount that a workspace pays for a cost: the cost and the rate of the cost, rounded up to the next micro-USD"@en ;
153
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
154
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
155
+ core:owner core:billing ;
156
+ core:has-contract true .
157
+
158
+ billing:quote a owl:Class ;
159
+ rdfs:subClassOf core:entity ;
160
+ core:label "quote"@en ;
161
+ core:definition "The charge, the rate and the rate id for one workspace, one spender and one cost, with no hold"@en ;
162
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
163
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
164
+ core:owner core:billing ;
165
+ core:has-contract true .
166
+
167
+ billing:hold a owl:Class ;
168
+ rdfs:subClassOf core:entity ;
169
+ core:label "hold of billing"@en ;
170
+ core:definition "Credits that `billing` keeps for the paid work of one spender for one workspace. Its hold id is unique."@en ;
171
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
172
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
173
+ core:owner core:billing ;
174
+ core:division core-vocab:division-disjoint-closed ;
175
+ core:has-contract true ;
176
+ owl:disjointUnionOf ( billing:run-hold billing:call-hold billing:standing-hold ) .
177
+
178
+ billing:run-hold a owl:Class ;
179
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:hold [ a owl:Restriction ; owl:onProperty billing:has-hold-kind ; owl:hasValue billing-vocab:hold-kind-run ] ) ] ;
180
+ rdfs:subClassOf [ a owl:Restriction ; owl:onProperty billing:has-charge-origin ; owl:hasValue billing-vocab:charge-origin-run ] ;
181
+ rdfs:subClassOf [ a owl:Restriction ; owl:onProperty billing:for-run ; owl:someValuesFrom core:run ] ;
182
+ core:label "run hold"@en ;
183
+ core:definition "A hold of kind `run`. It covers one run of a spender, or one run segment of `kai-agent`. It has the id of the run of its spender and the charge origin `run`."@en ;
184
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
185
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
186
+ core:owner core:billing ;
187
+ core:has-contract true .
188
+
189
+ billing:call-hold a owl:Class ;
190
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:hold [ a owl:Restriction ; owl:onProperty billing:has-hold-kind ; owl:hasValue billing-vocab:hold-kind-call ] ) ] ;
191
+ rdfs:subClassOf [ a owl:Restriction ; owl:onProperty billing:has-charge-origin ; owl:hasValue billing-vocab:charge-origin-call ] ;
192
+ rdfs:subClassOf [ a owl:Restriction ; owl:onProperty billing:has-requester ; owl:someValuesFrom billing:requester ] ;
193
+ core:label "call hold"@en ;
194
+ core:definition "A hold of kind `call`. It covers one call to a spender outside a run. It records one requester and has the charge origin `call`."@en ;
195
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
196
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
197
+ core:owner core:billing ;
198
+ core:has-contract true .
199
+
200
+ billing:standing-hold a owl:Class ;
201
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:hold [ a owl:Restriction ; owl:onProperty billing:has-hold-kind ; owl:hasValue billing-vocab:hold-kind-standing ] ) ] ;
202
+ rdfs:subClassOf [ a owl:Class ; owl:unionOf ( [ a owl:Restriction ; owl:onProperty billing:has-charge-origin ; owl:hasValue billing-vocab:charge-origin-call ] [ a owl:Restriction ; owl:onProperty billing:has-charge-origin ; owl:hasValue billing-vocab:charge-origin-channel ] ) ] ;
203
+ rdfs:subClassOf [ a owl:Restriction ; owl:onProperty billing:has-requester ; owl:someValuesFrom billing:requester ] ;
204
+ core:label "standing hold"@en ;
205
+ core:definition "A hold of kind `standing`. It covers many small calls of one workspace and one charge origin. It records one requester and has the charge origin `call` or `channel`."@en ;
206
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
207
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
208
+ core:owner core:billing ;
209
+ core:has-contract true .
210
+
211
+ billing:requester a owl:Class ;
212
+ rdfs:subClassOf core:entity ;
213
+ core:label "requester of a hold"@en ;
214
+ core:definition "What asked the spender for the paid work of a hold of kind `call` or `standing`. A hold of kind `run` has no requester."@en ;
215
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
216
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
217
+ core:owner core:billing ;
218
+ core:division core-vocab:division-disjoint-closed ;
219
+ core:has-contract true ;
220
+ owl:disjointUnionOf ( billing:key-requester billing:token-requester billing:webhook-requester ) .
221
+
222
+ billing:key-requester a owl:Class ;
223
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:requester [ a owl:Restriction ; owl:onProperty billing:has-requester-kind ; owl:hasValue billing-vocab:requester-kind-key ] ) ] ;
224
+ rdfs:subClassOf [ a owl:Restriction ; owl:onProperty billing:of-key ; owl:someValuesFrom core:key ] ;
225
+ core:label "key requester"@en ;
226
+ core:definition "A requester of kind `key`. The hold records the key id of the caller of the spender."@en ;
227
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
228
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
229
+ core:owner core:billing ;
230
+ core:has-contract true .
231
+
232
+ billing:token-requester a owl:Class ;
233
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:requester [ a owl:Restriction ; owl:onProperty billing:has-requester-kind ; owl:hasValue billing-vocab:requester-kind-token ] ) ] ;
234
+ rdfs:subClassOf [ a owl:Restriction ; owl:onProperty billing:for-run ; owl:someValuesFrom core:run ] ;
235
+ core:label "token requester"@en ;
236
+ core:definition "A requester of kind `token`. The hold records the `kaiRunId` of a start token."@en ;
237
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
238
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
239
+ core:owner core:billing ;
240
+ core:has-contract true .
241
+
242
+ billing:webhook-requester a owl:Class ;
243
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:requester [ a owl:Restriction ; owl:onProperty billing:has-requester-kind ; owl:hasValue billing-vocab:requester-kind-webhook ] ) ] ;
244
+ rdfs:subClassOf [ a owl:Restriction ; owl:onProperty billing:from-service ; owl:someValuesFrom core:service ] ;
245
+ core:label "webhook requester"@en ;
246
+ core:definition "A requester of kind `webhook`. The hold records the service that sent the webhook and the webhook topic, for example `lead-scoring` and `visit.business`."@en ;
247
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
248
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
249
+ core:owner core:billing ;
250
+ core:has-contract true .
251
+
252
+ billing:tag a owl:Class ;
253
+ rdfs:subClassOf core:entity ;
254
+ core:label "tag"@en ;
255
+ core:definition "A key and a value that a spender puts on a hold. A hold carries at most 5 tags. `billing` keeps them and does not read them."@en ;
256
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
257
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
258
+ core:owner core:billing ;
259
+ core:has-contract true .
260
+
261
+ billing:setting a owl:Class ;
262
+ rdfs:subClassOf core:entity ;
263
+ core:label "setting"@en ;
264
+ core:definition "A named value that changes what a QuickPipe service does, with one setting scope"@en ;
265
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
266
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
267
+ core:owner core:billing ;
268
+ core:division core-vocab:division-disjoint-open ;
269
+ core:has-contract true .
270
+
271
+ billing:rate a owl:Class ;
272
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-rate ] ) ] ;
273
+ core:label "rate"@en ;
274
+ core:definition "A setting: the percentage that `billing` adds to a cost for one spender, in basis points. Each rate has a unique id, and a change makes a new rate."@en ;
275
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
276
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
277
+ core:owner core:billing ;
278
+ core:has-contract true .
279
+
280
+ billing:monthly-limit a owl:Class ;
281
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-monthly-limit ] ) ] ;
282
+ core:label "monthly limit"@en ;
283
+ core:definition "The largest sum of the month charges and the held credits that one workspace can have"@en ;
284
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
285
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
286
+ core:owner core:billing ;
287
+ core:has-contract true .
288
+
289
+ billing:low-balance-threshold a owl:Class ;
290
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-low-balance-threshold ] ) ] ;
291
+ core:label "low-balance threshold"@en ;
292
+ core:definition "The available credits below which `billing` sends `balance.low`"@en ;
293
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
294
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
295
+ core:owner core:billing ;
296
+ core:has-contract true .
297
+
298
+ billing:automatic-top-up a owl:Class ;
299
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-automatic-top-up ] ) ] ;
300
+ core:label "automatic top-up"@en ;
301
+ core:definition "A setting of a workspace: a threshold, a pack and a monthly maximum. `billing` starts a top-up of method `automatic` when the available credits go below the threshold."@en ;
302
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
303
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
304
+ core:owner core:billing ;
305
+ core:has-contract true .
306
+
307
+ billing:standing-hold-size a owl:Class ;
308
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-standing-hold-size ] ) ] ;
309
+ core:label "standing hold size"@en ;
310
+ core:definition "The amount of a hold of kind `standing`"@en ;
311
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
312
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
313
+ core:owner core:billing ;
314
+ core:has-contract true .
315
+
316
+ billing:trial-grant-amount a owl:Class ;
317
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-trial-grant-amount ] ) ] ;
318
+ core:label "trial grant amount"@en ;
319
+ core:definition "The credits of the grant of kind `trial`"@en ;
320
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
321
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
322
+ core:owner core:billing ;
323
+ core:has-contract true .
324
+
325
+ billing:trial-duration a owl:Class ;
326
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-trial-duration ] ) ] ;
327
+ core:label "trial duration"@en ;
328
+ core:definition "The time from the grant of kind `trial` to its expiry"@en ;
329
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
330
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
331
+ core:owner core:billing ;
332
+ core:has-contract true .
333
+
334
+ billing:retry-days a owl:Class ;
335
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-retry-days ] ) ] ;
336
+ core:label "retry days"@en ;
337
+ core:definition "The days in which Stripe tries a failed payment of a subscription again"@en ;
338
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
339
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
340
+ core:owner core:billing ;
341
+ core:has-contract true .
342
+
343
+ billing:default-quotas a owl:Class ;
344
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-default-quotas ] ) ] ;
345
+ core:label "default quotas"@en ;
346
+ core:definition "The quotas of a workspace with no plan"@en ;
347
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
348
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
349
+ core:owner core:billing ;
350
+ core:has-contract true .
351
+
352
+ billing:expiry-notice-days a owl:Class ;
353
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-expiry-notice-days ] ) ] ;
354
+ core:label "expiry notice days"@en ;
355
+ core:definition "The days before the expiry of the part `plan` at which `billing` sends `credits.expiring`"@en ;
356
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
357
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
358
+ core:owner core:billing ;
359
+ core:has-contract true .
360
+
361
+ billing:support-grant-maximum a owl:Class ;
362
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-support-grant-maximum ] ) ] ;
363
+ core:label "support grant maximum"@en ;
364
+ core:definition "The largest amount of one goodwill grant: a grant of kind `admin` that a staff user with the access-role `support` makes"@en ;
365
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
366
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
367
+ core:owner core:billing ;
368
+ core:has-contract true .
369
+
370
+ billing:discount-maximum a owl:Class ;
371
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-discount-maximum ] ) ] ;
372
+ core:label "discount maximum"@en ;
373
+ core:definition "The largest value of a discount that one staff user can make active"@en ;
374
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
375
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
376
+ core:owner core:billing ;
377
+ core:has-contract true .
378
+
379
+ billing:sample-maximum a owl:Class ;
380
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-sample-maximum ] ) ] ;
381
+ core:label "sample maximum"@en ;
382
+ core:definition "The largest number of absorbed holds of one workspace in one day, as [0031](0031-absorbed-holds.md) tells"@en ;
383
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
384
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
385
+ core:owner core:billing ;
386
+ core:has-contract true .
387
+
388
+ billing:default-plan-limits a owl:Class ;
389
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-default-plan-limits ] ) ] ;
390
+ core:label "default plan limits"@en ;
391
+ core:definition "The plan limits of a workspace with no plan"@en ;
392
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
393
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
394
+ core:owner core:billing ;
395
+ core:has-contract true .
396
+
397
+ billing:plan-limit-override a owl:Class ;
398
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:setting [ a owl:Restriction ; owl:onProperty billing:has-setting-name ; owl:hasValue billing-vocab:setting-name-plan-limit-override ] ) ] ;
399
+ core:label "plan limit override"@en ;
400
+ core:definition "The plan limits of one workspace, in place of the plan limits of its plan"@en ;
401
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
402
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
403
+ core:owner core:billing ;
404
+ core:has-contract true .
405
+
406
+ billing:plan a owl:Class ;
407
+ rdfs:subClassOf core:entity ;
408
+ core:division core-vocab:division-open ;
409
+ core:label "plan of billing"@en ;
410
+ core:definition "An offer with a name, a unique id, a plan interval, the credits of a grant for each month, quotas and plan limits. It has one price for each currency. A plan does not change after its creation. A later plan has a replaces link and a new id. A rate for a plan is a setting of scope `plan`, not a part of the plan."@en ;
411
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" , "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
412
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
413
+ core:owner core:billing ;
414
+ core:has-contract true .
415
+
416
+ billing:pack a owl:Class ;
417
+ rdfs:subClassOf core:entity ;
418
+ core:label "pack"@en ;
419
+ core:definition "An offer with a name, a fixed amount of credits for the part `bought`, a unique id and one price for each currency. A pack does not change after its creation. A later pack has a replaces link and a new id."@en ;
420
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" , "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
421
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
422
+ core:owner core:billing ;
423
+ core:has-contract true .
424
+
425
+ billing:price a owl:Class ;
426
+ rdfs:subClassOf core:entity ;
427
+ core:label "price"@en ;
428
+ core:definition "The amount in the minor units of one currency that a workspace pays for a plan or a pack, with the credits that it gives. A plan has one price for each currency. Stripe keeps each price."@en ;
429
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" , "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
430
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
431
+ core:owner core:billing ;
432
+ core:has-contract true .
433
+
434
+ billing:quota a owl:Class ;
435
+ rdfs:subClassOf core:entity ;
436
+ core:label "quota"@en ;
437
+ core:definition "A maximum for one metric that a plan or the default quotas give to a workspace."@en ;
438
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
439
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
440
+ core:owner core:billing ;
441
+ core:has-contract true .
442
+
443
+ billing:quota-list a owl:Class ;
444
+ rdfs:subClassOf core:entity ;
445
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
446
+ [ a owl:Restriction ; owl:onProperty [ owl:inverseOf billing:in-quota-list ] ; owl:someValuesFrom billing:quota ] ) ] ;
447
+ core:label "quota list"@en ;
448
+ core:definition "The quotas that one request sets for a workspace. Each quota of the list has a metric and a limit."@en ;
449
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" , "docs/specs/lead-scoring/docs/internal/decisions/0102-quotas-from-billing.md#Decision" ;
450
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
451
+ core:owner core:billing ;
452
+ core:has-contract true .
453
+
454
+ billing:subscription a owl:Class ;
455
+ rdfs:subClassOf core:entity ;
456
+ core:label "subscription"@en ;
457
+ core:definition "The link of one workspace to one plan, through one Stripe subscription. A workspace has at most one subscription that is not `ended`."@en ;
458
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
459
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
460
+ core:owner core:billing ;
461
+ core:has-contract true ;
462
+ core:retention "P7Y" ;
463
+ core:retention-clock core-vocab:retention-clock-since-closed ;
464
+ core:controller-role core-vocab:controller-role-controller .
465
+
466
+ billing:subscription-period a owl:Class ;
467
+ rdfs:subClassOf core:entity ;
468
+ core:label "subscription period"@en ;
469
+ core:definition "The time between two payments of a subscription, from one Stripe invoice to the next"@en ;
470
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
471
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
472
+ core:owner core:billing .
473
+
474
+ billing:grant-period a owl:Class ;
475
+ rdfs:subClassOf core:entity ;
476
+ core:label "grant period"@en ;
477
+ core:definition "One month of a subscription, from the day of its start. The plan job grants at its start, and the credits expire at its end."@en ;
478
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
479
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
480
+ core:owner core:billing .
481
+
482
+ billing:plan-change a owl:Class ;
483
+ rdfs:subClassOf core:activity ;
484
+ core:label "plan change"@en ;
485
+ core:definition "A change from one plan to a different plan. An upgrade is a change to a plan with more credits in its grant for each month. Each other change is a downgrade. Thus the two plan change kinds cover all changes."@en ;
486
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
487
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
488
+ core:owner core:billing ;
489
+ core:division core-vocab:division-disjoint-closed ;
490
+ owl:disjointUnionOf ( billing:upgrade billing:downgrade ) .
491
+
492
+ billing:upgrade a owl:Class ;
493
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:plan-change [ a owl:Restriction ; owl:onProperty billing:has-plan-change-kind ; owl:hasValue billing-vocab:plan-change-kind-upgrade ] ) ] ;
494
+ core:label "upgrade of a plan"@en ;
495
+ core:definition "An upgrade is a change to a plan with more credits in its grant for each month."@en ;
496
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
497
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
498
+ core:owner core:billing .
499
+
500
+ billing:downgrade a owl:Class ;
501
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:plan-change [ a owl:Restriction ; owl:onProperty billing:has-plan-change-kind ; owl:hasValue billing-vocab:plan-change-kind-downgrade ] ) ] ;
502
+ core:label "downgrade of a plan"@en ;
503
+ core:definition "Each other change is a downgrade."@en ;
504
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
505
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
506
+ core:owner core:billing .
507
+
508
+ billing:cancel a owl:Class ;
509
+ rdfs:subClassOf core:activity ;
510
+ core:label "cancel"@en ;
511
+ core:definition "A cancel is a request of `desk` to end a subscription at the end of its subscription period. A cancel is not a plan change kind, because no new plan follows."@en ;
512
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
513
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
514
+ core:owner core:billing .
515
+
516
+ billing:checkout a owl:Class ;
517
+ rdfs:subClassOf core:activity ;
518
+ core:label "checkout"@en ;
519
+ core:definition "A request of `desk` for a Stripe Checkout page for a plan or a pack of one workspace."@en ;
520
+ core:source "docs/specs/billing/docs/internal/decisions/0014-payments.md#Decision" ;
521
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
522
+ core:owner core:billing ;
523
+ core:has-contract true .
524
+
525
+ billing:portal a owl:Class ;
526
+ rdfs:subClassOf core:activity ;
527
+ core:label "portal"@en ;
528
+ core:definition "A request of `desk` for a short-lived Stripe Customer Portal session for one workspace."@en ;
529
+ core:source "docs/specs/billing/docs/internal/decisions/0026-customer-portal.md#Decision" ;
530
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
531
+ core:owner core:billing ;
532
+ core:has-contract true .
533
+
534
+ billing:top-up a owl:Class ;
535
+ rdfs:subClassOf core:entity ;
536
+ core:label "top-up of billing"@en ;
537
+ core:definition "One payment of one pack that adds credits to the part `bought`. Its Stripe payment id is unique."@en ;
538
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
539
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
540
+ core:owner core:billing ;
541
+ core:has-contract true ;
542
+ core:retention "P7Y" ;
543
+ core:retention-clock core-vocab:retention-clock-since-closed ;
544
+ core:controller-role core-vocab:controller-role-controller .
545
+
546
+ billing:audit-row a owl:Class ;
547
+ rdfs:subClassOf core:entity ;
548
+ core:label "audit row"@en ;
549
+ core:definition "One row for each change of a setting, a plan, a pack, a rate or a discount. Each refund and each grant of kind `admin` also gets one. It has the audit actor, the old value and the new value. The audit row of a grant of kind `admin` also has the grant reason."@en ;
550
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
551
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
552
+ core:owner core:billing ;
553
+ core:retention "P7Y" ;
554
+ core:retention-clock core-vocab:retention-clock-since-created ;
555
+ core:controller-role core-vocab:controller-role-controller .
556
+
557
+ billing:outbox-row a owl:Class ;
558
+ rdfs:subClassOf core:entity ;
559
+ core:label "outbox row"@en ;
560
+ core:definition "One message that `billing` must send to a different service. A channel name, a HTTP method, a path and the body give the message. The transaction of its change writes it. Its id is unique. For a webhook, the id is the webhook id."@en ;
561
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Contract" , "docs/specs/billing/docs/internal/decisions/0034-quota-sync.md#Decision" ;
562
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
563
+ core:owner core:billing .
564
+
565
+ billing:statement a owl:Class ;
566
+ rdfs:subClassOf core:entity ;
567
+ core:label "statement"@en ;
568
+ core:definition "The list of the settled holds of one workspace in a time range, with totals. `GET /charges` gives it."@en ;
569
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Contract" ;
570
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
571
+ core:owner core:billing ;
572
+ core:has-contract true .
573
+
574
+ billing:webhook a owl:Class ;
575
+ rdfs:subClassOf core:event ;
576
+ core:label "webhook of billing"@en ;
577
+ core:definition "A signed message that `billing` sends to `desk`. It has an id, a webhook topic, a creation time, the workspace, a sequence number and the data of its topic."@en ;
578
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Contract" , "docs/specs/billing/docs/internal/decisions/0016-webhooks.md#Decision" ;
579
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
580
+ core:owner core:billing ;
581
+ core:division core-vocab:division-disjoint-open ;
582
+ core:has-contract true .
583
+
584
+ billing:balance-low a owl:Class ;
585
+ rdfs:subClassOf billing:webhook ;
586
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:webhook [ a owl:Restriction ; owl:onProperty billing:has-webhook-topic ; owl:hasValue billing-vocab:webhook-topic-balance-low ] ) ] ;
587
+ core:label "balance low"@en ;
588
+ core:definition "The available credits go below the low-balance threshold. The payload tells if an automatic top-up started."@en ;
589
+ core:source "docs/specs/billing/docs/internal/decisions/0016-webhooks.md#Decision" ;
590
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
591
+ core:owner core:billing ;
592
+ core:has-contract true .
593
+
594
+ billing:balance-recovered a owl:Class ;
595
+ rdfs:subClassOf billing:webhook ;
596
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:webhook [ a owl:Restriction ; owl:onProperty billing:has-webhook-topic ; owl:hasValue billing-vocab:webhook-topic-balance-recovered ] ) ] ;
597
+ core:label "balance recovered"@en ;
598
+ core:definition "The available credits rise to the low-balance threshold or above it, after `billing` sent `balance.low`. The payload has the available credits."@en ;
599
+ core:source "docs/specs/billing/docs/internal/decisions/0016-webhooks.md#Decision" ;
600
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
601
+ core:owner core:billing ;
602
+ core:has-contract true .
603
+
604
+ billing:limit-threshold a owl:Class ;
605
+ rdfs:subClassOf billing:webhook ;
606
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:webhook [ a owl:Restriction ; owl:onProperty billing:has-webhook-topic ; owl:hasValue billing-vocab:webhook-topic-limit-threshold ] ) ] ;
607
+ core:label "limit threshold"@en ;
608
+ core:definition "The month charges plus the held credits reach 80% or 100% of the monthly limit"@en ;
609
+ core:source "docs/specs/billing/docs/internal/decisions/0016-webhooks.md#Decision" ;
610
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
611
+ core:owner core:billing ;
612
+ core:has-contract true .
613
+
614
+ billing:credits-expiring a owl:Class ;
615
+ rdfs:subClassOf billing:webhook ;
616
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:webhook [ a owl:Restriction ; owl:onProperty billing:has-webhook-topic ; owl:hasValue billing-vocab:webhook-topic-credits-expiring ] ) ] ;
617
+ core:label "credits expiring"@en ;
618
+ core:definition "The expiry of the part `plan` is near, by the expiry notice days"@en ;
619
+ core:source "docs/specs/billing/docs/internal/decisions/0016-webhooks.md#Decision" ;
620
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
621
+ core:owner core:billing ;
622
+ core:has-contract true .
623
+
624
+ billing:top-up-completed a owl:Class ;
625
+ rdfs:subClassOf billing:webhook ;
626
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:webhook [ a owl:Restriction ; owl:onProperty billing:has-webhook-topic ; owl:hasValue billing-vocab:webhook-topic-top-up-completed ] ) ] ;
627
+ core:label "top up completed"@en ;
628
+ core:definition "A top-up gets the status `completed`"@en ;
629
+ core:source "docs/specs/billing/docs/internal/decisions/0016-webhooks.md#Decision" ;
630
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
631
+ core:owner core:billing ;
632
+ core:has-contract true .
633
+
634
+ billing:top-up-failed a owl:Class ;
635
+ rdfs:subClassOf billing:webhook ;
636
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:webhook [ a owl:Restriction ; owl:onProperty billing:has-webhook-topic ; owl:hasValue billing-vocab:webhook-topic-top-up-failed ] ) ] ;
637
+ core:label "top up failed"@en ;
638
+ core:definition "A top-up gets the status `failed`"@en ;
639
+ core:source "docs/specs/billing/docs/internal/decisions/0016-webhooks.md#Decision" ;
640
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
641
+ core:owner core:billing ;
642
+ core:has-contract true .
643
+
644
+ billing:plan-changed a owl:Class ;
645
+ rdfs:subClassOf billing:webhook ;
646
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:webhook [ a owl:Restriction ; owl:onProperty billing:has-webhook-topic ; owl:hasValue billing-vocab:webhook-topic-plan-changed ] ) ] ;
647
+ core:label "plan changed"@en ;
648
+ core:definition "A subscription gets a subscription change"@en ;
649
+ core:source "docs/specs/billing/docs/internal/decisions/0016-webhooks.md#Decision" ;
650
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
651
+ core:owner core:billing ;
652
+ core:has-contract true .
653
+
654
+ billing:dispute-opened a owl:Class ;
655
+ rdfs:subClassOf billing:webhook ;
656
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:webhook [ a owl:Restriction ; owl:onProperty billing:has-webhook-topic ; owl:hasValue billing-vocab:webhook-topic-dispute-opened ] ) ] ;
657
+ core:label "dispute opened"@en ;
658
+ core:definition "The webhook that billing sends when a payment of the workspace gets a dispute."@en ;
659
+ core:source "docs/specs/billing/docs/internal/decisions/0016-webhooks.md#Decision" ;
660
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
661
+ core:owner core:billing ;
662
+ core:has-contract true .
663
+
664
+ [] a owl:AllDisjointClasses ;
665
+ owl:members ( billing:rate billing:monthly-limit billing:low-balance-threshold billing:automatic-top-up billing:standing-hold-size billing:trial-grant-amount billing:trial-duration billing:retry-days billing:default-quotas billing:expiry-notice-days billing:support-grant-maximum ) .
666
+
667
+ [] a owl:AllDisjointClasses ;
668
+ owl:members ( billing:balance-low billing:balance-recovered billing:limit-threshold billing:credits-expiring billing:top-up-completed billing:top-up-failed billing:plan-changed billing:dispute-opened ) .
669
+
670
+ [] a owl:AllDisjointClasses ;
671
+ owl:members ( billing:balance billing:entry billing:work billing:source billing:unit-cost billing:charge billing:quote billing:hold billing:requester billing:tag billing:setting billing:plan billing:pack billing:price billing:quota billing:subscription billing:subscription-period billing:grant-period billing:plan-change billing:cancel billing:checkout billing:portal billing:top-up billing:audit-row billing:statement billing:webhook billing:discount billing:dispute billing:outbox-row billing:pre-signup-cost ) .
672
+
673
+ billing:plan-version a owl:Class ;
674
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( billing:plan [ a owl:Restriction ; owl:onProperty billing:replaces-plan ; owl:someValuesFrom billing:plan ] ) ] ;
675
+ core:label "plan version"@en ;
676
+ core:definition "A plan that replaces an earlier plan for new subscriptions. It has a new plan id."@en ;
677
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
678
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
679
+ core:owner core:billing .
680
+
681
+ billing:discount a owl:Class ;
682
+ rdfs:subClassOf core:entity ;
683
+ core:label "discount"@en ;
684
+ core:definition "A lower price or more credits, with a discount kind, a value, a setting scope, a start, an optional end, an optional code, an optional duration in months and an optional limit of redemptions. A discount of scope `global` has kind `subscription` or `pack` and no workspace. A discount of scope `workspace` has one workspace. A discount with a code applies only to a checkout that names the code. Its id is unique."@en ;
685
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Discounts" , "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
686
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
687
+ core:owner core:billing ;
688
+ core:has-contract true .
689
+
690
+ billing:discount-redemption a owl:Class ;
691
+ rdfs:subClassOf core:entity ;
692
+ core:label "discount redemption"@en ;
693
+ core:definition "One workspace that entered a discount: the discount, the workspace and, when the workspace started a subscription, the subscription. A workspace enters a discount one time."@en ;
694
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
695
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
696
+ core:owner core:billing .
697
+
698
+ billing:dispute a owl:Class ;
699
+ rdfs:subClassOf core:entity ;
700
+ core:label "dispute"@en ;
701
+ core:definition "A claim of the bank of the buyer against one payment"@en ;
702
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
703
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
704
+ core:owner core:billing .
705
+
706
+ billing:pre-signup-cost a owl:Class ;
707
+ rdfs:subClassOf core:entity ;
708
+ core:label "pre-signup cost"@en ;
709
+ core:definition "The cost of one paid call that a person made before sign-up, on the account of the organization of the platform. `billing` keeps it with the id of the onboarding session, the step, the provider and the amount in micro-USD. At the complete step, it links the cost to the new workspace. It never charges the balance of the workspace."@en ;
710
+ core:hint "A pre-signup cost is what a paid call cost before the person signed up."@en ;
711
+ core:source "docs/decisions/0032-welcome-sign-up.md#Paid work before sign-in" ;
712
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
713
+ core:owner core:billing ;
714
+ core:has-contract true ;
715
+ core:retention "P7Y" ;
716
+ core:retention-clock core-vocab:retention-clock-since-created ;
717
+ core:controller-role core-vocab:controller-role-controller .
718
+
719
+ billing:of-cost-source a owl:ObjectProperty , owl:FunctionalProperty ;
720
+ rdfs:domain billing:pre-signup-cost ;
721
+ rdfs:range core:concept ;
722
+ core:label "of cost source"@en ;
723
+ core:definition "The source of a pre-signup cost, from the scheme of cost sources. A pre-signup cost always has the source `pre-signup`."@en ;
724
+ core:source "docs/decisions/0032-welcome-sign-up.md#Paid work before sign-in" ;
725
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
726
+ core:owner core:billing .
727
+
728
+ billing:of-onboarding-session-id a owl:DatatypeProperty , owl:FunctionalProperty ;
729
+ rdfs:domain billing:pre-signup-cost ;
730
+ rdfs:range xsd:string ;
731
+ core:label "of onboarding session id"@en ;
732
+ core:definition "The id of the onboarding session of `desk` of a pre-signup cost. The id groups the costs of one visit of the external welcome front end."@en ;
733
+ core:source "docs/decisions/0032-welcome-sign-up.md#Paid work before sign-in" ;
734
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
735
+ core:owner core:billing ;
736
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
737
+
738
+ billing:has-onboarding-step a owl:DatatypeProperty , owl:FunctionalProperty ;
739
+ rdfs:domain billing:pre-signup-cost ;
740
+ rdfs:range xsd:string ;
741
+ core:label "has onboarding step"@en ;
742
+ core:definition "The step of the onboarding session that made the paid call: `company`, `icp`, `count` or `preview`."@en ;
743
+ core:source "docs/decisions/0032-welcome-sign-up.md#Paid work before sign-in" ;
744
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
745
+ core:owner core:billing ;
746
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
747
+
748
+ billing:has-provider a owl:DatatypeProperty , owl:FunctionalProperty ;
749
+ rdfs:domain billing:pre-signup-cost ;
750
+ rdfs:range xsd:string ;
751
+ core:label "has provider"@en ;
752
+ core:definition "The provider of the paid call of a pre-signup cost, for example `apollo` or `treg`, as an opaque name from the adapter of the spender."@en ;
753
+ core:source "docs/decisions/0032-welcome-sign-up.md#Paid work before sign-in" ;
754
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
755
+ core:owner core:billing ;
756
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
757
+
758
+ # Properties
759
+
760
+ billing:has-credits a owl:DatatypeProperty ;
761
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:balance billing:hold billing:pack billing:price billing:trial-grant-amount billing:support-grant-maximum ) ] ;
762
+ rdfs:range xsd:long ;
763
+ core:label "credits"@en ;
764
+ core:definition "An amount in micro-USD in a balance, that a workspace can spend on paid work of a spender"@en ;
765
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
766
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
767
+ core:owner core:billing ;
768
+ core:unit core-vocab:unit-micro-usd ;
769
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
770
+
771
+ billing:has-plan-credits a owl:DatatypeProperty , owl:FunctionalProperty ;
772
+ rdfs:subPropertyOf billing:has-credits ;
773
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:balance billing:hold ) ] ;
774
+ rdfs:range xsd:long ;
775
+ core:label "plan credits"@en ;
776
+ core:definition "The credits of the part `plan`. A hold has the credits that it took from each part."@en ;
777
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
778
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
779
+ core:owner core:billing ;
780
+ core:unit core-vocab:unit-micro-usd ;
781
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
782
+
783
+ billing:has-bought-credits a owl:DatatypeProperty , owl:FunctionalProperty ;
784
+ rdfs:subPropertyOf billing:has-credits ;
785
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:balance billing:hold ) ] ;
786
+ rdfs:range xsd:long ;
787
+ core:label "bought credits"@en ;
788
+ core:definition "The credits of the part `bought`. A hold has the credits that it took from each part. The part `bought` can be below zero only after a refund."@en ;
789
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
790
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
791
+ core:owner core:billing ;
792
+ core:unit core-vocab:unit-micro-usd ;
793
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
794
+
795
+ billing:has-held-credits a owl:DatatypeProperty , owl:FunctionalProperty ;
796
+ rdfs:subPropertyOf billing:has-credits ;
797
+ rdfs:domain billing:balance ;
798
+ rdfs:range xsd:long ;
799
+ core:label "held credits"@en ;
800
+ core:definition "The sum of the amounts of the open holds of a balance"@en ;
801
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
802
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
803
+ core:owner core:billing ;
804
+ core:unit core-vocab:unit-micro-usd ;
805
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
806
+
807
+ billing:has-available-credits a owl:DatatypeProperty , owl:FunctionalProperty ;
808
+ rdfs:subPropertyOf billing:has-credits ;
809
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:balance billing:balance-recovered ) ] ;
810
+ rdfs:range xsd:long ;
811
+ core:label "available credits"@en ;
812
+ core:definition "The credits of the parts `plan` and `bought` of a balance. Held credits are not available."@en ;
813
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
814
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
815
+ core:owner core:billing ;
816
+ core:unit core-vocab:unit-micro-usd ;
817
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
818
+
819
+ billing:has-month-charges a owl:DatatypeProperty , owl:FunctionalProperty ;
820
+ rdfs:domain billing:balance ;
821
+ rdfs:range xsd:long ;
822
+ core:label "month charges"@en ;
823
+ core:definition "The sum of the charges of the settles of one workspace in the current calendar month in UTC"@en ;
824
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
825
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
826
+ core:owner core:billing ;
827
+ core:unit core-vocab:unit-micro-usd ;
828
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
829
+
830
+ billing:has-month a owl:DatatypeProperty , owl:FunctionalProperty ;
831
+ rdfs:domain billing:balance ;
832
+ rdfs:range xsd:string ;
833
+ core:label "balance month"@en ;
834
+ core:definition "The calendar month in UTC of the month charges of a balance. In a new month, the first write of a balance sets the month charges to 0. The same update sets the new balance month."@en ;
835
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
836
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
837
+ core:owner core:billing ;
838
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
839
+
840
+ billing:has-low-balance-notice a owl:DatatypeProperty , owl:FunctionalProperty ;
841
+ rdfs:domain billing:balance ;
842
+ rdfs:range xsd:boolean ;
843
+ core:label "low-balance notice"@en ;
844
+ core:definition "A mark on a balance row: `billing` sent `balance.low`, and the available credits did not go above the low-balance threshold after it"@en ;
845
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Contract" ;
846
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
847
+ core:owner core:billing ;
848
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
849
+
850
+ billing:has-limit-notice a owl:DatatypeProperty , owl:FunctionalProperty ;
851
+ rdfs:domain billing:balance ;
852
+ rdfs:range xsd:integer ;
853
+ core:label "limit notice"@en ;
854
+ core:definition "The highest percent of the monthly limit, 80 or 100, for which `billing` sent `limit.threshold` in the balance month. A new balance month sets it to 0."@en ;
855
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Contract" ;
856
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
857
+ core:owner core:billing ;
858
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
859
+
860
+ billing:has-expiry a owl:DatatypeProperty , owl:FunctionalProperty ;
861
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:hold billing:balance billing:credits-expiring ) ] ;
862
+ rdfs:range xsd:dateTime ;
863
+ core:label "expiry"@en ;
864
+ core:definition "The time at which a hold or the credits of the part `plan` of a balance stop. A hold has one expiry. A balance has one expiry, or none."@en ;
865
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
866
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
867
+ core:owner core:billing ;
868
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
869
+
870
+ billing:has-stripe-customer-id a owl:DatatypeProperty , owl:FunctionalProperty ;
871
+ rdfs:domain billing:balance ;
872
+ rdfs:range xsd:string ;
873
+ core:label "Stripe customer id"@en ;
874
+ core:definition "`billing` keeps one Stripe customer id for each workspace. Only `services/billing/src/stripe` calls Stripe."@en ;
875
+ core:source "docs/specs/billing/docs/internal/decisions/0014-payments.md#Decision" ;
876
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
877
+ core:owner core:billing ;
878
+ core:gdpr-category core-vocab:gdpr-category-personal ;
879
+ core:lawful-basis core-vocab:lawful-basis-contract ;
880
+ core:review-status core-vocab:review-status-draft .
881
+
882
+ billing:of-balance a owl:ObjectProperty , owl:FunctionalProperty ;
883
+ rdfs:domain billing:entry ;
884
+ rdfs:range billing:balance ;
885
+ core:label "of balance"@en ;
886
+ core:definition "The balance of an entry: the balance that the entry changes"@en ;
887
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
888
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
889
+ core:owner core:billing .
890
+
891
+ billing:has-entry-kind a owl:ObjectProperty , owl:FunctionalProperty ;
892
+ rdfs:domain billing:entry ;
893
+ rdfs:range core:concept ;
894
+ core:label "has entry kind"@en ;
895
+ core:definition "The entry kind of an entry: the cause of the entry"@en ;
896
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
897
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
898
+ core:owner core:billing .
899
+
900
+ billing:has-grant-kind a owl:ObjectProperty , owl:FunctionalProperty ;
901
+ rdfs:domain billing:grant-entry ;
902
+ rdfs:range core:concept ;
903
+ core:label "has grant kind"@en ;
904
+ core:definition "The grant kind of an entry of kind `grant`: the reason of the grant"@en ;
905
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
906
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
907
+ core:owner core:billing .
908
+
909
+ billing:to-part a owl:ObjectProperty , owl:FunctionalProperty ;
910
+ rdfs:domain billing:grant-entry ;
911
+ rdfs:range core:concept ;
912
+ core:label "to part"@en ;
913
+ core:definition "A grant adds credits to one part. A grant of kind `admin` names its part."@en ;
914
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
915
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
916
+ core:owner core:billing .
917
+
918
+ billing:of-hold a owl:ObjectProperty , owl:FunctionalProperty ;
919
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:hold-entry billing:settle-entry billing:release-entry ) ] ;
920
+ rdfs:range billing:hold ;
921
+ core:label "of hold"@en ;
922
+ core:definition "The hold that an entry of kind `hold`, `settle` or `release` changes"@en ;
923
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
924
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
925
+ core:owner core:billing .
926
+
927
+ billing:has-idempotency-key a owl:DatatypeProperty , owl:FunctionalProperty ;
928
+ rdfs:domain billing:entry ;
929
+ rdfs:range xsd:string ;
930
+ core:label "idempotency key"@en ;
931
+ core:definition "Each write has a unique idempotency key. A retry with the same key returns the first result. A retry with the same key and a different body gets `idempotency_conflict`."@en ;
932
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
933
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
934
+ core:owner core:billing ;
935
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
936
+
937
+ billing:has-plan-credits-change a owl:DatatypeProperty , owl:FunctionalProperty ;
938
+ rdfs:domain billing:entry ;
939
+ rdfs:range xsd:long ;
940
+ core:label "plan credits change"@en ;
941
+ core:definition "The change of the part `plan` that an entry makes. Each entry has the change of each part, of the held credits and of the month charges."@en ;
942
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
943
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
944
+ core:owner core:billing ;
945
+ core:unit core-vocab:unit-micro-usd ;
946
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
947
+
948
+ billing:has-bought-credits-change a owl:DatatypeProperty , owl:FunctionalProperty ;
949
+ rdfs:domain billing:entry ;
950
+ rdfs:range xsd:long ;
951
+ core:label "bought credits change"@en ;
952
+ core:definition "The change of the part `bought` that an entry makes. Each entry has the change of each part, of the held credits and of the month charges."@en ;
953
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
954
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
955
+ core:owner core:billing ;
956
+ core:unit core-vocab:unit-micro-usd ;
957
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
958
+
959
+ billing:has-held-credits-change a owl:DatatypeProperty , owl:FunctionalProperty ;
960
+ rdfs:domain billing:entry ;
961
+ rdfs:range xsd:long ;
962
+ core:label "held credits change"@en ;
963
+ core:definition "The change of the held credits that an entry makes. Each entry has the change of each part, of the held credits and of the month charges."@en ;
964
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
965
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
966
+ core:owner core:billing ;
967
+ core:unit core-vocab:unit-micro-usd ;
968
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
969
+
970
+ billing:has-month-charges-change a owl:DatatypeProperty , owl:FunctionalProperty ;
971
+ rdfs:domain billing:entry ;
972
+ rdfs:range xsd:long ;
973
+ core:label "month charges change"@en ;
974
+ core:definition "The change of the month charges that an entry makes. Each entry has the change of each part, of the held credits and of the month charges."@en ;
975
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
976
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
977
+ core:owner core:billing ;
978
+ core:unit core-vocab:unit-micro-usd ;
979
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
980
+
981
+ billing:has-stripe-invoice-id a owl:DatatypeProperty , owl:FunctionalProperty ;
982
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:top-up-entry billing:refund-entry billing:grant-entry ) ] ;
983
+ rdfs:range xsd:string ;
984
+ core:label "Stripe invoice id"@en ;
985
+ core:definition "Each entry `top-up`, `refund` and each grant of kind `plan` keeps the Stripe invoice id."@en ;
986
+ core:source "docs/specs/billing/docs/internal/decisions/0014-payments.md#Decision" ;
987
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
988
+ core:owner core:billing ;
989
+ core:gdpr-category core-vocab:gdpr-category-personal ;
990
+ core:lawful-basis core-vocab:lawful-basis-legal-obligation ;
991
+ core:review-status core-vocab:review-status-draft .
992
+
993
+ billing:of-spender a owl:ObjectProperty , owl:FunctionalProperty ;
994
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:hold billing:quote billing:rate billing:work billing:discount ) ] ;
995
+ rdfs:range core:service ;
996
+ core:label "of spender"@en ;
997
+ core:definition "The spender: a service of QuickPipe that does paid work for a workspace and pays for it with credits through holds. The spender has the role `spender`."@en ;
998
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
999
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1000
+ core:owner core:billing .
1001
+
1002
+ billing:has-cost a owl:DatatypeProperty , owl:FunctionalProperty ;
1003
+ rdfs:domain [ a owl:Class ; owl:unionOf ( core:entity core:activity ) ] ;
1004
+ rdfs:range xsd:long ;
1005
+ core:label "has cost"@en ;
1006
+ core:definition "The cost of the record in micro-USD: what the paid work of the record cost QuickPipe, for example one attempt, one call, one spend entry, one unit of a unit cost or the sum that a spender settles on a hold."@en ;
1007
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1008
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1009
+ core:owner core:billing ;
1010
+ core:unit core-vocab:unit-micro-usd ;
1011
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1012
+
1013
+ billing:has-cost-per-million-units a owl:DatatypeProperty , owl:FunctionalProperty ;
1014
+ rdfs:domain billing:unit-cost ;
1015
+ rdfs:range xsd:long ;
1016
+ core:label "has cost per million units"@en ;
1017
+ core:definition "The scale of a unit cost: an integer number of micro-USD for one million cost units. The cost of a call is its units times this value divided by 1,000,000, rounded up to the next integer micro-USD."@en ;
1018
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1019
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1020
+ core:owner core:billing ;
1021
+ core:unit core-vocab:unit-micro-usd-per-million-units ;
1022
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1023
+
1024
+ billing:has-absorbed-cost a owl:DatatypeProperty , owl:FunctionalProperty ;
1025
+ rdfs:domain billing:hold ;
1026
+ rdfs:range xsd:long ;
1027
+ core:label "absorbed cost"@en ;
1028
+ core:definition "The cost that QuickPipe pays and no workspace pays. It is the cost of a settle after its hold closed, and the cost of a settle above the amount of its hold. It is also the cost of an absorbed hold, as [0031](0031-absorbed-holds.md) tells."@en ;
1029
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Metrics" ;
1030
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1031
+ core:owner core:billing ;
1032
+ core:unit core-vocab:unit-micro-usd ;
1033
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1034
+
1035
+ billing:of-source a owl:ObjectProperty , owl:FunctionalProperty ;
1036
+ rdfs:domain billing:unit-cost ;
1037
+ rdfs:range billing:source ;
1038
+ core:label "of paid work source"@en ;
1039
+ core:definition "The source of a unit cost: the source of the paid work that the unit cost counts"@en ;
1040
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1041
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1042
+ core:owner core:billing .
1043
+
1044
+ billing:has-cost-unit a owl:ObjectProperty , owl:FunctionalProperty ;
1045
+ rdfs:domain billing:unit-cost ;
1046
+ rdfs:range core:concept ;
1047
+ core:label "has cost unit"@en ;
1048
+ core:definition "The cost unit of a unit cost: the unit that the unit cost counts"@en ;
1049
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1050
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1051
+ core:owner core:billing .
1052
+
1053
+ billing:has-processing-region a owl:ObjectProperty , owl:FunctionalProperty ;
1054
+ rdfs:domain billing:source ;
1055
+ rdfs:range core:concept ;
1056
+ core:label "has processing region"@en ;
1057
+ core:definition "The region where the source of paid work processes the data: `eu` or `outside-eu`. Each processing source has it as data."@en ;
1058
+ core:source "docs/decisions/0004-privacy.md#Transfers outside the EU (Q42)" ;
1059
+ core:decided-in "docs/decisions/0004-privacy.md" ;
1060
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1061
+ core:owner core:billing .
1062
+
1063
+ billing:has-transfer-safeguard a owl:ObjectProperty , owl:FunctionalProperty ;
1064
+ rdfs:domain billing:source ;
1065
+ rdfs:range core:concept ;
1066
+ core:label "has transfer safeguard"@en ;
1067
+ core:definition "The safeguard of a transfer outside the EU: `scc`, `dpf`, `adequacy` or `none`. Each processing source has it as data. Until the decision owner gives it, each value is `none`."@en ;
1068
+ core:source "docs/decisions/0004-privacy.md#Transfers outside the EU (Q42)" ;
1069
+ core:decided-in "docs/decisions/0004-privacy.md" ;
1070
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1071
+ core:owner core:billing .
1072
+
1073
+ billing:has-rate a owl:DatatypeProperty , owl:FunctionalProperty ;
1074
+ rdfs:domain billing:rate ;
1075
+ rdfs:range xsd:long ;
1076
+ core:label "has rate"@en ;
1077
+ core:definition "The value of a rate: the percentage that `billing` adds to a cost for one spender, as an integer in basis points"@en ;
1078
+ core:source "docs/specs/billing/docs/internal/decisions/0005-rates-and-charges.md#Decision" ;
1079
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1080
+ core:owner core:billing ;
1081
+ core:unit core-vocab:unit-basis-point ;
1082
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1083
+
1084
+ billing:with-rate a owl:ObjectProperty , owl:FunctionalProperty ;
1085
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:hold billing:charge ) ] ;
1086
+ rdfs:range billing:rate ;
1087
+ core:label "with rate"@en ;
1088
+ core:definition "A hold freezes the rate and its rate id. The settle of the hold uses the frozen rate. A later change of a rate does not change an open hold or an old charge."@en ;
1089
+ core:source "docs/specs/billing/docs/internal/decisions/0005-rates-and-charges.md#Decision" ;
1090
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1091
+ core:owner core:billing .
1092
+
1093
+ billing:has-charge-amount a owl:DatatypeProperty , owl:FunctionalProperty ;
1094
+ rdfs:domain billing:charge ;
1095
+ rdfs:range xsd:long ;
1096
+ core:label "charge amount"@en ;
1097
+ core:definition "The amount of a charge: the cost and the rate of the cost, rounded up to the next micro-USD"@en ;
1098
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1099
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1100
+ core:owner core:billing ;
1101
+ core:unit core-vocab:unit-micro-usd ;
1102
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1103
+
1104
+ billing:has-charge a owl:ObjectProperty , owl:FunctionalProperty ;
1105
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:hold billing:quote ) ] ;
1106
+ rdfs:range billing:charge ;
1107
+ core:label "has charge"@en ;
1108
+ core:definition "The charge of a quote, or the charge of the settle of a hold. When the charge of a settle is more than the amount of the hold, `billing` charges the amount of the hold."@en ;
1109
+ core:source "docs/specs/billing/docs/internal/decisions/0006-holds.md#Inside a hold" ;
1110
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1111
+ core:owner core:billing .
1112
+
1113
+ billing:has-hold-kind a owl:ObjectProperty , owl:FunctionalProperty ;
1114
+ rdfs:domain billing:hold ;
1115
+ rdfs:range core:concept ;
1116
+ core:label "has hold kind"@en ;
1117
+ core:definition "The hold kind of a hold: what the hold pays for"@en ;
1118
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1119
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1120
+ core:owner core:billing .
1121
+
1122
+ billing:has-charge-origin a owl:ObjectProperty , owl:FunctionalProperty ;
1123
+ rdfs:domain [ a owl:Class ; owl:unionOf ( core:entity core:activity ) ] ;
1124
+ rdfs:range core:concept ;
1125
+ core:label "has charge origin"@en ;
1126
+ core:definition "The charge origin of a hold, or of the paid work that a spender asks a hold for: the reason for the paid work of the spender"@en ;
1127
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1128
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1129
+ core:owner core:billing .
1130
+
1131
+ billing:has-tag a owl:ObjectProperty ;
1132
+ rdfs:domain [ a owl:Class ; owl:unionOf ( core:entity core:activity ) ] ;
1133
+ rdfs:range billing:tag ;
1134
+ core:label "has tag"@en ;
1135
+ core:definition "A tag of a record: a key and a value that a spender puts on it. A hold carries at most 5 tags."@en ;
1136
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1137
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1138
+ core:owner core:billing .
1139
+
1140
+ billing:has-amount a owl:DatatypeProperty , owl:FunctionalProperty ;
1141
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:hold billing:standing-hold-size billing:dispute-opened ) ] ;
1142
+ rdfs:range xsd:long ;
1143
+ core:label "hold amount"@en ;
1144
+ core:definition "`billing` freezes the rate and computes the amount: the charge of the maximum cost. A hold with a maximum charge has that amount. A standing hold has the standing hold size as its amount."@en ;
1145
+ core:source "docs/specs/billing/docs/internal/decisions/0006-holds.md#Open a hold" ;
1146
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1147
+ core:owner core:billing ;
1148
+ core:unit core-vocab:unit-micro-usd ;
1149
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1150
+
1151
+ billing:has-maximum-cost a owl:DatatypeProperty , owl:FunctionalProperty ;
1152
+ rdfs:domain billing:hold ;
1153
+ rdfs:range xsd:long ;
1154
+ core:label "maximum cost"@en ;
1155
+ core:definition "When a spender asks for a hold, it also gives a maximum cost, or a maximum charge as [0006](0006-holds.md) tells."@en ;
1156
+ core:source "docs/specs/billing/docs/internal/decisions/0005-rates-and-charges.md#Decision" ;
1157
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1158
+ core:owner core:billing ;
1159
+ core:unit core-vocab:unit-micro-usd ;
1160
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1161
+
1162
+ billing:has-minimum-cost a owl:DatatypeProperty , owl:FunctionalProperty ;
1163
+ rdfs:domain billing:hold ;
1164
+ rdfs:range xsd:long ;
1165
+ core:label "minimum cost"@en ;
1166
+ core:definition "A spender can give a minimum cost. Then `billing` lowers the amount to the available credits and to the rest of the monthly limit. The amount never goes below the charge of the minimum cost."@en ;
1167
+ core:source "docs/specs/billing/docs/internal/decisions/0006-holds.md#Open a hold" ;
1168
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1169
+ core:owner core:billing ;
1170
+ core:unit core-vocab:unit-micro-usd ;
1171
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1172
+
1173
+ billing:for-run a owl:ObjectProperty , owl:FunctionalProperty ;
1174
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:run-hold billing:token-requester ) ] ;
1175
+ rdfs:range core:run ;
1176
+ core:label "for run of a spender"@en ;
1177
+ core:definition "A hold of kind `run` has the id of the run of its spender. A requester of kind `token` records the `kaiRunId` of a start token."@en ;
1178
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1179
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1180
+ core:owner core:billing .
1181
+
1182
+ billing:has-requester a owl:ObjectProperty , owl:FunctionalProperty ;
1183
+ rdfs:domain billing:hold ;
1184
+ rdfs:range billing:requester ;
1185
+ core:label "has requester"@en ;
1186
+ core:definition "A hold of kind `call` or `standing` records one requester, with one requester kind."@en ;
1187
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1188
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1189
+ core:owner core:billing .
1190
+
1191
+ billing:has-requester-kind a owl:ObjectProperty , owl:FunctionalProperty ;
1192
+ rdfs:domain billing:requester ;
1193
+ rdfs:range core:concept ;
1194
+ core:label "has requester kind"@en ;
1195
+ core:definition "The requester kind of a requester: the form of the requester of a hold"@en ;
1196
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1197
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1198
+ core:owner core:billing .
1199
+
1200
+ billing:of-key a owl:ObjectProperty , owl:FunctionalProperty ;
1201
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:key-requester billing:audit-row ) ] ;
1202
+ rdfs:range core:key ;
1203
+ core:label "of key"@en ;
1204
+ core:definition "The key of a requester of kind `key`: the key id of the caller of the spender. The key of an audit row of the audit actor `service`: the access token of the machine client."@en ;
1205
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1206
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1207
+ core:owner core:billing .
1208
+
1209
+ billing:from-service a owl:ObjectProperty , owl:FunctionalProperty ;
1210
+ rdfs:domain billing:webhook-requester ;
1211
+ rdfs:range core:service ;
1212
+ core:label "from service"@en ;
1213
+ core:definition "The service that sent the webhook of a requester of kind `webhook`"@en ;
1214
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1215
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1216
+ core:owner core:billing .
1217
+
1218
+ billing:has-webhook-topic a owl:ObjectProperty , owl:FunctionalProperty ;
1219
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:webhook-requester billing:webhook ) ] ;
1220
+ rdfs:range core:concept ;
1221
+ core:label "has webhook topic"@en ;
1222
+ core:definition "The webhook topic of a requester of kind `webhook`, for example `visit.business`, or the webhook topic of a webhook of `billing`, for example `balance.low`"@en ;
1223
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" , "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Contract" ;
1224
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1225
+ core:owner core:billing .
1226
+
1227
+ billing:has-tag-key a owl:DatatypeProperty , owl:FunctionalProperty ;
1228
+ rdfs:domain billing:tag ;
1229
+ rdfs:range xsd:string ;
1230
+ core:label "tag key"@en ;
1231
+ core:definition "The key of a tag. A tag is a key and a value."@en ;
1232
+ core:source "docs/decisions/0003-modelling-patterns.md#Tags (Q6)" ;
1233
+ core:decided-in "docs/decisions/0003-modelling-patterns.md" ;
1234
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1235
+ core:owner core:billing ;
1236
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1237
+
1238
+ billing:has-tag-value a owl:DatatypeProperty , owl:FunctionalProperty ;
1239
+ rdfs:domain billing:tag ;
1240
+ rdfs:range xsd:string ;
1241
+ core:label "tag value"@en ;
1242
+ core:definition "The value of a tag. A tag is a key and a value."@en ;
1243
+ core:source "docs/decisions/0003-modelling-patterns.md#Tags (Q6)" ;
1244
+ core:decided-in "docs/decisions/0003-modelling-patterns.md" ;
1245
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1246
+ core:owner core:billing ;
1247
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1248
+
1249
+ billing:has-setting-name a owl:ObjectProperty , owl:FunctionalProperty ;
1250
+ rdfs:domain billing:setting ;
1251
+ rdfs:range core:concept ;
1252
+ core:label "has setting name"@en ;
1253
+ core:definition "The setting name of a setting: the name of its named value"@en ;
1254
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
1255
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1256
+ core:owner core:billing .
1257
+
1258
+ billing:has-setting-scope a owl:ObjectProperty , owl:FunctionalProperty ;
1259
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:setting billing:discount ) ] ;
1260
+ rdfs:range core:concept ;
1261
+ core:label "has setting scope"@en ;
1262
+ core:definition "The level of a setting or of a discount: `workspace`, `plan` or `global`. A setting uses the most specific scope. A discount uses one scope: `global` or `workspace`."@en ;
1263
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
1264
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1265
+ core:owner core:billing .
1266
+
1267
+ billing:for-plan a owl:ObjectProperty , owl:FunctionalProperty ;
1268
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:setting billing:subscription ) ] ;
1269
+ rdfs:range billing:plan ;
1270
+ core:label "for plan"@en ;
1271
+ core:definition "The plan of a setting of scope `plan`, or the plan of a subscription"@en ;
1272
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
1273
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1274
+ core:owner core:billing .
1275
+
1276
+ billing:has-quota a owl:ObjectProperty ;
1277
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:plan billing:default-quotas ) ] ;
1278
+ rdfs:range billing:quota ;
1279
+ core:label "has quota"@en ;
1280
+ core:definition "A quota that a plan states or that the default quotas of a workspace with no plan give."@en ;
1281
+ core:source "docs/specs/billing/docs/internal/decisions/0017-lead-scoring-quotas.md#Decision" , "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
1282
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1283
+ core:owner core:billing .
1284
+
1285
+ billing:in-quota-list a owl:ObjectProperty , owl:FunctionalProperty ;
1286
+ rdfs:domain billing:quota ;
1287
+ rdfs:range billing:quota-list ;
1288
+ core:label "in quota list"@en ;
1289
+ core:definition "The quota list that holds a quota."@en ;
1290
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" , "docs/specs/lead-scoring/docs/internal/decisions/0102-quotas-from-billing.md#Decision" ;
1291
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1292
+ core:owner core:billing .
1293
+
1294
+ billing:has-metric a owl:DatatypeProperty , owl:FunctionalProperty ;
1295
+ rdfs:domain billing:quota ;
1296
+ rdfs:range xsd:string ;
1297
+ core:label "has quota metric"@en ;
1298
+ core:definition "The open metric id of a quota, for example `lead-scoring.events-per-month`."@en ;
1299
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
1300
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1301
+ core:owner core:billing ;
1302
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1303
+
1304
+ billing:has-quota-limit a owl:DatatypeProperty , owl:FunctionalProperty ;
1305
+ rdfs:domain billing:quota ;
1306
+ rdfs:range xsd:long ;
1307
+ core:label "has quota limit"@en ;
1308
+ core:definition "The largest value that a quota allows for its metric."@en ;
1309
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
1310
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1311
+ core:owner core:billing ;
1312
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1313
+
1314
+ billing:has-channel-name a owl:DatatypeProperty , owl:FunctionalProperty ;
1315
+ rdfs:domain billing:outbox-row ;
1316
+ rdfs:range xsd:string ;
1317
+ core:label "has channel name"@en ;
1318
+ core:definition "The name of the channel through which the outbox row goes, for example `webhooks-billing` or `quotas-sync`. The configuration of the worker maps each channel name to a service URL and an authentication method."@en ;
1319
+ core:source "docs/specs/billing/docs/internal/decisions/0034-quota-sync.md#Decision" ;
1320
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1321
+ core:owner core:billing ;
1322
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1323
+
1324
+ billing:has-limit a owl:DatatypeProperty , owl:FunctionalProperty ;
1325
+ rdfs:domain billing:monthly-limit ;
1326
+ rdfs:range xsd:long ;
1327
+ core:label "limit"@en ;
1328
+ core:definition "The monthly limit counts the month charges and the held credits, in the calendar month in UTC."@en ;
1329
+ core:source "docs/specs/billing/docs/internal/decisions/0007-monthly-limit.md#Decision" ;
1330
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1331
+ core:owner core:billing ;
1332
+ core:unit core-vocab:unit-micro-usd ;
1333
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1334
+
1335
+ billing:has-threshold a owl:DatatypeProperty , owl:FunctionalProperty ;
1336
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:low-balance-threshold billing:automatic-top-up ) ] ;
1337
+ rdfs:range xsd:long ;
1338
+ core:label "has credit threshold"@en ;
1339
+ core:definition "The available credits below which `billing` sends `balance.low`, or starts a top-up of method `automatic`"@en ;
1340
+ core:source "docs/specs/billing/docs/internal/decisions/0015-automatic-top-up.md#Decision" ;
1341
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1342
+ core:owner core:billing ;
1343
+ core:unit core-vocab:unit-micro-usd ;
1344
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1345
+
1346
+ billing:has-monthly-maximum a owl:DatatypeProperty , owl:FunctionalProperty ;
1347
+ rdfs:domain billing:automatic-top-up ;
1348
+ rdfs:range xsd:long ;
1349
+ core:label "monthly maximum"@en ;
1350
+ core:definition "The setting must have a monthly maximum. It is the maximum of the credits of the automatic top-ups of a workspace in one calendar month in UTC."@en ;
1351
+ core:source "docs/specs/billing/docs/internal/decisions/0015-automatic-top-up.md#Decision" ;
1352
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1353
+ core:owner core:billing ;
1354
+ core:unit core-vocab:unit-micro-usd ;
1355
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1356
+
1357
+ billing:is-on a owl:DatatypeProperty , owl:FunctionalProperty ;
1358
+ rdfs:domain billing:automatic-top-up ;
1359
+ rdfs:range xsd:boolean ;
1360
+ core:label "is on"@en ;
1361
+ core:definition "When the top-up fails, `billing` turns the automatic top-up off and sends `top-up.failed`."@en ;
1362
+ core:source "docs/specs/billing/docs/internal/decisions/0015-automatic-top-up.md#Decision" ;
1363
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1364
+ core:owner core:billing ;
1365
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1366
+
1367
+ billing:is-absorbed a owl:DatatypeProperty , owl:FunctionalProperty ;
1368
+ rdfs:domain billing:hold ;
1369
+ rdfs:range xsd:boolean ;
1370
+ core:label "is absorbed"@en ;
1371
+ core:definition "A hold can have the mark absorbed. Only the spender `leads` can ask for it, and only for a sample of `leads` record 0025."@en ;
1372
+ core:source "docs/specs/billing/docs/internal/decisions/0031-absorbed-holds.md#Decision" ;
1373
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1374
+ core:owner core:billing ;
1375
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1376
+
1377
+ billing:has-days a owl:DatatypeProperty , owl:FunctionalProperty ;
1378
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:retry-days billing:expiry-notice-days ) ] ;
1379
+ rdfs:range xsd:integer ;
1380
+ core:label "days"@en ;
1381
+ core:definition "A number of days: the retry days, or the expiry notice days"@en ;
1382
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
1383
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1384
+ core:owner core:billing ;
1385
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1386
+
1387
+ billing:has-duration a owl:DatatypeProperty , owl:FunctionalProperty ;
1388
+ rdfs:domain billing:trial-duration ;
1389
+ rdfs:range xsd:string ;
1390
+ core:label "duration"@en ;
1391
+ core:definition "The value of a trial duration, as an ISO 8601 duration"@en ;
1392
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
1393
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1394
+ core:owner core:billing ;
1395
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1396
+
1397
+ billing:of-pack a owl:ObjectProperty , owl:FunctionalProperty ;
1398
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:top-up billing:automatic-top-up ) ] ;
1399
+ rdfs:range billing:pack ;
1400
+ core:label "of pack"@en ;
1401
+ core:definition "The pack of a top-up, or the pack of an automatic top-up"@en ;
1402
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1403
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1404
+ core:owner core:billing .
1405
+
1406
+ billing:has-plan-interval a owl:ObjectProperty , owl:FunctionalProperty ;
1407
+ rdfs:domain billing:plan ;
1408
+ rdfs:range core:concept ;
1409
+ core:label "has plan interval"@en ;
1410
+ core:definition "The plan interval of a plan: the length of its subscription period, `month` or `year`"@en ;
1411
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1412
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1413
+ core:owner core:billing .
1414
+
1415
+ billing:grants-each-month a owl:DatatypeProperty , owl:FunctionalProperty ;
1416
+ rdfs:domain billing:plan ;
1417
+ rdfs:range xsd:long ;
1418
+ core:label "grants each month"@en ;
1419
+ core:definition "A plan has a plan interval, the credits of the grant for each month and a price for each currency."@en ;
1420
+ core:source "docs/specs/billing/docs/internal/decisions/0012-plans-and-subscriptions.md#Decision" ;
1421
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1422
+ core:owner core:billing ;
1423
+ core:unit core-vocab:unit-micro-usd ;
1424
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1425
+
1426
+ billing:has-price a owl:ObjectProperty ;
1427
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:plan billing:pack ) ] ;
1428
+ rdfs:range billing:price ;
1429
+ core:label "has price"@en ;
1430
+ core:definition "One price for each currency of a plan or a pack"@en ;
1431
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1432
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1433
+ core:owner core:billing .
1434
+
1435
+ billing:in-currency a owl:ObjectProperty , owl:FunctionalProperty ;
1436
+ rdfs:domain billing:price ;
1437
+ rdfs:range core:concept ;
1438
+ core:label "in currency"@en ;
1439
+ core:definition "The currency of a price, as an ISO 4217 code."@en ;
1440
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" , "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
1441
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1442
+ core:owner core:billing .
1443
+
1444
+ billing:has-price-amount a owl:DatatypeProperty , owl:FunctionalProperty ;
1445
+ rdfs:domain billing:price ;
1446
+ rdfs:range xsd:long ;
1447
+ core:label "has price amount"@en ;
1448
+ core:definition "The amount of a price in micro-USD. The HTTP price keeps the minor unit of its currency."@en ;
1449
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" , "docs/specs/billing/docs/internal/decisions/0036-launch-offers.md#Decision" ;
1450
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1451
+ core:owner core:billing ;
1452
+ core:unit core-vocab:unit-micro-usd ;
1453
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1454
+
1455
+ billing:has-stripe-price-id a owl:DatatypeProperty , owl:FunctionalProperty ;
1456
+ rdfs:domain billing:price ;
1457
+ rdfs:range xsd:string ;
1458
+ core:label "has Stripe price id"@en ;
1459
+ core:definition "The id of the Stripe price object of a price of a plan. The receiver `POST /webhooks/stripe` matches a plan event on it."@en ;
1460
+ core:source "docs/specs/billing/docs/internal/decisions/0014-payments.md#Decision" ;
1461
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1462
+ core:owner core:billing ;
1463
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1464
+
1465
+ billing:has-stripe-subscription-id a owl:DatatypeProperty , owl:FunctionalProperty ;
1466
+ rdfs:domain billing:subscription ;
1467
+ rdfs:range xsd:string ;
1468
+ core:label "Stripe subscription id"@en ;
1469
+ core:definition "The Stripe subscription id of a subscription: the id of the one Stripe subscription that links the workspace to the plan"@en ;
1470
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1471
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1472
+ core:owner core:billing ;
1473
+ core:gdpr-category core-vocab:gdpr-category-personal ;
1474
+ core:lawful-basis core-vocab:lawful-basis-contract ;
1475
+ core:review-status core-vocab:review-status-draft .
1476
+
1477
+ billing:of-subscription a owl:ObjectProperty , owl:FunctionalProperty ;
1478
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:subscription-period billing:grant-period billing:plan-change billing:cancel billing:plan-changed ) ] ;
1479
+ rdfs:range billing:subscription ;
1480
+ core:label "of subscription"@en ;
1481
+ core:definition "The subscription of a period, a plan change, a cancel or a `plan.changed`"@en ;
1482
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1483
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1484
+ core:owner core:billing .
1485
+
1486
+ billing:from-plan a owl:ObjectProperty , owl:FunctionalProperty ;
1487
+ rdfs:domain billing:plan-change ;
1488
+ rdfs:range billing:plan ;
1489
+ core:label "from plan"@en ;
1490
+ core:definition "The plan before a change from one plan to a different plan"@en ;
1491
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1492
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1493
+ core:owner core:billing .
1494
+
1495
+ billing:to-plan a owl:ObjectProperty , owl:FunctionalProperty ;
1496
+ rdfs:domain billing:plan-change ;
1497
+ rdfs:range billing:plan ;
1498
+ core:label "to plan"@en ;
1499
+ core:definition "The plan after a change from one plan to a different plan"@en ;
1500
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1501
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1502
+ core:owner core:billing .
1503
+
1504
+ billing:has-plan-change-kind a owl:ObjectProperty , owl:FunctionalProperty ;
1505
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:plan-change billing:plan-changed ) ] ;
1506
+ rdfs:range core:concept ;
1507
+ core:label "has plan change kind"@en ;
1508
+ core:definition "The plan change kind of a plan change or of a `plan.changed`: `upgrade` or `downgrade`"@en ;
1509
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1510
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1511
+ core:owner core:billing .
1512
+
1513
+ billing:has-subscription-change a owl:ObjectProperty , owl:FunctionalProperty ;
1514
+ rdfs:domain billing:plan-changed ;
1515
+ rdfs:range core:concept ;
1516
+ core:label "has subscription change"@en ;
1517
+ core:definition "The subscription change of a `plan.changed`: the event that the webhook tells"@en ;
1518
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1519
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1520
+ core:owner core:billing .
1521
+
1522
+ billing:has-top-up-method a owl:ObjectProperty , owl:FunctionalProperty ;
1523
+ rdfs:domain billing:top-up ;
1524
+ rdfs:range core:concept ;
1525
+ core:label "has top-up method"@en ;
1526
+ core:definition "The top-up method of a top-up: how the top-up starts"@en ;
1527
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1528
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1529
+ core:owner core:billing .
1530
+
1531
+ billing:has-stripe-payment-id a owl:DatatypeProperty , owl:FunctionalProperty ;
1532
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:top-up billing:dispute-opened ) ] ;
1533
+ rdfs:range xsd:string ;
1534
+ core:label "Stripe payment id"@en ;
1535
+ core:definition "The Stripe payment id of a top-up: the id of the payment that Stripe reports as paid. It is unique, so each paid pack writes one entry `top-up` to the part `bought`."@en ;
1536
+ core:source "docs/specs/billing/docs/internal/decisions/0014-payments.md#Decision" ;
1537
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1538
+ core:owner core:billing ;
1539
+ core:gdpr-category core-vocab:gdpr-category-personal ;
1540
+ core:lawful-basis core-vocab:lawful-basis-contract ;
1541
+ core:review-status core-vocab:review-status-draft .
1542
+
1543
+ billing:starts-at a owl:DatatypeProperty , owl:FunctionalProperty ;
1544
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:statement billing:subscription-period billing:grant-period ) ] ;
1545
+ rdfs:range xsd:dateTime ;
1546
+ core:label "starts at"@en ;
1547
+ core:definition "The start of a time range, a subscription period or a grant period"@en ;
1548
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1549
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1550
+ core:owner core:billing ;
1551
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1552
+
1553
+ billing:ends-at a owl:DatatypeProperty , owl:FunctionalProperty ;
1554
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:statement billing:subscription-period billing:grant-period ) ] ;
1555
+ rdfs:range xsd:dateTime ;
1556
+ core:label "ends at"@en ;
1557
+ core:definition "The end of a time range, a subscription period or a grant period"@en ;
1558
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1559
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1560
+ core:owner core:billing ;
1561
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1562
+
1563
+ billing:has-audit-actor a owl:ObjectProperty , owl:FunctionalProperty ;
1564
+ rdfs:domain billing:audit-row ;
1565
+ rdfs:range core:concept ;
1566
+ core:label "has audit actor"@en ;
1567
+ core:definition "The audit actor of an audit row: who made the change"@en ;
1568
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
1569
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1570
+ core:owner core:billing .
1571
+
1572
+ billing:has-grant-reason a owl:ObjectProperty , owl:FunctionalProperty ;
1573
+ rdfs:domain billing:audit-row ;
1574
+ rdfs:range core:concept ;
1575
+ core:label "has grant reason"@en ;
1576
+ core:definition "The grant reason of an audit row of a grant of kind `admin`"@en ;
1577
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Money" ;
1578
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1579
+ core:owner core:billing .
1580
+
1581
+ billing:of-record a owl:ObjectProperty , owl:FunctionalProperty ;
1582
+ rdfs:domain billing:audit-row ;
1583
+ rdfs:range core:entity ;
1584
+ core:label "of record"@en ;
1585
+ core:definition "The setting, plan, pack, rate, discount, refund or grant of kind `admin` of an audit row"@en ;
1586
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
1587
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1588
+ core:owner core:billing .
1589
+
1590
+ billing:has-old-value a owl:DatatypeProperty , owl:FunctionalProperty ;
1591
+ rdfs:domain billing:audit-row ;
1592
+ rdfs:range xsd:string ;
1593
+ core:label "old value"@en ;
1594
+ core:definition "The value before the change of an audit row"@en ;
1595
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
1596
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1597
+ core:owner core:billing ;
1598
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1599
+
1600
+ billing:has-new-value a owl:DatatypeProperty , owl:FunctionalProperty ;
1601
+ rdfs:domain billing:audit-row ;
1602
+ rdfs:range xsd:string ;
1603
+ core:label "new value"@en ;
1604
+ core:definition "The value after the change of an audit row"@en ;
1605
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Settings and access" ;
1606
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1607
+ core:owner core:billing ;
1608
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1609
+
1610
+ billing:lists-hold a owl:ObjectProperty ;
1611
+ rdfs:domain billing:statement ;
1612
+ rdfs:range billing:hold ;
1613
+ core:label "lists hold"@en ;
1614
+ core:definition "`GET /charges` gives each settled hold of a workspace in a time range."@en ;
1615
+ core:source "docs/specs/billing/docs/internal/decisions/0018-statement.md#Decision" ;
1616
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1617
+ core:owner core:billing .
1618
+
1619
+ billing:has-sequence-number a owl:DatatypeProperty , owl:FunctionalProperty ;
1620
+ rdfs:domain billing:webhook ;
1621
+ rdfs:range xsd:long ;
1622
+ core:label "sequence number"@en ;
1623
+ core:definition "The place of a webhook in the sequence of its workspace. Each workspace has its own sequence."@en ;
1624
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Contract" , "docs/specs/billing/docs/internal/decisions/0016-webhooks.md#Decision" ;
1625
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1626
+ core:owner core:billing ;
1627
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1628
+
1629
+ billing:started-automatic-top-up a owl:DatatypeProperty , owl:FunctionalProperty ;
1630
+ rdfs:domain billing:balance-low ;
1631
+ rdfs:range xsd:boolean ;
1632
+ core:label "started automatic top-up"@en ;
1633
+ core:definition "The payload of `balance.low` tells if an automatic top-up started."@en ;
1634
+ core:source "docs/specs/billing/docs/internal/decisions/0016-webhooks.md#Decision" ;
1635
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1636
+ core:owner core:billing ;
1637
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1638
+
1639
+ billing:at-percent a owl:ObjectProperty , owl:FunctionalProperty ;
1640
+ rdfs:domain billing:limit-threshold ;
1641
+ rdfs:range core:concept ;
1642
+ core:label "at percent"@en ;
1643
+ core:definition "At 80% and at 100% of the monthly limit, `billing` sends `limit.threshold`. The value is from the scheme of threshold percents."@en ;
1644
+ core:source "docs/specs/billing/docs/internal/decisions/0007-monthly-limit.md#Decision" ;
1645
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1646
+ core:owner core:billing .
1647
+
1648
+ billing:of-top-up a owl:ObjectProperty , owl:FunctionalProperty ;
1649
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:top-up-completed billing:top-up-failed ) ] ;
1650
+ rdfs:range billing:top-up ;
1651
+ core:label "of top-up"@en ;
1652
+ core:definition "The top-up that got the status `completed` or `failed`"@en ;
1653
+ core:source "docs/specs/billing/docs/internal/decisions/0016-webhooks.md#Decision" ;
1654
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1655
+ core:owner core:billing .
1656
+
1657
+ billing:replaces-plan a owl:ObjectProperty , owl:FunctionalProperty ;
1658
+ rdfs:domain billing:plan ;
1659
+ rdfs:range billing:plan ;
1660
+ core:label "replaces plan"@en ;
1661
+ core:definition "The earlier plan that a plan version replaces for new subscriptions."@en ;
1662
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1663
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1664
+ core:owner core:billing .
1665
+
1666
+ billing:replaces-pack a owl:ObjectProperty , owl:FunctionalProperty ;
1667
+ rdfs:domain billing:pack ;
1668
+ rdfs:range billing:pack ;
1669
+ core:label "replaces pack"@en ;
1670
+ core:definition "The earlier pack that a new pack replaces."@en ;
1671
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
1672
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1673
+ core:owner core:billing .
1674
+
1675
+ billing:has-discount-kind a owl:ObjectProperty , owl:FunctionalProperty ;
1676
+ rdfs:domain billing:discount ;
1677
+ rdfs:range core:concept ;
1678
+ core:label "has discount kind"@en ;
1679
+ core:definition "What a discount changes, from the scheme of discount kinds."@en ;
1680
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Discounts" ;
1681
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1682
+ core:owner core:billing .
1683
+
1684
+ billing:has-discount-value a owl:DatatypeProperty , owl:FunctionalProperty ;
1685
+ rdfs:domain billing:discount ;
1686
+ rdfs:range xsd:long ;
1687
+ core:label "has discount value"@en ;
1688
+ core:definition "The value of a discount, as an integer in basis points: the percentage off a charge or a price, or the percentage of more credits for its discount kind."@en ;
1689
+ core:source "docs/specs/billing/docs/internal/decisions/0022-discounts.md#Decision" ;
1690
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1691
+ core:owner core:billing ;
1692
+ core:unit core-vocab:unit-basis-point ;
1693
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1694
+
1695
+ billing:has-coverable-cost a owl:DatatypeProperty , owl:FunctionalProperty ;
1696
+ rdfs:domain billing:hold ;
1697
+ rdfs:range xsd:long ;
1698
+ core:label "coverable cost"@en ;
1699
+ core:definition "The largest integer cost with a charge that is not above the amount of a hold, at its frozen rate and usage discount"@en ;
1700
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
1701
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1702
+ core:owner core:billing ;
1703
+ core:unit core-vocab:unit-micro-usd ;
1704
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1705
+
1706
+ billing:has-discount-code a owl:DatatypeProperty , owl:FunctionalProperty ;
1707
+ rdfs:domain billing:discount ;
1708
+ rdfs:range xsd:string ;
1709
+ core:label "has discount code"@en ;
1710
+ core:definition "The code that a buyer sends to use a discount. A discount with a code applies only to the checkout that names it. A discount without a code applies with no action of the buyer. The code is unique and it is compared in lower case. It is not a secret."@en ;
1711
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
1712
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1713
+ core:owner core:billing ;
1714
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1715
+
1716
+ billing:has-duration-months a owl:DatatypeProperty , owl:FunctionalProperty ;
1717
+ rdfs:domain billing:discount ;
1718
+ rdfs:range xsd:integer ;
1719
+ core:label "has duration in months"@en ;
1720
+ core:definition "The number of months that a discount of kind `subscription` lasts for each workspace that enters it, counted from the start of that workspace. A discount without this property has no end."@en ;
1721
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
1722
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1723
+ core:owner core:billing ;
1724
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1725
+
1726
+ billing:has-redemption-limit a owl:DatatypeProperty , owl:FunctionalProperty ;
1727
+ rdfs:domain billing:discount ;
1728
+ rdfs:range xsd:long ;
1729
+ core:label "has redemption limit"@en ;
1730
+ core:definition "The largest number of workspaces that can take a discount. A discount without this property has no limit."@en ;
1731
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
1732
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1733
+ core:owner core:billing ;
1734
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1735
+
1736
+ billing:of-discount a owl:ObjectProperty , owl:FunctionalProperty ;
1737
+ rdfs:domain billing:discount-redemption ;
1738
+ rdfs:range billing:discount ;
1739
+ core:label "of discount"@en ;
1740
+ core:definition "The discount that a workspace entered."@en ;
1741
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
1742
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1743
+ core:owner core:billing .
1744
+
1745
+ billing:has-usage-discount a owl:DatatypeProperty , owl:FunctionalProperty ;
1746
+ rdfs:domain [ a owl:Class ; owl:unionOf ( billing:hold billing:quote ) ] ;
1747
+ rdfs:range xsd:long ;
1748
+ core:label "has usage discount"@en ;
1749
+ core:definition "The usage discount that a hold freezes or a quote uses: the percentage that `billing` removes from a charge for one spender, in basis points. It is 0 when the workspace has no active usage discount for the spender."@en ;
1750
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Discounts" ;
1751
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1752
+ core:owner core:billing ;
1753
+ core:unit core-vocab:unit-basis-point ;
1754
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1755
+
1756
+ billing:has-workspace-subscription-status a owl:ObjectProperty , owl:FunctionalProperty ;
1757
+ rdfs:domain core:workspace ;
1758
+ rdfs:range core:concept ;
1759
+ core:label "has workspace subscription status"@en ;
1760
+ core:definition "The subscription state of a workspace, from the scheme of workspace subscription statuses, as `GET /subscription` tells."@en ;
1761
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1762
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1763
+ core:owner core:billing .
1764
+
1765
+ billing:has-cancel-reason a owl:ObjectProperty , owl:FunctionalProperty ;
1766
+ rdfs:domain billing:cancel ;
1767
+ rdfs:range core:concept ;
1768
+ core:label "has cancel reason"@en ;
1769
+ core:definition "Why `desk` asks `billing` to cancel a subscription, from the scheme of cancel reasons."@en ;
1770
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1771
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1772
+ core:owner core:billing .
1773
+
1774
+ billing:has-cancel-status a owl:ObjectProperty , owl:FunctionalProperty ;
1775
+ rdfs:domain billing:cancel ;
1776
+ rdfs:range core:concept ;
1777
+ core:label "has cancel status"@en ;
1778
+ core:definition "The result of a cancel request, from the scheme of cancel statuses."@en ;
1779
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Plans and payments" ;
1780
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1781
+ core:owner core:billing .
1782
+
1783
+ billing:has-absorbed-cost-reason a owl:ObjectProperty , owl:FunctionalProperty ;
1784
+ rdfs:domain billing:hold ;
1785
+ rdfs:range core:concept ;
1786
+ core:label "has absorbed cost reason"@en ;
1787
+ core:definition "The cause of the absorbed cost of a hold, from the scheme of absorbed cost reasons."@en ;
1788
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Metrics" ;
1789
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1790
+ core:owner core:billing .
1791
+
1792
+ billing:has-totals a owl:DatatypeProperty , owl:FunctionalProperty ;
1793
+ rdfs:domain billing:statement ;
1794
+ rdfs:range xsd:string ;
1795
+ core:label "has totals"@en ;
1796
+ core:definition "The totals of a statement for each month, spender, charge origin and tag."@en ;
1797
+ core:source "docs/specs/billing/docs/internal/decisions/0018-statement.md#Decision" ;
1798
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1799
+ core:owner core:billing ;
1800
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1801
+
1802
+ # Tables (docs/decisions/0003-modelling-patterns.md#Tables and columns).
1803
+
1804
+ billing:schema-money a owl:NamedIndividual , core:database-schema ;
1805
+ core:has-name "money" ;
1806
+ core:label "money schema"@en ;
1807
+ core:definition "The Postgres schema of `billing` that holds the balances, the entries, the holds, the settings, the audit rows and the outbox rows."@en ;
1808
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1809
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1810
+ core:owner core:billing .
1811
+
1812
+ billing:table-money-balances a owl:NamedIndividual , core:table ;
1813
+ core:in-database-schema billing:schema-money ;
1814
+ core:has-name "balances" ;
1815
+ core:has-row-class billing:balance ;
1816
+ core:label "money.balances"@en ;
1817
+ core:definition "The table of the balances of `billing`: one row for each workspace."@en ;
1818
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1819
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1820
+ core:owner core:billing .
1821
+
1822
+ billing:column-balances-workspace a owl:NamedIndividual , core:column ;
1823
+ core:of-table billing:table-money-balances ;
1824
+ core:has-name "workspace" ;
1825
+ core:stores-property core:in-workspace ;
1826
+ core:in-primary-key true ;
1827
+ core:label "money.balances.workspace"@en ;
1828
+ core:definition "The id of the workspace of the balance."@en ;
1829
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1830
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1831
+ core:owner core:billing .
1832
+
1833
+ billing:column-balances-plan-credits a owl:NamedIndividual , core:column ;
1834
+ core:of-table billing:table-money-balances ;
1835
+ core:has-name "plan_credits" ;
1836
+ core:stores-property billing:has-plan-credits ;
1837
+ core:label "money.balances.plan_credits"@en ;
1838
+ core:definition "The credits of the part `plan`, as an integer in micro-USD."@en ;
1839
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1840
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1841
+ core:owner core:billing .
1842
+
1843
+ billing:column-balances-bought-credits a owl:NamedIndividual , core:column ;
1844
+ core:of-table billing:table-money-balances ;
1845
+ core:has-name "bought_credits" ;
1846
+ core:stores-property billing:has-bought-credits ;
1847
+ core:label "money.balances.bought_credits"@en ;
1848
+ core:definition "The credits of the part `bought`, as an integer in micro-USD."@en ;
1849
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1850
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1851
+ core:owner core:billing .
1852
+
1853
+ billing:column-balances-held-credits a owl:NamedIndividual , core:column ;
1854
+ core:of-table billing:table-money-balances ;
1855
+ core:has-name "held_credits" ;
1856
+ core:stores-property billing:has-held-credits ;
1857
+ core:label "money.balances.held_credits"@en ;
1858
+ core:definition "The credits that open holds hold, as an integer in micro-USD."@en ;
1859
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1860
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1861
+ core:owner core:billing .
1862
+
1863
+ billing:column-balances-month-charges a owl:NamedIndividual , core:column ;
1864
+ core:of-table billing:table-money-balances ;
1865
+ core:has-name "month_charges" ;
1866
+ core:stores-property billing:has-month-charges ;
1867
+ core:label "money.balances.month_charges"@en ;
1868
+ core:definition "The charges of the settles of the balance month, as an integer in micro-USD."@en ;
1869
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1870
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1871
+ core:owner core:billing .
1872
+
1873
+ billing:column-balances-month a owl:NamedIndividual , core:column ;
1874
+ core:of-table billing:table-money-balances ;
1875
+ core:has-name "month" ;
1876
+ core:stores-property billing:has-month ;
1877
+ core:label "money.balances.month"@en ;
1878
+ core:definition "The calendar month in UTC of the month charges."@en ;
1879
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1880
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1881
+ core:owner core:billing .
1882
+
1883
+ billing:column-balances-expiry a owl:NamedIndividual , core:column ;
1884
+ core:of-table billing:table-money-balances ;
1885
+ core:has-name "expiry" ;
1886
+ core:stores-property billing:has-expiry ;
1887
+ core:label "money.balances.expiry"@en ;
1888
+ core:definition "The expiry of the credits of the part `plan`. It is empty when the balance has no expiry."@en ;
1889
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1890
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1891
+ core:owner core:billing .
1892
+
1893
+ billing:column-balances-status a owl:NamedIndividual , core:column ;
1894
+ core:of-table billing:table-money-balances ;
1895
+ core:has-name "status" ;
1896
+ core:stores-property core:has-status ;
1897
+ core:label "money.balances.status"@en ;
1898
+ core:definition "The balance status: `open` or `closed`."@en ;
1899
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1900
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1901
+ core:owner core:billing .
1902
+
1903
+ billing:column-balances-created-at a owl:NamedIndividual , core:column ;
1904
+ core:of-table billing:table-money-balances ;
1905
+ core:has-name "created_at" ;
1906
+ core:not-modelled-reason "The row keeps no time property of the balance in the model."@en ;
1907
+ core:label "money.balances.created_at"@en ;
1908
+ core:definition "The time that the row was made."@en ;
1909
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1910
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1911
+ core:owner core:billing .
1912
+
1913
+ billing:column-balances-updated-at a owl:NamedIndividual , core:column ;
1914
+ core:of-table billing:table-money-balances ;
1915
+ core:has-name "updated_at" ;
1916
+ core:not-modelled-reason "The row keeps no time property of the balance in the model."@en ;
1917
+ core:label "money.balances.updated_at"@en ;
1918
+ core:definition "The time of the last change of the row."@en ;
1919
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1920
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1921
+ core:owner core:billing .
1922
+
1923
+ billing:column-balances-low-balance-notice a owl:NamedIndividual , core:column ;
1924
+ core:of-table billing:table-money-balances ;
1925
+ core:has-name "low_balance_notice" ;
1926
+ core:stores-property billing:has-low-balance-notice ;
1927
+ core:label "money.balances.low_balance_notice"@en ;
1928
+ core:definition "True when `billing` sent `balance.low` and the available credits did not go above the low-balance threshold after it."@en ;
1929
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1930
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1931
+ core:owner core:billing .
1932
+
1933
+ billing:column-balances-limit-notice a owl:NamedIndividual , core:column ;
1934
+ core:of-table billing:table-money-balances ;
1935
+ core:has-name "limit_notice" ;
1936
+ core:stores-property billing:has-limit-notice ;
1937
+ core:label "money.balances.limit_notice"@en ;
1938
+ core:definition "The highest percent of the monthly limit, 0, 80 or 100, for which `billing` sent `limit.threshold` in the balance month."@en ;
1939
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1940
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1941
+ core:owner core:billing .
1942
+
1943
+ billing:column-balances-sequence a owl:NamedIndividual , core:column ;
1944
+ core:of-table billing:table-money-balances ;
1945
+ core:has-name "sequence" ;
1946
+ core:not-modelled-reason "The sequence number is a property of the webhook, `billing:has-sequence-number`. The column keeps the counter of the next one."@en ;
1947
+ core:label "money.balances.sequence"@en ;
1948
+ core:definition "The sequence number of the last webhook of the balance."@en ;
1949
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1950
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1951
+ core:owner core:billing .
1952
+
1953
+ billing:column-balances-stripe-customer-id a owl:NamedIndividual , core:column ;
1954
+ core:of-table billing:table-money-balances ;
1955
+ core:has-name "stripe_customer_id" ;
1956
+ core:stores-property billing:has-stripe-customer-id ;
1957
+ core:label "money.balances.stripe_customer_id"@en ;
1958
+ core:definition "The id of the one Stripe customer of the workspace."@en ;
1959
+ core:source "docs/specs/billing/docs/internal/decisions/0014-payments.md#Decision" ;
1960
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1961
+ core:owner core:billing .
1962
+
1963
+ billing:table-money-entries a owl:NamedIndividual , core:table ;
1964
+ core:in-database-schema billing:schema-money ;
1965
+ core:has-name "entries" ;
1966
+ core:has-row-class billing:entry ;
1967
+ core:label "money.entries"@en ;
1968
+ core:definition "The table of the entries of `billing`: one row for each change of a balance."@en ;
1969
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1970
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1971
+ core:owner core:billing .
1972
+
1973
+ billing:column-entries-id a owl:NamedIndividual , core:column ;
1974
+ core:of-table billing:table-money-entries ;
1975
+ core:has-name "id" ;
1976
+ core:stores-property core:id ;
1977
+ core:in-primary-key true ;
1978
+ core:label "money.entries.id"@en ;
1979
+ core:definition "The id of the entry."@en ;
1980
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1981
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1982
+ core:owner core:billing .
1983
+
1984
+ billing:column-entries-workspace a owl:NamedIndividual , core:column ;
1985
+ core:of-table billing:table-money-entries ;
1986
+ core:has-name "workspace" ;
1987
+ core:stores-property core:in-workspace ;
1988
+ core:label "money.entries.workspace"@en ;
1989
+ core:definition "The id of the workspace of the entry."@en ;
1990
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
1991
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
1992
+ core:owner core:billing .
1993
+
1994
+ billing:column-entries-kind a owl:NamedIndividual , core:column ;
1995
+ core:of-table billing:table-money-entries ;
1996
+ core:has-name "kind" ;
1997
+ core:stores-property billing:has-entry-kind ;
1998
+ core:label "money.entries.kind"@en ;
1999
+ core:definition "The entry kind: the cause of the entry."@en ;
2000
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2001
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2002
+ core:owner core:billing .
2003
+
2004
+ billing:column-entries-grant-kind a owl:NamedIndividual , core:column ;
2005
+ core:of-table billing:table-money-entries ;
2006
+ core:has-name "grant_kind" ;
2007
+ core:not-modelled-reason "Only a grant entry has a grant kind, `billing:has-grant-kind`. The shape of the class `entry` does not have it."@en ;
2008
+ core:label "money.entries.grant_kind"@en ;
2009
+ core:definition "The grant kind of an entry of kind `grant`. Other entries have none."@en ;
2010
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2011
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2012
+ core:owner core:billing .
2013
+
2014
+ billing:column-entries-idempotency-key a owl:NamedIndividual , core:column ;
2015
+ core:of-table billing:table-money-entries ;
2016
+ core:has-name "idempotency_key" ;
2017
+ core:stores-property billing:has-idempotency-key ;
2018
+ core:label "money.entries.idempotency_key"@en ;
2019
+ core:definition "The idempotency key of the write of the entry. It is unique."@en ;
2020
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2021
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2022
+ core:owner core:billing .
2023
+
2024
+ billing:column-entries-body-hash a owl:NamedIndividual , core:column ;
2025
+ core:of-table billing:table-money-entries ;
2026
+ core:has-name "body_hash" ;
2027
+ core:not-modelled-reason "The hash is a check of a retry. The model has no property for it."@en ;
2028
+ core:label "money.entries.body_hash"@en ;
2029
+ core:definition "The hash of the body of the request that made the entry. A retry with a different hash gets `idempotency_conflict`."@en ;
2030
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2031
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2032
+ core:owner core:billing .
2033
+
2034
+ billing:column-entries-plan-credits a owl:NamedIndividual , core:column ;
2035
+ core:of-table billing:table-money-entries ;
2036
+ core:has-name "plan_credits" ;
2037
+ core:stores-property billing:has-plan-credits-change ;
2038
+ core:label "money.entries.plan_credits"@en ;
2039
+ core:definition "The change of the credits of the part `plan`."@en ;
2040
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2041
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2042
+ core:owner core:billing .
2043
+
2044
+ billing:column-entries-bought-credits a owl:NamedIndividual , core:column ;
2045
+ core:of-table billing:table-money-entries ;
2046
+ core:has-name "bought_credits" ;
2047
+ core:stores-property billing:has-bought-credits-change ;
2048
+ core:label "money.entries.bought_credits"@en ;
2049
+ core:definition "The change of the credits of the part `bought`."@en ;
2050
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2051
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2052
+ core:owner core:billing .
2053
+
2054
+ billing:column-entries-held-credits a owl:NamedIndividual , core:column ;
2055
+ core:of-table billing:table-money-entries ;
2056
+ core:has-name "held_credits" ;
2057
+ core:stores-property billing:has-held-credits-change ;
2058
+ core:label "money.entries.held_credits"@en ;
2059
+ core:definition "The change of the held credits."@en ;
2060
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2061
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2062
+ core:owner core:billing .
2063
+
2064
+ billing:column-entries-month-charges a owl:NamedIndividual , core:column ;
2065
+ core:of-table billing:table-money-entries ;
2066
+ core:has-name "month_charges" ;
2067
+ core:stores-property billing:has-month-charges-change ;
2068
+ core:label "money.entries.month_charges"@en ;
2069
+ core:definition "The change of the month charges."@en ;
2070
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2071
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2072
+ core:owner core:billing .
2073
+
2074
+ billing:column-entries-hold-id a owl:NamedIndividual , core:column ;
2075
+ core:of-table billing:table-money-entries ;
2076
+ core:has-name "hold_id" ;
2077
+ core:stores-property billing:of-hold ;
2078
+ core:label "money.entries.hold_id"@en ;
2079
+ core:definition "The id of the hold of an entry of kind `hold`, `settle` or `release`."@en ;
2080
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2081
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2082
+ core:owner core:billing .
2083
+
2084
+ billing:column-entries-discount a owl:NamedIndividual , core:column ;
2085
+ core:of-table billing:table-money-entries ;
2086
+ core:has-name "discount_id" ;
2087
+ core:stores-property billing:of-discount ;
2088
+ core:label "money.entries.discount_id"@en ;
2089
+ core:definition "The discount of the bonus credits of an entry of grant kind `bonus`."@en ;
2090
+ core:source "docs/specs/billing/docs/internal/decisions/0022-discounts.md#Decision" ;
2091
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2092
+ core:owner core:billing .
2093
+
2094
+ billing:column-entries-created-at a owl:NamedIndividual , core:column ;
2095
+ core:of-table billing:table-money-entries ;
2096
+ core:has-name "created_at" ;
2097
+ core:stores-property core:generated-at ;
2098
+ core:label "money.entries.created_at"@en ;
2099
+ core:definition "The time that the entry was made."@en ;
2100
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2101
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2102
+ core:owner core:billing .
2103
+
2104
+ billing:column-entries-stripe-invoice-id a owl:NamedIndividual , core:column ;
2105
+ core:of-table billing:table-money-entries ;
2106
+ core:has-name "stripe_invoice_id" ;
2107
+ core:stores-property billing:has-stripe-invoice-id ;
2108
+ core:label "money.entries.stripe_invoice_id"@en ;
2109
+ core:definition "The id of the Stripe invoice of an entry `top-up`, an entry `refund` or a grant of kind `plan`."@en ;
2110
+ core:source "docs/specs/billing/docs/internal/decisions/0014-payments.md#Decision" ;
2111
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2112
+ core:owner core:billing .
2113
+
2114
+ billing:table-money-holds a owl:NamedIndividual , core:table ;
2115
+ core:in-database-schema billing:schema-money ;
2116
+ core:has-name "holds" ;
2117
+ core:has-row-class billing:hold ;
2118
+ core:label "money.holds"@en ;
2119
+ core:definition "The table of the holds of `billing`: one row for each hold."@en ;
2120
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2121
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2122
+ core:owner core:billing .
2123
+
2124
+ billing:column-holds-id a owl:NamedIndividual , core:column ;
2125
+ core:of-table billing:table-money-holds ;
2126
+ core:has-name "id" ;
2127
+ core:stores-property core:id ;
2128
+ core:in-primary-key true ;
2129
+ core:label "money.holds.id"@en ;
2130
+ core:definition "The id of the hold."@en ;
2131
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2132
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2133
+ core:owner core:billing .
2134
+
2135
+ billing:column-holds-workspace a owl:NamedIndividual , core:column ;
2136
+ core:of-table billing:table-money-holds ;
2137
+ core:has-name "workspace" ;
2138
+ core:stores-property core:in-workspace ;
2139
+ core:label "money.holds.workspace"@en ;
2140
+ core:definition "The id of the workspace of the hold."@en ;
2141
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2142
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2143
+ core:owner core:billing .
2144
+
2145
+ billing:column-holds-spender a owl:NamedIndividual , core:column ;
2146
+ core:of-table billing:table-money-holds ;
2147
+ core:has-name "spender" ;
2148
+ core:stores-property billing:of-spender ;
2149
+ core:label "money.holds.spender"@en ;
2150
+ core:definition "The spender of the hold."@en ;
2151
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2152
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2153
+ core:owner core:billing .
2154
+
2155
+ billing:column-holds-kind a owl:NamedIndividual , core:column ;
2156
+ core:of-table billing:table-money-holds ;
2157
+ core:has-name "kind" ;
2158
+ core:stores-property billing:has-hold-kind ;
2159
+ core:label "money.holds.kind"@en ;
2160
+ core:definition "The hold kind: `run`, `call` or `standing`."@en ;
2161
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2162
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2163
+ core:owner core:billing .
2164
+
2165
+ billing:column-holds-charge-origin a owl:NamedIndividual , core:column ;
2166
+ core:of-table billing:table-money-holds ;
2167
+ core:has-name "charge_origin" ;
2168
+ core:stores-property billing:has-charge-origin ;
2169
+ core:label "money.holds.charge_origin"@en ;
2170
+ core:definition "The charge origin of the hold."@en ;
2171
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2172
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2173
+ core:owner core:billing .
2174
+
2175
+ billing:column-holds-run a owl:NamedIndividual , core:column ;
2176
+ core:of-table billing:table-money-holds ;
2177
+ core:has-name "run" ;
2178
+ core:stores-property billing:for-run ;
2179
+ core:label "money.holds.run"@en ;
2180
+ core:definition "The id of the run of a hold of kind `run`."@en ;
2181
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2182
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2183
+ core:owner core:billing .
2184
+
2185
+ billing:column-holds-requester a owl:NamedIndividual , core:column ;
2186
+ core:of-table billing:table-money-holds ;
2187
+ core:has-name "requester" ;
2188
+ core:stores-property billing:has-requester ;
2189
+ core:label "money.holds.requester"@en ;
2190
+ core:definition "The requester of a hold with the charge origin `call`: its kind and its key, token or service."@en ;
2191
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2192
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2193
+ core:owner core:billing .
2194
+
2195
+ billing:column-holds-tags a owl:NamedIndividual , core:column ;
2196
+ core:of-table billing:table-money-holds ;
2197
+ core:has-name "tags" ;
2198
+ core:stores-property billing:has-tag ;
2199
+ core:label "money.holds.tags"@en ;
2200
+ core:definition "The tags of the hold, as an object from each tag key to its value."@en ;
2201
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2202
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2203
+ core:owner core:billing .
2204
+
2205
+ billing:column-holds-status a owl:NamedIndividual , core:column ;
2206
+ core:of-table billing:table-money-holds ;
2207
+ core:has-name "status" ;
2208
+ core:stores-property core:has-status ;
2209
+ core:label "money.holds.status"@en ;
2210
+ core:definition "The hold status: `open`, `settled`, `released` or `expired`."@en ;
2211
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2212
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2213
+ core:owner core:billing .
2214
+
2215
+ billing:column-holds-amount a owl:NamedIndividual , core:column ;
2216
+ core:of-table billing:table-money-holds ;
2217
+ core:has-name "amount" ;
2218
+ core:stores-property billing:has-amount ;
2219
+ core:label "money.holds.amount"@en ;
2220
+ core:definition "The amount of the hold, as an integer in micro-USD."@en ;
2221
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2222
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2223
+ core:owner core:billing .
2224
+
2225
+ billing:column-holds-plan-credits a owl:NamedIndividual , core:column ;
2226
+ core:of-table billing:table-money-holds ;
2227
+ core:has-name "plan_credits" ;
2228
+ core:stores-property billing:has-plan-credits ;
2229
+ core:label "money.holds.plan_credits"@en ;
2230
+ core:definition "The credits that the hold took from the part `plan`."@en ;
2231
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2232
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2233
+ core:owner core:billing .
2234
+
2235
+ billing:column-holds-bought-credits a owl:NamedIndividual , core:column ;
2236
+ core:of-table billing:table-money-holds ;
2237
+ core:has-name "bought_credits" ;
2238
+ core:stores-property billing:has-bought-credits ;
2239
+ core:label "money.holds.bought_credits"@en ;
2240
+ core:definition "The credits that the hold took from the part `bought`."@en ;
2241
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2242
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2243
+ core:owner core:billing .
2244
+
2245
+ billing:column-holds-rate a owl:NamedIndividual , core:column ;
2246
+ core:of-table billing:table-money-holds ;
2247
+ core:has-name "rate" ;
2248
+ core:not-modelled-reason "The frozen rate is the value of the rate that `billing:with-rate` names. The model keeps it there."@en ;
2249
+ core:label "money.holds.rate"@en ;
2250
+ core:definition "The frozen rate of the hold, as an integer in basis points."@en ;
2251
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2252
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2253
+ core:owner core:billing .
2254
+
2255
+ billing:column-holds-rate-id a owl:NamedIndividual , core:column ;
2256
+ core:of-table billing:table-money-holds ;
2257
+ core:has-name "rate_id" ;
2258
+ core:stores-property billing:with-rate ;
2259
+ core:label "money.holds.rate_id"@en ;
2260
+ core:definition "The id of the frozen rate of the hold."@en ;
2261
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2262
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2263
+ core:owner core:billing .
2264
+
2265
+ billing:column-holds-usage-discount a owl:NamedIndividual , core:column ;
2266
+ core:of-table billing:table-money-holds ;
2267
+ core:has-name "usage_discount" ;
2268
+ core:stores-property billing:has-usage-discount ;
2269
+ core:label "money.holds.usage_discount"@en ;
2270
+ core:definition "The frozen usage discount of the hold, as an integer in basis points."@en ;
2271
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2272
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2273
+ core:owner core:billing .
2274
+
2275
+ billing:column-holds-expiry a owl:NamedIndividual , core:column ;
2276
+ core:of-table billing:table-money-holds ;
2277
+ core:has-name "expiry" ;
2278
+ core:stores-property billing:has-expiry ;
2279
+ core:label "money.holds.expiry"@en ;
2280
+ core:definition "The expiry of the hold."@en ;
2281
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2282
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2283
+ core:owner core:billing .
2284
+
2285
+ billing:column-holds-charge a owl:NamedIndividual , core:column ;
2286
+ core:of-table billing:table-money-holds ;
2287
+ core:has-name "charge" ;
2288
+ core:not-modelled-reason "The charge is a record of its own, `billing:has-charge` with `billing:has-charge-amount`. The column keeps its amount."@en ;
2289
+ core:label "money.holds.charge"@en ;
2290
+ core:definition "The charge of the settle of the hold, as an integer in micro-USD. It is empty until the settle."@en ;
2291
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2292
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2293
+ core:owner core:billing .
2294
+
2295
+ billing:column-holds-created-at a owl:NamedIndividual , core:column ;
2296
+ core:of-table billing:table-money-holds ;
2297
+ core:has-name "created_at" ;
2298
+ core:stores-property core:started-at ;
2299
+ core:label "money.holds.created_at"@en ;
2300
+ core:definition "The time that the hold was opened."@en ;
2301
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2302
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2303
+ core:owner core:billing .
2304
+
2305
+ billing:column-holds-closed-at a owl:NamedIndividual , core:column ;
2306
+ core:of-table billing:table-money-holds ;
2307
+ core:has-name "closed_at" ;
2308
+ core:stores-property core:ended-at ;
2309
+ core:label "money.holds.closed_at"@en ;
2310
+ core:definition "The time that the hold closed. It is empty while the hold is open."@en ;
2311
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2312
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2313
+ core:owner core:billing .
2314
+
2315
+ billing:column-holds-cost a owl:NamedIndividual , core:column ;
2316
+ core:of-table billing:table-money-holds ;
2317
+ core:has-name "cost" ;
2318
+ core:not-modelled-reason "The cost of the settle is `billing:has-cost`. The shapes of the classes of holds do not have it."@en ;
2319
+ core:label "money.holds.cost"@en ;
2320
+ core:definition "The cost of the settle of the hold, as an integer in micro-USD. It is empty until the settle."@en ;
2321
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2322
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2323
+ core:owner core:billing .
2324
+
2325
+ billing:column-holds-absorbed a owl:NamedIndividual , core:column ;
2326
+ core:of-table billing:table-money-holds ;
2327
+ core:has-name "absorbed" ;
2328
+ core:stores-property billing:is-absorbed ;
2329
+ core:label "money.holds.absorbed"@en ;
2330
+ core:definition "True when `billing` absorbed the cost of the hold."@en ;
2331
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2332
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2333
+ core:owner core:billing .
2334
+
2335
+ billing:table-money-rates a owl:NamedIndividual , core:table ;
2336
+ core:in-database-schema billing:schema-money ;
2337
+ core:has-name "rates" ;
2338
+ core:has-row-class billing:rate ;
2339
+ core:label "money.rates"@en ;
2340
+ core:definition "The table of the rates of `billing`: one row for each version of a rate."@en ;
2341
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2342
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2343
+ core:owner core:billing .
2344
+
2345
+ billing:column-rates-id a owl:NamedIndividual , core:column ;
2346
+ core:of-table billing:table-money-rates ;
2347
+ core:has-name "id" ;
2348
+ core:stores-property core:id ;
2349
+ core:in-primary-key true ;
2350
+ core:label "money.rates.id"@en ;
2351
+ core:definition "The id of the rate."@en ;
2352
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2353
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2354
+ core:owner core:billing .
2355
+
2356
+ billing:column-rates-spender a owl:NamedIndividual , core:column ;
2357
+ core:of-table billing:table-money-rates ;
2358
+ core:has-name "spender" ;
2359
+ core:stores-property billing:of-spender ;
2360
+ core:label "money.rates.spender"@en ;
2361
+ core:definition "The spender of the rate."@en ;
2362
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2363
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2364
+ core:owner core:billing .
2365
+
2366
+ billing:column-rates-scope a owl:NamedIndividual , core:column ;
2367
+ core:of-table billing:table-money-rates ;
2368
+ core:has-name "scope" ;
2369
+ core:stores-property billing:has-setting-scope ;
2370
+ core:label "money.rates.scope"@en ;
2371
+ core:definition "The setting scope of the rate: `global`, `plan` or `workspace`."@en ;
2372
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2373
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2374
+ core:owner core:billing .
2375
+
2376
+ billing:column-rates-plan a owl:NamedIndividual , core:column ;
2377
+ core:of-table billing:table-money-rates ;
2378
+ core:has-name "plan" ;
2379
+ core:stores-property billing:for-plan ;
2380
+ core:label "money.rates.plan"@en ;
2381
+ core:definition "The id of the plan of a rate of scope `plan`."@en ;
2382
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2383
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2384
+ core:owner core:billing .
2385
+
2386
+ billing:column-rates-workspace a owl:NamedIndividual , core:column ;
2387
+ core:of-table billing:table-money-rates ;
2388
+ core:has-name "workspace" ;
2389
+ core:stores-property core:in-workspace ;
2390
+ core:label "money.rates.workspace"@en ;
2391
+ core:definition "The id of the workspace of a rate of scope `workspace`."@en ;
2392
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2393
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2394
+ core:owner core:billing .
2395
+
2396
+ billing:column-rates-value a owl:NamedIndividual , core:column ;
2397
+ core:of-table billing:table-money-rates ;
2398
+ core:has-name "value" ;
2399
+ core:stores-property billing:has-rate ;
2400
+ core:label "money.rates.value"@en ;
2401
+ core:definition "The value of the rate, as an integer in basis points."@en ;
2402
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2403
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2404
+ core:owner core:billing .
2405
+
2406
+ billing:column-rates-created-at a owl:NamedIndividual , core:column ;
2407
+ core:of-table billing:table-money-rates ;
2408
+ core:has-name "created_at" ;
2409
+ core:not-modelled-reason "The version order is the order of the creation time. The model keeps no time property of a rate."@en ;
2410
+ core:label "money.rates.created_at"@en ;
2411
+ core:definition "The time that the version of the rate was made. The latest version of a scope applies."@en ;
2412
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2413
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2414
+ core:owner core:billing .
2415
+
2416
+ billing:table-money-settings a owl:NamedIndividual , core:table ;
2417
+ core:in-database-schema billing:schema-money ;
2418
+ core:has-name "settings" ;
2419
+ core:has-row-class billing:setting ;
2420
+ core:label "money.settings"@en ;
2421
+ core:definition "The table of the settings of `billing`: one row for each setting name, setting scope and workspace."@en ;
2422
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2423
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2424
+ core:owner core:billing .
2425
+
2426
+ billing:column-settings-name a owl:NamedIndividual , core:column ;
2427
+ core:of-table billing:table-money-settings ;
2428
+ core:has-name "name" ;
2429
+ core:stores-property billing:has-setting-name ;
2430
+ core:label "money.settings.name"@en ;
2431
+ core:definition "The setting name."@en ;
2432
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2433
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2434
+ core:owner core:billing .
2435
+
2436
+ billing:column-settings-scope a owl:NamedIndividual , core:column ;
2437
+ core:of-table billing:table-money-settings ;
2438
+ core:has-name "scope" ;
2439
+ core:stores-property billing:has-setting-scope ;
2440
+ core:label "money.settings.scope"@en ;
2441
+ core:definition "The setting scope: `global` or `workspace`."@en ;
2442
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2443
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2444
+ core:owner core:billing .
2445
+
2446
+ billing:column-settings-workspace a owl:NamedIndividual , core:column ;
2447
+ core:of-table billing:table-money-settings ;
2448
+ core:has-name "workspace" ;
2449
+ core:stores-property core:in-workspace ;
2450
+ core:label "money.settings.workspace"@en ;
2451
+ core:definition "The id of the workspace of a setting of scope `workspace`."@en ;
2452
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2453
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2454
+ core:owner core:billing .
2455
+
2456
+ billing:column-settings-value a owl:NamedIndividual , core:column ;
2457
+ core:of-table billing:table-money-settings ;
2458
+ core:has-name "value" ;
2459
+ core:not-modelled-reason "The value is a property of each class of setting, for example `billing:has-limit` or `billing:has-days`. One column keeps all of them."@en ;
2460
+ core:label "money.settings.value"@en ;
2461
+ core:definition "The value of the setting. Its unit depends on the setting name."@en ;
2462
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2463
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2464
+ core:owner core:billing .
2465
+
2466
+ billing:column-settings-updated-at a owl:NamedIndividual , core:column ;
2467
+ core:of-table billing:table-money-settings ;
2468
+ core:has-name "updated_at" ;
2469
+ core:not-modelled-reason "The model keeps no time property of a setting. The audit rows keep the changes."@en ;
2470
+ core:label "money.settings.updated_at"@en ;
2471
+ core:definition "The time of the last change of the setting."@en ;
2472
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2473
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2474
+ core:owner core:billing .
2475
+
2476
+ billing:table-money-plan-limits a owl:NamedIndividual , core:table ;
2477
+ core:in-database-schema billing:schema-money ;
2478
+ core:has-name "plan_limits" ;
2479
+ core:has-row-class billing:setting ;
2480
+ core:label "money.plan_limits"@en ;
2481
+ core:definition "The table of the plan limits of `billing`: the default plan limits (scope `global`), the plan limits of a plan (scope `plan`) and the overrides of one workspace (scope `workspace`)."@en ;
2482
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2483
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2484
+ core:owner core:billing .
2485
+
2486
+ billing:column-plan-limits-name a owl:NamedIndividual , core:column ;
2487
+ core:of-table billing:table-money-plan-limits ;
2488
+ core:has-name "name" ;
2489
+ core:not-modelled-reason "The plan limit is a notation of the scheme plan limit. The model has no property of the setting that takes it."@en ;
2490
+ core:label "money.plan_limits.name"@en ;
2491
+ core:definition "The plan limit: `watch-lists`, `subjects-per-list`, `agent-call-rate` or `connected-agents`."@en ;
2492
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2493
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2494
+ core:owner core:billing .
2495
+
2496
+ billing:column-plan-limits-scope a owl:NamedIndividual , core:column ;
2497
+ core:of-table billing:table-money-plan-limits ;
2498
+ core:has-name "scope" ;
2499
+ core:stores-property billing:has-setting-scope ;
2500
+ core:label "money.plan_limits.scope"@en ;
2501
+ core:definition "The setting scope of the plan limit: `global` for a default, `plan` for a plan limit, `workspace` for an override."@en ;
2502
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2503
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2504
+ core:owner core:billing .
2505
+
2506
+ billing:column-plan-limits-workspace a owl:NamedIndividual , core:column ;
2507
+ core:of-table billing:table-money-plan-limits ;
2508
+ core:has-name "workspace" ;
2509
+ core:stores-property core:in-workspace ;
2510
+ core:label "money.plan_limits.workspace"@en ;
2511
+ core:definition "The id of the workspace of an override."@en ;
2512
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2513
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2514
+ core:owner core:billing .
2515
+
2516
+ billing:column-plan-limits-value a owl:NamedIndividual , core:column ;
2517
+ core:of-table billing:table-money-plan-limits ;
2518
+ core:has-name "value" ;
2519
+ core:not-modelled-reason "The value belongs to the plan limit of the column `name`. The model has no property for it."@en ;
2520
+ core:label "money.plan_limits.value"@en ;
2521
+ core:definition "The value of the plan limit."@en ;
2522
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2523
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2524
+ core:owner core:billing .
2525
+
2526
+ billing:column-plan-limits-updated-at a owl:NamedIndividual , core:column ;
2527
+ core:of-table billing:table-money-plan-limits ;
2528
+ core:has-name "updated_at" ;
2529
+ core:not-modelled-reason "The model keeps no time property of a setting. The audit rows keep the changes."@en ;
2530
+ core:label "money.plan_limits.updated_at"@en ;
2531
+ core:definition "The time of the last change of the plan limit."@en ;
2532
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2533
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2534
+ core:owner core:billing .
2535
+
2536
+ billing:table-money-audit-rows a owl:NamedIndividual , core:table ;
2537
+ core:in-database-schema billing:schema-money ;
2538
+ core:has-name "audit_rows" ;
2539
+ core:has-row-class billing:audit-row ;
2540
+ core:label "money.audit_rows"@en ;
2541
+ core:definition "The table of the audit rows of `billing`: one row for each change of a rate, a setting, a grant or a discount."@en ;
2542
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2543
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2544
+ core:owner core:billing .
2545
+
2546
+ billing:column-audit-rows-id a owl:NamedIndividual , core:column ;
2547
+ core:of-table billing:table-money-audit-rows ;
2548
+ core:has-name "id" ;
2549
+ core:stores-property core:id ;
2550
+ core:in-primary-key true ;
2551
+ core:label "money.audit_rows.id"@en ;
2552
+ core:definition "The id of the audit row."@en ;
2553
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2554
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2555
+ core:owner core:billing .
2556
+
2557
+ billing:column-audit-rows-record a owl:NamedIndividual , core:column ;
2558
+ core:of-table billing:table-money-audit-rows ;
2559
+ core:has-name "record" ;
2560
+ core:not-modelled-reason "The kind is the class of the record that `billing:of-record` names."@en ;
2561
+ core:label "money.audit_rows.record"@en ;
2562
+ core:definition "The kind of the audited record: `rate`, `setting`, `grant`, `plan`, `pack`, `discount` or `subscription`."@en ;
2563
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2564
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2565
+ core:owner core:billing .
2566
+
2567
+ billing:column-audit-rows-record-id a owl:NamedIndividual , core:column ;
2568
+ core:of-table billing:table-money-audit-rows ;
2569
+ core:has-name "record_id" ;
2570
+ core:stores-property billing:of-record ;
2571
+ core:label "money.audit_rows.record_id"@en ;
2572
+ core:definition "The rate id, the setting name, the entry id or the discount id."@en ;
2573
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2574
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2575
+ core:owner core:billing .
2576
+
2577
+ billing:column-audit-rows-workspace a owl:NamedIndividual , core:column ;
2578
+ core:of-table billing:table-money-audit-rows ;
2579
+ core:has-name "workspace" ;
2580
+ core:stores-property core:in-workspace ;
2581
+ core:label "money.audit_rows.workspace"@en ;
2582
+ core:definition "The id of the workspace of the change. It is empty for a global change."@en ;
2583
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2584
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2585
+ core:owner core:billing .
2586
+
2587
+ billing:column-audit-rows-actor a owl:NamedIndividual , core:column ;
2588
+ core:of-table billing:table-money-audit-rows ;
2589
+ core:has-name "actor" ;
2590
+ core:stores-property billing:has-audit-actor ;
2591
+ core:label "money.audit_rows.actor"@en ;
2592
+ core:definition "The audit actor: `staff`, `user` or `service`."@en ;
2593
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2594
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2595
+ core:owner core:billing .
2596
+
2597
+ billing:column-audit-rows-actor-id a owl:NamedIndividual , core:column ;
2598
+ core:of-table billing:table-money-audit-rows ;
2599
+ core:has-name "actor_id" ;
2600
+ core:not-modelled-reason "The model keeps the kind of the actor, not its id."@en ;
2601
+ core:label "money.audit_rows.actor_id"@en ;
2602
+ core:definition "The id of the audit actor."@en ;
2603
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2604
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2605
+ core:owner core:billing .
2606
+
2607
+ billing:column-audit-rows-user-id a owl:NamedIndividual , core:column ;
2608
+ core:of-table billing:table-money-audit-rows ;
2609
+ core:has-name "user_id" ;
2610
+ core:not-modelled-reason "The model keeps the kind of the actor, not its user."@en ;
2611
+ core:label "money.audit_rows.user_id"@en ;
2612
+ core:definition "The id of the user of a staff actor."@en ;
2613
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2614
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2615
+ core:owner core:billing .
2616
+
2617
+ billing:column-audit-rows-old-value a owl:NamedIndividual , core:column ;
2618
+ core:of-table billing:table-money-audit-rows ;
2619
+ core:has-name "old_value" ;
2620
+ core:stores-property billing:has-old-value ;
2621
+ core:label "money.audit_rows.old_value"@en ;
2622
+ core:definition "The value before the change."@en ;
2623
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2624
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2625
+ core:owner core:billing .
2626
+
2627
+ billing:column-audit-rows-new-value a owl:NamedIndividual , core:column ;
2628
+ core:of-table billing:table-money-audit-rows ;
2629
+ core:has-name "new_value" ;
2630
+ core:stores-property billing:has-new-value ;
2631
+ core:label "money.audit_rows.new_value"@en ;
2632
+ core:definition "The value after the change."@en ;
2633
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2634
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2635
+ core:owner core:billing .
2636
+
2637
+ billing:column-audit-rows-idempotency-key a owl:NamedIndividual , core:column ;
2638
+ core:of-table billing:table-money-audit-rows ;
2639
+ core:has-name "idempotency_key" ;
2640
+ core:stores-property billing:has-idempotency-key ;
2641
+ core:label "money.audit_rows.idempotency_key"@en ;
2642
+ core:definition "The idempotency key of the change. It is unique."@en ;
2643
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2644
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2645
+ core:owner core:billing .
2646
+
2647
+ billing:column-audit-rows-body-hash a owl:NamedIndividual , core:column ;
2648
+ core:of-table billing:table-money-audit-rows ;
2649
+ core:has-name "body_hash" ;
2650
+ core:not-modelled-reason "The hash is a check of a retry. The model has no property for it."@en ;
2651
+ core:label "money.audit_rows.body_hash"@en ;
2652
+ core:definition "The hash of the body of the request of the change."@en ;
2653
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2654
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2655
+ core:owner core:billing .
2656
+
2657
+ billing:column-audit-rows-created-at a owl:NamedIndividual , core:column ;
2658
+ core:of-table billing:table-money-audit-rows ;
2659
+ core:has-name "created_at" ;
2660
+ core:stores-property core:generated-at ;
2661
+ core:label "money.audit_rows.created_at"@en ;
2662
+ core:definition "The time of the change."@en ;
2663
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2664
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2665
+ core:owner core:billing .
2666
+
2667
+ billing:column-audit-rows-grant-reason a owl:NamedIndividual , core:column ;
2668
+ core:of-table billing:table-money-audit-rows ;
2669
+ core:has-name "grant_reason" ;
2670
+ core:stores-property billing:has-grant-reason ;
2671
+ core:label "money.audit_rows.grant_reason"@en ;
2672
+ core:definition "The grant reason of the audit row of a grant of kind `admin`."@en ;
2673
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2674
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2675
+ core:owner core:billing .
2676
+
2677
+ billing:table-money-outbox a owl:NamedIndividual , core:table ;
2678
+ core:in-database-schema billing:schema-money ;
2679
+ core:has-name "outbox" ;
2680
+ core:has-row-class billing:outbox-row ;
2681
+ core:label "money.outbox"@en ;
2682
+ core:definition "The table of the outbox rows of `billing`: one row for each message to send to a different service."@en ;
2683
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2684
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2685
+ core:owner core:billing .
2686
+
2687
+ billing:column-outbox-id a owl:NamedIndividual , core:column ;
2688
+ core:of-table billing:table-money-outbox ;
2689
+ core:has-name "id" ;
2690
+ core:stores-property core:id ;
2691
+ core:in-primary-key true ;
2692
+ core:label "money.outbox.id"@en ;
2693
+ core:definition "The id of the outbox row. For a webhook, it is the webhook id."@en ;
2694
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2695
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2696
+ core:owner core:billing .
2697
+
2698
+ billing:column-outbox-workspace a owl:NamedIndividual , core:column ;
2699
+ core:of-table billing:table-money-outbox ;
2700
+ core:has-name "workspace" ;
2701
+ core:stores-property core:in-workspace ;
2702
+ core:label "money.outbox.workspace"@en ;
2703
+ core:definition "The id of the workspace of the message."@en ;
2704
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2705
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2706
+ core:owner core:billing .
2707
+
2708
+ billing:column-outbox-topic a owl:NamedIndividual , core:column ;
2709
+ core:of-table billing:table-money-outbox ;
2710
+ core:has-name "topic" ;
2711
+ core:stores-property billing:has-webhook-topic ;
2712
+ core:label "money.outbox.topic"@en ;
2713
+ core:definition "The webhook topic of the message."@en ;
2714
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2715
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2716
+ core:owner core:billing .
2717
+
2718
+ billing:column-outbox-body a owl:NamedIndividual , core:column ;
2719
+ core:of-table billing:table-money-outbox ;
2720
+ core:has-name "body" ;
2721
+ core:not-modelled-reason "The body is the message itself. The model keeps the webhook as the class `billing:webhook`. The body of a channel row, for example the resolved quotas, is the payload of the target API."@en ;
2722
+ core:label "money.outbox.body"@en ;
2723
+ core:definition "The body of the message, as JSON."@en ;
2724
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2725
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2726
+ core:owner core:billing .
2727
+
2728
+ billing:column-outbox-sequence-number a owl:NamedIndividual , core:column ;
2729
+ core:of-table billing:table-money-outbox ;
2730
+ core:has-name "sequence_number" ;
2731
+ core:stores-property billing:has-sequence-number ;
2732
+ core:label "money.outbox.sequence_number"@en ;
2733
+ core:definition "The sequence number of the webhook of the message."@en ;
2734
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2735
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2736
+ core:owner core:billing .
2737
+
2738
+ billing:column-outbox-status a owl:NamedIndividual , core:column ;
2739
+ core:of-table billing:table-money-outbox ;
2740
+ core:has-name "status" ;
2741
+ core:stores-property core:has-status ;
2742
+ core:label "money.outbox.status"@en ;
2743
+ core:definition "The outbox row status: `pending`, `sent` or `stopped`."@en ;
2744
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2745
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2746
+ core:owner core:billing .
2747
+
2748
+ billing:column-outbox-attempts a owl:NamedIndividual , core:column ;
2749
+ core:of-table billing:table-money-outbox ;
2750
+ core:has-name "attempts" ;
2751
+ core:not-modelled-reason "The retry state of the send is not in the model yet."@en ;
2752
+ core:label "money.outbox.attempts"@en ;
2753
+ core:definition "The number of sends that failed."@en ;
2754
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2755
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2756
+ core:owner core:billing .
2757
+
2758
+ billing:column-outbox-next-at a owl:NamedIndividual , core:column ;
2759
+ core:of-table billing:table-money-outbox ;
2760
+ core:has-name "next_at" ;
2761
+ core:not-modelled-reason "The retry state of the send is not in the model yet."@en ;
2762
+ core:label "money.outbox.next_at"@en ;
2763
+ core:definition "The time of the next send."@en ;
2764
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2765
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2766
+ core:owner core:billing .
2767
+
2768
+ billing:column-outbox-last-error a owl:NamedIndividual , core:column ;
2769
+ core:of-table billing:table-money-outbox ;
2770
+ core:has-name "last_error" ;
2771
+ core:not-modelled-reason "The retry state of the send is not in the model yet."@en ;
2772
+ core:label "money.outbox.last_error"@en ;
2773
+ core:definition "The error of the last failed send."@en ;
2774
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2775
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2776
+ core:owner core:billing .
2777
+
2778
+ billing:column-outbox-created-at a owl:NamedIndividual , core:column ;
2779
+ core:of-table billing:table-money-outbox ;
2780
+ core:has-name "created_at" ;
2781
+ core:stores-property core:generated-at ;
2782
+ core:label "money.outbox.created_at"@en ;
2783
+ core:definition "The time that `billing` made the outbox row."@en ;
2784
+ core:source "docs/specs/billing/docs/internal/decisions/0010-storage.md#Decision" ;
2785
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2786
+ core:owner core:billing .
2787
+
2788
+ billing:column-outbox-target a owl:NamedIndividual , core:column ;
2789
+ core:of-table billing:table-money-outbox ;
2790
+ core:has-name "target" ;
2791
+ core:stores-property billing:has-channel-name ;
2792
+ core:label "money.outbox.target"@en ;
2793
+ core:definition "The channel name of the message, for example `webhooks-billing` or `quotas-sync`."@en ;
2794
+ core:source "docs/specs/billing/docs/internal/decisions/0034-quota-sync.md#Decision" ;
2795
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2796
+ core:owner core:billing .
2797
+
2798
+ billing:column-outbox-method a owl:NamedIndividual , core:column ;
2799
+ core:of-table billing:table-money-outbox ;
2800
+ core:has-name "method" ;
2801
+ core:not-modelled-reason "The HTTP method of the channel is a transport detail."@en ;
2802
+ core:label "money.outbox.method"@en ;
2803
+ core:definition "The HTTP method of the send, for example POST or PUT."@en ;
2804
+ core:source "docs/specs/billing/docs/internal/decisions/0034-quota-sync.md#Decision" ;
2805
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2806
+ core:owner core:billing .
2807
+
2808
+ billing:column-outbox-path a owl:NamedIndividual , core:column ;
2809
+ core:of-table billing:table-money-outbox ;
2810
+ core:has-name "path" ;
2811
+ core:not-modelled-reason "The HTTP path of the channel is a transport detail."@en ;
2812
+ core:label "money.outbox.path"@en ;
2813
+ core:definition "The HTTP path of the send, for example /webhooks/billing or /quotas."@en ;
2814
+ core:source "docs/specs/billing/docs/internal/decisions/0034-quota-sync.md#Decision" ;
2815
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2816
+ core:owner core:billing .
2817
+
2818
+ billing:table-money-plans a owl:NamedIndividual , core:table ;
2819
+ core:in-database-schema billing:schema-money ;
2820
+ core:has-name "plans" ;
2821
+ core:has-row-class billing:plan ;
2822
+ core:label "money.plans"@en ;
2823
+ core:definition "The table of the plans of `billing`."@en ;
2824
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2825
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2826
+ core:owner core:billing .
2827
+
2828
+ billing:column-plans-id a owl:NamedIndividual , core:column ;
2829
+ core:of-table billing:table-money-plans ;
2830
+ core:has-name "id" ;
2831
+ core:stores-property core:id ;
2832
+ core:label "money.plans.id"@en ;
2833
+ core:definition "The id of the plan."@en ;
2834
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2835
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2836
+ core:owner core:billing .
2837
+
2838
+ billing:column-plans-name a owl:NamedIndividual , core:column ;
2839
+ core:of-table billing:table-money-plans ;
2840
+ core:has-name "name" ;
2841
+ core:stores-property core:has-name ;
2842
+ core:label "money.plans.name"@en ;
2843
+ core:definition "The name of the plan."@en ;
2844
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2845
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2846
+ core:owner core:billing .
2847
+
2848
+ billing:column-plans-plan-interval a owl:NamedIndividual , core:column ;
2849
+ core:of-table billing:table-money-plans ;
2850
+ core:has-name "plan_interval" ;
2851
+ core:stores-property billing:has-plan-interval ;
2852
+ core:label "money.plans.plan_interval"@en ;
2853
+ core:definition "The plan interval of the plan."@en ;
2854
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2855
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2856
+ core:owner core:billing .
2857
+
2858
+ billing:column-plans-credits-per-month a owl:NamedIndividual , core:column ;
2859
+ core:of-table billing:table-money-plans ;
2860
+ core:has-name "credits_per_month" ;
2861
+ core:stores-property billing:grants-each-month ;
2862
+ core:label "money.plans.credits_per_month"@en ;
2863
+ core:definition "The credits of the grant for each month, in micro-USD."@en ;
2864
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2865
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2866
+ core:owner core:billing .
2867
+
2868
+ billing:column-plans-replaces-plan-id a owl:NamedIndividual , core:column ;
2869
+ core:of-table billing:table-money-plans ;
2870
+ core:has-name "replaces_plan_id" ;
2871
+ core:stores-property billing:replaces-plan ;
2872
+ core:label "money.plans.replaces_plan_id"@en ;
2873
+ core:definition "The earlier plan that the plan replaces."@en ;
2874
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2875
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2876
+ core:owner core:billing .
2877
+
2878
+ billing:column-plans-created-at a owl:NamedIndividual , core:column ;
2879
+ core:of-table billing:table-money-plans ;
2880
+ core:has-name "created_at" ;
2881
+ core:not-modelled-reason "The model keeps no time property of a plan. The audit rows keep the changes."@en ;
2882
+ core:label "money.plans.created_at"@en ;
2883
+ core:definition "The time that `billing` made the plan."@en ;
2884
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2885
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2886
+ core:owner core:billing .
2887
+
2888
+ billing:table-money-packs a owl:NamedIndividual , core:table ;
2889
+ core:in-database-schema billing:schema-money ;
2890
+ core:has-name "packs" ;
2891
+ core:has-row-class billing:pack ;
2892
+ core:label "money.packs"@en ;
2893
+ core:definition "The table of the packs of `billing`."@en ;
2894
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2895
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2896
+ core:owner core:billing .
2897
+
2898
+ billing:column-packs-id a owl:NamedIndividual , core:column ;
2899
+ core:of-table billing:table-money-packs ;
2900
+ core:has-name "id" ;
2901
+ core:stores-property core:id ;
2902
+ core:label "money.packs.id"@en ;
2903
+ core:definition "The id of the pack."@en ;
2904
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2905
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2906
+ core:owner core:billing .
2907
+
2908
+ billing:column-packs-name a owl:NamedIndividual , core:column ;
2909
+ core:of-table billing:table-money-packs ;
2910
+ core:has-name "name" ;
2911
+ core:stores-property core:has-name ;
2912
+ core:label "money.packs.name"@en ;
2913
+ core:definition "The name of the pack."@en ;
2914
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2915
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2916
+ core:owner core:billing .
2917
+
2918
+ billing:column-packs-credits a owl:NamedIndividual , core:column ;
2919
+ core:of-table billing:table-money-packs ;
2920
+ core:has-name "credits" ;
2921
+ core:stores-property billing:has-credits ;
2922
+ core:label "money.packs.credits"@en ;
2923
+ core:definition "The credits of the pack, in micro-USD."@en ;
2924
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2925
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2926
+ core:owner core:billing .
2927
+
2928
+ billing:column-packs-replaces-pack-id a owl:NamedIndividual , core:column ;
2929
+ core:of-table billing:table-money-packs ;
2930
+ core:has-name "replaces_pack_id" ;
2931
+ core:stores-property billing:replaces-pack ;
2932
+ core:label "money.packs.replaces_pack_id"@en ;
2933
+ core:definition "The earlier pack that the pack replaces."@en ;
2934
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2935
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2936
+ core:owner core:billing .
2937
+
2938
+ billing:column-packs-created-at a owl:NamedIndividual , core:column ;
2939
+ core:of-table billing:table-money-packs ;
2940
+ core:has-name "created_at" ;
2941
+ core:not-modelled-reason "The model keeps no time property of a pack. The audit rows keep the changes."@en ;
2942
+ core:label "money.packs.created_at"@en ;
2943
+ core:definition "The time that `billing` made the pack."@en ;
2944
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2945
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2946
+ core:owner core:billing .
2947
+
2948
+ billing:table-money-prices a owl:NamedIndividual , core:table ;
2949
+ core:in-database-schema billing:schema-money ;
2950
+ core:has-name "prices" ;
2951
+ core:has-row-class billing:price ;
2952
+ core:label "money.prices"@en ;
2953
+ core:definition "The table of the prices of the plans and the packs."@en ;
2954
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2955
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2956
+ core:owner core:billing .
2957
+
2958
+ billing:column-prices-plan-id a owl:NamedIndividual , core:column ;
2959
+ core:of-table billing:table-money-prices ;
2960
+ core:has-name "plan_id" ;
2961
+ core:not-modelled-reason "The plan of the price. The plan has `billing:has-price`; this column stores the link from the price."@en ;
2962
+ core:label "money.prices.plan_id"@en ;
2963
+ core:definition "The id of the plan of the price."@en ;
2964
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2965
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2966
+ core:owner core:billing .
2967
+
2968
+ billing:column-prices-pack-id a owl:NamedIndividual , core:column ;
2969
+ core:of-table billing:table-money-prices ;
2970
+ core:has-name "pack_id" ;
2971
+ core:not-modelled-reason "The pack of the price. The pack has `billing:has-price`; this column stores the link from the price."@en ;
2972
+ core:label "money.prices.pack_id"@en ;
2973
+ core:definition "The id of the pack of the price."@en ;
2974
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2975
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2976
+ core:owner core:billing .
2977
+
2978
+ billing:column-prices-currency a owl:NamedIndividual , core:column ;
2979
+ core:of-table billing:table-money-prices ;
2980
+ core:has-name "currency" ;
2981
+ core:stores-property billing:in-currency ;
2982
+ core:label "money.prices.currency"@en ;
2983
+ core:definition "The ISO 4217 code of the price."@en ;
2984
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
2985
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2986
+ core:owner core:billing .
2987
+
2988
+ billing:column-prices-amount a owl:NamedIndividual , core:column ;
2989
+ core:of-table billing:table-money-prices ;
2990
+ core:has-name "amount" ;
2991
+ core:stores-property billing:has-price-amount ;
2992
+ core:label "money.prices.amount"@en ;
2993
+ core:definition "The amount in micro-USD."@en ;
2994
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" , "docs/specs/billing/docs/internal/decisions/0036-launch-offers.md#Decision" ;
2995
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
2996
+ core:owner core:billing .
2997
+
2998
+ billing:column-prices-stripe-price-id a owl:NamedIndividual , core:column ;
2999
+ core:of-table billing:table-money-prices ;
3000
+ core:has-name "stripe_price_id" ;
3001
+ core:stores-property billing:has-stripe-price-id ;
3002
+ core:label "money.prices.stripe_price_id"@en ;
3003
+ core:definition "The id of the Stripe price object of a price of a plan: unique when it is set."@en ;
3004
+ core:source "docs/specs/billing/docs/internal/decisions/0014-payments.md#Decision" ;
3005
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3006
+ core:owner core:billing .
3007
+
3008
+ billing:column-prices-credits a owl:NamedIndividual , core:column ;
3009
+ core:of-table billing:table-money-prices ;
3010
+ core:has-name "credits" ;
3011
+ core:stores-property billing:has-credits ;
3012
+ core:label "money.prices.credits"@en ;
3013
+ core:definition "The credits that the price gives, in micro-USD."@en ;
3014
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
3015
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3016
+ core:owner core:billing .
3017
+
3018
+ billing:column-prices-created-at a owl:NamedIndividual , core:column ;
3019
+ core:of-table billing:table-money-prices ;
3020
+ core:has-name "created_at" ;
3021
+ core:not-modelled-reason "The model keeps no time property of a price. The audit rows keep the changes."@en ;
3022
+ core:label "money.prices.created_at"@en ;
3023
+ core:definition "The time that `billing` made the price."@en ;
3024
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
3025
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3026
+ core:owner core:billing .
3027
+
3028
+ billing:table-money-plan-quotas a owl:NamedIndividual , core:table ;
3029
+ core:in-database-schema billing:schema-money ;
3030
+ core:has-name "plan_quotas" ;
3031
+ core:has-row-class billing:quota ;
3032
+ core:label "money.plan_quotas"@en ;
3033
+ core:definition "The table of the quotas of the plans."@en ;
3034
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
3035
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3036
+ core:owner core:billing .
3037
+
3038
+ billing:column-plan-quotas-plan-id a owl:NamedIndividual , core:column ;
3039
+ core:of-table billing:table-money-plan-quotas ;
3040
+ core:has-name "plan_id" ;
3041
+ core:not-modelled-reason "The plan of the quota. The plan has `billing:has-quota`; this column stores the link from the quota."@en ;
3042
+ core:label "money.plan_quotas.plan_id"@en ;
3043
+ core:definition "The id of the plan of the quota."@en ;
3044
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
3045
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3046
+ core:owner core:billing .
3047
+
3048
+ billing:column-plan-quotas-metric a owl:NamedIndividual , core:column ;
3049
+ core:of-table billing:table-money-plan-quotas ;
3050
+ core:has-name "metric" ;
3051
+ core:stores-property billing:has-metric ;
3052
+ core:label "money.plan_quotas.metric"@en ;
3053
+ core:definition "The metric id of the quota."@en ;
3054
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
3055
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3056
+ core:owner core:billing .
3057
+
3058
+ billing:column-plan-quotas-limit a owl:NamedIndividual , core:column ;
3059
+ core:of-table billing:table-money-plan-quotas ;
3060
+ core:has-name "quota_limit" ;
3061
+ core:stores-property billing:has-quota-limit ;
3062
+ core:label "money.plan_quotas.quota_limit"@en ;
3063
+ core:definition "The largest value that the quota allows."@en ;
3064
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
3065
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3066
+ core:owner core:billing .
3067
+
3068
+ billing:column-plan-limits-plan a owl:NamedIndividual , core:column ;
3069
+ core:of-table billing:table-money-plan-limits ;
3070
+ core:has-name "plan" ;
3071
+ core:stores-property billing:for-plan ;
3072
+ core:label "money.plan_limits.plan"@en ;
3073
+ core:definition "The id of the plan of a plan limit of scope `plan`."@en ;
3074
+ core:source "docs/specs/billing/docs/internal/decisions/0032-plans-and-packs.md#Decision" ;
3075
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3076
+ core:owner core:billing .
3077
+
3078
+ billing:table-money-auto-top-up a owl:NamedIndividual , core:table ;
3079
+ core:in-database-schema billing:schema-money ;
3080
+ core:has-name "auto_top_up" ;
3081
+ core:has-row-class billing:automatic-top-up ;
3082
+ core:label "money.auto_top_up"@en ;
3083
+ core:definition "The table of the automatic top-up of a workspace."@en ;
3084
+ core:source "docs/specs/billing/docs/internal/decisions/0015-automatic-top-up.md#Decision" ;
3085
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3086
+ core:owner core:billing .
3087
+
3088
+ billing:column-auto-top-up-workspace a owl:NamedIndividual , core:column ;
3089
+ core:of-table billing:table-money-auto-top-up ;
3090
+ core:has-name "workspace" ;
3091
+ core:stores-property core:in-workspace ;
3092
+ core:label "money.auto_top_up.workspace"@en ;
3093
+ core:definition "The workspace that has the automatic top-up."@en ;
3094
+ core:source "docs/specs/billing/docs/internal/decisions/0015-automatic-top-up.md#Decision" ;
3095
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3096
+ core:owner core:billing .
3097
+
3098
+ billing:column-auto-top-up-enabled a owl:NamedIndividual , core:column ;
3099
+ core:of-table billing:table-money-auto-top-up ;
3100
+ core:has-name "enabled" ;
3101
+ core:stores-property billing:is-on ;
3102
+ core:label "money.auto_top_up.enabled"@en ;
3103
+ core:definition "The state of the automatic top-up."@en ;
3104
+ core:source "docs/specs/billing/docs/internal/decisions/0015-automatic-top-up.md#Decision" ;
3105
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3106
+ core:owner core:billing .
3107
+
3108
+ billing:column-auto-top-up-threshold a owl:NamedIndividual , core:column ;
3109
+ core:of-table billing:table-money-auto-top-up ;
3110
+ core:has-name "threshold" ;
3111
+ core:stores-property billing:has-threshold ;
3112
+ core:label "money.auto_top_up.threshold"@en ;
3113
+ core:definition "The threshold of the available credits, in micro-USD."@en ;
3114
+ core:source "docs/specs/billing/docs/internal/decisions/0015-automatic-top-up.md#Decision" ;
3115
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3116
+ core:owner core:billing .
3117
+
3118
+ billing:column-auto-top-up-pack a owl:NamedIndividual , core:column ;
3119
+ core:of-table billing:table-money-auto-top-up ;
3120
+ core:has-name "pack_id" ;
3121
+ core:stores-property billing:of-pack ;
3122
+ core:label "money.auto_top_up.pack_id"@en ;
3123
+ core:definition "The id of the pack of the automatic top-up."@en ;
3124
+ core:source "docs/specs/billing/docs/internal/decisions/0015-automatic-top-up.md#Decision" ;
3125
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3126
+ core:owner core:billing .
3127
+
3128
+ billing:column-auto-top-up-monthly-maximum a owl:NamedIndividual , core:column ;
3129
+ core:of-table billing:table-money-auto-top-up ;
3130
+ core:has-name "monthly_maximum" ;
3131
+ core:stores-property billing:has-monthly-maximum ;
3132
+ core:label "money.auto_top_up.monthly_maximum"@en ;
3133
+ core:definition "The maximum of the credits of the automatic top-ups in one calendar month, in micro-USD."@en ;
3134
+ core:source "docs/specs/billing/docs/internal/decisions/0015-automatic-top-up.md#Decision" ;
3135
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3136
+ core:owner core:billing .
3137
+
3138
+ billing:column-auto-top-up-updated-at a owl:NamedIndividual , core:column ;
3139
+ core:of-table billing:table-money-auto-top-up ;
3140
+ core:has-name "updated_at" ;
3141
+ core:not-modelled-reason "The model keeps no time property of the automatic top-up. The audit rows keep the changes."@en ;
3142
+ core:label "money.auto_top_up.updated_at"@en ;
3143
+ core:definition "The time of the last change of the automatic top-up."@en ;
3144
+ core:source "docs/specs/billing/docs/internal/decisions/0015-automatic-top-up.md#Decision" ;
3145
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3146
+ core:owner core:billing .
3147
+
3148
+ billing:usage a owl:Class ;
3149
+ rdfs:subClassOf core:entity ;
3150
+ core:label "usage record"@en ;
3151
+ core:definition "A measured value of one workspace for one metric and one UTC day, optionally for one source and one key."@en ;
3152
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3153
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3154
+ core:owner core:billing ;
3155
+ core:has-contract true .
3156
+
3157
+ billing:for-day a owl:DatatypeProperty , owl:FunctionalProperty ;
3158
+ rdfs:domain billing:usage ;
3159
+ rdfs:range xsd:dateTime ;
3160
+ core:label "usage day"@en ;
3161
+ core:definition "The start of the UTC day of a usage record."@en ;
3162
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3163
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3164
+ core:owner core:billing ;
3165
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3166
+
3167
+ billing:for-source a owl:DatatypeProperty , owl:FunctionalProperty ;
3168
+ rdfs:domain billing:usage ;
3169
+ rdfs:range xsd:string ;
3170
+ core:label "for source"@en ;
3171
+ core:definition "The id of the source of a usage record. It is empty when the usage has no source."@en ;
3172
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3173
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3174
+ core:owner core:billing ;
3175
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3176
+
3177
+ billing:for-key a owl:DatatypeProperty , owl:FunctionalProperty ;
3178
+ rdfs:domain billing:usage ;
3179
+ rdfs:range xsd:string ;
3180
+ core:label "usage key"@en ;
3181
+ core:definition "The id of the key of a usage record. It is empty when the usage has no key."@en ;
3182
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3183
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3184
+ core:owner core:billing ;
3185
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3186
+
3187
+ billing:has-usage-value a owl:DatatypeProperty , owl:FunctionalProperty ;
3188
+ rdfs:domain billing:usage ;
3189
+ rdfs:range xsd:long ;
3190
+ core:label "has usage value"@en ;
3191
+ core:definition "The value of a usage record for its metric."@en ;
3192
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3193
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3194
+ core:owner core:billing ;
3195
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3196
+
3197
+ billing:table-money-usage a owl:NamedIndividual , core:table ;
3198
+ core:in-database-schema billing:schema-money ;
3199
+ core:has-name "usage" ;
3200
+ core:has-row-class billing:usage ;
3201
+ core:label "money.usage"@en ;
3202
+ core:definition "The table of the daily usage of a workspace."@en ;
3203
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3204
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3205
+ core:owner core:billing .
3206
+
3207
+ billing:column-usage-workspace a owl:NamedIndividual , core:column ;
3208
+ core:of-table billing:table-money-usage ;
3209
+ core:has-name "workspace" ;
3210
+ core:stores-property core:in-workspace ;
3211
+ core:label "money.usage.workspace"@en ;
3212
+ core:definition "The workspace that the usage belongs to."@en ;
3213
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3214
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3215
+ core:owner core:billing .
3216
+
3217
+ billing:column-usage-day a owl:NamedIndividual , core:column ;
3218
+ core:of-table billing:table-money-usage ;
3219
+ core:has-name "day" ;
3220
+ core:stores-property billing:for-day ;
3221
+ core:label "money.usage.day"@en ;
3222
+ core:definition "The UTC day of the usage."@en ;
3223
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3224
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3225
+ core:owner core:billing .
3226
+
3227
+ billing:column-usage-metric a owl:NamedIndividual , core:column ;
3228
+ core:of-table billing:table-money-usage ;
3229
+ core:has-name "metric" ;
3230
+ core:stores-property billing:has-metric ;
3231
+ core:label "money.usage.metric"@en ;
3232
+ core:definition "The metric id of the usage."@en ;
3233
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3234
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3235
+ core:owner core:billing .
3236
+
3237
+ billing:column-usage-source a owl:NamedIndividual , core:column ;
3238
+ core:of-table billing:table-money-usage ;
3239
+ core:has-name "source" ;
3240
+ core:stores-property billing:for-source ;
3241
+ core:label "money.usage.source"@en ;
3242
+ core:definition "The id of the source of the usage, or an empty string."@en ;
3243
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3244
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3245
+ core:owner core:billing .
3246
+
3247
+ billing:column-usage-key a owl:NamedIndividual , core:column ;
3248
+ core:of-table billing:table-money-usage ;
3249
+ core:has-name "key" ;
3250
+ core:stores-property billing:for-key ;
3251
+ core:label "money.usage.key"@en ;
3252
+ core:definition "The id of the key of the usage, or an empty string."@en ;
3253
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3254
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3255
+ core:owner core:billing .
3256
+
3257
+ billing:column-usage-value a owl:NamedIndividual , core:column ;
3258
+ core:of-table billing:table-money-usage ;
3259
+ core:has-name "value" ;
3260
+ core:stores-property billing:has-usage-value ;
3261
+ core:label "money.usage.value"@en ;
3262
+ core:definition "The value of the usage for its metric."@en ;
3263
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3264
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3265
+ core:owner core:billing .
3266
+
3267
+ billing:table-money-default-quotas a owl:NamedIndividual , core:table ;
3268
+ core:in-database-schema billing:schema-money ;
3269
+ core:has-name "default_quotas" ;
3270
+ core:has-row-class billing:quota ;
3271
+ core:label "money.default_quotas"@en ;
3272
+ core:definition "The table of the default quotas of a workspace with no plan."@en ;
3273
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3274
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3275
+ core:owner core:billing .
3276
+
3277
+ billing:column-default-quotas-metric a owl:NamedIndividual , core:column ;
3278
+ core:of-table billing:table-money-default-quotas ;
3279
+ core:has-name "metric" ;
3280
+ core:stores-property billing:has-metric ;
3281
+ core:label "money.default_quotas.metric"@en ;
3282
+ core:definition "The metric id of the default quota."@en ;
3283
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3284
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3285
+ core:owner core:billing .
3286
+
3287
+ billing:column-default-quotas-limit a owl:NamedIndividual , core:column ;
3288
+ core:of-table billing:table-money-default-quotas ;
3289
+ core:has-name "quota_limit" ;
3290
+ core:stores-property billing:has-quota-limit ;
3291
+ core:label "money.default_quotas.quota_limit"@en ;
3292
+ core:definition "The largest value that the default quota allows."@en ;
3293
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3294
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3295
+ core:owner core:billing .
3296
+
3297
+ billing:table-money-subscriptions a owl:NamedIndividual , core:table ;
3298
+ core:in-database-schema billing:schema-money ;
3299
+ core:has-name "subscriptions" ;
3300
+ core:has-row-class billing:subscription ;
3301
+ core:label "money.subscriptions"@en ;
3302
+ core:definition "The table of the subscription of a workspace."@en ;
3303
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3304
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3305
+ core:owner core:billing .
3306
+
3307
+ billing:column-subscriptions-id a owl:NamedIndividual , core:column ;
3308
+ core:of-table billing:table-money-subscriptions ;
3309
+ core:has-name "id" ;
3310
+ core:stores-property core:id ;
3311
+ core:label "money.subscriptions.id"@en ;
3312
+ core:definition "The id of the subscription: a UUIDv7, unique in the table."@en ;
3313
+ core:source "docs/specs/billing/docs/internal/decisions/0012-plans-and-subscriptions.md#Decision" ;
3314
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3315
+ core:owner core:billing .
3316
+
3317
+ billing:column-subscriptions-workspace a owl:NamedIndividual , core:column ;
3318
+ core:of-table billing:table-money-subscriptions ;
3319
+ core:has-name "workspace" ;
3320
+ core:stores-property core:in-workspace ;
3321
+ core:in-primary-key true ;
3322
+ core:label "money.subscriptions.workspace"@en ;
3323
+ core:definition "The workspace that has the subscription."@en ;
3324
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3325
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3326
+ core:owner core:billing .
3327
+
3328
+ billing:column-subscriptions-plan-id a owl:NamedIndividual , core:column ;
3329
+ core:of-table billing:table-money-subscriptions ;
3330
+ core:has-name "plan_id" ;
3331
+ core:stores-property billing:for-plan ;
3332
+ core:label "money.subscriptions.plan_id"@en ;
3333
+ core:definition "The id of the plan of the subscription."@en ;
3334
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3335
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3336
+ core:owner core:billing .
3337
+
3338
+ billing:column-subscriptions-status a owl:NamedIndividual , core:column ;
3339
+ core:of-table billing:table-money-subscriptions ;
3340
+ core:has-name "status" ;
3341
+ core:stores-property core:has-status ;
3342
+ core:label "money.subscriptions.status"@en ;
3343
+ core:definition "The status of the subscription: `active`, `past-due` or `ended`."@en ;
3344
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3345
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3346
+ core:owner core:billing .
3347
+
3348
+ billing:column-subscriptions-period-end a owl:NamedIndividual , core:column ;
3349
+ core:of-table billing:table-money-subscriptions ;
3350
+ core:has-name "period_end" ;
3351
+ core:not-modelled-reason "The model has no property for the end of the current subscription period."@en ;
3352
+ core:label "money.subscriptions.period_end"@en ;
3353
+ core:definition "The end of the current subscription period."@en ;
3354
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3355
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3356
+ core:owner core:billing .
3357
+
3358
+ billing:column-subscriptions-pending-plan-id a owl:NamedIndividual , core:column ;
3359
+ core:of-table billing:table-money-subscriptions ;
3360
+ core:has-name "pending_plan_id" ;
3361
+ core:not-modelled-reason "The model has no property for the plan of a pending change."@en ;
3362
+ core:label "money.subscriptions.pending_plan_id"@en ;
3363
+ core:definition "The id of the plan of a pending change."@en ;
3364
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3365
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3366
+ core:owner core:billing .
3367
+
3368
+ billing:column-subscriptions-pending-at a owl:NamedIndividual , core:column ;
3369
+ core:of-table billing:table-money-subscriptions ;
3370
+ core:has-name "pending_at" ;
3371
+ core:not-modelled-reason "The model has no property for the effective time of a pending change."@en ;
3372
+ core:label "money.subscriptions.pending_at"@en ;
3373
+ core:definition "The effective time of a pending change."@en ;
3374
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3375
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3376
+ core:owner core:billing .
3377
+
3378
+ billing:column-subscriptions-stripe-subscription-id a owl:NamedIndividual , core:column ;
3379
+ core:of-table billing:table-money-subscriptions ;
3380
+ core:has-name "stripe_subscription_id" ;
3381
+ core:stores-property billing:has-stripe-subscription-id ;
3382
+ core:label "money.subscriptions.stripe_subscription_id"@en ;
3383
+ core:definition "The id of the one Stripe subscription that links the workspace to the plan."@en ;
3384
+ core:source "docs/specs/billing/docs/internal/decisions/0012-plans-and-subscriptions.md#Decision" ;
3385
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3386
+ core:owner core:billing .
3387
+
3388
+ billing:column-subscriptions-created-at a owl:NamedIndividual , core:column ;
3389
+ core:of-table billing:table-money-subscriptions ;
3390
+ core:has-name "created_at" ;
3391
+ core:not-modelled-reason "The model keeps no time property of a subscription. The audit rows keep the changes."@en ;
3392
+ core:label "money.subscriptions.created_at"@en ;
3393
+ core:definition "The time that `billing` made the subscription."@en ;
3394
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3395
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3396
+ core:owner core:billing .
3397
+
3398
+ billing:column-subscriptions-started-at a owl:NamedIndividual , core:column ;
3399
+ core:of-table billing:table-money-subscriptions ;
3400
+ core:has-name "started_at" ;
3401
+ core:not-modelled-reason "The model has no property for the start of a subscription. The grant period starts on its day of the month."@en ;
3402
+ core:label "money.subscriptions.started_at"@en ;
3403
+ core:definition "The time that the subscription started, from the Stripe subscription, which gives the day of each grant period."@en ;
3404
+ core:source "docs/specs/billing/docs/internal/decisions/0012-plans-and-subscriptions.md#Decision" ;
3405
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3406
+ core:owner core:billing .
3407
+
3408
+ billing:column-subscriptions-updated-at a owl:NamedIndividual , core:column ;
3409
+ core:of-table billing:table-money-subscriptions ;
3410
+ core:has-name "updated_at" ;
3411
+ core:not-modelled-reason "The model keeps no time property of a subscription. The audit rows keep the changes."@en ;
3412
+ core:label "money.subscriptions.updated_at"@en ;
3413
+ core:definition "The time of the last change of the subscription."@en ;
3414
+ core:source "docs/specs/billing/docs/internal/decisions/0033-usage-and-subscriptions.md#Decision" ;
3415
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3416
+ core:owner core:billing .
3417
+
3418
+ billing:table-money-discounts a owl:NamedIndividual , core:table ;
3419
+ core:in-database-schema billing:schema-money ;
3420
+ core:has-name "discounts" ;
3421
+ core:has-row-class billing:discount ;
3422
+ core:label "money.discounts"@en ;
3423
+ core:definition "The table of the discounts of `billing`: one row for each discount of one workspace or of every workspace."@en ;
3424
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3425
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3426
+ core:owner core:billing .
3427
+
3428
+ billing:column-discounts-id a owl:NamedIndividual , core:column ;
3429
+ core:of-table billing:table-money-discounts ;
3430
+ core:has-name "id" ;
3431
+ core:stores-property core:id ;
3432
+ core:in-primary-key true ;
3433
+ core:label "money.discounts.id"@en ;
3434
+ core:definition "The id of the discount."@en ;
3435
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3436
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3437
+ core:owner core:billing .
3438
+
3439
+ billing:column-discounts-scope a owl:NamedIndividual , core:column ;
3440
+ core:of-table billing:table-money-discounts ;
3441
+ core:has-name "scope" ;
3442
+ core:stores-property billing:has-setting-scope ;
3443
+ core:label "money.discounts.scope"@en ;
3444
+ core:definition "The setting scope of the discount: `global` or `workspace`."@en ;
3445
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3446
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3447
+ core:owner core:billing .
3448
+
3449
+ billing:column-discounts-workspace a owl:NamedIndividual , core:column ;
3450
+ core:of-table billing:table-money-discounts ;
3451
+ core:has-name "workspace" ;
3452
+ core:stores-property core:in-workspace ;
3453
+ core:label "money.discounts.workspace"@en ;
3454
+ core:definition "The workspace of a discount of scope `workspace`. A discount of scope `global` has none."@en ;
3455
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3456
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3457
+ core:owner core:billing .
3458
+
3459
+ billing:column-discounts-kind a owl:NamedIndividual , core:column ;
3460
+ core:of-table billing:table-money-discounts ;
3461
+ core:has-name "kind" ;
3462
+ core:stores-property billing:has-discount-kind ;
3463
+ core:label "money.discounts.kind"@en ;
3464
+ core:definition "The discount kind: `usage`, `subscription`, `pack` or `bonus`."@en ;
3465
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3466
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3467
+ core:owner core:billing .
3468
+
3469
+ billing:column-discounts-spender a owl:NamedIndividual , core:column ;
3470
+ core:of-table billing:table-money-discounts ;
3471
+ core:has-name "spender" ;
3472
+ core:stores-property billing:of-spender ;
3473
+ core:label "money.discounts.spender"@en ;
3474
+ core:definition "The spender of a discount of kind `usage`. Each other kind has none."@en ;
3475
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3476
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3477
+ core:owner core:billing .
3478
+
3479
+ billing:column-discounts-value a owl:NamedIndividual , core:column ;
3480
+ core:of-table billing:table-money-discounts ;
3481
+ core:has-name "value" ;
3482
+ core:stores-property billing:has-discount-value ;
3483
+ core:label "money.discounts.value"@en ;
3484
+ core:definition "The value of the discount in basis points."@en ;
3485
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3486
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3487
+ core:owner core:billing .
3488
+
3489
+ billing:column-discounts-code a owl:NamedIndividual , core:column ;
3490
+ core:of-table billing:table-money-discounts ;
3491
+ core:has-name "code" ;
3492
+ core:stores-property billing:has-discount-code ;
3493
+ core:label "money.discounts.code"@en ;
3494
+ core:definition "The code of a private discount, in lower case. A discount that any workspace can take has none."@en ;
3495
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3496
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3497
+ core:owner core:billing .
3498
+
3499
+ billing:column-discounts-starts-at a owl:NamedIndividual , core:column ;
3500
+ core:of-table billing:table-money-discounts ;
3501
+ core:has-name "starts_at" ;
3502
+ core:stores-property core:started-at ;
3503
+ core:label "money.discounts.starts_at"@en ;
3504
+ core:definition "The start of the entry window of the discount."@en ;
3505
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3506
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3507
+ core:owner core:billing .
3508
+
3509
+ billing:column-discounts-ends-at a owl:NamedIndividual , core:column ;
3510
+ core:of-table billing:table-money-discounts ;
3511
+ core:has-name "ends_at" ;
3512
+ core:stores-property core:ended-at ;
3513
+ core:label "money.discounts.ends_at"@en ;
3514
+ core:definition "The end of the entry window of the discount. A discount with no end has none."@en ;
3515
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3516
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3517
+ core:owner core:billing .
3518
+
3519
+ billing:column-discounts-duration-months a owl:NamedIndividual , core:column ;
3520
+ core:of-table billing:table-money-discounts ;
3521
+ core:has-name "duration_months" ;
3522
+ core:stores-property billing:has-duration-months ;
3523
+ core:label "money.discounts.duration_months"@en ;
3524
+ core:definition "The number of months that the discount lasts for each workspace that entered it. A discount with no end has no value."@en ;
3525
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3526
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3527
+ core:owner core:billing .
3528
+
3529
+ billing:column-discounts-redemption-limit a owl:NamedIndividual , core:column ;
3530
+ core:of-table billing:table-money-discounts ;
3531
+ core:has-name "redemption_limit" ;
3532
+ core:stores-property billing:has-redemption-limit ;
3533
+ core:label "money.discounts.redemption_limit"@en ;
3534
+ core:definition "The largest number of workspaces that can take the discount. A discount with no limit has no value."@en ;
3535
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3536
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3537
+ core:owner core:billing .
3538
+
3539
+ billing:column-discounts-status a owl:NamedIndividual , core:column ;
3540
+ core:of-table billing:table-money-discounts ;
3541
+ core:has-name "status" ;
3542
+ core:stores-property core:has-status ;
3543
+ core:label "money.discounts.status"@en ;
3544
+ core:definition "The state of the discount: `pending`, `active` or `ended`."@en ;
3545
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3546
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3547
+ core:owner core:billing .
3548
+
3549
+ billing:column-discounts-approvals a owl:NamedIndividual , core:column ;
3550
+ core:of-table billing:table-money-discounts ;
3551
+ core:has-name "approvals" ;
3552
+ core:not-modelled-reason "A count of the staff users that approved the row, and not a property of a discount."@en ;
3553
+ core:label "money.discounts.approvals"@en ;
3554
+ core:definition "The number of finance users that approved the discount."@en ;
3555
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3556
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3557
+ core:owner core:billing .
3558
+
3559
+ billing:column-discounts-created-at a owl:NamedIndividual , core:column ;
3560
+ core:of-table billing:table-money-discounts ;
3561
+ core:has-name "created_at" ;
3562
+ core:stores-property core:generated-at ;
3563
+ core:label "money.discounts.created_at"@en ;
3564
+ core:definition "The time that the staff user made the discount."@en ;
3565
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3566
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3567
+ core:owner core:billing .
3568
+
3569
+ billing:column-discounts-updated-at a owl:NamedIndividual , core:column ;
3570
+ core:of-table billing:table-money-discounts ;
3571
+ core:has-name "updated_at" ;
3572
+ core:not-modelled-reason "A time of the row that no concept of the model names."@en ;
3573
+ core:label "money.discounts.updated_at"@en ;
3574
+ core:definition "The time of the last approval or end of the discount."@en ;
3575
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3576
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3577
+ core:owner core:billing .
3578
+
3579
+ billing:table-money-discount-redemptions a owl:NamedIndividual , core:table ;
3580
+ core:in-database-schema billing:schema-money ;
3581
+ core:has-name "discount_redemptions" ;
3582
+ core:has-row-class billing:discount-redemption ;
3583
+ core:label "money.discount_redemptions"@en ;
3584
+ core:definition "The table of the workspaces that entered a discount: one row for each workspace and discount."@en ;
3585
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3586
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3587
+ core:owner core:billing .
3588
+
3589
+ billing:column-discount-redemptions-discount a owl:NamedIndividual , core:column ;
3590
+ core:of-table billing:table-money-discount-redemptions ;
3591
+ core:has-name "discount_id" ;
3592
+ core:stores-property billing:of-discount ;
3593
+ core:in-primary-key true ;
3594
+ core:label "money.discount_redemptions.discount_id"@en ;
3595
+ core:definition "The discount that the workspace entered."@en ;
3596
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3597
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3598
+ core:owner core:billing .
3599
+
3600
+ billing:column-discount-redemptions-workspace a owl:NamedIndividual , core:column ;
3601
+ core:of-table billing:table-money-discount-redemptions ;
3602
+ core:has-name "workspace" ;
3603
+ core:stores-property core:in-workspace ;
3604
+ core:in-primary-key true ;
3605
+ core:label "money.discount_redemptions.workspace"@en ;
3606
+ core:definition "The workspace that entered the discount."@en ;
3607
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3608
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3609
+ core:owner core:billing .
3610
+
3611
+ billing:column-discount-redemptions-subscription a owl:NamedIndividual , core:column ;
3612
+ core:of-table billing:table-money-discount-redemptions ;
3613
+ core:has-name "subscription" ;
3614
+ core:not-modelled-reason "The id of the subscription that the discount applies to, as a text of the row."@en ;
3615
+ core:label "money.discount_redemptions.subscription"@en ;
3616
+ core:definition "The subscription that the discount applies to. A discount of kind `pack` has none."@en ;
3617
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3618
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3619
+ core:owner core:billing .
3620
+
3621
+ billing:column-discount-redemptions-created-at a owl:NamedIndividual , core:column ;
3622
+ core:of-table billing:table-money-discount-redemptions ;
3623
+ core:has-name "created_at" ;
3624
+ core:stores-property core:generated-at ;
3625
+ core:label "money.discount_redemptions.created_at"@en ;
3626
+ core:definition "The time that the workspace entered the discount."@en ;
3627
+ core:source "docs/specs/billing/docs/internal/decisions/0035-promotions.md#Decision" ;
3628
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3629
+ core:owner core:billing .
3630
+
3631
+ # The pre-signup costs of an onboarding session (billing 0037).
3632
+
3633
+ billing:table-money-pre-signup-costs a owl:NamedIndividual , core:table ;
3634
+ core:in-database-schema billing:schema-money ;
3635
+ core:has-name "pre_signup_costs" ;
3636
+ core:has-row-class billing:pre-signup-cost ;
3637
+ core:label "money.pre_signup_costs"@en ;
3638
+ core:definition "The table of the pre-signup costs of `billing`: one row for each paid call of an onboarding session before sign-up."@en ;
3639
+ core:source "docs/specs/billing/docs/internal/decisions/0037-pre-signup-costs.md#Decision" ;
3640
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3641
+ core:owner core:billing .
3642
+
3643
+ billing:column-pre-signup-costs-id a owl:NamedIndividual , core:column ;
3644
+ core:of-table billing:table-money-pre-signup-costs ;
3645
+ core:has-name "id" ;
3646
+ core:stores-property core:id ;
3647
+ core:in-primary-key true ;
3648
+ core:label "money.pre_signup_costs.id"@en ;
3649
+ core:definition "The id of the cost row. It is the primary key."@en ;
3650
+ core:source "docs/specs/billing/docs/internal/decisions/0037-pre-signup-costs.md#Decision" ;
3651
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3652
+ core:owner core:billing .
3653
+
3654
+ billing:column-pre-signup-costs-session a owl:NamedIndividual , core:column ;
3655
+ core:of-table billing:table-money-pre-signup-costs ;
3656
+ core:has-name "session" ;
3657
+ core:stores-property billing:of-onboarding-session-id ;
3658
+ core:label "money.pre_signup_costs.session"@en ;
3659
+ core:definition "The id of the onboarding session of `desk`."@en ;
3660
+ core:source "docs/specs/billing/docs/internal/decisions/0037-pre-signup-costs.md#Decision" ;
3661
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3662
+ core:owner core:billing .
3663
+
3664
+ billing:column-pre-signup-costs-step a owl:NamedIndividual , core:column ;
3665
+ core:of-table billing:table-money-pre-signup-costs ;
3666
+ core:has-name "step" ;
3667
+ core:stores-property billing:has-onboarding-step ;
3668
+ core:label "money.pre_signup_costs.step"@en ;
3669
+ core:definition "The step of the session that made the paid call: `company`, `icp`, `count` or `preview`."@en ;
3670
+ core:source "docs/specs/billing/docs/internal/decisions/0037-pre-signup-costs.md#Decision" ;
3671
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3672
+ core:owner core:billing .
3673
+
3674
+ billing:column-pre-signup-costs-provider a owl:NamedIndividual , core:column ;
3675
+ core:of-table billing:table-money-pre-signup-costs ;
3676
+ core:has-name "provider" ;
3677
+ core:stores-property billing:has-provider ;
3678
+ core:label "money.pre_signup_costs.provider"@en ;
3679
+ core:definition "The provider of the paid call."@en ;
3680
+ core:source "docs/specs/billing/docs/internal/decisions/0037-pre-signup-costs.md#Decision" ;
3681
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3682
+ core:owner core:billing .
3683
+
3684
+ billing:column-pre-signup-costs-ip-hash a owl:NamedIndividual , core:column ;
3685
+ core:of-table billing:table-money-pre-signup-costs ;
3686
+ core:has-name "ip_hash" ;
3687
+ core:not-modelled-reason "The keyed hash of the IP address of the visitor. It belongs to no class of the model: a request carries it and the row keeps it to count the spend of the address in the day."@en ;
3688
+ core:label "money.pre_signup_costs.ip_hash"@en ;
3689
+ core:definition "The keyed hash of the IP address of the visitor, which the cost row copies from the onboarding session."@en ;
3690
+ core:source "docs/specs/billing/docs/internal/decisions/0037-pre-signup-costs.md#Decision" ;
3691
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3692
+ core:owner core:billing .
3693
+
3694
+ billing:column-pre-signup-costs-cost a owl:NamedIndividual , core:column ;
3695
+ core:of-table billing:table-money-pre-signup-costs ;
3696
+ core:has-name "cost" ;
3697
+ core:stores-property billing:has-cost ;
3698
+ core:label "money.pre_signup_costs.cost"@en ;
3699
+ core:definition "The cost of the paid call in micro-USD."@en ;
3700
+ core:source "docs/specs/billing/docs/internal/decisions/0037-pre-signup-costs.md#Decision" ;
3701
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3702
+ core:owner core:billing .
3703
+
3704
+ billing:column-pre-signup-costs-workspace a owl:NamedIndividual , core:column ;
3705
+ core:of-table billing:table-money-pre-signup-costs ;
3706
+ core:has-name "workspace" ;
3707
+ core:not-modelled-reason "The id of the new workspace that the session became. The table row class `billing:pre-signup-cost` has no property for it yet."@en ;
3708
+ core:label "money.pre_signup_costs.workspace"@en ;
3709
+ core:definition "The id of the workspace of the session after the link."@en ;
3710
+ core:source "docs/specs/billing/docs/internal/decisions/0037-pre-signup-costs.md#Decision" ;
3711
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3712
+ core:owner core:billing .
3713
+
3714
+ billing:column-pre-signup-costs-linked-at a owl:NamedIndividual , core:column ;
3715
+ core:of-table billing:table-money-pre-signup-costs ;
3716
+ core:has-name "linked_at" ;
3717
+ core:not-modelled-reason "The time of the link of the cost to the new workspace. The model keeps no property for it yet."@en ;
3718
+ core:label "money.pre_signup_costs.linked_at"@en ;
3719
+ core:definition "The time at which `desk` linked the row to the new workspace."@en ;
3720
+ core:source "docs/specs/billing/docs/internal/decisions/0037-pre-signup-costs.md#Decision" ;
3721
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3722
+ core:owner core:billing .
3723
+
3724
+ billing:column-pre-signup-costs-created-at a owl:NamedIndividual , core:column ;
3725
+ core:of-table billing:table-money-pre-signup-costs ;
3726
+ core:has-name "created_at" ;
3727
+ core:stores-property core:generated-at ;
3728
+ core:label "money.pre_signup_costs.created_at"@en ;
3729
+ core:definition "The time of the paid call."@en ;
3730
+ core:source "docs/specs/billing/docs/internal/decisions/0037-pre-signup-costs.md#Decision" ;
3731
+ core:defined-by <https://id.quickpipe.ai/domain/billing> ;
3732
+ core:owner core:billing .