@lucianpacurar/iso20022.js 0.2.8 → 0.2.9

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/dist/index.js CHANGED
@@ -7746,13 +7746,15 @@ class SEPACreditPaymentInitiation extends PaymentInitiation {
7746
7746
  CtrlSum: this.formattedPaymentSum,
7747
7747
  InitgPty: {
7748
7748
  Nm: this.initiatingParty.name,
7749
- Id: {
7750
- OrgId: {
7751
- Othr: {
7752
- Id: this.initiatingParty.id,
7749
+ ...(this.initiatingParty.id && {
7750
+ Id: {
7751
+ OrgId: {
7752
+ Othr: {
7753
+ Id: this.initiatingParty.id,
7754
+ },
7753
7755
  },
7754
7756
  },
7755
- },
7757
+ }),
7756
7758
  },
7757
7759
  },
7758
7760
  PmtInf: {
@@ -8035,13 +8037,15 @@ class SEPAMultiCreditPaymentInitiation extends PaymentInitiation {
8035
8037
  CtrlSum: this.formattedPaymentSum,
8036
8038
  InitgPty: {
8037
8039
  Nm: this.initiatingParty.name,
8038
- Id: {
8039
- OrgId: {
8040
- Othr: {
8041
- Id: this.initiatingParty.id,
8040
+ ...(this.initiatingParty.id && {
8041
+ Id: {
8042
+ OrgId: {
8043
+ Othr: {
8044
+ Id: this.initiatingParty.id,
8045
+ },
8042
8046
  },
8043
8047
  },
8044
- },
8048
+ }),
8045
8049
  },
8046
8050
  },
8047
8051
  PmtInf: paymentInfoEntries,
package/dist/index.mjs CHANGED
@@ -7744,13 +7744,15 @@ class SEPACreditPaymentInitiation extends PaymentInitiation {
7744
7744
  CtrlSum: this.formattedPaymentSum,
7745
7745
  InitgPty: {
7746
7746
  Nm: this.initiatingParty.name,
7747
- Id: {
7748
- OrgId: {
7749
- Othr: {
7750
- Id: this.initiatingParty.id,
7747
+ ...(this.initiatingParty.id && {
7748
+ Id: {
7749
+ OrgId: {
7750
+ Othr: {
7751
+ Id: this.initiatingParty.id,
7752
+ },
7751
7753
  },
7752
7754
  },
7753
- },
7755
+ }),
7754
7756
  },
7755
7757
  },
7756
7758
  PmtInf: {
@@ -8033,13 +8035,15 @@ class SEPAMultiCreditPaymentInitiation extends PaymentInitiation {
8033
8035
  CtrlSum: this.formattedPaymentSum,
8034
8036
  InitgPty: {
8035
8037
  Nm: this.initiatingParty.name,
8036
- Id: {
8037
- OrgId: {
8038
- Othr: {
8039
- Id: this.initiatingParty.id,
8038
+ ...(this.initiatingParty.id && {
8039
+ Id: {
8040
+ OrgId: {
8041
+ Othr: {
8042
+ Id: this.initiatingParty.id,
8043
+ },
8040
8044
  },
8041
8045
  },
8042
- },
8046
+ }),
8043
8047
  },
8044
8048
  },
8045
8049
  PmtInf: paymentInfoEntries,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucianpacurar/iso20022.js",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "readme": "README.md",
5
5
  "description": "Library to create payment messages.",
6
6
  "main": "dist/index.js",