@glissandoo/lib 1.96.0 → 1.97.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.
@@ -15,6 +15,13 @@ export default class Partnership extends PartnershipBasic<PartnershipData> {
15
15
  get isActive(): boolean;
16
16
  get federationIds(): string[];
17
17
  get groupIds(): string[];
18
- get sepaCreditorInfo(): import("./types").PartnershipSepaCreditorInfo | null;
18
+ get sepaCreditorInfo(): {
19
+ displayAddress: string;
20
+ creditorId: string;
21
+ legalName: string;
22
+ address: import("../../helpers/types").BasicAddressData;
23
+ iban: string;
24
+ swiftbic: string;
25
+ } | null;
19
26
  get glissandooAdminUrl(): string;
20
27
  }
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const collections_1 = require("../../helpers/collections");
7
7
  const glissandooAdmin_1 = require("../../helpers/glissandooAdmin");
8
+ const types_1 = require("../../helpers/types");
8
9
  const basic_1 = __importDefault(require("./basic"));
9
10
  class Partnership extends basic_1.default {
10
11
  get description() {
@@ -47,7 +48,12 @@ class Partnership extends basic_1.default {
47
48
  return this.data.groupIds || [];
48
49
  }
49
50
  get sepaCreditorInfo() {
50
- return this.data.sepaCreditorInfo || null;
51
+ if (!this.data.sepaCreditorInfo)
52
+ return null;
53
+ return {
54
+ ...this.data.sepaCreditorInfo,
55
+ displayAddress: (0, types_1.displayBasicAddress)(this.data.sepaCreditorInfo.address),
56
+ };
51
57
  }
52
58
  get glissandooAdminUrl() {
53
59
  return (0, glissandooAdmin_1.getGlissandooAdminEntityURL)(collections_1.CollectionNames.Partnership, this.id);
@@ -9,7 +9,7 @@ export interface PartnershipAlgoliaData extends Pick<PartnershipData, 'displayNa
9
9
  export interface PartnershipSepaCreditorInfo {
10
10
  creditorId: string;
11
11
  legalName: string;
12
- address: string;
12
+ address: BasicAddressData;
13
13
  iban: string;
14
14
  swiftbic: string;
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.96.0",
3
+ "version": "1.97.0",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",