@emilgroup/payment-sdk 1.4.1-beta.2 → 1.4.1-beta.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/.openapi-generator/FILES +0 -6
- package/README.md +2 -2
- package/api/bank-transaction-api.ts +1 -203
- package/api.ts +0 -2
- package/dist/api/bank-transaction-api.d.ts +0 -110
- package/dist/api/bank-transaction-api.js +0 -185
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/models/bank-transaction-response-class.d.ts +6 -0
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/models/bank-transaction-response-class.ts +6 -0
- package/models/index.ts +0 -5
- package/package.json +1 -1
- package/api/refunds-api.ts +0 -476
- package/dist/api/refunds-api.d.ts +0 -269
- package/dist/api/refunds-api.js +0 -449
- package/dist/models/create-refund-request-dto.d.ts +0 -24
- package/dist/models/create-refund-request-dto.js +0 -15
- package/dist/models/create-refund-response-class.d.ts +0 -25
- package/dist/models/create-refund-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/refund-class.d.ts +0 -104
- package/dist/models/refund-class.js +0 -28
- package/models/create-refund-request-dto.ts +0 -30
- package/models/create-refund-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/list-refunds-response-class.ts +0 -37
- package/models/refund-class.ts +0 -114
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Emil Payment Service
|
|
3
|
-
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: z
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface RefundClass
|
|
16
|
-
*/
|
|
17
|
-
export interface RefundClass {
|
|
18
|
-
/**
|
|
19
|
-
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof RefundClass
|
|
22
|
-
*/
|
|
23
|
-
'id': number;
|
|
24
|
-
/**
|
|
25
|
-
* Unique identifier for the object.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof RefundClass
|
|
28
|
-
*/
|
|
29
|
-
'code': string;
|
|
30
|
-
/**
|
|
31
|
-
* Payment Service Provider with which the payment/refund is done.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof RefundClass
|
|
34
|
-
*/
|
|
35
|
-
'psp': string;
|
|
36
|
-
/**
|
|
37
|
-
* User account code associated with the payment.
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof RefundClass
|
|
40
|
-
*/
|
|
41
|
-
'accountCode': string;
|
|
42
|
-
/**
|
|
43
|
-
* Amount that was refunded in cents. 100 to refund 1€.
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof RefundClass
|
|
46
|
-
*/
|
|
47
|
-
'amount': number;
|
|
48
|
-
/**
|
|
49
|
-
* Invoice referenced in this refund. Usually, one refund is connected to one withdraw/termination/correction invoice .
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof RefundClass
|
|
52
|
-
*/
|
|
53
|
-
'invoiceCode': string;
|
|
54
|
-
/**
|
|
55
|
-
* Time at which the object was created.
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof RefundClass
|
|
58
|
-
*/
|
|
59
|
-
'createdAt': string;
|
|
60
|
-
/**
|
|
61
|
-
* Time at which the object was updated.
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof RefundClass
|
|
64
|
-
*/
|
|
65
|
-
'updatedAt': string;
|
|
66
|
-
/**
|
|
67
|
-
* Currency of the amount refunded.
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof RefundClass
|
|
70
|
-
*/
|
|
71
|
-
'currency': string;
|
|
72
|
-
/**
|
|
73
|
-
* Reason for the refund.
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof RefundClass
|
|
76
|
-
*/
|
|
77
|
-
'reason': RefundClassReasonEnum;
|
|
78
|
-
/**
|
|
79
|
-
* Status of the refund.
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof RefundClass
|
|
82
|
-
*/
|
|
83
|
-
'status': RefundClassStatusEnum;
|
|
84
|
-
/**
|
|
85
|
-
* Items that were refunded.
|
|
86
|
-
* @type {Array<string>}
|
|
87
|
-
* @memberof RefundClass
|
|
88
|
-
*/
|
|
89
|
-
'refundItems': Array<string>;
|
|
90
|
-
}
|
|
91
|
-
export declare const RefundClassReasonEnum: {
|
|
92
|
-
readonly PolicyWithdrawn: "POLICY_WITHDRAWN";
|
|
93
|
-
readonly PolicyTerminated: "POLICY_TERMINATED";
|
|
94
|
-
readonly PolicyCorrected: "POLICY_CORRECTED";
|
|
95
|
-
readonly ManualRefund: "MANUAL_REFUND";
|
|
96
|
-
};
|
|
97
|
-
export type RefundClassReasonEnum = typeof RefundClassReasonEnum[keyof typeof RefundClassReasonEnum];
|
|
98
|
-
export declare const RefundClassStatusEnum: {
|
|
99
|
-
readonly Pending: "pending";
|
|
100
|
-
readonly Succeeded: "succeeded";
|
|
101
|
-
readonly Failed: "failed";
|
|
102
|
-
readonly Canceled: "canceled";
|
|
103
|
-
};
|
|
104
|
-
export type RefundClassStatusEnum = typeof RefundClassStatusEnum[keyof typeof RefundClassStatusEnum];
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Emil Payment Service
|
|
6
|
-
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: z
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.RefundClassStatusEnum = exports.RefundClassReasonEnum = void 0;
|
|
17
|
-
exports.RefundClassReasonEnum = {
|
|
18
|
-
PolicyWithdrawn: 'POLICY_WITHDRAWN',
|
|
19
|
-
PolicyTerminated: 'POLICY_TERMINATED',
|
|
20
|
-
PolicyCorrected: 'POLICY_CORRECTED',
|
|
21
|
-
ManualRefund: 'MANUAL_REFUND'
|
|
22
|
-
};
|
|
23
|
-
exports.RefundClassStatusEnum = {
|
|
24
|
-
Pending: 'pending',
|
|
25
|
-
Succeeded: 'succeeded',
|
|
26
|
-
Failed: 'failed',
|
|
27
|
-
Canceled: 'canceled'
|
|
28
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: z
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface CreateRefundRequestDto
|
|
21
|
-
*/
|
|
22
|
-
export interface CreateRefundRequestDto {
|
|
23
|
-
/**
|
|
24
|
-
* The code of the invoice to refund, must be of type Withdraw or Final or Correction
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof CreateRefundRequestDto
|
|
27
|
-
*/
|
|
28
|
-
'invoiceCode': string;
|
|
29
|
-
}
|
|
30
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: z
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { RefundClass } from './refund-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface CreateRefundResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface CreateRefundResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* Refund
|
|
26
|
-
* @type {RefundClass}
|
|
27
|
-
* @memberof CreateRefundResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'refund': RefundClass;
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: z
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { RefundClass } from './refund-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface GetRefundResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface GetRefundResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* Refund
|
|
26
|
-
* @type {RefundClass}
|
|
27
|
-
* @memberof GetRefundResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'refund': RefundClass;
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: z
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { RefundClass } from './refund-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface ListRefundsResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface ListRefundsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* The list of refundss.
|
|
26
|
-
* @type {Array<RefundClass>}
|
|
27
|
-
* @memberof ListRefundsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'items': Array<RefundClass>;
|
|
30
|
-
/**
|
|
31
|
-
* Next page token
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ListRefundsResponseClass
|
|
34
|
-
*/
|
|
35
|
-
'nextPageToken': string;
|
|
36
|
-
}
|
|
37
|
-
|
package/models/refund-class.ts
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: z
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface RefundClass
|
|
21
|
-
*/
|
|
22
|
-
export interface RefundClass {
|
|
23
|
-
/**
|
|
24
|
-
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
-
* @type {number}
|
|
26
|
-
* @memberof RefundClass
|
|
27
|
-
*/
|
|
28
|
-
'id': number;
|
|
29
|
-
/**
|
|
30
|
-
* Unique identifier for the object.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof RefundClass
|
|
33
|
-
*/
|
|
34
|
-
'code': string;
|
|
35
|
-
/**
|
|
36
|
-
* Payment Service Provider with which the payment/refund is done.
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof RefundClass
|
|
39
|
-
*/
|
|
40
|
-
'psp': string;
|
|
41
|
-
/**
|
|
42
|
-
* User account code associated with the payment.
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof RefundClass
|
|
45
|
-
*/
|
|
46
|
-
'accountCode': string;
|
|
47
|
-
/**
|
|
48
|
-
* Amount that was refunded in cents. 100 to refund 1€.
|
|
49
|
-
* @type {number}
|
|
50
|
-
* @memberof RefundClass
|
|
51
|
-
*/
|
|
52
|
-
'amount': number;
|
|
53
|
-
/**
|
|
54
|
-
* Invoice referenced in this refund. Usually, one refund is connected to one withdraw/termination/correction invoice .
|
|
55
|
-
* @type {string}
|
|
56
|
-
* @memberof RefundClass
|
|
57
|
-
*/
|
|
58
|
-
'invoiceCode': string;
|
|
59
|
-
/**
|
|
60
|
-
* Time at which the object was created.
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @memberof RefundClass
|
|
63
|
-
*/
|
|
64
|
-
'createdAt': string;
|
|
65
|
-
/**
|
|
66
|
-
* Time at which the object was updated.
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof RefundClass
|
|
69
|
-
*/
|
|
70
|
-
'updatedAt': string;
|
|
71
|
-
/**
|
|
72
|
-
* Currency of the amount refunded.
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @memberof RefundClass
|
|
75
|
-
*/
|
|
76
|
-
'currency': string;
|
|
77
|
-
/**
|
|
78
|
-
* Reason for the refund.
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof RefundClass
|
|
81
|
-
*/
|
|
82
|
-
'reason': RefundClassReasonEnum;
|
|
83
|
-
/**
|
|
84
|
-
* Status of the refund.
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof RefundClass
|
|
87
|
-
*/
|
|
88
|
-
'status': RefundClassStatusEnum;
|
|
89
|
-
/**
|
|
90
|
-
* Items that were refunded.
|
|
91
|
-
* @type {Array<string>}
|
|
92
|
-
* @memberof RefundClass
|
|
93
|
-
*/
|
|
94
|
-
'refundItems': Array<string>;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export const RefundClassReasonEnum = {
|
|
98
|
-
PolicyWithdrawn: 'POLICY_WITHDRAWN',
|
|
99
|
-
PolicyTerminated: 'POLICY_TERMINATED',
|
|
100
|
-
PolicyCorrected: 'POLICY_CORRECTED',
|
|
101
|
-
ManualRefund: 'MANUAL_REFUND'
|
|
102
|
-
} as const;
|
|
103
|
-
|
|
104
|
-
export type RefundClassReasonEnum = typeof RefundClassReasonEnum[keyof typeof RefundClassReasonEnum];
|
|
105
|
-
export const RefundClassStatusEnum = {
|
|
106
|
-
Pending: 'pending',
|
|
107
|
-
Succeeded: 'succeeded',
|
|
108
|
-
Failed: 'failed',
|
|
109
|
-
Canceled: 'canceled'
|
|
110
|
-
} as const;
|
|
111
|
-
|
|
112
|
-
export type RefundClassStatusEnum = typeof RefundClassStatusEnum[keyof typeof RefundClassStatusEnum];
|
|
113
|
-
|
|
114
|
-
|