@marianmeres/collection-types 2.11.0 β†’ 2.14.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.
@@ -69,8 +69,6 @@ export interface AddressData {
69
69
  phone?: string;
70
70
  /** Whether this is the default address for its type */
71
71
  is_default: boolean;
72
- /** Country relation (UI-only, stored in relations table) */
73
- country_rel?: never;
74
72
  /** Index signature for compatibility with UserData */
75
73
  [key: string]: unknown;
76
74
  }
package/dist/mod.d.ts CHANGED
@@ -43,7 +43,6 @@ export * from "./external-domain.js";
43
43
  export * from "./account.js";
44
44
  export * from "./product.js";
45
45
  export * from "./project.js";
46
- export * from "./country.js";
47
46
  export * from "./template.js";
48
47
  export * from "./email.js";
49
48
  export * from "./example.js";
package/dist/mod.js CHANGED
@@ -55,8 +55,6 @@ export * from "./account.js";
55
55
  export * from "./product.js";
56
56
  // Project/config domain types
57
57
  export * from "./project.js";
58
- // Country domain types (geographic reference data)
59
- export * from "./country.js";
60
58
  // Template domain types
61
59
  export * from "./template.js";
62
60
  // Email domain types
package/dist/payment.d.ts CHANGED
@@ -19,6 +19,17 @@ export interface PaymentData {
19
19
  status: PaymentStatus;
20
20
  /** Payment amount */
21
21
  amount: number;
22
+ /**
23
+ * Cumulative amount refunded so far, in the same units as {@link amount}.
24
+ * Absent or `0` = nothing refunded.
25
+ *
26
+ * A value **below** `amount` is a PARTIAL refund, and `status` deliberately
27
+ * stays `"completed"` in that case β€” a partially refunded payment is still a
28
+ * completed one. So `status === "refunded"` answers "was ALL of it
29
+ * returned?", and this field answers "was ANY of it returned?". Reading the
30
+ * former as the latter is wrong the moment a partial refund happens.
31
+ */
32
+ refunded_amount?: number;
22
33
  /** Currency code */
23
34
  currency: string;
24
35
  /** Provider-specific reference ID */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/collection-types",
3
- "version": "2.11.0",
3
+ "version": "2.14.0",
4
4
  "type": "module",
5
5
  "main": "dist/mod.js",
6
6
  "types": "dist/mod.d.ts",
package/dist/country.d.ts DELETED
@@ -1,24 +0,0 @@
1
- /**
2
- * Country type definitions for geographic reference data.
3
- *
4
- * Countries are stored in the project domain and referenced
5
- * via weak relations from customer addresses.
6
- */
7
- import type { MaybeLocalized } from "./utils.js";
8
- /** Country data field schema */
9
- export interface CountryData {
10
- /** ISO 3166-1 alpha-2 code (e.g., "US", "GB") - used as path for uniqueness */
11
- code: string;
12
- /** Display name - can be a plain string or localized object (e.g., { en: "United States", de: "Vereinigte Staaten" }) */
13
- name: MaybeLocalized<string>;
14
- /** Phone prefix with + (e.g., "+1", "+44") */
15
- phone_prefix?: string;
16
- /** Flag emoji (e.g., "πŸ‡ΊπŸ‡Έ") */
17
- flag?: string;
18
- /** Extensible metadata for future fields */
19
- custom?: Record<string, unknown>;
20
- /** Index signature for Model<T> compatibility */
21
- [key: string]: unknown;
22
- }
23
- /** Country type identifier */
24
- export type CountryType = "default";
package/dist/country.js DELETED
@@ -1,7 +0,0 @@
1
- /**
2
- * Country type definitions for geographic reference data.
3
- *
4
- * Countries are stored in the project domain and referenced
5
- * via weak relations from customer addresses.
6
- */
7
- export {};