@emilgroup/payment-sdk-node 1.28.1-beta.34 → 1.28.1-beta.36

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.
Files changed (63) hide show
  1. package/.openapi-generator/FILES +0 -6
  2. package/README.md +2 -2
  3. package/api/exceeding-credits-api.ts +0 -107
  4. package/api/payment-requests-api.ts +12 -12
  5. package/api.ts +0 -2
  6. package/dist/api/exceeding-credits-api.d.ts +0 -57
  7. package/dist/api/exceeding-credits-api.js +0 -93
  8. package/dist/api/payment-requests-api.d.ts +12 -12
  9. package/dist/api/payment-requests-api.js +9 -9
  10. package/dist/api.d.ts +0 -1
  11. package/dist/api.js +0 -1
  12. package/dist/models/create-payment-request-request-dto.d.ts +0 -12
  13. package/dist/models/credit-allocation-class.d.ts +0 -6
  14. package/dist/models/credit-allocation-entity.d.ts +0 -6
  15. package/dist/models/index.d.ts +0 -5
  16. package/dist/models/index.js +0 -5
  17. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  18. package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
  19. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  20. package/dist/models/list-payment-requests-response-class.d.ts +18 -6
  21. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  22. package/dist/models/list-refunds-response-class.d.ts +18 -6
  23. package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
  24. package/dist/models/payment-class.d.ts +1 -1
  25. package/dist/models/payment-entity.d.ts +1 -1
  26. package/dist/models/payment-request-class.d.ts +0 -12
  27. package/dist/models/shared-transaction-class.d.ts +0 -6
  28. package/dist/models/transaction-entity.d.ts +0 -6
  29. package/models/create-payment-request-request-dto.ts +0 -12
  30. package/models/credit-allocation-class.ts +0 -6
  31. package/models/credit-allocation-entity.ts +0 -6
  32. package/models/index.ts +0 -5
  33. package/models/list-billing-addresses-response-class.ts +9 -9
  34. package/models/list-exceeding-credits-response-class.ts +18 -6
  35. package/models/list-payment-receipts-response-class.ts +9 -9
  36. package/models/list-payment-requests-response-class.ts +18 -6
  37. package/models/list-payout-methods-response-class.ts +9 -9
  38. package/models/list-refunds-response-class.ts +18 -6
  39. package/models/payment-class-without-expand-properties.ts +1 -1
  40. package/models/payment-class.ts +1 -1
  41. package/models/payment-entity.ts +1 -1
  42. package/models/payment-request-class.ts +0 -12
  43. package/models/shared-transaction-class.ts +0 -6
  44. package/models/transaction-entity.ts +0 -6
  45. package/package.json +1 -1
  46. package/api/jobs-api.ts +0 -169
  47. package/dist/api/jobs-api.d.ts +0 -97
  48. package/dist/api/jobs-api.js +0 -228
  49. package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
  50. package/dist/models/create-exceeding-credit-request-dto.js +0 -15
  51. package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
  52. package/dist/models/create-exceeding-credit-response-class.js +0 -15
  53. package/dist/models/run-job-grpc-request-dto.d.ts +0 -63
  54. package/dist/models/run-job-grpc-request-dto.js +0 -23
  55. package/dist/models/run-job-request-dto.d.ts +0 -63
  56. package/dist/models/run-job-request-dto.js +0 -23
  57. package/dist/models/run-job-response-class.d.ts +0 -24
  58. package/dist/models/run-job-response-class.js +0 -15
  59. package/models/create-exceeding-credit-request-dto.ts +0 -54
  60. package/models/create-exceeding-credit-response-class.ts +0 -31
  61. package/models/run-job-grpc-request-dto.ts +0 -73
  62. package/models/run-job-request-dto.ts +0 -73
  63. package/models/run-job-response-class.ts +0 -30
@@ -21,17 +21,29 @@ import { PaymentRequestClass } from './payment-request-class';
21
21
  * @interface ListPaymentRequestsResponseClass
