@emilgroup/payment-sdk-node 1.2.0 → 1.4.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 +3 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +174 -0
- package/api/payment-methods-api.ts +16 -16
- package/api/payment-reminders-api.ts +16 -16
- package/api/payments-api.ts +16 -16
- package/api.ts +0 -5
- package/base.ts +4 -3
- package/dist/api/bank-accounts-api.d.ts +101 -0
- package/dist/api/bank-accounts-api.js +123 -0
- package/dist/api/payment-methods-api.d.ts +16 -16
- package/dist/api/payment-methods-api.js +12 -12
- package/dist/api/payment-reminders-api.d.ts +16 -16
- package/dist/api/payment-reminders-api.js +12 -12
- package/dist/api/payments-api.d.ts +16 -16
- package/dist/api/payments-api.js +12 -12
- package/dist/api.d.ts +0 -4
- package/dist/api.js +0 -6
- package/dist/base.d.ts +3 -2
- package/dist/base.js +4 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/models/bank-account-class.d.ts +54 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
- package/dist/models/list-bank-accounts-response-class.js +15 -0
- package/dist/models/payment-class.d.ts +15 -2
- package/dist/models/transaction-class.d.ts +54 -0
- package/dist/models/transaction-class.js +15 -0
- package/index.ts +1 -1
- package/models/bank-account-class.ts +60 -0
- package/models/create-payment-request-dto.ts +7 -1
- package/models/index.ts +3 -0
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/payment-class.ts +15 -2
- package/models/transaction-class.ts +60 -0
- package/package.json +2 -2
package/models/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './bank-account-class';
|
|
1
2
|
export * from './complete-braintree-payment-setup-request-dto';
|
|
2
3
|
export * from './complete-payment-setup-request-dto';
|
|
3
4
|
export * from './complete-payment-setup-response-class';
|
|
@@ -18,6 +19,7 @@ export * from './initiate-payment-setup-request-dto';
|
|
|
18
19
|
export * from './initiate-payment-setup-response-class';
|
|
19
20
|
export * from './initiate-stripe-payment-setup-request-dto';
|
|
20
21
|
export * from './initiate-stripe-payment-setup-response-class';
|
|
22
|
+
export * from './list-bank-accounts-response-class';
|
|
21
23
|
export * from './list-payment-methods-response-class';
|
|
22
24
|
export * from './list-payment-reminders-response-class';
|
|
23
25
|
export * from './list-payments-response-class';
|
|
@@ -25,5 +27,6 @@ export * from './payment-class';
|
|
|
25
27
|
export * from './payment-method-class';
|
|
26
28
|
export * from './payment-reminder-class';
|
|
27
29
|
export * from './sepa-direct-dto';
|
|
30
|
+
export * from './transaction-class';
|
|
28
31
|
export * from './validate-pspconfig-request-dto';
|
|
29
32
|
export * from './validate-pspconfig-response-class';
|
|
@@ -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 { BankAccountClass } from './bank-account-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListBankAccountsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListBankAccountsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Bank accounts
|
|
26
|
+
* @type {Array<BankAccountClass>}
|
|
27
|
+
* @memberof ListBankAccountsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<BankAccountClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListBankAccountsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
}
|
|
37
|
+
|
package/models/payment-class.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { TransactionClass } from './transaction-class';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -70,9 +71,21 @@ export interface PaymentClass {
|
|
|
70
71
|
'updatedAt': string;
|
|
71
72
|
/**
|
|
72
73
|
* Transactions referenced by this payment.
|
|
73
|
-
* @type {Array<
|
|
74
|
+
* @type {Array<TransactionClass>}
|
|
75
|
+
* @memberof PaymentClass
|
|
76
|
+
*/
|
|
77
|
+
'transactions': Array<TransactionClass>;
|
|
78
|
+
/**
|
|
79
|
+
* Optional field contain extra information.
|
|
80
|
+
* @type {object}
|
|
81
|
+
* @memberof PaymentClass
|
|
82
|
+
*/
|
|
83
|
+
'metadata': object;
|
|
84
|
+
/**
|
|
85
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
86
|
+
* @type {string}
|
|
74
87
|
* @memberof PaymentClass
|
|
75
88
|
*/
|
|
76
|
-
'
|
|
89
|
+
'productSlug'?: string;
|
|
77
90
|
}
|
|
78
91
|
|
|
@@ -0,0 +1,60 @@
|
|
|
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 TransactionClass
|
|
21
|
+
*/
|
|
22
|
+
export interface TransactionClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof TransactionClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier for transaction.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof TransactionClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* Reference to the payment id.
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof TransactionClass
|
|
39
|
+
*/
|
|
40
|
+
'paymentId': number;
|
|
41
|
+
/**
|
|
42
|
+
* Webhook associated to that transaction. Webhooks
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof TransactionClass
|
|
45
|
+
*/
|
|
46
|
+
'webhookId': number;
|
|
47
|
+
/**
|
|
48
|
+
* Status of the transaction. Can be one of the following: \'succeeded\', \'pending\', \'failed\', \'disputed\'. }
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof TransactionClass
|
|
51
|
+
*/
|
|
52
|
+
'status': string;
|
|
53
|
+
/**
|
|
54
|
+
* Time at which the object was created.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof TransactionClass
|
|
57
|
+
*/
|
|
58
|
+
'createdAt': string;
|
|
59
|
+
}
|
|
60
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/payment-sdk-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/payment-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
27
|
"typescript": "^4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|