@emilgroup/payment-sdk-node 1.8.2-beta.0 → 1.8.2
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 +2 -2
- package/dist/models/create-payment-reminder-request-dto.d.ts +0 -2
- package/dist/models/create-payment-reminder-request-dto.js +1 -3
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-method-class.d.ts +2 -8
- package/dist/models/payment-reminder-class.d.ts +0 -4
- package/dist/models/payment-reminder-class.js +2 -6
- package/models/create-payment-reminder-request-dto.ts +1 -3
- package/models/create-payment-request-dto.ts +3 -3
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/payment-class.ts +1 -1
- package/models/payment-method-class.ts +2 -8
- package/models/payment-reminder-class.ts +2 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk-node@1.8.
|
|
20
|
+
npm install @emilgroup/payment-sdk-node@1.8.2 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk-node@1.8.
|
|
24
|
+
yarn add @emilgroup/payment-sdk-node@1.8.2
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -59,7 +59,5 @@ export declare const CreatePaymentReminderRequestDtoInvoiceTypeEnum: {
|
|
|
59
59
|
readonly Estimated: "estimated";
|
|
60
60
|
readonly Penalty: "penalty";
|
|
61
61
|
readonly Other: "other";
|
|
62
|
-
readonly Withdraw: "withdraw";
|
|
63
|
-
readonly Final: "final";
|
|
64
62
|
};
|
|
65
63
|
export type CreatePaymentReminderRequestDtoInvoiceTypeEnum = typeof CreatePaymentReminderRequestDtoInvoiceTypeEnum[keyof typeof CreatePaymentReminderRequestDtoInvoiceTypeEnum];
|
|
@@ -35,10 +35,10 @@ export interface CreatePaymentRequestDto {
|
|
|
35
35
|
'currency'?: string;
|
|
36
36
|
/**
|
|
37
37
|
* Invoices referenced in this payment. Usually, one payment has one invoice id but it is possible to pay multiple invoices at once with a single payment.
|
|
38
|
-
* @type {Array<
|
|
38
|
+
* @type {Array<string>}
|
|
39
39
|
* @memberof CreatePaymentRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'invoiceIds': Array<
|
|
41
|
+
'invoiceIds': Array<string>;
|
|
42
42
|
/**
|
|
43
43
|
* Optional field contain extra information.
|
|
44
44
|
* @type {object}
|
|
@@ -46,7 +46,7 @@ export interface CreatePaymentRequestDto {
|
|
|
46
46
|
*/
|
|
47
47
|
'metadata': object;
|
|
48
48
|
/**
|
|
49
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
49
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof CreatePaymentRequestDto
|
|
52
52
|
*/
|
|
@@ -23,32 +23,32 @@ export interface InlineResponse200 {
|
|
|
23
23
|
'status'?: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {{ [key: string]: { [key: string]:
|
|
26
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
27
27
|
* @memberof InlineResponse200
|
|
28
28
|
*/
|
|
29
29
|
'info'?: {
|
|
30
30
|
[key: string]: {
|
|
31
|
-
[key: string]:
|
|
31
|
+
[key: string]: string;
|
|
32
32
|
};
|
|
33
33
|
} | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {{ [key: string]: { [key: string]:
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
37
37
|
* @memberof InlineResponse200
|
|
38
38
|
*/
|
|
39
39
|
'error'?: {
|
|
40
40
|
[key: string]: {
|
|
41
|
-
[key: string]:
|
|
41
|
+
[key: string]: string;
|
|
42
42
|
};
|
|
43
43
|
} | null;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {{ [key: string]: { [key: string]:
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
47
47
|
* @memberof InlineResponse200
|
|
48
48
|
*/
|
|
49
49
|
'details'?: {
|
|
50
50
|
[key: string]: {
|
|
51
|
-
[key: string]:
|
|
51
|
+
[key: string]: string;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -23,32 +23,32 @@ export interface InlineResponse503 {
|
|
|
23
23
|
'status'?: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {{ [key: string]: { [key: string]:
|
|
26
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
27
27
|
* @memberof InlineResponse503
|
|
28
28
|
*/
|
|
29
29
|
'info'?: {
|
|
30
30
|
[key: string]: {
|
|
31
|
-
[key: string]:
|
|
31
|
+
[key: string]: string;
|
|
32
32
|
};
|
|
33
33
|
} | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {{ [key: string]: { [key: string]:
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
37
37
|
* @memberof InlineResponse503
|
|
38
38
|
*/
|
|
39
39
|
'error'?: {
|
|
40
40
|
[key: string]: {
|
|
41
|
-
[key: string]:
|
|
41
|
+
[key: string]: string;
|
|
42
42
|
};
|
|
43
43
|
} | null;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {{ [key: string]: { [key: string]:
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
47
47
|
* @memberof InlineResponse503
|
|
48
48
|
*/
|
|
49
49
|
'details'?: {
|
|
50
50
|
[key: string]: {
|
|
51
|
-
[key: string]:
|
|
51
|
+
[key: string]: string;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -71,7 +71,7 @@ export interface PaymentClass {
|
|
|
71
71
|
*/
|
|
72
72
|
'metadata': object;
|
|
73
73
|
/**
|
|
74
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
74
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @memberof PaymentClass
|
|
77
77
|
*/
|
|
@@ -40,7 +40,7 @@ export interface PaymentMethodClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'pspCustomerId': string;
|
|
42
42
|
/**
|
|
43
|
-
* The payment service provider
|
|
43
|
+
* The payment service provider used by this payment method.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof PaymentMethodClass
|
|
46
46
|
*/
|
|
@@ -52,13 +52,7 @@ export interface PaymentMethodClass {
|
|
|
52
52
|
*/
|
|
53
53
|
'type': string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {object}
|
|
57
|
-
* @memberof PaymentMethodClass
|
|
58
|
-
*/
|
|
59
|
-
'metadata': object;
|
|
60
|
-
/**
|
|
61
|
-
* Time at which the object was created.
|
|
55
|
+
* Created at
|
|
62
56
|
* @type {string}
|
|
63
57
|
* @memberof PaymentMethodClass
|
|
64
58
|
*/
|
|
@@ -95,8 +95,6 @@ export declare const PaymentReminderClassInvoiceTypeEnum: {
|
|
|
95
95
|
readonly Estimated: "estimated";
|
|
96
96
|
readonly Penalty: "penalty";
|
|
97
97
|
readonly Other: "other";
|
|
98
|
-
readonly Withdraw: "withdraw";
|
|
99
|
-
readonly Final: "final";
|
|
100
98
|
};
|
|
101
99
|
export type PaymentReminderClassInvoiceTypeEnum = typeof PaymentReminderClassInvoiceTypeEnum[keyof typeof PaymentReminderClassInvoiceTypeEnum];
|
|
102
100
|
export declare const PaymentReminderClassPaymentCodeEnum: {
|
|
@@ -106,7 +104,5 @@ export declare const PaymentReminderClassPaymentCodeEnum: {
|
|
|
106
104
|
readonly Estimated: "estimated";
|
|
107
105
|
readonly Penalty: "penalty";
|
|
108
106
|
readonly Other: "other";
|
|
109
|
-
readonly Withdraw: "withdraw";
|
|
110
|
-
readonly Final: "final";
|
|
111
107
|
};
|
|
112
108
|
export type PaymentReminderClassPaymentCodeEnum = typeof PaymentReminderClassPaymentCodeEnum[keyof typeof PaymentReminderClassPaymentCodeEnum];
|
|
@@ -20,9 +20,7 @@ exports.PaymentReminderClassInvoiceTypeEnum = {
|
|
|
20
20
|
Correction: 'correction',
|
|
21
21
|
Estimated: 'estimated',
|
|
22
22
|
Penalty: 'penalty',
|
|
23
|
-
Other: 'other'
|
|
24
|
-
Withdraw: 'withdraw',
|
|
25
|
-
Final: 'final'
|
|
23
|
+
Other: 'other'
|
|
26
24
|
};
|
|
27
25
|
exports.PaymentReminderClassPaymentCodeEnum = {
|
|
28
26
|
Initial: 'initial',
|
|
@@ -30,7 +28,5 @@ exports.PaymentReminderClassPaymentCodeEnum = {
|
|
|
30
28
|
Correction: 'correction',
|
|
31
29
|
Estimated: 'estimated',
|
|
32
30
|
Penalty: 'penalty',
|
|
33
|
-
Other: 'other'
|
|
34
|
-
Withdraw: 'withdraw',
|
|
35
|
-
Final: 'final'
|
|
31
|
+
Other: 'other'
|
|
36
32
|
};
|
|
@@ -64,9 +64,7 @@ export const CreatePaymentReminderRequestDtoInvoiceTypeEnum = {
|
|
|
64
64
|
Correction: 'correction',
|
|
65
65
|
Estimated: 'estimated',
|
|
66
66
|
Penalty: 'penalty',
|
|
67
|
-
Other: 'other'
|
|
68
|
-
Withdraw: 'withdraw',
|
|
69
|
-
Final: 'final'
|
|
67
|
+
Other: 'other'
|
|
70
68
|
} as const;
|
|
71
69
|
|
|
72
70
|
export type CreatePaymentReminderRequestDtoInvoiceTypeEnum = typeof CreatePaymentReminderRequestDtoInvoiceTypeEnum[keyof typeof CreatePaymentReminderRequestDtoInvoiceTypeEnum];
|
|
@@ -40,10 +40,10 @@ export interface CreatePaymentRequestDto {
|
|
|
40
40
|
'currency'?: string;
|
|
41
41
|
/**
|
|
42
42
|
* Invoices referenced in this payment. Usually, one payment has one invoice id but it is possible to pay multiple invoices at once with a single payment.
|
|
43
|
-
* @type {Array<
|
|
43
|
+
* @type {Array<string>}
|
|
44
44
|
* @memberof CreatePaymentRequestDto
|
|
45
45
|
*/
|
|
46
|
-
'invoiceIds': Array<
|
|
46
|
+
'invoiceIds': Array<string>;
|
|
47
47
|
/**
|
|
48
48
|
* Optional field contain extra information.
|
|
49
49
|
* @type {object}
|
|
@@ -51,7 +51,7 @@ export interface CreatePaymentRequestDto {
|
|
|
51
51
|
*/
|
|
52
52
|
'metadata': object;
|
|
53
53
|
/**
|
|
54
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
54
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof CreatePaymentRequestDto
|
|
57
57
|
*/
|
|
@@ -28,21 +28,21 @@ export interface InlineResponse200 {
|
|
|
28
28
|
'status'?: string;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @type {{ [key: string]: { [key: string]:
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
32
32
|
* @memberof InlineResponse200
|
|
33
33
|
*/
|
|
34
|
-
'info'?: { [key: string]: { [key: string]:
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {{ [key: string]: { [key: string]:
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
38
38
|
* @memberof InlineResponse200
|
|
39
39
|
*/
|
|
40
|
-
'error'?: { [key: string]: { [key: string]:
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {{ [key: string]: { [key: string]:
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
44
44
|
* @memberof InlineResponse200
|
|
45
45
|
*/
|
|
46
|
-
'details'?: { [key: string]: { [key: string]:
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: string; }; };
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -28,21 +28,21 @@ export interface InlineResponse503 {
|
|
|
28
28
|
'status'?: string;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @type {{ [key: string]: { [key: string]:
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
32
32
|
* @memberof InlineResponse503
|
|
33
33
|
*/
|
|
34
|
-
'info'?: { [key: string]: { [key: string]:
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {{ [key: string]: { [key: string]:
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
38
38
|
* @memberof InlineResponse503
|
|
39
39
|
*/
|
|
40
|
-
'error'?: { [key: string]: { [key: string]:
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {{ [key: string]: { [key: string]:
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
44
44
|
* @memberof InlineResponse503
|
|
45
45
|
*/
|
|
46
|
-
'details'?: { [key: string]: { [key: string]:
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: string; }; };
|
|
47
47
|
}
|
|
48
48
|
|
package/models/payment-class.ts
CHANGED
|
@@ -76,7 +76,7 @@ export interface PaymentClass {
|
|
|
76
76
|
*/
|
|
77
77
|
'metadata': object;
|
|
78
78
|
/**
|
|
79
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
79
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof PaymentClass
|
|
82
82
|
*/
|
|
@@ -45,7 +45,7 @@ export interface PaymentMethodClass {
|
|
|
45
45
|
*/
|
|
46
46
|
'pspCustomerId': string;
|
|
47
47
|
/**
|
|
48
|
-
* The payment service provider
|
|
48
|
+
* The payment service provider used by this payment method.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof PaymentMethodClass
|
|
51
51
|
*/
|
|
@@ -57,13 +57,7 @@ export interface PaymentMethodClass {
|
|
|
57
57
|
*/
|
|
58
58
|
'type': string;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {object}
|
|
62
|
-
* @memberof PaymentMethodClass
|
|
63
|
-
*/
|
|
64
|
-
'metadata': object;
|
|
65
|
-
/**
|
|
66
|
-
* Time at which the object was created.
|
|
60
|
+
* Created at
|
|
67
61
|
* @type {string}
|
|
68
62
|
* @memberof PaymentMethodClass
|
|
69
63
|
*/
|
|
@@ -100,9 +100,7 @@ export const PaymentReminderClassInvoiceTypeEnum = {
|
|
|
100
100
|
Correction: 'correction',
|
|
101
101
|
Estimated: 'estimated',
|
|
102
102
|
Penalty: 'penalty',
|
|
103
|
-
Other: 'other'
|
|
104
|
-
Withdraw: 'withdraw',
|
|
105
|
-
Final: 'final'
|
|
103
|
+
Other: 'other'
|
|
106
104
|
} as const;
|
|
107
105
|
|
|
108
106
|
export type PaymentReminderClassInvoiceTypeEnum = typeof PaymentReminderClassInvoiceTypeEnum[keyof typeof PaymentReminderClassInvoiceTypeEnum];
|
|
@@ -112,9 +110,7 @@ export const PaymentReminderClassPaymentCodeEnum = {
|
|
|
112
110
|
Correction: 'correction',
|
|
113
111
|
Estimated: 'estimated',
|
|
114
112
|
Penalty: 'penalty',
|
|
115
|
-
Other: 'other'
|
|
116
|
-
Withdraw: 'withdraw',
|
|
117
|
-
Final: 'final'
|
|
113
|
+
Other: 'other'
|
|
118
114
|
} as const;
|
|
119
115
|
|
|
120
116
|
export type PaymentReminderClassPaymentCodeEnum = typeof PaymentReminderClassPaymentCodeEnum[keyof typeof PaymentReminderClassPaymentCodeEnum];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/payment-sdk-node",
|
|
3
|
-
"version": "1.8.2
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/payment-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
27
|
"typescript": "^4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|