22
22
  */
23
23
  export interface ListPaymentRequestsResponseClass {
24
- /**
25
- * The list of payment requests.
26
- * @type {Array<PaymentRequestClass>}
27
- * @memberof ListPaymentRequestsResponseClass
28
- */
29
- 'items': Array<PaymentRequestClass>;
30
24
  /**
31
25
  * Next page token.
32
26
  * @type {string}
33
27
  * @memberof ListPaymentRequestsResponseClass
34
28
  */
35
29
  'nextPageToken': string;
30
+ /**
31
+ * Total amount of items.
32
+ * @type {number}
33
+ * @memberof ListPaymentRequestsResponseClass
34
+ */
35
+ 'totalItems': number;
36
+ /**
37
+ * Items per page.
38
+ * @type {number}
39
+ * @memberof ListPaymentRequestsResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * The list of payment requests.
44
+ * @type {Array<PaymentRequestClass>}
45
+ * @memberof ListPaymentRequestsResponseClass
46
+ */
47
+ 'items': Array<PaymentRequestClass>;
36
48
  }
37
49
 
@@ -21,18 +21,18 @@ import { PayoutMethodClass } from './payout-method-class';
21
21
  * @interface ListPayoutMethodsResponseClass
22
22
  */
23
23
  export interface ListPayoutMethodsResponseClass {
24
- /**
25
- * The payout methods
26
- * @type {Array<PayoutMethodClass>}
27
- * @memberof ListPayoutMethodsResponseClass
28
- */
29
- 'items': Array<PayoutMethodClass>;
30
24
  /**
31
25
  * Next page token.
32
26
  * @type {string}
33
27
  * @memberof ListPayoutMethodsResponseClass
34
28
  */
35
29
  'nextPageToken': string;
30
+ /**
31
+ * Total amount of items.
32
+ * @type {number}
33
+ * @memberof ListPayoutMethodsResponseClass
34
+ */
35
+ 'totalItems': number;
36
36
  /**
37
37
  * Items per page.
38
38
  * @type {number}
@@ -40,10 +40,10 @@ export interface ListPayoutMethodsResponseClass {
40
40
  */
41
41
  'itemsPerPage': number;
42
42
  /**
43
- * Total amount of items.
44
- * @type {number}
43
+ * The payout methods
44
+ * @type {Array<PayoutMethodClass>}
45
45
  * @memberof ListPayoutMethodsResponseClass
46
46
  */
47
- 'totalItems': number;
47
+ 'items': Array<PayoutMethodClass>;
48
48
  }
49
49
 
@@ -21,17 +21,29 @@ import { RefundClass } from './refund-class';
21
21
  * @interface ListRefundsResponseClass
22
22
  */
23
23
  export interface ListRefundsResponseClass {
24
- /**
25
- * The list of refunds.
26
- * @type {Array<RefundClass>}
27
- * @memberof ListRefundsResponseClass
28
- */
29
- 'items': Array<RefundClass>;
30
24
  /**
31
25
  * Next page token.
32
26
  * @type {string}
33
27
  * @memberof ListRefundsResponseClass
34
28
  */
35
29
  'nextPageToken': string;
30
+ /**
31
+ * Total amount of items.
32
+ * @type {number}
33
+ * @memberof ListRefundsResponseClass
34
+ */
35
+ 'totalItems': number;
36
+ /**
37
+ * Items per page.
38
+ * @type {number}
39
+ * @memberof ListRefundsResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * The list of refunds.
44
+ * @type {Array<RefundClass>}
45
+ * @memberof ListRefundsResponseClass
46
+ */
47
+ 'items': Array<RefundClass>;
36
48
  }
37
49
 
