@emilgroup/payment-sdk-node 1.8.2 → 1.12.1
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 +17 -2
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +4 -4
- package/api/bank-transaction-api.ts +569 -0
- package/api/payment-methods-api.ts +4 -4
- package/api/payment-reminders-api.ts +12 -10
- package/api/payments-api.ts +4 -4
- package/api/refunds-api.ts +464 -0
- package/api/tenant-bank-account-api.ts +655 -0
- package/api.ts +6 -2
- package/dist/api/bank-accounts-api.d.ts +4 -4
- package/dist/api/bank-accounts-api.js +3 -3
- package/dist/api/bank-transaction-api.d.ts +318 -0
- package/dist/api/bank-transaction-api.js +543 -0
- package/dist/api/payment-methods-api.d.ts +4 -4
- package/dist/api/payment-methods-api.js +3 -3
- package/dist/api/payment-reminders-api.d.ts +12 -11
- package/dist/api/payment-reminders-api.js +7 -7
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +3 -3
- package/dist/api/refunds-api.d.ts +260 -0
- package/dist/api/refunds-api.js +445 -0
- package/dist/api/tenant-bank-account-api.d.ts +361 -0
- package/dist/api/tenant-bank-account-api.js +620 -0
- package/dist/api.d.ts +3 -1
- package/dist/api.js +3 -1
- package/dist/models/bank-transaction-response-class.d.ts +122 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +2 -0
- package/dist/models/create-payment-reminder-request-dto.js +3 -1
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/create-refund-request-dto.d.ts +24 -0
- package/dist/models/create-refund-request-dto.js +15 -0
- package/dist/models/create-refund-response-class.d.ts +25 -0
- package/dist/models/create-refund-response-class.js +15 -0
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +42 -0
- package/dist/models/create-tenant-bank-account-request-dto.js +15 -0
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
- package/dist/models/get-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/get-bank-transactions-response-class.js +15 -0
- package/dist/models/{validate-pspconfig-response-class.d.ts → get-refund-response-class.d.ts} +7 -6
- package/dist/models/get-refund-response-class.js +15 -0
- package/dist/models/get-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/get-tenant-bank-account-response-class.js +15 -0
- package/dist/models/index.d.ts +14 -1
- package/dist/models/index.js +14 -1
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/link-bank-transaction-request-dto.d.ts +30 -0
- package/dist/models/link-bank-transaction-request-dto.js +15 -0
- package/dist/models/list-bank-transactions-response-class.d.ts +31 -0
- package/dist/models/list-bank-transactions-response-class.js +15 -0
- package/dist/models/list-refunds-response-class.d.ts +31 -0
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-method-class.d.ts +8 -2
- package/dist/models/payment-reminder-class.d.ts +4 -0
- package/dist/models/payment-reminder-class.js +6 -2
- package/dist/models/refund-class.d.ts +104 -0
- package/dist/models/refund-class.js +28 -0
- package/dist/models/tenant-bank-account-response-class.d.ts +66 -0
- package/dist/models/tenant-bank-account-response-class.js +15 -0
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +36 -0
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
- package/models/bank-transaction-response-class.ts +128 -0
- package/models/create-payment-reminder-request-dto.ts +3 -1
- package/models/create-payment-request-dto.ts +3 -3
- package/models/create-refund-request-dto.ts +30 -0
- package/models/create-refund-response-class.ts +31 -0
- package/models/create-tenant-bank-account-request-dto.ts +48 -0
- package/models/deactivate-payment-reminder-response-class.ts +31 -0
- package/models/get-bank-transactions-response-class.ts +31 -0
- package/models/{validate-pspconfig-response-class.ts → get-refund-response-class.ts} +7 -6
- package/models/get-tenant-bank-account-response-class.ts +31 -0
- package/models/index.ts +14 -1
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/link-bank-transaction-request-dto.ts +36 -0
- package/models/list-bank-transactions-response-class.ts +37 -0
- package/models/list-refunds-response-class.ts +37 -0
- package/models/payment-class.ts +1 -1
- package/models/payment-method-class.ts +8 -2
- package/models/payment-reminder-class.ts +6 -2
- package/models/refund-class.ts +114 -0
- package/models/tenant-bank-account-response-class.ts +72 -0
- package/models/update-tenant-bank-account-rest-request-dto.ts +42 -0
- package/package.json +1 -1
- package/api/payment-service-providers-api.ts +0 -165
- package/dist/api/payment-service-providers-api.d.ts +0 -93
- package/dist/api/payment-service-providers-api.js +0 -224
- /package/dist/models/{validate-pspconfig-response-class.js → bank-transaction-response-class.js} +0 -0
|
@@ -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,48 @@
|
|
|
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 CreateTenantBankAccountRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateTenantBankAccountRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Name of the account given by the user - to quickly identify the account
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateTenantBankAccountRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'accountName': string;
|
|
29
|
+
/**
|
|
30
|
+
* Name of the bank the account belongs to
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateTenantBankAccountRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'bankName': string;
|
|
35
|
+
/**
|
|
36
|
+
* IBAN number for the bank account
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateTenantBankAccountRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'iban': string;
|
|
41
|
+
/**
|
|
42
|
+
* The name of the account
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateTenantBankAccountRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'bookingAccount': string;
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -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 { PaymentReminderClass } from './payment-reminder-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface DeactivatePaymentReminderResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface DeactivatePaymentReminderResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The payment reminder
|
|
26
|
+
* @type {PaymentReminderClass}
|
|
27
|
+
* @memberof DeactivatePaymentReminderResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'paymentReminder': PaymentReminderClass;
|
|
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 { BankTransactionResponseClass } from './bank-transaction-response-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetBankTransactionsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetBankTransactionsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Bank transaction
|
|
26
|
+
* @type {BankTransactionResponseClass}
|
|
27
|
+
* @memberof GetBankTransactionsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'bankTransaction': BankTransactionResponseClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -13,18 +13,19 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { RefundClass } from './refund-class';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
19
20
|
* @export
|
|
20
|
-
* @interface
|
|
21
|
+
* @interface GetRefundResponseClass
|
|
21
22
|
*/
|
|
22
|
-
export interface
|
|
23
|
+
export interface GetRefundResponseClass {
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {
|
|
26
|
-
* @memberof
|
|
25
|
+
* Refund
|
|
26
|
+
* @type {RefundClass}
|
|
27
|
+
* @memberof GetRefundResponseClass
|
|
27
28
|
*/
|
|
28
|
-
'
|
|
29
|
+
'refund': RefundClass;
|
|
29
30
|
}
|
|
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 { TenantBankAccountResponseClass } from './tenant-bank-account-response-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetTenantBankAccountResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetTenantBankAccountResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Tenant Bank Account
|
|
26
|
+
* @type {TenantBankAccountResponseClass}
|
|
27
|
+
* @memberof GetTenantBankAccountResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'bankAccount': TenantBankAccountResponseClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './bank-account-class';
|
|
2
|
+
export * from './bank-transaction-response-class';
|
|
2
3
|
export * from './billing-profile-dto';
|
|
3
4
|
export * from './billing-profile-limited-response-dto';
|
|
4
5
|
export * from './complete-braintree-payment-setup-request-dto';
|
|
@@ -11,10 +12,17 @@ export * from './create-payment-reminder-request-dto';
|
|
|
11
12
|
export * from './create-payment-request-dto';
|
|
12
13
|
export * from './create-payment-response-class';
|
|
13
14
|
export * from './create-psp-payment-method-request-dto';
|
|
15
|
+
export * from './create-refund-request-dto';
|
|
16
|
+
export * from './create-refund-response-class';
|
|
17
|
+
export * from './create-tenant-bank-account-request-dto';
|
|
14
18
|
export * from './deactivate-payment-reminder-request-dto';
|
|
19
|
+
export * from './deactivate-payment-reminder-response-class';
|
|
20
|
+
export * from './get-bank-transactions-response-class';
|
|
15
21
|
export * from './get-payment-method-response-class';
|
|
16
22
|
export * from './get-payment-response-class';
|
|
23
|
+
export * from './get-refund-response-class';
|
|
17
24
|
export * from './get-request-dto';
|
|
25
|
+
export * from './get-tenant-bank-account-response-class';
|
|
18
26
|
export * from './initiate-braintree-payment-setup-request-dto';
|
|
19
27
|
export * from './initiate-braintree-payment-setup-response-class';
|
|
20
28
|
export * from './initiate-payment-setup-request-dto';
|
|
@@ -23,15 +31,20 @@ export * from './initiate-stripe-payment-setup-request-dto';
|
|
|
23
31
|
export * from './initiate-stripe-payment-setup-response-class';
|
|
24
32
|
export * from './inline-response200';
|
|
25
33
|
export * from './inline-response503';
|
|
34
|
+
export * from './link-bank-transaction-request-dto';
|
|
26
35
|
export * from './list-bank-accounts-response-class';
|
|
36
|
+
export * from './list-bank-transactions-response-class';
|
|
27
37
|
export * from './list-payment-methods-response-class';
|
|
28
38
|
export * from './list-payment-reminders-response-class';
|
|
29
39
|
export * from './list-payments-response-class';
|
|
40
|
+
export * from './list-refunds-response-class';
|
|
30
41
|
export * from './payment-class';
|
|
31
42
|
export * from './payment-method-class';
|
|
32
43
|
export * from './payment-reminder-class';
|
|
44
|
+
export * from './refund-class';
|
|
33
45
|
export * from './sepa-direct-dto';
|
|
34
46
|
export * from './symphony-profile-limited-response-dto';
|
|
47
|
+
export * from './tenant-bank-account-response-class';
|
|
35
48
|
export * from './transaction-class';
|
|
49
|
+
export * from './update-tenant-bank-account-rest-request-dto';
|
|
36
50
|
export * from './validate-pspconfig-request-dto';
|
|
37
|
-
export * from './validate-pspconfig-response-class';
|
|
@@ -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]: object; }; }}
|
|
32
32
|
* @memberof InlineResponse200
|
|
33
33
|
*/
|
|
34
|
-
'info'?: { [key: string]: { [key: string]:
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {{ [key: string]: { [key: string]:
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
38
38
|
* @memberof InlineResponse200
|
|
39
39
|
*/
|
|
40
|
-
'error'?: { [key: string]: { [key: string]:
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {{ [key: string]: { [key: string]:
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
44
44
|
* @memberof InlineResponse200
|
|
45
45
|
*/
|
|
46
|
-
'details'?: { [key: string]: { [key: string]:
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: object; }; };
|
|
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]: object; }; }}
|
|
32
32
|
* @memberof InlineResponse503
|
|
33
33
|
*/
|
|
34
|
-
'info'?: { [key: string]: { [key: string]:
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {{ [key: string]: { [key: string]:
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
38
38
|
* @memberof InlineResponse503
|
|
39
39
|
*/
|
|
40
|
-
'error'?: { [key: string]: { [key: string]:
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {{ [key: string]: { [key: string]:
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
44
44
|
* @memberof InlineResponse503
|
|
45
45
|
*/
|
|
46
|
-
'details'?: { [key: string]: { [key: string]:
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: object; }; };
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -0,0 +1,36 @@
|
|
|
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 LinkBankTransactionRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface LinkBankTransactionRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier for the object.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof LinkBankTransactionRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'code': string;
|
|
29
|
+
/**
|
|
30
|
+
* The code of the invoice that the transaction will be linked to.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof LinkBankTransactionRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'invoiceCode': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -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 { BankTransactionResponseClass } from './bank-transaction-response-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListBankTransactionsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListBankTransactionsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The list of bankTransactionss.
|
|
26
|
+
* @type {Array<BankTransactionResponseClass>}
|
|
27
|
+
* @memberof ListBankTransactionsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<BankTransactionResponseClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListBankTransactionsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -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
|
+
|
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 associated to this payment method.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof PaymentMethodClass
|
|
51
51
|
*/
|
|
@@ -57,7 +57,13 @@ export interface PaymentMethodClass {
|
|
|
57
57
|
*/
|
|
58
58
|
'type': string;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Optional field contain extra information
|
|
61
|
+
* @type {object}
|
|
62
|
+
* @memberof PaymentMethodClass
|
|
63
|
+
*/
|
|
64
|
+
'metadata': object;
|
|
65
|
+
/**
|
|
66
|
+
* Time at which the object was created.
|
|
61
67
|
* @type {string}
|
|
62
68
|
* @memberof PaymentMethodClass
|
|
63
69
|
*/
|
|
@@ -100,7 +100,9 @@ export const PaymentReminderClassInvoiceTypeEnum = {
|
|
|
100
100
|
Correction: 'correction',
|
|
101
101
|
Estimated: 'estimated',
|
|
102
102
|
Penalty: 'penalty',
|
|
103
|
-
Other: 'other'
|
|
103
|
+
Other: 'other',
|
|
104
|
+
Withdraw: 'withdraw',
|
|
105
|
+
Final: 'final'
|
|
104
106
|
} as const;
|
|
105
107
|
|
|
106
108
|
export type PaymentReminderClassInvoiceTypeEnum = typeof PaymentReminderClassInvoiceTypeEnum[keyof typeof PaymentReminderClassInvoiceTypeEnum];
|
|
@@ -110,7 +112,9 @@ export const PaymentReminderClassPaymentCodeEnum = {
|
|
|
110
112
|
Correction: 'correction',
|
|
111
113
|
Estimated: 'estimated',
|
|
112
114
|
Penalty: 'penalty',
|
|
113
|
-
Other: 'other'
|
|
115
|
+
Other: 'other',
|
|
116
|
+
Withdraw: 'withdraw',
|
|
117
|
+
Final: 'final'
|
|
114
118
|
} as const;
|
|
115
119
|
|
|
116
120
|
export type PaymentReminderClassPaymentCodeEnum = typeof PaymentReminderClassPaymentCodeEnum[keyof typeof PaymentReminderClassPaymentCodeEnum];
|
|
@@ -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
|
+
|