@unimaze/billing 0.1.0 → 0.1.2-rc.10
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/README.md +11 -3
- package/lib/common/components/attachments/Attachment.d.ts +8 -2
- package/lib/common/components/attachments/Attachment.js +33 -8
- package/lib/common/components/attachments/index.d.ts +9 -2
- package/lib/common/components/attachments/index.js +15 -6
- package/lib/common/components/base-information/ReferenceIdentifiers.d.ts +6 -0
- package/lib/common/components/base-information/ReferenceIdentifiers.js +40 -0
- package/lib/common/components/base-information/index.d.ts +6 -3
- package/lib/common/components/base-information/index.js +100 -81
- package/lib/common/components/billing-lines/BillingCalculations.d.ts +11 -0
- package/lib/common/components/billing-lines/BillingCalculations.js +61 -0
- package/lib/common/components/billing-lines/BillingTaxSummary.d.ts +10 -0
- package/lib/common/components/billing-lines/BillingTaxSummary.js +51 -0
- package/lib/common/components/billing-lines/billingLIneFormData.d.ts +7 -0
- package/lib/common/components/billing-lines/billingLIneFormData.js +63 -0
- package/lib/common/components/billing-lines/index.d.ts +10 -24
- package/lib/common/components/billing-lines/index.js +117 -39
- package/lib/common/components/customer/hardCoddedCustomer.d.ts +7 -0
- package/lib/common/components/{issuer/index.js → customer/hardCoddedCustomer.js} +5 -8
- package/lib/common/components/customer/index.d.ts +6 -0
- package/lib/common/components/customer/index.js +93 -0
- package/lib/common/components/delivery-location/index.d.ts +5 -2
- package/lib/common/components/delivery-location/index.js +43 -11
- package/lib/common/components/editable-cell/index.d.ts +1 -1
- package/lib/common/components/editable-cell/index.js +77 -11
- package/lib/common/components/editable-row/index.d.ts +5 -5
- package/lib/common/components/editable-row/index.js +8 -6
- package/lib/common/components/form-item/index.d.ts +21 -0
- package/lib/common/components/form-item/index.js +27 -0
- package/lib/common/components/index.d.ts +10 -5
- package/lib/common/components/index.js +20 -8
- package/lib/common/components/locale-intl/index.d.ts +10 -0
- package/lib/common/components/locale-intl/index.js +45 -0
- package/lib/common/components/payment-method/index.d.ts +6 -3
- package/lib/common/components/payment-method/index.js +67 -27
- package/lib/common/components/supplier/index.d.ts +6 -0
- package/lib/common/components/supplier/index.js +93 -0
- package/lib/common/consts/validationRules.d.ts +2 -3
- package/lib/common/consts/validationRules.js +1 -8
- package/lib/common/enums/index.d.ts +1 -1
- package/lib/common/enums/index.js +2 -4
- package/lib/common/types/BillingLineMetadataOverride.d.ts +2 -1
- package/lib/common/types/ReceiverRequirements.d.ts +81 -0
- package/lib/common/types/ReceiverRequirements.js +379 -0
- package/lib/create-credit-note/index.d.ts +2 -3
- package/lib/create-credit-note/index.js +17 -28
- package/lib/create-invoice/index.d.ts +1 -2
- package/lib/create-invoice/index.js +79 -21
- package/lib/example/src/index.d.ts +1 -1
- package/lib/index.d.ts +2 -3
- package/lib/index.js +8 -5
- package/lib/src/common/components/attachments/Attachment.d.ts +21 -0
- package/lib/src/common/components/attachments/index.d.ts +10 -0
- package/lib/src/common/components/base-information/ReferenceIdentifiers.d.ts +6 -0
- package/lib/src/common/components/base-information/index.d.ts +12 -0
- package/lib/src/common/components/billing-lines/BillingCalculations.d.ts +11 -0
- package/lib/src/common/components/billing-lines/BillingTaxSummary.d.ts +10 -0
- package/lib/src/common/components/billing-lines/billingLIneFormData.d.ts +7 -0
- package/lib/src/common/components/billing-lines/index.d.ts +13 -0
- package/lib/src/common/components/component-container/Content.d.ts +7 -0
- package/lib/src/common/components/component-container/Header.d.ts +9 -0
- package/lib/src/common/components/component-container/index.d.ts +10 -0
- package/lib/src/common/components/customer/index.d.ts +6 -0
- package/lib/src/common/components/delivery-location/index.d.ts +6 -0
- package/lib/src/common/components/editable-cell/index.d.ts +11 -0
- package/lib/src/common/components/editable-row/index.d.ts +6 -0
- package/lib/src/common/components/form-item/index.d.ts +21 -0
- package/lib/src/common/components/index.d.ts +10 -0
- package/lib/src/common/components/locale-intl/index.d.ts +10 -0
- package/lib/src/common/components/payment-method/index.d.ts +6 -0
- package/lib/src/common/components/supplier/index.d.ts +6 -0
- package/lib/src/common/consts/validationRules.d.ts +6 -0
- package/lib/src/common/types/ReceiverRequirements.d.ts +81 -0
- package/lib/src/create-invoice/index.d.ts +14 -0
- package/lib/src/translations/locales.d.ts +74 -0
- package/lib/src/utils/ApiUtility.d.ts +21 -0
- package/lib/src/utils/BillingLineUtility.d.ts +8 -0
- package/lib/src/utils/ConversionUtility.d.ts +5 -0
- package/lib/src/utils/RequirementsUtility.d.ts +5 -0
- package/lib/src/utils/billingLineFormData.d.ts +7 -0
- package/lib/src/utils/index.d.ts +2 -0
- package/lib/style/index.css +0 -1222
- package/lib/translations/locales/is.json +70 -0
- package/lib/translations/locales.d.ts +74 -0
- package/lib/translations/locales.js +10 -0
- package/lib/utils/ApiUtility.d.ts +21 -0
- package/lib/utils/ApiUtility.js +59 -0
- package/lib/utils/BillingLineUtility.d.ts +8 -0
- package/lib/utils/BillingLineUtility.js +66 -0
- package/lib/utils/ConversionUtility.d.ts +5 -0
- package/lib/utils/ConversionUtility.js +146 -0
- package/lib/utils/RequirementsUtility.d.ts +5 -0
- package/lib/utils/RequirementsUtility.js +23 -0
- package/lib/utils/billingLineFormData.d.ts +7 -0
- package/lib/utils/billingLineFormData.js +63 -0
- package/lib/utils/index.d.ts +2 -5
- package/lib/utils/index.js +5 -162
- package/package.json +22 -7
- package/lib/common/components/issuer/index.d.ts +0 -7
- package/lib/common/components/payer/index.d.ts +0 -3
- package/lib/common/components/payer/index.js +0 -50
package/lib/utils/index.js
CHANGED
|
@@ -1,164 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
messageHandling: {
|
|
9
|
-
receiverIdentifier: "",
|
|
10
|
-
fallbackEmailAddress: "",
|
|
11
|
-
fallbackContactName: "",
|
|
12
|
-
},
|
|
13
|
-
invoice: {
|
|
14
|
-
supplier: {
|
|
15
|
-
identifier: "",
|
|
16
|
-
address: {
|
|
17
|
-
streetNameAndNumber: "",
|
|
18
|
-
postalZone: "",
|
|
19
|
-
city: "",
|
|
20
|
-
countryCode: "",
|
|
21
|
-
countrySubEntity: "",
|
|
22
|
-
addressLine2: "",
|
|
23
|
-
addressLine3: ""
|
|
24
|
-
},
|
|
25
|
-
name: "",
|
|
26
|
-
vatNumber: "",
|
|
27
|
-
contact: {
|
|
28
|
-
electronicMail: "",
|
|
29
|
-
fax: "",
|
|
30
|
-
name: "",
|
|
31
|
-
telephone: ""
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
customer: {
|
|
35
|
-
identifier: "",
|
|
36
|
-
address: {
|
|
37
|
-
streetNameAndNumber: "",
|
|
38
|
-
postalZone: "",
|
|
39
|
-
city: "",
|
|
40
|
-
countryCode: "",
|
|
41
|
-
countrySubEntity: "",
|
|
42
|
-
addressLine2: "",
|
|
43
|
-
addressLine3: ""
|
|
44
|
-
},
|
|
45
|
-
name: "",
|
|
46
|
-
contact: {
|
|
47
|
-
electronicMail: "",
|
|
48
|
-
fax: "",
|
|
49
|
-
name: "",
|
|
50
|
-
telephone: ""
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
delivery: {
|
|
54
|
-
actualDeliveryDate: null,
|
|
55
|
-
address: {
|
|
56
|
-
streetNameAndNumber: "",
|
|
57
|
-
postalZone: "",
|
|
58
|
-
city: "",
|
|
59
|
-
countryCode: "",
|
|
60
|
-
countrySubEntity: "",
|
|
61
|
-
addressLine2: "",
|
|
62
|
-
addressLine3: ""
|
|
63
|
-
},
|
|
64
|
-
locationIdentifier: "",
|
|
65
|
-
partyName: ""
|
|
66
|
-
},
|
|
67
|
-
issueDate: new Date(),
|
|
68
|
-
dueDate: null,
|
|
69
|
-
invoiceNo: "",
|
|
70
|
-
paymentTerms: {
|
|
71
|
-
note: ""
|
|
72
|
-
},
|
|
73
|
-
currencyCode: "",
|
|
74
|
-
invoiceLines: [],
|
|
75
|
-
notes: "",
|
|
76
|
-
payableAmount: 0,
|
|
77
|
-
orderReference: {
|
|
78
|
-
documentNo: "",
|
|
79
|
-
issueDate: undefined,
|
|
80
|
-
},
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
Utility.convertToCreditNoteMetadataInput = function (formValues) {
|
|
85
|
-
return {
|
|
86
|
-
messageHandling: {
|
|
87
|
-
receiverIdentifier: "",
|
|
88
|
-
fallbackEmailAddress: "",
|
|
89
|
-
fallbackContactName: "",
|
|
90
|
-
},
|
|
91
|
-
creditNote: {
|
|
92
|
-
supplier: {
|
|
93
|
-
identifier: "",
|
|
94
|
-
address: {
|
|
95
|
-
streetNameAndNumber: "",
|
|
96
|
-
postalZone: "",
|
|
97
|
-
city: "",
|
|
98
|
-
countryCode: "",
|
|
99
|
-
countrySubEntity: "",
|
|
100
|
-
addressLine2: "",
|
|
101
|
-
addressLine3: ""
|
|
102
|
-
},
|
|
103
|
-
name: "",
|
|
104
|
-
vatNumber: "",
|
|
105
|
-
contact: {
|
|
106
|
-
electronicMail: "",
|
|
107
|
-
fax: "",
|
|
108
|
-
name: "",
|
|
109
|
-
telephone: ""
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
customer: {
|
|
113
|
-
identifier: "",
|
|
114
|
-
address: {
|
|
115
|
-
streetNameAndNumber: "",
|
|
116
|
-
postalZone: "",
|
|
117
|
-
city: "",
|
|
118
|
-
countryCode: "",
|
|
119
|
-
countrySubEntity: "",
|
|
120
|
-
addressLine2: "",
|
|
121
|
-
addressLine3: ""
|
|
122
|
-
},
|
|
123
|
-
name: "",
|
|
124
|
-
contact: {
|
|
125
|
-
electronicMail: "",
|
|
126
|
-
fax: "",
|
|
127
|
-
name: "",
|
|
128
|
-
telephone: ""
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
delivery: {
|
|
132
|
-
actualDeliveryDate: null,
|
|
133
|
-
address: {
|
|
134
|
-
streetNameAndNumber: "",
|
|
135
|
-
postalZone: "",
|
|
136
|
-
city: "",
|
|
137
|
-
countryCode: "",
|
|
138
|
-
countrySubEntity: "",
|
|
139
|
-
addressLine2: "",
|
|
140
|
-
addressLine3: ""
|
|
141
|
-
},
|
|
142
|
-
locationIdentifier: "",
|
|
143
|
-
partyName: ""
|
|
144
|
-
},
|
|
145
|
-
issueDate: new Date(),
|
|
146
|
-
creditNoteNo: "",
|
|
147
|
-
currencyCode: "",
|
|
148
|
-
creditNoteLines: [],
|
|
149
|
-
notes: "",
|
|
150
|
-
payableAmount: 0,
|
|
151
|
-
orderReference: {
|
|
152
|
-
documentNo: "",
|
|
153
|
-
issueDate: undefined,
|
|
154
|
-
},
|
|
155
|
-
billingReferences: {
|
|
156
|
-
invoices: [],
|
|
157
|
-
creditNotes: [],
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
return Utility;
|
|
163
|
-
}());
|
|
164
|
-
exports.Utility = Utility;
|
|
3
|
+
var ConversionUtility_1 = require("./ConversionUtility");
|
|
4
|
+
exports.convertToInvoiceMetadataInput = ConversionUtility_1.convertToInvoiceMetadataInput; /*, convertToCreditNoteMetadataInput*/
|
|
5
|
+
var ApiUtility_1 = require("./ApiUtility");
|
|
6
|
+
exports.submitInvoice = ApiUtility_1.submitInvoice;
|
|
7
|
+
exports.submitDocument = ApiUtility_1.submitDocument;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unimaze/billing",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-rc.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -8,16 +8,21 @@
|
|
|
8
8
|
"lib/**/*"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
+
"@ant-design/compatible": "latest",
|
|
12
|
+
"@unimaze/api-clients": "^1.1.0",
|
|
11
13
|
"react-hot-loader": "^4.12.20",
|
|
12
|
-
"
|
|
14
|
+
"uuid": "latest"
|
|
13
15
|
},
|
|
14
16
|
"devDependencies": {
|
|
15
17
|
"@hot-loader/react-dom": "^16.13.0+4.12.20",
|
|
16
18
|
"@types/lodash": "^4.14.149",
|
|
17
19
|
"@types/react": "16.9.34",
|
|
18
20
|
"@types/react-dom": "16.9.7",
|
|
19
|
-
"@types/react-intl": "
|
|
21
|
+
"@types/react-intl": "2.3.18",
|
|
22
|
+
"@types/uuid": "latest",
|
|
23
|
+
"antd": "4.3.3",
|
|
20
24
|
"awesome-typescript-loader": "^5.2.1",
|
|
25
|
+
"axios": "^0.19.2",
|
|
21
26
|
"babel-loader": "^8.1.0",
|
|
22
27
|
"copyfiles": "^2.2.0",
|
|
23
28
|
"cross-env": "^7.0.2",
|
|
@@ -29,6 +34,9 @@
|
|
|
29
34
|
"mini-css-extract-plugin": "^0.9.0",
|
|
30
35
|
"npm-watch": "^0.6.0",
|
|
31
36
|
"open-browser-webpack-plugin": "^0.0.5",
|
|
37
|
+
"react": "16.13.1",
|
|
38
|
+
"react-dom": "16.13.1",
|
|
39
|
+
"react-intl": "^2.9.0",
|
|
32
40
|
"rimraf": "^3.0.2",
|
|
33
41
|
"style-loader": "^1.1.3",
|
|
34
42
|
"tslint": "^6.1.1",
|
|
@@ -37,12 +45,14 @@
|
|
|
37
45
|
"url-loader": "^4.0.0",
|
|
38
46
|
"webpack": "^4.42.1",
|
|
39
47
|
"webpack-cli": "^3.3.11",
|
|
40
|
-
"webpack-dev-server": "^3.10.3"
|
|
48
|
+
"webpack-dev-server": "^3.10.3"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
41
51
|
"antd": "4.3.3",
|
|
52
|
+
"axios": "^0.19.2",
|
|
42
53
|
"react": "16.13.1",
|
|
43
54
|
"react-dom": "16.13.1",
|
|
44
|
-
"react-intl": "^2.9.0"
|
|
45
|
-
"react-intl.macro": "^0.3.7"
|
|
55
|
+
"react-intl": "^2.9.0"
|
|
46
56
|
},
|
|
47
57
|
"resolutions": {
|
|
48
58
|
"@types/react": "16.9.34",
|
|
@@ -73,10 +83,15 @@
|
|
|
73
83
|
"examples:build": "webpack -d --mode development --config example/webpack.config.js",
|
|
74
84
|
"start": "yarn run examples"
|
|
75
85
|
},
|
|
86
|
+
"babelMacros": {
|
|
87
|
+
"react-intl": {
|
|
88
|
+
"pure": true
|
|
89
|
+
}
|
|
90
|
+
},
|
|
76
91
|
"author": "",
|
|
77
92
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
78
93
|
"repository": {
|
|
79
94
|
"type": "git",
|
|
80
|
-
"url": "https://bitbucket.org/unimaze/
|
|
95
|
+
"url": "https://bitbucket.org/unimaze/unimaze-billing.git"
|
|
81
96
|
}
|
|
82
97
|
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
-
if (mod && mod.__esModule) return mod;
|
|
4
|
-
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
-
result["default"] = mod;
|
|
7
|
-
return result;
|
|
8
|
-
};
|
|
9
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
var React = __importStar(require("react"));
|
|
14
|
-
var component_container_1 = __importDefault(require("../component-container"));
|
|
15
|
-
var antd_1 = require("antd");
|
|
16
|
-
var Payer = function () {
|
|
17
|
-
return (React.createElement(component_container_1.default, { title: "Payer" },
|
|
18
|
-
React.createElement(antd_1.Form.Item, { label: "Name/Identifier", style: { marginBottom: 0 } },
|
|
19
|
-
React.createElement(antd_1.Form.Item, { style: { display: 'inline-block', width: "50%" }, name: "payer:name", rules: [
|
|
20
|
-
{
|
|
21
|
-
required: true,
|
|
22
|
-
message: 'Please input payer name',
|
|
23
|
-
},
|
|
24
|
-
] },
|
|
25
|
-
React.createElement(antd_1.Input, null)),
|
|
26
|
-
React.createElement(antd_1.Form.Item, { style: { display: 'inline-block', width: "50%", paddingLeft: "3px" }, name: "payer:isoIdentifier", rules: [
|
|
27
|
-
{
|
|
28
|
-
required: true,
|
|
29
|
-
message: 'Please input payer identifier',
|
|
30
|
-
},
|
|
31
|
-
] },
|
|
32
|
-
React.createElement(antd_1.Input, null))),
|
|
33
|
-
React.createElement(antd_1.Form.Item, { label: "Address", name: "payer:address" },
|
|
34
|
-
React.createElement(antd_1.Input, null)),
|
|
35
|
-
React.createElement(antd_1.Form.Item, { label: "Zip/City" },
|
|
36
|
-
React.createElement(antd_1.Form.Item, { style: { display: 'inline-block', width: "30%" }, name: "payer:zip" },
|
|
37
|
-
React.createElement(antd_1.Input, null)),
|
|
38
|
-
React.createElement(antd_1.Form.Item, { style: { display: 'inline-block', width: "70%", paddingLeft: "3px" }, name: "payer:city" },
|
|
39
|
-
React.createElement(antd_1.Input, null))),
|
|
40
|
-
React.createElement(antd_1.Form.Item, { label: "Country", name: "payer:country" },
|
|
41
|
-
React.createElement(antd_1.Input, null)),
|
|
42
|
-
React.createElement(antd_1.Form.Item, { label: "E-mail", name: "payer:email", rules: [
|
|
43
|
-
{
|
|
44
|
-
type: 'email',
|
|
45
|
-
message: 'The input is not valid E-mail!',
|
|
46
|
-
}
|
|
47
|
-
] },
|
|
48
|
-
React.createElement(antd_1.Input, null))));
|
|
49
|
-
};
|
|
50
|
-
exports.default = Payer;
|