bysquare 2.12.2 → 2.12.3

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "bysquare",
3
3
  "description": "It's a national standard for payment QR codes adopted by Slovak Banking Association (SBA)",
4
4
  "type": "module",
5
- "version": "2.12.2",
5
+ "version": "2.12.3",
6
6
  "license": "Apache-2.0",
7
7
  "funding": "https://github.com/sponsors/xseman",
8
8
  "homepage": "https://github.com/xseman/bysquare#readme",
@@ -46,6 +46,6 @@
46
46
  "files": [
47
47
  "dist/*.js",
48
48
  "dist/*.d.ts",
49
- "!dist/*.test.*"
49
+ "!dist/*test*"
50
50
  ]
51
51
  }
@@ -1,42 +0,0 @@
1
- export declare const payloadWithPaymentOrder: {
2
- invoiceId: string;
3
- payments: {
4
- type: 1;
5
- amount: number;
6
- bankAccounts: {
7
- iban: string;
8
- }[];
9
- currencyCode: "EUR";
10
- variableSymbol: string;
11
- }[];
12
- };
13
- export declare const serializedPaymentOrder: string;
14
- export declare const payloadWithStandingOrder: {
15
- invoiceId: string;
16
- payments: {
17
- type: 2;
18
- amount: number;
19
- bankAccounts: {
20
- iban: string;
21
- }[];
22
- periodicity: "m";
23
- currencyCode: "EUR";
24
- variableSymbol: string;
25
- lastDate: string;
26
- day: number;
27
- }[];
28
- };
29
- export declare const serializedStandingOrder: string;
30
- export declare const payloadWithDirectDebit: {
31
- invoiceId: string;
32
- payments: {
33
- type: 4;
34
- amount: number;
35
- bankAccounts: {
36
- iban: string;
37
- }[];
38
- currencyCode: "EUR";
39
- variableSymbol: string;
40
- }[];
41
- };
42
- export declare const serializedDirectDebit: string;
@@ -1,123 +0,0 @@
1
- import { CurrencyCode, PaymentOptions, Periodicity, } from "./types.js";
2
- export const payloadWithPaymentOrder = {
3
- invoiceId: "random-id",
4
- payments: [
5
- {
6
- type: PaymentOptions.PaymentOrder,
7
- amount: 100.0,
8
- bankAccounts: [
9
- { iban: "SK9611000000002918599669" },
10
- ],
11
- currencyCode: CurrencyCode.EUR,
12
- variableSymbol: "123",
13
- },
14
- ],
15
- };
16
- export const serializedPaymentOrder = /** dprint-ignore */ [
17
- "random-id",
18
- "\t", "1",
19
- "\t", "1",
20
- "\t", "100",
21
- "\t", "EUR",
22
- "\t",
23
- "\t", "123",
24
- "\t",
25
- "\t",
26
- "\t",
27
- "\t",
28
- "\t", "1",
29
- "\t", "SK9611000000002918599669",
30
- "\t",
31
- "\t", "0",
32
- "\t", "0",
33
- "\t",
34
- "\t",
35
- "\t",
36
- ].join("");
37
- export const payloadWithStandingOrder = {
38
- invoiceId: "random-id",
39
- payments: [
40
- {
41
- type: PaymentOptions.StandingOrder,
42
- amount: 100.0,
43
- bankAccounts: [
44
- { iban: "SK9611000000002918599669" },
45
- ],
46
- periodicity: Periodicity.Monthly,
47
- currencyCode: CurrencyCode.EUR,
48
- variableSymbol: "123",
49
- lastDate: "20241011",
50
- day: 1,
51
- },
52
- ],
53
- };
54
- export const serializedStandingOrder = /** dprint-ignore */ [
55
- "random-id",
56
- "\t", "1",
57
- "\t", "2",
58
- "\t", "100",
59
- "\t", "EUR",
60
- "\t",
61
- "\t", "123",
62
- "\t",
63
- "\t",
64
- "\t",
65
- "\t",
66
- "\t", "1",
67
- "\t", "SK9611000000002918599669",
68
- "\t",
69
- "\t", "1",
70
- "\t", "1",
71
- "\t",
72
- "\t", "m",
73
- "\t", "20241011",
74
- "\t", "0",
75
- "\t",
76
- "\t",
77
- "\t",
78
- ].join("");
79
- export const payloadWithDirectDebit = {
80
- invoiceId: "random-id",
81
- payments: [
82
- {
83
- type: PaymentOptions.DirectDebit,
84
- amount: 100.0,
85
- bankAccounts: [
86
- { iban: "SK9611000000002918599669" },
87
- ],
88
- currencyCode: CurrencyCode.EUR,
89
- variableSymbol: "123",
90
- },
91
- ],
92
- };
93
- export const serializedDirectDebit = /** dprint-ignore */ [
94
- "random-id",
95
- "\t", "1",
96
- "\t", "4",
97
- "\t", "100",
98
- "\t", "EUR",
99
- "\t",
100
- "\t", "123",
101
- "\t",
102
- "\t",
103
- "\t",
104
- "\t",
105
- "\t", "1",
106
- "\t", "SK9611000000002918599669",
107
- "\t",
108
- "\t", "0",
109
- "\t", "1",
110
- "\t",
111
- "\t",
112
- "\t", "123",
113
- "\t",
114
- "\t",
115
- "\t",
116
- "\t",
117
- "\t",
118
- "\t",
119
- "\t",
120
- "\t",
121
- "\t",
122
- "\t",
123
- ].join("");