@unimaze/billing 0.1.2-rc.3 → 0.1.2-rc.4
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/lib/common/components/payer/index.js +1 -1
- package/lib/common/types/ReceiverRequirements.d.ts +2 -1
- package/lib/common/types/ReceiverRequirements.js +9 -1
- package/lib/create-invoice/index.js +12 -1
- package/lib/src/common/types/ReceiverRequirements.d.ts +2 -1
- package/lib/src/utils/ConversionUtility.d.ts +2 -1
- package/lib/style/index.css +1268 -1268
- package/lib/utils/ApiUtility.js +1 -1
- package/lib/utils/ConversionUtility.d.ts +2 -1
- package/lib/utils/ConversionUtility.js +12 -13
- package/package.json +5 -3
package/lib/utils/ApiUtility.js
CHANGED
|
@@ -31,7 +31,7 @@ var submitInvoice = function (createSubmitInvoice, mapiBaseUrl, apiKey, callName
|
|
|
31
31
|
};
|
|
32
32
|
exports.submitInvoice = submitInvoice;
|
|
33
33
|
var createOptions = function (apiKey, callName, language) {
|
|
34
|
-
return __assign({ headers: __assign({ "Accept-Language": language ? language : "en" }, (apiKey && { Authorization: "Bearer apikey-" + apiKey })) }, (callName && { cancelToken: getCancelToken(callName) }));
|
|
34
|
+
return __assign({ headers: __assign({ "Accept-Language": language ? language : "en" }, (apiKey && { Authorization: "Bearer apikey-" + window.btoa(apiKey) })) }, (callName && { cancelToken: getCancelToken(callName) }));
|
|
35
35
|
};
|
|
36
36
|
var getCancelToken = function (callName) {
|
|
37
37
|
var cancelTokenSource = window[callName];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InvoiceMetadataInput } from "@unimaze/api-clients/lib/mapi";
|
|
2
2
|
import { Store } from "antd/es/form/interface";
|
|
3
|
-
|
|
3
|
+
import { ProfileOutput } from "@unimaze/api-clients/lib/wapi2";
|
|
4
|
+
declare const convertToInvoiceMetadataInput: (formValues: Store, issuer: ProfileOutput) => InvoiceMetadataInput;
|
|
4
5
|
export { /*convertToCreditNoteMetadataInput,*/ convertToInvoiceMetadataInput };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var convertToInvoiceMetadataInput = function (formValues) {
|
|
3
|
+
var convertToInvoiceMetadataInput = function (formValues, issuer) {
|
|
4
4
|
var resp = {
|
|
5
5
|
messageHandling: {
|
|
6
|
-
receiverIdentifier:
|
|
7
|
-
fallbackEmailAddress:
|
|
8
|
-
fallbackContactName:
|
|
6
|
+
receiverIdentifier: issuer.participantLegalIsoIdentifier,
|
|
7
|
+
fallbackEmailAddress: issuer.email,
|
|
8
|
+
fallbackContactName: issuer.name,
|
|
9
9
|
},
|
|
10
10
|
// MessageHandling is not part of the form
|
|
11
11
|
invoice: {
|
|
12
12
|
supplier: {
|
|
13
|
-
identifier:
|
|
13
|
+
identifier: issuer.participantLegalIsoIdentifier,
|
|
14
14
|
address: {
|
|
15
|
-
streetNameAndNumber:
|
|
16
|
-
postalZone:
|
|
17
|
-
city:
|
|
18
|
-
countryCode:
|
|
15
|
+
streetNameAndNumber: issuer.participantLegalAddressStreet,
|
|
16
|
+
postalZone: issuer.participantLegalAddressPostalCode,
|
|
17
|
+
city: issuer.participantLegalAddressCity,
|
|
18
|
+
countryCode: issuer.country,
|
|
19
19
|
countrySubEntity: "",
|
|
20
20
|
addressLine2: "",
|
|
21
21
|
addressLine3: ""
|
|
22
22
|
},
|
|
23
|
-
name:
|
|
23
|
+
name: issuer.name,
|
|
24
24
|
vatNumber: "",
|
|
25
25
|
contact: {
|
|
26
|
-
electronicMail:
|
|
26
|
+
electronicMail: issuer.email,
|
|
27
27
|
fax: "",
|
|
28
28
|
name: "",
|
|
29
|
-
telephone:
|
|
29
|
+
telephone: issuer.phoneNumber
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
// Supplier is pre filled, doesnt exist in the form || will be passed to already filled up form
|
|
@@ -81,7 +81,6 @@ var convertToInvoiceMetadataInput = function (formValues) {
|
|
|
81
81
|
payableAmount: 0,
|
|
82
82
|
orderReference: {
|
|
83
83
|
documentNo: "",
|
|
84
|
-
issueDate: undefined,
|
|
85
84
|
},
|
|
86
85
|
}
|
|
87
86
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unimaze/billing",
|
|
3
|
-
"version": "0.1.2-rc.
|
|
3
|
+
"version": "0.1.2-rc.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@ant-design/compatible": "latest",
|
|
12
12
|
"@unimaze/api-clients": "^1.1.0",
|
|
13
|
-
"react-hot-loader": "^4.12.20"
|
|
13
|
+
"react-hot-loader": "^4.12.20",
|
|
14
|
+
"uuid": "latest"
|
|
14
15
|
},
|
|
15
16
|
"devDependencies": {
|
|
16
17
|
"@hot-loader/react-dom": "^16.13.0+4.12.20",
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
"@types/react": "16.9.34",
|
|
19
20
|
"@types/react-dom": "16.9.7",
|
|
20
21
|
"@types/react-intl": "^3.0.0",
|
|
22
|
+
"@types/uuid": "latest",
|
|
21
23
|
"antd": "4.3.3",
|
|
22
24
|
"awesome-typescript-loader": "^5.2.1",
|
|
23
25
|
"axios": "^0.19.2",
|
|
@@ -87,6 +89,6 @@
|
|
|
87
89
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
88
90
|
"repository": {
|
|
89
91
|
"type": "git",
|
|
90
|
-
"url": "https://bitbucket.org/unimaze/
|
|
92
|
+
"url": "https://bitbucket.org/unimaze/unimaze-billing.git"
|
|
91
93
|
}
|
|
92
94
|
}
|