@@ -49,7 +49,7 @@ export interface PaymentClassWithoutExpandProperties {
49
49
  * @type {string}
50
50
  * @memberof PaymentClassWithoutExpandProperties
51
51
  */
52
- 'partnerCode': string;
52
+ 'partnerCode'?: string;
53
53
  /**
54
54
  * Amount to be paid in cents. 100 to charge 1€.
55
55
  * @type {number}
@@ -50,7 +50,7 @@ export interface PaymentClass {
50
50
  * @type {string}
51
51
  * @memberof PaymentClass
52
52
  */
53
- 'partnerCode': string;
53
+ 'partnerCode'?: string;
54
54
  /**
55
55
  * Amount to be paid in cents. 100 to charge 1€.
56
56
  * @type {number}
@@ -56,7 +56,7 @@ export interface PaymentEntity {
56
56
  * @type {string}
57
57
  * @memberof PaymentEntity
58
58
  */
59
- 'partnerCode': string;
59
+ 'partnerCode'?: string;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -99,18 +99,6 @@ export interface PaymentRequestClass {
99
99
  * @memberof PaymentRequestClass
100
100
  */
101
101
  'status': PaymentRequestClassStatusEnum;
102
- /**
103
- * Code of the settlement the payment request was created for.
104
- * @type {string}
105
- * @memberof PaymentRequestClass
106
- */
107
- 'settlementCode'?: string;
108
- /**
109
- * Code of the partner the payment request was created for.
110
- * @type {string}
111
- * @memberof PaymentRequestClass
112
- */
113
- 'partnerCode': string;
114
102
  /**
115
103
  * Code of the payment method used for this payment request.
116
104
  * @type {string}
@@ -74,11 +74,5 @@ export interface SharedTransactionClass {
74
74
  * @memberof SharedTransactionClass
75
75
  */
76
76
  'updatedBy': string;
77
- /**
78
- * Code of the bank transaction this transaction was matched from. Absent for payments that did not come from a bank transaction.
79
- * @type {string}
80
- * @memberof SharedTransactionClass
81
- */
82
- 'bankTransactionCode'?: string;
83
77
  }
84
78
 
@@ -76,12 +76,6 @@ export interface TransactionEntity {
76
76
  * @memberof TransactionEntity
77
77
  */
78
78
  'bankTransactionId'?: number;
79
- /**
80
- *
81
- * @type {string}
82
- * @memberof TransactionEntity
83
- */
84
- 'bankTransactionCode'?: string;
85
79
  /**
86
80
  *
87
81
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk-node",
3
- "version": "1.28.1-beta.34",
3
+ "version": "1.28.1-beta.36",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
package/api/jobs-api.ts DELETED
@@ -1,169 +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 { RunJobRequestDto } from '../models';
25
- // @ts-ignore
26
- import { RunJobResponseClass } from '../models';
27
- // URLSearchParams not necessarily used
28
- // @ts-ignore
29
- import { URL, URLSearchParams } from 'url';
30
- const FormData = require('form-data');
31
- /**
32
- * JobsApi - axios parameter creator
33
- * @export
34
- */
35
- export const JobsApiAxiosParamCreator = function (configuration?: Configuration) {
36
- return {
37
- /**
38
- * Starts one of the payment jobs for the current tenant immediately, instead of waiting for its schedule. The job runs in the background; the call returns as soon as the run is accepted. **Required Permissions** \"payment-management.bank-orders.run\"
39
- * @summary Create the job run
40
- * @param {RunJobRequestDto} runJobRequestDto
41
- * @param {string} [authorization] Bearer Token
42
- * @param {*} [options] Override http request option.
43
- * @throws {RequiredError}
44
- */
45
- runJob: async (runJobRequestDto: RunJobRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'runJobRequestDto' is not null or undefined
47
- assertParamExists('runJob', 'runJobRequestDto', runJobRequestDto)
48
- const localVarPath = `/paymentservice/v1/jobs/run`;
49
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
- let baseOptions;
52
- let baseAccessToken;
53
- if (configuration) {
54
- baseOptions = configuration.baseOptions;
55
- baseAccessToken = configuration.accessToken;
56
- }
57
-
58
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
59
- const localVarHeaderParameter = {} as any;
60
- const localVarQueryParameter = {} as any;
61
-
62
- // authentication bearer required
63
- // http bearer authentication required
64
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
-
66
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
68
- }
69
-
70
-
71
-
72
- localVarHeaderParameter['Content-Type'] = 'application/json';
73
-
74
- setSearchParams(localVarUrlObj, localVarQueryParameter);
75
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
- localVarRequestOptions.data = serializeDataIfNeeded(runJobRequestDto, localVarRequestOptions, configuration)
78
-
79
- return {
80
- url: toPathString(localVarUrlObj),
81
- options: localVarRequestOptions,
82
- };
83
- },
84
- }
85
- };
86
-
87
- /**
88
- * JobsApi - functional programming interface
89
- * @export
90
- */
91
- export const JobsApiFp = function(configuration?: Configuration) {
92
- const localVarAxiosParamCreator = JobsApiAxiosParamCreator(configuration)
93
- return {
94
- /**
95
- * Starts one of the payment jobs for the current tenant immediately, instead of waiting for its schedule. The job runs in the background; the call returns as soon as the run is accepted. **Required Permissions** \"payment-management.bank-orders.run\"
96
- * @summary Create the job run
97
- * @param {RunJobRequestDto} runJobRequestDto
98
- * @param {string} [authorization] Bearer Token
99
- * @param {*} [options] Override http request option.
100
- * @throws {RequiredError}
101
- */
102
- async runJob(runJobRequestDto: RunJobRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunJobResponseClass>> {
103
- const localVarAxiosArgs = await localVarAxiosParamCreator.runJob(runJobRequestDto, authorization, options);
104
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
105
- },
106
- }
107
- };
108
-
109
- /**
110
- * JobsApi - factory interface
111
- * @export
112
- */
113
- export const JobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
114
- const localVarFp = JobsApiFp(configuration)
115
- return {
116
- /**
117
- * Starts one of the payment jobs for the current tenant immediately, instead of waiting for its schedule. The job runs in the background; the call returns as soon as the run is accepted. **Required Permissions** \"payment-management.bank-orders.run\"
118
- * @summary Create the job run
119
- * @param {RunJobRequestDto} runJobRequestDto
120
- * @param {string} [authorization] Bearer Token
121
- * @param {*} [options] Override http request option.
122
- * @throws {RequiredError}
123
- */
124
- runJob(runJobRequestDto: RunJobRequestDto, authorization?: string, options?: any): AxiosPromise<RunJobResponseClass> {
125
- return localVarFp.runJob(runJobRequestDto, authorization, options).then((request) => request(axios, basePath));
126
- },
127
- };
128
- };
129
-
130
- /**
131
- * Request parameters for runJob operation in JobsApi.
132
- * @export
133
- * @interface JobsApiRunJobRequest
134
- */
135
- export interface JobsApiRunJobRequest {
136
- /**
137
- *
138
- * @type {RunJobRequestDto}
139
- * @memberof JobsApiRunJob
140
- */
141
- readonly runJobRequestDto: RunJobRequestDto
142
-
143
- /**
144
- * Bearer Token
145
- * @type {string}
146
- * @memberof JobsApiRunJob
147
- */
148
- readonly authorization?: string
149
- }
150
-
151
- /**
152
- * JobsApi - object-oriented interface
153
- * @export
154
- * @class JobsApi
155
- * @extends {BaseAPI}
156
- */
157
- export class JobsApi extends BaseAPI {
158
- /**
159
- * Starts one of the payment jobs for the current tenant immediately, instead of waiting for its schedule. The job runs in the background; the call returns as soon as the run is accepted. **Required Permissions** \"payment-management.bank-orders.run\"
160
- * @summary Create the job run
161
- * @param {JobsApiRunJobRequest} requestParameters Request parameters.
162
- * @param {*} [options] Override http request option.
163
- * @throws {RequiredError}
164
- * @memberof JobsApi
165
- */
166
- public runJob(requestParameters: JobsApiRunJobRequest, options?: AxiosRequestConfig) {
167
- return JobsApiFp(this.configuration).runJob(requestParameters.runJobRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
168
- }
169
- }
@@ -1,97 +0,0 @@
1
- /**
2
- * Emil Payment Service
3
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: 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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
- import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
15
- import { RunJobRequestDto } from '../models';
16
- import { RunJobResponseClass } from '../models';
17
- /**
18
- * JobsApi - axios parameter creator
19
- * @export
20
- */
21
- export declare const JobsApiAxiosParamCreator: (configuration?: Configuration) => {
22
- /**
23
- * Starts one of the payment jobs for the current tenant immediately, instead of waiting for its schedule. The job runs in the background; the call returns as soon as the run is accepted. **Required Permissions** \"payment-management.bank-orders.run\"
24
- * @summary Create the job run
25
- * @param {RunJobRequestDto} runJobRequestDto
26
- * @param {string} [authorization] Bearer Token
27
- * @param {*} [options] Override http request option.
28
- * @throws {RequiredError}
29
- */
30
- runJob: (runJobRequestDto: RunJobRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
- };
32
- /**
33
- * JobsApi - functional programming interface
34
- * @export
35
- */
36
- export declare const JobsApiFp: (configuration?: Configuration) => {
37
- /**
38
- * Starts one of the payment jobs for the current tenant immediately, instead of waiting for its schedule. The job runs in the background; the call returns as soon as the run is accepted. **Required Permissions** \"payment-management.bank-orders.run\"
39
- * @summary Create the job run
40
- * @param {RunJobRequestDto} runJobRequestDto
41
- * @param {string} [authorization] Bearer Token
42
- * @param {*} [options] Override http request option.
43
- * @throws {RequiredError}
44
- */
45
- runJob(runJobRequestDto: RunJobRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunJobResponseClass>>;
46
- };
47
- /**
48
- * JobsApi - factory interface
49
- * @export
50
- */
51
- export declare const JobsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
52
- /**
53
- * Starts one of the payment jobs for the current tenant immediately, instead of waiting for its schedule. The job runs in the background; the call returns as soon as the run is accepted. **Required Permissions** \"payment-management.bank-orders.run\"
54
- * @summary Create the job run
55
- * @param {RunJobRequestDto} runJobRequestDto
56
- * @param {string} [authorization] Bearer Token
57
- * @param {*} [options] Override http request option.
58
- * @throws {RequiredError}
59
- */
60
- runJob(runJobRequestDto: RunJobRequestDto, authorization?: string, options?: any): AxiosPromise<RunJobResponseClass>;
61
- };
62
- /**
63
- * Request parameters for runJob operation in JobsApi.
64
- * @export
65
- * @interface JobsApiRunJobRequest
66
- */
67
- export interface JobsApiRunJobRequest {
68
- /**
69
- *
70
- * @type {RunJobRequestDto}
71
- * @memberof JobsApiRunJob
72
- */
73
- readonly runJobRequestDto: RunJobRequestDto;
74
- /**
75
- * Bearer Token
76
- * @type {string}
77
- * @memberof JobsApiRunJob
78
- */
79
- readonly authorization?: string;
80
- }
81
- /**
82
- * JobsApi - object-oriented interface
83
- * @export
84
- * @class JobsApi
85
- * @extends {BaseAPI}
86
- */
87
- export declare class JobsApi extends BaseAPI {
88
- /**
89
- * Starts one of the payment jobs for the current tenant immediately, instead of waiting for its schedule. The job runs in the background; the call returns as soon as the run is accepted. **Required Permissions** \"payment-management.bank-orders.run\"
90
- * @summary Create the job run
91
- * @param {JobsApiRunJobRequest} requestParameters Request parameters.
92
- * @param {*} [options] Override http request option.
93
- * @throws {RequiredError}
94
- * @memberof JobsApi
95
- */
96
- runJob(requestParameters: JobsApiRunJobRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RunJobResponseClass, any, {}>>;
97
- }