@emilgroup/payment-sdk 1.22.1-beta.34 → 1.22.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 -165
  47. package/dist/api/jobs-api.d.ts +0 -97
  48. package/dist/api/jobs-api.js +0 -224
  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",
3
- "version": "1.22.1-beta.34",
3
+ "version": "1.22.1-beta.36",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
package/api/jobs-api.ts DELETED
@@ -1,165 +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
- /**
28
- * JobsApi - axios parameter creator
29
- * @export
30
- */
31
- export const JobsApiAxiosParamCreator = function (configuration?: Configuration) {
32
- return {
33
- /**
34
- * 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\"
35
- * @summary Create the job run
36
- * @param {RunJobRequestDto} runJobRequestDto
37
- * @param {string} [authorization] Bearer Token
38
- * @param {*} [options] Override http request option.
39
- * @throws {RequiredError}
40
- */
41
- runJob: async (runJobRequestDto: RunJobRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
- // verify required parameter 'runJobRequestDto' is not null or undefined
43
- assertParamExists('runJob', 'runJobRequestDto', runJobRequestDto)
44
- const localVarPath = `/paymentservice/v1/jobs/run`;
45
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
- let baseOptions;
48
- let baseAccessToken;
49
- if (configuration) {
50
- baseOptions = configuration.baseOptions;
51
- baseAccessToken = configuration.accessToken;
52
- }
53
-
54
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
55
- const localVarHeaderParameter = {} as any;
56
- const localVarQueryParameter = {} as any;
57
-
58
- // authentication bearer required
59
- // http bearer authentication required
60
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
61
-
62
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
63
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
64
- }
65
-
66
-
67
-
68
- localVarHeaderParameter['Content-Type'] = 'application/json';
69
-
70
- setSearchParams(localVarUrlObj, localVarQueryParameter);
71
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
73
- localVarRequestOptions.data = serializeDataIfNeeded(runJobRequestDto, localVarRequestOptions, configuration)
74
-
75
- return {
76
- url: toPathString(localVarUrlObj),
77
- options: localVarRequestOptions,
78
- };
79
- },
80
- }
81
- };
82
-
83
- /**
84
- * JobsApi - functional programming interface
85
- * @export
86
- */
87
- export const JobsApiFp = function(configuration?: Configuration) {
88
- const localVarAxiosParamCreator = JobsApiAxiosParamCreator(configuration)
89
- return {
90
- /**
91
- * 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\"
92
- * @summary Create the job run
93
- * @param {RunJobRequestDto} runJobRequestDto
94
- * @param {string} [authorization] Bearer Token
95
- * @param {*} [options] Override http request option.
96
- * @throws {RequiredError}
97
- */
98
- async runJob(runJobRequestDto: RunJobRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunJobResponseClass>> {
99
- const localVarAxiosArgs = await localVarAxiosParamCreator.runJob(runJobRequestDto, authorization, options);
100
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
101
- },
102
- }
103
- };
104
-
105
- /**
106
- * JobsApi - factory interface
107
- * @export
108
- */
109
- export const JobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
110
- const localVarFp = JobsApiFp(configuration)
111
- return {
112
- /**
113
- * 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\"
114
- * @summary Create the job run
115
- * @param {RunJobRequestDto} runJobRequestDto
116
- * @param {string} [authorization] Bearer Token
117
- * @param {*} [options] Override http request option.
118
- * @throws {RequiredError}
119
- */
120
- runJob(runJobRequestDto: RunJobRequestDto, authorization?: string, options?: any): AxiosPromise<RunJobResponseClass> {
121
- return localVarFp.runJob(runJobRequestDto, authorization, options).then((request) => request(axios, basePath));
122
- },
123
- };
124
- };
125
-
126
- /**
127
- * Request parameters for runJob operation in JobsApi.
128
- * @export
129
- * @interface JobsApiRunJobRequest
130
- */
131
- export interface JobsApiRunJobRequest {
132
- /**
133
- *
134
- * @type {RunJobRequestDto}
135
- * @memberof JobsApiRunJob
136
- */
137
- readonly runJobRequestDto: RunJobRequestDto
138
-
139
- /**
140
- * Bearer Token
141
- * @type {string}
142
- * @memberof JobsApiRunJob
143
- */
144
- readonly authorization?: string
145
- }
146
-
147
- /**
148
- * JobsApi - object-oriented interface
149
- * @export
150
- * @class JobsApi
151
- * @extends {BaseAPI}
152
- */
153
- export class JobsApi extends BaseAPI {
154
- /**
155
- * 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\"
156
- * @summary Create the job run
157
- * @param {JobsApiRunJobRequest} requestParameters Request parameters.
158
- * @param {*} [options] Override http request option.
159
- * @throws {RequiredError}
160
- * @memberof JobsApi
161
- */
162
- public runJob(requestParameters: JobsApiRunJobRequest, options?: AxiosRequestConfig) {
163
- return JobsApiFp(this.configuration).runJob(requestParameters.runJobRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
164
- }
165
- }
@@ -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
- }