@emilgroup/payment-sdk 1.0.0 → 1.4.1-beta.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/.openapi-generator/FILES +15 -30
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +21 -25
- package/api/bank-transaction-api.ts +657 -0
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +42 -46
- package/api/payment-reminders-api.ts +17 -19
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +30 -32
- package/api/refunds-api.ts +462 -0
- package/api/tenant-bank-account-api.ts +651 -0
- package/api/webhooks-api.ts +1 -1
- package/api.ts +7 -3
- package/base.ts +2 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +17 -19
- package/dist/api/bank-accounts-api.js +16 -16
- package/dist/api/bank-transaction-api.d.ts +371 -0
- package/dist/api/bank-transaction-api.js +632 -0
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +32 -36
- package/dist/api/payment-methods-api.js +32 -28
- package/dist/api/payment-reminders-api.d.ts +21 -22
- package/dist/api/payment-reminders-api.js +8 -8
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +26 -29
- package/dist/api/payments-api.js +20 -16
- package/dist/api/refunds-api.d.ts +260 -0
- package/dist/api/refunds-api.js +443 -0
- package/dist/api/tenant-bank-account-api.d.ts +361 -0
- package/dist/api/tenant-bank-account-api.js +616 -0
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +4 -2
- package/dist/api.js +4 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +2 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +122 -0
- package/dist/models/{bank-account-class.js → bank-transaction-response-class.js} +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/{sepa-direct-dto.d.ts → create-refund-request-dto.d.ts} +6 -6
- package/dist/models/{complete-braintree-payment-setup-request-dto.js → create-refund-request-dto.js} +1 -1
- package/dist/models/{validate-pspconfig-response-class.d.ts → create-refund-response-class.d.ts} +8 -7
- package/dist/models/{billing-profile-dto.js → create-refund-response-class.js} +1 -1
- package/dist/models/{billing-profile-limited-response-dto.d.ts → create-tenant-bank-account-request-dto.d.ts} +15 -27
- package/dist/models/{billing-profile-limited-response-dto.js → create-tenant-bank-account-request-dto.js} +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/{get-payment-method-response-class.d.ts → get-bank-transactions-response-class.d.ts} +8 -8
- package/dist/models/get-bank-transactions-response-class.js +15 -0
- package/dist/models/{get-payment-response-class.d.ts → get-refund-response-class.d.ts} +8 -8
- package/dist/models/get-refund-response-class.js +15 -0
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/{create-bank-account-request-dto.d.ts → get-tenant-bank-account-response-class.d.ts} +8 -13
- package/dist/models/get-tenant-bank-account-response-class.js +15 -0
- package/dist/models/index.d.ts +12 -29
- package/dist/models/index.js +12 -29
- package/dist/models/inline-response200.d.ts +7 -7
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +7 -7
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/{list-payment-methods-response-class.d.ts → list-bank-transactions-response-class.d.ts} +9 -9
- package/dist/models/list-bank-transactions-response-class.js +15 -0
- package/dist/models/{list-payments-response-class.d.ts → list-refunds-response-class.d.ts} +9 -9
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +104 -0
- package/dist/models/refund-class.js +28 -0
- package/dist/models/{payment-method-class.d.ts → tenant-bank-account-response-class.d.ts} +25 -19
- package/dist/models/tenant-bank-account-response-class.js +15 -0
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/{symphony-profile-limited-response-dto.d.ts → update-tenant-bank-account-rest-request-dto.d.ts} +12 -18
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/git_push.sh +1 -1
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +128 -0
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +3 -3
- package/models/{sepa-direct-dto.ts → create-refund-request-dto.ts} +6 -6
- package/models/{validate-pspconfig-response-class.ts → create-refund-response-class.ts} +8 -7
- package/models/{billing-profile-limited-response-dto.ts → create-tenant-bank-account-request-dto.ts} +15 -27
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/{get-payment-method-response-class.ts → get-bank-transactions-response-class.ts} +8 -8
- package/models/{get-payment-response-class.ts → get-refund-response-class.ts} +8 -8
- package/models/get-request-dto.ts +2 -2
- package/models/{create-bank-account-request-dto.ts → get-tenant-bank-account-response-class.ts} +8 -13
- package/models/index.ts +12 -29
- package/models/inline-response200.ts +7 -7
- package/models/inline-response503.ts +7 -7
- package/models/{list-payment-methods-response-class.ts → list-bank-transactions-response-class.ts} +9 -9
- package/models/{list-payments-response-class.ts → list-refunds-response-class.ts} +9 -9
- package/models/refund-class.ts +114 -0
- package/models/{payment-method-class.ts → tenant-bank-account-response-class.ts} +25 -19
- package/models/transaction-class.ts +1 -1
- package/models/{symphony-profile-limited-response-dto.ts → update-tenant-bank-account-rest-request-dto.ts} +12 -18
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -2
- package/api/payment-service-providers-api.ts +0 -161
- package/dist/api/payment-service-providers-api.d.ts +0 -93
- package/dist/api/payment-service-providers-api.js +0 -220
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/dist/models/validate-pspconfig-response-class.js +0 -15
- package/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-reminder-class.ts +0 -122
|
@@ -5,7 +5,7 @@
|
|
|
5
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -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
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -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
|
|
package/models/{list-payment-methods-response-class.ts → list-bank-transactions-response-class.ts}
RENAMED
|
@@ -5,7 +5,7 @@
|
|
|
5
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -13,24 +13,24 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { BankTransactionResponseClass } from './bank-transaction-response-class';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
20
|
* @export
|
|
21
|
-
* @interface
|
|
21
|
+
* @interface ListBankTransactionsResponseClass
|
|
22
22
|
*/
|
|
23
|
-
export interface
|
|
23
|
+
export interface ListBankTransactionsResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {Array<
|
|
27
|
-
* @memberof
|
|
25
|
+
* The list of bankTransactionss.
|
|
26
|
+
* @type {Array<BankTransactionResponseClass>}
|
|
27
|
+
* @memberof ListBankTransactionsResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'items': Array<
|
|
29
|
+
'items': Array<BankTransactionResponseClass>;
|
|
30
30
|
/**
|
|
31
31
|
* Next page token
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof ListBankTransactionsResponseClass
|
|
34
34
|
*/
|
|
35
35
|
'nextPageToken': string;
|
|
36
36
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -13,24 +13,24 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { RefundClass } from './refund-class';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
20
|
* @export
|
|
21
|
-
* @interface
|
|
21
|
+
* @interface ListRefundsResponseClass
|
|
22
22
|
*/
|
|
23
|
-
export interface
|
|
23
|
+
export interface ListRefundsResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {Array<
|
|
27
|
-
* @memberof
|
|
25
|
+
* The list of refundss.
|
|
26
|
+
* @type {Array<RefundClass>}
|
|
27
|
+
* @memberof ListRefundsResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'items': Array<
|
|
29
|
+
'items': Array<RefundClass>;
|
|
30
30
|
/**
|
|
31
31
|
* Next page token
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof ListRefundsResponseClass
|
|
34
34
|
*/
|
|
35
35
|
'nextPageToken': string;
|
|
36
36
|
}
|
|
@@ -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: 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
|
+
|
|
@@ -5,7 +5,7 @@
|
|
|
5
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -17,50 +17,56 @@
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
20
|
-
* @interface
|
|
20
|
+
* @interface TenantBankAccountResponseClass
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface TenantBankAccountResponseClass {
|
|
23
23
|
/**
|
|
24
24
|
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
25
|
* @type {number}
|
|
26
|
-
* @memberof
|
|
26
|
+
* @memberof TenantBankAccountResponseClass
|
|
27
27
|
*/
|
|
28
28
|
'id': number;
|
|
29
29
|
/**
|
|
30
30
|
* Unique identifier for the object.
|
|
31
31
|
* @type {string}
|
|
32
|
-
* @memberof
|
|
32
|
+
* @memberof TenantBankAccountResponseClass
|
|
33
33
|
*/
|
|
34
34
|
'code': string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* IBAN number for the bank account
|
|
37
37
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof TenantBankAccountResponseClass
|
|
39
39
|
*/
|
|
40
|
-
'
|
|
40
|
+
'iban': string;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Name of the account given by the user - to quickly identify the account
|
|
43
43
|
* @type {string}
|
|
44
|
-
* @memberof
|
|
44
|
+
* @memberof TenantBankAccountResponseClass
|
|
45
45
|
*/
|
|
46
|
-
'
|
|
46
|
+
'accountName': string;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Name of the bank the account belongs to
|
|
49
49
|
* @type {string}
|
|
50
|
-
* @memberof
|
|
50
|
+
* @memberof TenantBankAccountResponseClass
|
|
51
51
|
*/
|
|
52
|
-
'
|
|
52
|
+
'bankName': string;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Number of the booking account this bank account belongs to
|
|
55
55
|
* @type {string}
|
|
56
|
-
* @memberof
|
|
56
|
+
* @memberof TenantBankAccountResponseClass
|
|
57
57
|
*/
|
|
58
|
-
'
|
|
58
|
+
'bookingAccount': string;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Time at which the object was created.
|
|
61
61
|
* @type {string}
|
|
62
|
-
* @memberof
|
|
62
|
+
* @memberof TenantBankAccountResponseClass
|
|
63
63
|
*/
|
|
64
64
|
'createdAt': string;
|
|
65
|
+
/**
|
|
66
|
+
* Time at which the object was updated.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof TenantBankAccountResponseClass
|
|
69
|
+
*/
|
|
70
|
+
'updatedAt': string;
|
|
65
71
|
}
|
|
66
72
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -5,7 +5,7 @@
|
|
|
5
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -17,32 +17,26 @@
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
20
|
-
* @interface
|
|
20
|
+
* @interface UpdateTenantBankAccountRestRequestDto
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface UpdateTenantBankAccountRestRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Name of the account given by the user - to quickly identify the account
|
|
25
25
|
* @type {string}
|
|
26
|
-
* @memberof
|
|
26
|
+
* @memberof UpdateTenantBankAccountRestRequestDto
|
|
27
27
|
*/
|
|
28
|
-
'
|
|
28
|
+
'accountName': string;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Name of the bank the account belongs to
|
|
31
31
|
* @type {string}
|
|
32
|
-
* @memberof
|
|
32
|
+
* @memberof UpdateTenantBankAccountRestRequestDto
|
|
33
33
|
*/
|
|
34
|
-
'
|
|
34
|
+
'bankName': string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The name of the account
|
|
37
37
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof UpdateTenantBankAccountRestRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {boolean}
|
|
44
|
-
* @memberof SymphonyProfileLimitedResponseDto
|
|
45
|
-
*/
|
|
46
|
-
'deathCaseFlag': boolean;
|
|
40
|
+
'bookingAccount': string;
|
|
47
41
|
}
|
|
48
42
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -25,7 +25,7 @@ export interface ValidatePSPConfigRequestDto {
|
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof ValidatePSPConfigRequestDto
|
|
27
27
|
*/
|
|
28
|
-
'type':
|
|
28
|
+
'type': string;
|
|
29
29
|
/**
|
|
30
30
|
* Map containing various necessary keys to properly use the payment service provider. In the form of <api key name, api key value>.
|
|
31
31
|
* @type {object}
|
|
@@ -40,13 +40,3 @@ export interface ValidatePSPConfigRequestDto {
|
|
|
40
40
|
'paymentMethods': Array<string>;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
export const ValidatePSPConfigRequestDtoTypeEnum = {
|
|
44
|
-
Braintree: 'braintree',
|
|
45
|
-
Stripe: 'stripe',
|
|
46
|
-
B4u: 'b4u',
|
|
47
|
-
Eis: 'eis'
|
|
48
|
-
} as const;
|
|
49
|
-
|
|
50
|
-
export type ValidatePSPConfigRequestDtoTypeEnum = typeof ValidatePSPConfigRequestDtoTypeEnum[keyof typeof ValidatePSPConfigRequestDtoTypeEnum];
|
|
51
|
-
|
|
52
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/payment-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1-beta.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/payment-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"axios": "^0.27.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
|
|
25
24
|
"typescript": "^4.0"
|
|
26
25
|
}
|
|
27
26
|
}
|
|
@@ -1,161 +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: 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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
-
import { Configuration } from '../configuration';
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { ValidatePSPConfigRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { ValidatePSPConfigResponseClass } from '../models';
|
|
27
|
-
/**
|
|
28
|
-
* PaymentServiceProvidersApi - axios parameter creator
|
|
29
|
-
* @export
|
|
30
|
-
*/
|
|
31
|
-
export const PaymentServiceProvidersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
-
return {
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @param {ValidatePSPConfigRequestDto} validatePSPConfigRequestDto
|
|
36
|
-
* @param {string} [authorization] Bearer Token
|
|
37
|
-
* @param {*} [options] Override http request option.
|
|
38
|
-
* @throws {RequiredError}
|
|
39
|
-
*/
|
|
40
|
-
validateConfiguration: async (validatePSPConfigRequestDto: ValidatePSPConfigRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41
|
-
// verify required parameter 'validatePSPConfigRequestDto' is not null or undefined
|
|
42
|
-
assertParamExists('validateConfiguration', 'validatePSPConfigRequestDto', validatePSPConfigRequestDto)
|
|
43
|
-
const localVarPath = `/paymentservice/v1/psps/validate`;
|
|
44
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46
|
-
let baseOptions;
|
|
47
|
-
let baseAccessToken;
|
|
48
|
-
if (configuration) {
|
|
49
|
-
baseOptions = configuration.baseOptions;
|
|
50
|
-
baseAccessToken = configuration.accessToken;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
54
|
-
const localVarHeaderParameter = {} as any;
|
|
55
|
-
const localVarQueryParameter = {} as any;
|
|
56
|
-
|
|
57
|
-
// authentication bearer required
|
|
58
|
-
// http bearer authentication required
|
|
59
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
60
|
-
|
|
61
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
62
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
68
|
-
|
|
69
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
70
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
71
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
72
|
-
localVarRequestOptions.data = serializeDataIfNeeded(validatePSPConfigRequestDto, localVarRequestOptions, configuration)
|
|
73
|
-
|
|
74
|
-
return {
|
|
75
|
-
url: toPathString(localVarUrlObj),
|
|
76
|
-
options: localVarRequestOptions,
|
|
77
|
-
};
|
|
78
|
-
},
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* PaymentServiceProvidersApi - functional programming interface
|
|
84
|
-
* @export
|
|
85
|
-
*/
|
|
86
|
-
export const PaymentServiceProvidersApiFp = function(configuration?: Configuration) {
|
|
87
|
-
const localVarAxiosParamCreator = PaymentServiceProvidersApiAxiosParamCreator(configuration)
|
|
88
|
-
return {
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @param {ValidatePSPConfigRequestDto} validatePSPConfigRequestDto
|
|
92
|
-
* @param {string} [authorization] Bearer Token
|
|
93
|
-
* @param {*} [options] Override http request option.
|
|
94
|
-
* @throws {RequiredError}
|
|
95
|
-
*/
|
|
96
|
-
async validateConfiguration(validatePSPConfigRequestDto: ValidatePSPConfigRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidatePSPConfigResponseClass>> {
|
|
97
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.validateConfiguration(validatePSPConfigRequestDto, authorization, options);
|
|
98
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
99
|
-
},
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* PaymentServiceProvidersApi - factory interface
|
|
105
|
-
* @export
|
|
106
|
-
*/
|
|
107
|
-
export const PaymentServiceProvidersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
108
|
-
const localVarFp = PaymentServiceProvidersApiFp(configuration)
|
|
109
|
-
return {
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* @param {ValidatePSPConfigRequestDto} validatePSPConfigRequestDto
|
|
113
|
-
* @param {string} [authorization] Bearer Token
|
|
114
|
-
* @param {*} [options] Override http request option.
|
|
115
|
-
* @throws {RequiredError}
|
|
116
|
-
*/
|
|
117
|
-
validateConfiguration(validatePSPConfigRequestDto: ValidatePSPConfigRequestDto, authorization?: string, options?: any): AxiosPromise<ValidatePSPConfigResponseClass> {
|
|
118
|
-
return localVarFp.validateConfiguration(validatePSPConfigRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
119
|
-
},
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Request parameters for validateConfiguration operation in PaymentServiceProvidersApi.
|
|
125
|
-
* @export
|
|
126
|
-
* @interface PaymentServiceProvidersApiValidateConfigurationRequest
|
|
127
|
-
*/
|
|
128
|
-
export interface PaymentServiceProvidersApiValidateConfigurationRequest {
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @type {ValidatePSPConfigRequestDto}
|
|
132
|
-
* @memberof PaymentServiceProvidersApiValidateConfiguration
|
|
133
|
-
*/
|
|
134
|
-
readonly validatePSPConfigRequestDto: ValidatePSPConfigRequestDto
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Bearer Token
|
|
138
|
-
* @type {string}
|
|
139
|
-
* @memberof PaymentServiceProvidersApiValidateConfiguration
|
|
140
|
-
*/
|
|
141
|
-
readonly authorization?: string
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* PaymentServiceProvidersApi - object-oriented interface
|
|
146
|
-
* @export
|
|
147
|
-
* @class PaymentServiceProvidersApi
|
|
148
|
-
* @extends {BaseAPI}
|
|
149
|
-
*/
|
|
150
|
-
export class PaymentServiceProvidersApi extends BaseAPI {
|
|
151
|
-
/**
|
|
152
|
-
*
|
|
153
|
-
* @param {PaymentServiceProvidersApiValidateConfigurationRequest} requestParameters Request parameters.
|
|
154
|
-
* @param {*} [options] Override http request option.
|
|
155
|
-
* @throws {RequiredError}
|
|
156
|
-
* @memberof PaymentServiceProvidersApi
|
|
157
|
-
*/
|
|
158
|
-
public validateConfiguration(requestParameters: PaymentServiceProvidersApiValidateConfigurationRequest, options?: AxiosRequestConfig) {
|
|
159
|
-
return PaymentServiceProvidersApiFp(this.configuration).validateConfiguration(requestParameters.validatePSPConfigRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
160
|
-
}
|
|
161
|
-
}
|