@unimaze/billing 0.1.2-rc.8 → 0.2.0-rc.0
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/attachments/Attachment.d.ts +7 -3
- package/lib/common/components/attachments/Attachment.js +69 -15
- package/lib/common/components/attachments/index.d.ts +5 -2
- package/lib/common/components/attachments/index.js +18 -5
- package/lib/common/components/base-information/ReferenceIdentifiers.d.ts +17 -0
- package/lib/common/components/base-information/ReferenceIdentifiers.js +54 -0
- package/lib/common/components/base-information/index.d.ts +6 -3
- package/lib/common/components/base-information/index.js +131 -80
- package/lib/common/components/billing-lines/BillingCalculations.d.ts +11 -0
- package/lib/common/components/billing-lines/BillingCalculations.js +63 -0
- package/lib/common/components/billing-lines/BillingTaxSummary.d.ts +10 -0
- package/lib/common/components/billing-lines/BillingTaxSummary.js +53 -0
- package/lib/common/components/billing-lines/NewBillingLines.d.ts +10 -0
- package/lib/common/components/billing-lines/NewBillingLines.js +77 -0
- package/lib/common/components/billing-lines/index.d.ts +7 -15
- package/lib/common/components/billing-lines/index.js +173 -62
- package/lib/{src/common/components/issuer/index.d.ts → common/components/customer/hardCoddedCustomer.d.ts} +2 -2
- package/lib/common/components/{issuer/index.js → customer/hardCoddedCustomer.js} +5 -8
- package/lib/common/components/customer/index.d.ts +5 -6
- package/lib/common/components/customer/index.js +101 -12
- package/lib/common/components/delivery-location/index.d.ts +5 -2
- package/lib/common/components/delivery-location/index.js +65 -10
- package/lib/common/components/editable-cell/index.js +7 -9
- package/lib/common/components/form-item/index.d.ts +23 -0
- package/lib/common/components/form-item/index.js +44 -0
- 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 +107 -15
- package/lib/common/components/payment-method/paymentMethodForConversion.d.ts +9 -0
- package/lib/common/components/payment-method/paymentMethodForConversion.js +44 -0
- package/lib/common/components/supplier/index.d.ts +5 -2
- package/lib/common/components/supplier/index.js +108 -28
- package/lib/common/consts/formLayout.d.ts +44 -0
- package/lib/common/consts/formLayout.js +35 -0
- package/lib/common/consts/validationRules.js +0 -7
- package/lib/common/types/ReceiverRequirements.d.ts +71 -72
- package/lib/common/types/ReceiverRequirements.js +64 -81
- package/lib/create-credit-note/index.js +2 -4
- package/lib/create-invoice/index.js +131 -26
- package/lib/src/common/components/attachments/Attachment.d.ts +7 -3
- package/lib/src/common/components/attachments/index.d.ts +5 -2
- package/lib/src/common/components/base-information/ReferenceIdentifiers.d.ts +17 -0
- package/lib/src/common/components/base-information/index.d.ts +6 -3
- 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/NewBillingLines.d.ts +10 -0
- package/lib/src/common/components/billing-lines/index.d.ts +7 -15
- package/lib/src/common/components/customer/index.d.ts +5 -6
- package/lib/src/common/components/delivery-location/index.d.ts +5 -2
- package/lib/src/common/components/form-item/index.d.ts +23 -0
- package/lib/src/common/components/locale-intl/index.d.ts +10 -0
- package/lib/src/common/components/payment-method/index.d.ts +6 -3
- package/lib/src/common/components/payment-method/paymentMethodForConversion.d.ts +9 -0
- package/lib/src/common/components/supplier/index.d.ts +5 -2
- package/lib/src/common/consts/formLayout.d.ts +44 -0
- package/lib/src/common/types/ReceiverRequirements.d.ts +71 -72
- package/lib/src/translations/locales.d.ts +75 -0
- package/lib/src/utils/ApiUtility.d.ts +8 -1
- package/lib/src/utils/BillingLineUtility.d.ts +10 -0
- package/lib/src/utils/ConversionUtility.d.ts +4 -3
- package/lib/src/utils/RequirementsUtility.d.ts +3 -1
- package/lib/src/utils/index.d.ts +1 -1
- package/lib/translations/locales/is.json +71 -0
- package/lib/translations/locales.d.ts +75 -0
- package/lib/translations/locales.js +10 -0
- package/lib/utils/ApiUtility.d.ts +8 -1
- package/lib/utils/ApiUtility.js +17 -1
- package/lib/utils/BillingLineUtility.d.ts +10 -0
- package/lib/utils/BillingLineUtility.js +90 -0
- package/lib/utils/ConversionUtility.d.ts +4 -3
- package/lib/utils/ConversionUtility.js +98 -66
- package/lib/utils/RequirementsUtility.d.ts +3 -1
- package/lib/utils/RequirementsUtility.js +15 -5
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +1 -0
- package/package.json +8 -5
- package/lib/common/components/component-container/style/index.d.ts +0 -1
- package/lib/common/components/component-container/style/index.js +0 -3
- 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 -51
- package/lib/src/common/components/payer/index.d.ts +0 -3
- package/lib/style/index.d.ts +0 -1
- package/lib/style/index.js +0 -3
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const formItemLayout: {
|
|
2
|
+
labelCol: {
|
|
3
|
+
xs: {
|
|
4
|
+
span: number;
|
|
5
|
+
};
|
|
6
|
+
sm: {
|
|
7
|
+
span: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
wrapperCol: {
|
|
11
|
+
xs: {
|
|
12
|
+
span: number;
|
|
13
|
+
};
|
|
14
|
+
sm: {
|
|
15
|
+
span: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare const formItemVerticalLayout: {
|
|
20
|
+
labelCol: {
|
|
21
|
+
span: number;
|
|
22
|
+
};
|
|
23
|
+
wrapperCol: {
|
|
24
|
+
span: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
declare const fullWidthInput: {
|
|
28
|
+
wrapperCol: {
|
|
29
|
+
span: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
declare const formItemLayoutWithOutLabel: {
|
|
33
|
+
wrapperCol: {
|
|
34
|
+
xs: {
|
|
35
|
+
span: number;
|
|
36
|
+
offset: number;
|
|
37
|
+
};
|
|
38
|
+
sm: {
|
|
39
|
+
span: number;
|
|
40
|
+
offset: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export { formItemLayout, formItemVerticalLayout, fullWidthInput, formItemLayoutWithOutLabel };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var formItemLayout = {
|
|
4
|
+
labelCol: {
|
|
5
|
+
xs: { span: 24 },
|
|
6
|
+
sm: { span: 8 },
|
|
7
|
+
},
|
|
8
|
+
wrapperCol: {
|
|
9
|
+
xs: { span: 24 },
|
|
10
|
+
sm: { span: 16 },
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
exports.formItemLayout = formItemLayout;
|
|
14
|
+
var formItemVerticalLayout = {
|
|
15
|
+
labelCol: {
|
|
16
|
+
span: 24,
|
|
17
|
+
},
|
|
18
|
+
wrapperCol: {
|
|
19
|
+
span: 24,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
exports.formItemVerticalLayout = formItemVerticalLayout;
|
|
23
|
+
var fullWidthInput = {
|
|
24
|
+
wrapperCol: {
|
|
25
|
+
span: 24,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
exports.fullWidthInput = fullWidthInput;
|
|
29
|
+
var formItemLayoutWithOutLabel = {
|
|
30
|
+
wrapperCol: {
|
|
31
|
+
xs: { span: 24, offset: 0 },
|
|
32
|
+
sm: { span: 16, offset: 8 },
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
exports.formItemLayoutWithOutLabel = formItemLayoutWithOutLabel;
|
|
@@ -10,37 +10,30 @@ exports.validationRules = {
|
|
|
10
10
|
name: [
|
|
11
11
|
{
|
|
12
12
|
required: true,
|
|
13
|
-
message: "Please insert item name",
|
|
14
13
|
}
|
|
15
14
|
],
|
|
16
15
|
unitOfMeasure: [
|
|
17
16
|
{
|
|
18
17
|
required: true,
|
|
19
|
-
message: "Please choose unit of measure",
|
|
20
18
|
},
|
|
21
19
|
{
|
|
22
20
|
enum: Object.keys(models_1.UnitOfMeasureMetadataUnitEnum),
|
|
23
|
-
message: "Unit of measure must be one of the accepted values",
|
|
24
21
|
},
|
|
25
22
|
],
|
|
26
23
|
unitPriceAmount: [
|
|
27
24
|
{
|
|
28
25
|
required: true,
|
|
29
|
-
message: "Please fill in unit price amount",
|
|
30
26
|
},
|
|
31
27
|
{
|
|
32
28
|
type: "number",
|
|
33
|
-
message: "Unit price amount mu st be a number",
|
|
34
29
|
}
|
|
35
30
|
],
|
|
36
31
|
taxCategoryType: [
|
|
37
32
|
{
|
|
38
33
|
required: true,
|
|
39
|
-
message: "Please choose tax category type",
|
|
40
34
|
},
|
|
41
35
|
{
|
|
42
36
|
enum: Object.keys(models_1.BillingLineMetadataTaxCategoryTypeEnum),
|
|
43
|
-
message: "Tax category must be one of the accepted values",
|
|
44
37
|
},
|
|
45
38
|
],
|
|
46
39
|
discountValue: [],
|
|
@@ -1,82 +1,81 @@
|
|
|
1
|
-
interface
|
|
2
|
-
key
|
|
3
|
-
value: string;
|
|
4
|
-
}
|
|
5
|
-
interface FieldRequirement {
|
|
1
|
+
interface Values {
|
|
2
|
+
key?: string;
|
|
6
3
|
label?: string;
|
|
7
|
-
|
|
4
|
+
values?: Values[];
|
|
5
|
+
}
|
|
6
|
+
interface FieldRequirement extends Values {
|
|
8
7
|
isRequired: boolean;
|
|
9
|
-
values?: KeyValuePair[];
|
|
10
8
|
}
|
|
11
9
|
declare type ReceiverRequirements = {
|
|
12
10
|
[key in AvailableFields]?: FieldRequirement;
|
|
13
11
|
};
|
|
14
12
|
export declare enum AvailableFields {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
13
|
+
"invoiceNo" = "invoiceNo",
|
|
14
|
+
"issueDate" = "issueDate",
|
|
15
|
+
"dueDate" = "dueDate",
|
|
16
|
+
"graceDate" = "graceDate",
|
|
17
|
+
"currencyCode" = "currencyCode",
|
|
18
|
+
"notes" = "notes",
|
|
19
|
+
"accountingCost" = "accountingCost",
|
|
20
|
+
"buyerReference" = "buyerReference",
|
|
21
|
+
"orderReference.documentNo" = "orderReference.documentNo",
|
|
22
|
+
"billingReferences.invoices" = "billingReferences.invoices",
|
|
23
|
+
"billingReferences.documentNo" = "billingReferences.documentNo",
|
|
24
|
+
"billingReferences.issueDate" = "billingReferences.issueDate",
|
|
25
|
+
"billingReferences.creditNotes" = "billingReferences.creditNotes",
|
|
26
|
+
"referenceIdentifiers.type" = "referenceIdentifiers.type",
|
|
27
|
+
"referenceIdentifiers.code" = "referenceIdentifiers.code",
|
|
28
|
+
"referenceIdentifiers.value" = "referenceIdentifiers.value",
|
|
29
|
+
"referenceIdentifiers" = "referenceIdentifiers",
|
|
30
|
+
"supplier.vatNumber" = "supplier.vatNumber",
|
|
31
|
+
"supplier.address.streetNameAndNumber" = "supplier.address.streetNameAndNumber",
|
|
32
|
+
"supplier.address.city" = "supplier.address.city",
|
|
33
|
+
"supplier.address.postalZone" = "supplier.address.postalZone",
|
|
34
|
+
"supplier.address.countryCode" = "supplier.address.countryCode",
|
|
35
|
+
"supplier.contact.name" = "supplier.contact.name",
|
|
36
|
+
"supplier.contact.electronicMail" = "supplier.contact.electronicMail",
|
|
37
|
+
"supplier.contact.telephone" = "supplier.contact.telephone",
|
|
38
|
+
"supplier.name" = "supplier.name",
|
|
39
|
+
"supplier.identifier" = "supplier.identifier",
|
|
40
|
+
"customer.address.streetNameAndNumber" = "customer.address.streetNameAndNumber",
|
|
41
|
+
"customer.address.city" = "customer.address.city",
|
|
42
|
+
"customer.address.postalZone" = "customer.address.postalZone",
|
|
43
|
+
"customer.address.countryCode" = "customer.address.countryCode",
|
|
44
|
+
"customer.contact.name" = "customer.contact.name",
|
|
45
|
+
"customer.contact.electronicMail" = "customer.contact.electronicMail",
|
|
46
|
+
"customer.contact.telephone" = "customer.contact.telephone",
|
|
47
|
+
"customer.name" = "customer.name",
|
|
48
|
+
"customer.identifier" = "customer.identifier",
|
|
49
|
+
"customer.locationIdentifier" = "customer.locationIdentifier",
|
|
50
|
+
"payee.name" = "payee.name",
|
|
51
|
+
"payee.identifier" = "payee.identifier",
|
|
52
|
+
"payee.sepaBankIdentification" = "payee.sepaBankIdentification",
|
|
53
|
+
"invoiceLines.itemNo" = "invoiceLines.itemNo",
|
|
54
|
+
"invoiceLines.name" = "invoiceLines.name",
|
|
55
|
+
"invoiceLines.quantity" = "invoiceLines.quantity",
|
|
56
|
+
"invoiceLines.uniteOfMeasure.unit" = "invoiceLines.unitOfMeasure.unit",
|
|
57
|
+
"invoiceLines.uniteOfMeasure.code" = "invoiceLines.unitOfMeasure.code",
|
|
58
|
+
"invoiceLines.unitPriceAmount" = "invoiceLines.unitPriceAmount",
|
|
59
|
+
"invoiceLines.taxCategoryType" = "invoiceLines.taxCategoryType",
|
|
60
|
+
"invoiceLines.taxableAmount" = "invoiceLines.taxableAmount",
|
|
61
|
+
"invoiceLines.taxAmount" = "invoiceLines.taxAmount",
|
|
62
|
+
"invoiceLines.taxPercentage" = "invoiceLines.taxPercentage",
|
|
63
|
+
"invoiceLines.discountValue" = "invoiceLines.discountValue",
|
|
64
|
+
"paymentTerms.note" = "paymentTerms.note",
|
|
65
|
+
"paymentMeans.type" = "paymentMeans.type",
|
|
66
|
+
"paymentMeans.internationalTransfer" = "paymentMeans.internationalTransfer",
|
|
67
|
+
"paymentMeans.domesticTransfer" = "paymentMeans.domesticTransfer",
|
|
68
|
+
"paymentMeans.domesticClaim" = "paymentMeans.domesticClaim",
|
|
69
|
+
"delivery.partyName" = "delivery.partyName",
|
|
70
|
+
"delivery.locationIdentifier" = "delivery.locationIdentifier",
|
|
71
|
+
"delivery.address.streetNameAndNumber" = "delivery.address.streetNameAndNumber",
|
|
72
|
+
"delivery.address.city" = "delivery.address.city",
|
|
73
|
+
"delivery.address.postalZone" = "delivery.address.postalZone",
|
|
74
|
+
"delivery.address.countryCode" = "delivery.address.countryCode",
|
|
75
|
+
"delivery.actualDeliveryDate" = "delivery.actualDeliveryDate",
|
|
76
|
+
"prepaidAmount" = "prepaidAmount",
|
|
77
|
+
"payableAmount" = "payableAmount",
|
|
78
|
+
"payableRoundingAmount" = "payableRoundingAmount"
|
|
80
79
|
}
|
|
81
80
|
export { ReceiverRequirements, FieldRequirement };
|
|
82
81
|
export declare const receiverRequirementsObject: ReceiverRequirements;
|