@lucianpacurar/iso20022.js 0.2.18 → 0.2.19

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.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { Currency } from 'dinero.js';
2
1
  import { XMLBuilder } from 'fast-xml-parser';
3
2
 
3
+ type Currency = 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'XSU' | 'XUA' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL';
4
+
4
5
  declare const Alpha2CountryCode: {
5
6
  readonly AF: "AF";
6
7
  readonly AL: "AL";
@@ -570,6 +571,12 @@ interface SEPADirectDebitPaymentInstruction extends PaymentInstruction {
570
571
  type?: 'sepa';
571
572
  direction?: 'debit';
572
573
  currency: 'EUR';
574
+ /**
575
+ * Optional instruction identification. When provided, emitted as `<InstrId>`
576
+ * inside `<PmtId>` (before `<EndToEndId>`). Max 35 characters. Required to
577
+ * echo as `OrgnlInstrId` in pain.007 reversals.
578
+ */
579
+ instrId?: string;
573
580
  /** The party being debited (money is collected from this party) */
574
581
  debtor: Party;
575
582
  /** Mandate information authorizing the direct debit */
@@ -1335,6 +1342,11 @@ interface SEPADirectDebitPaymentInstructionGroup {
1335
1342
  categoryPurpose?: ExternalCategoryPurpose;
1336
1343
  /** Indicates whether transactions should be booked in batch. Defaults to false. */
1337
1344
  batchBooking?: boolean;
1345
+ /**
1346
+ * Optional override for `<PmtInfId>`. When omitted, a UUID is generated.
1347
+ * Max 35 characters. Required to echo as `OrgnlPmtInfId` in pain.007 reversals.
1348
+ */
1349
+ paymentInformationId?: string;
1338
1350
  }
1339
1351
  /**
1340
1352
  * Configuration for SEPA Direct Debit Payment Initiation.
@@ -1455,6 +1467,7 @@ declare class SEPADirectDebitPaymentInitiation extends PaymentInitiation {
1455
1467
  } | undefined;
1456
1468
  PmtId: {
1457
1469
  EndToEndId: string;
1470
+ InstrId?: string | undefined;
1458
1471
  };
1459
1472
  InstdAmt: {
1460
1473
  '#': string;
@@ -2587,4 +2600,5 @@ declare class InvalidXmlNamespaceError extends Iso20022JsError {
2587
2600
  constructor(message: string);
2588
2601
  }
2589
2602
 
2590
- export { type ABAAgent, ACHCreditPaymentInitiation, type ACHCreditPaymentInitiationConfig$1 as ACHCreditPaymentInitiationConfig, type ACHCreditPaymentInstruction, type ACHLocalInstrument, ACHLocalInstrumentCode, ACHLocalInstrumentCodeDescriptionMap, type Account, type Agent, type BICAgent, type Balance, type BalanceType, BalanceTypeCode, BalanceTypeCodeDescriptionMap, type BaseAccount, type BaseStatusInformation as BaseStatus, CashManagementAccountReport, CashManagementEndOfDayReport, type Entry, type GroupStatusInformation as GroupStatus, type IBANAccount, ISO20022, InvalidXmlError, InvalidXmlNamespaceError, Iso20022JsError, type MandateAmendmentInformation, type MandateInformation, type OriginalGroupInformation, type Party, type PaymentStatusInformation as PaymentStatus, PaymentStatusCode, PaymentStatusReport, RTPCreditPaymentInitiation, type RTPCreditPaymentInitiationConfig$1 as RTPCreditPaymentInitiationConfig, type RTPCreditPaymentInstruction, SEPACreditPaymentInitiation, type SEPACreditPaymentInitiationConfig$1 as SEPACreditPaymentInitiationConfig, type SEPACreditPaymentInstruction, SEPADirectDebitPaymentInitiation, type SEPADirectDebitPaymentInitiationConfig$1 as SEPADirectDebitPaymentInitiationConfig, type SEPADirectDebitPaymentInstruction, type SEPADirectDebitPaymentInstructionGroup, type SEPALocalInstrument, SEPAMultiCreditPaymentInitiation, type SEPAMultiCreditPaymentInitiationConfig$1 as SEPAMultiCreditPaymentInitiationConfig, type SEPAMultiCreditPaymentInstructionGroup, type SEPASequenceType, SWIFTCreditPaymentInitiation, type SWIFTCreditPaymentInitiationConfig$1 as SWIFTCreditPaymentInitiationConfig, type SWIFTCreditPaymentInstruction, type Statement, type PaymentStatus as Status, type StatusInformation, type StatusType, type StructuredAddress, type Transaction, type TransactionStatusInformation as TransactionStatus };
2603
+ export { ACHCreditPaymentInitiation, ACHLocalInstrumentCode, ACHLocalInstrumentCodeDescriptionMap, BalanceTypeCode, BalanceTypeCodeDescriptionMap, CashManagementAccountReport, CashManagementEndOfDayReport, ISO20022, InvalidXmlError, InvalidXmlNamespaceError, Iso20022JsError, PaymentStatusCode, PaymentStatusReport, RTPCreditPaymentInitiation, SEPACreditPaymentInitiation, SEPADirectDebitPaymentInitiation, SEPAMultiCreditPaymentInitiation, SWIFTCreditPaymentInitiation };
2604
+ export type { ABAAgent, ACHCreditPaymentInitiationConfig$1 as ACHCreditPaymentInitiationConfig, ACHCreditPaymentInstruction, ACHLocalInstrument, Account, Agent, BICAgent, Balance, BalanceType, BaseAccount, BaseStatusInformation as BaseStatus, Entry, GroupStatusInformation as GroupStatus, IBANAccount, MandateAmendmentInformation, MandateInformation, OriginalGroupInformation, Party, PaymentStatusInformation as PaymentStatus, RTPCreditPaymentInitiationConfig$1 as RTPCreditPaymentInitiationConfig, RTPCreditPaymentInstruction, SEPACreditPaymentInitiationConfig$1 as SEPACreditPaymentInitiationConfig, SEPACreditPaymentInstruction, SEPADirectDebitPaymentInitiationConfig$1 as SEPADirectDebitPaymentInitiationConfig, SEPADirectDebitPaymentInstruction, SEPADirectDebitPaymentInstructionGroup, SEPALocalInstrument, SEPAMultiCreditPaymentInitiationConfig$1 as SEPAMultiCreditPaymentInitiationConfig, SEPAMultiCreditPaymentInstructionGroup, SEPASequenceType, SWIFTCreditPaymentInitiationConfig$1 as SWIFTCreditPaymentInitiationConfig, SWIFTCreditPaymentInstruction, Statement, PaymentStatus as Status, StatusInformation, StatusType, StructuredAddress, Transaction, TransactionStatusInformation as TransactionStatus };