@emilgroup/payment-sdk 1.4.1-beta.5 → 1.4.1-beta.6

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.
@@ -0,0 +1,31 @@
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: kontakt@emil.de
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
+ import { RefundClass } from './refund-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListRefundsResponseClass
17
+ */
18
+ export interface ListRefundsResponseClass {
19
+ /**
20
+ * The list of refundss.
21
+ * @type {Array<RefundClass>}
22
+ * @memberof ListRefundsResponseClass
23
+ */
24
+ 'items': Array<RefundClass>;
25
+ /**
26
+ * Next page token
27
+ * @type {string}
28
+ * @memberof ListRefundsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ }
@@ -0,0 +1,15 @@
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: kontakt@emil.de
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 });
@@ -0,0 +1,104 @@
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: kontakt@emil.de
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];
@@ -0,0 +1,28 @@
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: kontakt@emil.de
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
+ };
@@ -0,0 +1,30 @@
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: kontakt@emil.de
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
+
@@ -0,0 +1,31 @@
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: kontakt@emil.de
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
+
@@ -0,0 +1,31 @@
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: kontakt@emil.de
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
+
package/models/index.ts CHANGED
@@ -1,14 +1,19 @@
1
1
  export * from './bank-transaction-response-class';
2
2
  export * from './create-payment-reminder-request-dto';
3
3
  export * from './create-payment-request-dto';
4
+ export * from './create-refund-request-dto';
5
+ export * from './create-refund-response-class';
4
6
  export * from './create-tenant-bank-account-request-dto';
5
7
  export * from './deactivate-payment-reminder-request-dto';
6
8
  export * from './get-bank-transactions-response-class';
9
+ export * from './get-refund-response-class';
7
10
  export * from './get-request-dto';
8
11
  export * from './get-tenant-bank-account-response-class';
9
12
  export * from './inline-response200';
10
13
  export * from './inline-response503';
11
14
  export * from './list-bank-transactions-response-class';
15
+ export * from './list-refunds-response-class';
16
+ export * from './refund-class';
12
17
  export * from './tenant-bank-account-response-class';
13
18
  export * from './transaction-class';
14
19
  export * from './update-tenant-bank-account-rest-request-dto';
@@ -0,0 +1,37 @@
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: kontakt@emil.de
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
+
@@ -0,0 +1,114 @@
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: kontakt@emil.de
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
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk",
3
- "version": "1.4.1-beta.5",
3
+ "version": "1.4.1-beta.6",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [