@emilgroup/payment-sdk 1.4.1-beta.30 → 1.4.1-beta.32
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 +5 -15
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +34 -38
- package/api/bank-transaction-api.ts +73 -77
- package/api/{default-api.ts → health-check-api.ts} +21 -17
- package/api/payment-methods-api.ts +52 -70
- package/api/payment-reminders-api.ts +63 -49
- package/api/payment-setup-api.ts +16 -8
- package/api/payments-api.ts +52 -70
- package/api/refunds-api.ts +76 -88
- package/api/tenant-bank-account-api.ts +79 -63
- package/api/webhooks-api.ts +16 -12
- package/api.ts +2 -2
- package/base.ts +15 -7
- package/dist/api/bank-accounts-api.d.ts +37 -39
- package/dist/api/bank-accounts-api.js +18 -18
- package/dist/api/bank-transaction-api.d.ts +77 -79
- package/dist/api/bank-transaction-api.js +45 -45
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +30 -26
- package/dist/api/payment-methods-api.d.ts +49 -58
- package/dist/api/payment-methods-api.js +32 -42
- package/dist/api/payment-reminders-api.d.ts +55 -46
- package/dist/api/payment-reminders-api.js +40 -34
- package/dist/api/payment-setup-api.d.ts +16 -8
- package/dist/api/payment-setup-api.js +16 -8
- package/dist/api/payments-api.d.ts +49 -58
- package/dist/api/payments-api.js +32 -42
- package/dist/api/refunds-api.d.ts +76 -76
- package/dist/api/refunds-api.js +51 -49
- package/dist/api/tenant-bank-account-api.d.ts +71 -61
- package/dist/api/tenant-bank-account-api.js +51 -45
- package/dist/api/webhooks-api.d.ts +16 -12
- package/dist/api/webhooks-api.js +14 -10
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +3 -1
- package/dist/base.js +27 -20
- package/dist/models/{bank-transaction-response-class.d.ts → bank-transaction-class-without-expand-properties.d.ts} +20 -34
- package/dist/models/create-tenant-bank-account-response-class.d.ts +4 -4
- package/dist/models/get-tenant-bank-account-response-class.d.ts +4 -4
- package/dist/models/index.d.ts +4 -14
- package/dist/models/index.js +4 -14
- package/dist/models/list-tenant-bank-account-response-class.d.ts +5 -5
- package/dist/models/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +10 -10
- package/dist/models/tenant-bank-account-class.d.ts +73 -0
- package/dist/models/{get-bank-account-response-class.d.ts → update-tenant-bank-account-response-class.d.ts} +7 -7
- package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +20 -34
- package/models/create-tenant-bank-account-response-class.ts +4 -4
- package/models/get-tenant-bank-account-response-class.ts +4 -4
- package/models/index.ts +4 -14
- package/models/list-tenant-bank-account-response-class.ts +5 -5
- package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +10 -10
- package/models/tenant-bank-account-class.ts +79 -0
- package/models/{create-refund-response-class.ts → update-tenant-bank-account-response-class.ts} +7 -7
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
- package/dist/models/bank-account-class.d.ts +0 -73
- package/dist/models/create-refund-response-class.d.ts +0 -25
- package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/get-bank-transactions-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/get-request-dto.d.ts +0 -30
- package/dist/models/get-request-dto.js +0 -15
- package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
- package/dist/models/list-bank-transactions-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/primary-bank-account-response-class.d.ts +0 -42
- package/dist/models/primary-bank-account-response-class.js +0 -15
- package/dist/models/refund-class.d.ts +0 -105
- package/dist/models/refund-class.js +0 -29
- package/dist/models/tenant-bank-account-response-class.js +0 -15
- package/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-class.js +0 -15
- package/dist/models/update-bank-account-response-class.d.ts +0 -25
- package/dist/models/update-bank-account-response-class.js +0 -15
- package/models/bank-account-class.ts +0 -79
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/get-request-dto.ts +0 -36
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/refund-class.ts +0 -115
- package/models/transaction-class.ts +0 -60
- package/models/update-bank-account-response-class.ts +0 -31
- /package/dist/models/{bank-account-class.js → bank-transaction-class-without-expand-properties.js} +0 -0
- /package/dist/models/{bank-transaction-response-class.js → tenant-bank-account-class-without-expand-properties.js} +0 -0
- /package/dist/models/{create-refund-response-class.js → tenant-bank-account-class.js} +0 -0
- /package/dist/models/{get-bank-account-response-class.js → update-tenant-bank-account-response-class.js} +0 -0
|
@@ -13,16 +13,14 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateRefundRequestDto } from '../models';
|
|
16
|
-
import { CreateRefundResponseClass } from '../models';
|
|
17
|
-
import { GetRefundResponseClass } from '../models';
|
|
18
|
-
import { ListRefundsResponseClass } from '../models';
|
|
19
16
|
/**
|
|
20
17
|
* RefundsApi - axios parameter creator
|
|
21
18
|
* @export
|
|
22
19
|
*/
|
|
23
20
|
export declare const RefundsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
21
|
/**
|
|
25
|
-
*
|
|
22
|
+
* This will create a refund in the database.
|
|
23
|
+
* @summary Create the refund
|
|
26
24
|
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
27
25
|
* @param {string} [authorization] Bearer Token
|
|
28
26
|
* @param {*} [options] Override http request option.
|
|
@@ -30,29 +28,30 @@ export declare const RefundsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
30
28
|
*/
|
|
31
29
|
createRefund: (createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
30
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @
|
|
35
|
-
* @param {string}
|
|
36
|
-
* @param {string} expand Fields to expand response by
|
|
31
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
32
|
+
* @summary Retrieve the refund
|
|
33
|
+
* @param {string} code Unique identifier for the object.
|
|
37
34
|
* @param {string} [authorization] Bearer Token
|
|
35
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
38
36
|
* @param {*} [options] Override http request option.
|
|
39
37
|
* @throws {RequiredError}
|
|
40
38
|
*/
|
|
41
|
-
getRefund: (code: string,
|
|
39
|
+
getRefund: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
40
|
/**
|
|
43
|
-
*
|
|
41
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
42
|
+
* @summary List refunds
|
|
44
43
|
* @param {string} [authorization] Bearer Token
|
|
45
44
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
46
45
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
47
|
-
* @param {
|
|
48
|
-
* @param {
|
|
49
|
-
* @param {
|
|
50
|
-
* @param {
|
|
51
|
-
* @param {
|
|
46
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
47
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
|
|
48
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, amount</i>
|
|
49
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
50
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
52
51
|
* @param {*} [options] Override http request option.
|
|
53
52
|
* @throws {RequiredError}
|
|
54
53
|
*/
|
|
55
|
-
listRefunds: (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
54
|
+
listRefunds: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
56
55
|
};
|
|
57
56
|
/**
|
|
58
57
|
* RefundsApi - functional programming interface
|
|
@@ -60,37 +59,39 @@ export declare const RefundsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
60
59
|
*/
|
|
61
60
|
export declare const RefundsApiFp: (configuration?: Configuration) => {
|
|
62
61
|
/**
|
|
63
|
-
*
|
|
62
|
+
* This will create a refund in the database.
|
|
63
|
+
* @summary Create the refund
|
|
64
64
|
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
65
65
|
* @param {string} [authorization] Bearer Token
|
|
66
66
|
* @param {*} [options] Override http request option.
|
|
67
67
|
* @throws {RequiredError}
|
|
68
68
|
*/
|
|
69
|
-
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
69
|
+
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
72
|
-
* @
|
|
73
|
-
* @param {string}
|
|
74
|
-
* @param {string} expand Fields to expand response by
|
|
71
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
72
|
+
* @summary Retrieve the refund
|
|
73
|
+
* @param {string} code Unique identifier for the object.
|
|
75
74
|
* @param {string} [authorization] Bearer Token
|
|
75
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
76
76
|
* @param {*} [options] Override http request option.
|
|
77
77
|
* @throws {RequiredError}
|
|
78
78
|
*/
|
|
79
|
-
getRefund(code: string,
|
|
79
|
+
getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
82
|
+
* @summary List refunds
|
|
82
83
|
* @param {string} [authorization] Bearer Token
|
|
83
84
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
84
85
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
85
|
-
* @param {
|
|
86
|
-
* @param {
|
|
87
|
-
* @param {
|
|
88
|
-
* @param {
|
|
89
|
-
* @param {
|
|
86
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
87
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
|
|
88
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, amount</i>
|
|
89
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
90
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
90
91
|
* @param {*} [options] Override http request option.
|
|
91
92
|
* @throws {RequiredError}
|
|
92
93
|
*/
|
|
93
|
-
listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
94
|
+
listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
94
95
|
};
|
|
95
96
|
/**
|
|
96
97
|
* RefundsApi - factory interface
|
|
@@ -98,37 +99,39 @@ export declare const RefundsApiFp: (configuration?: Configuration) => {
|
|
|
98
99
|
*/
|
|
99
100
|
export declare const RefundsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
100
101
|
/**
|
|
101
|
-
*
|
|
102
|
+
* This will create a refund in the database.
|
|
103
|
+
* @summary Create the refund
|
|
102
104
|
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
103
105
|
* @param {string} [authorization] Bearer Token
|
|
104
106
|
* @param {*} [options] Override http request option.
|
|
105
107
|
* @throws {RequiredError}
|
|
106
108
|
*/
|
|
107
|
-
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
109
|
+
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
108
110
|
/**
|
|
109
|
-
*
|
|
110
|
-
* @
|
|
111
|
-
* @param {string}
|
|
112
|
-
* @param {string} expand Fields to expand response by
|
|
111
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
112
|
+
* @summary Retrieve the refund
|
|
113
|
+
* @param {string} code Unique identifier for the object.
|
|
113
114
|
* @param {string} [authorization] Bearer Token
|
|
115
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
114
116
|
* @param {*} [options] Override http request option.
|
|
115
117
|
* @throws {RequiredError}
|
|
116
118
|
*/
|
|
117
|
-
getRefund(code: string,
|
|
119
|
+
getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void>;
|
|
118
120
|
/**
|
|
119
|
-
*
|
|
121
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
122
|
+
* @summary List refunds
|
|
120
123
|
* @param {string} [authorization] Bearer Token
|
|
121
124
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
122
125
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
123
|
-
* @param {
|
|
124
|
-
* @param {
|
|
125
|
-
* @param {
|
|
126
|
-
* @param {
|
|
127
|
-
* @param {
|
|
126
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
127
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
|
|
128
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, amount</i>
|
|
129
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
130
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
128
131
|
* @param {*} [options] Override http request option.
|
|
129
132
|
* @throws {RequiredError}
|
|
130
133
|
*/
|
|
131
|
-
listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
134
|
+
listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void>;
|
|
132
135
|
};
|
|
133
136
|
/**
|
|
134
137
|
* Request parameters for createRefund operation in RefundsApi.
|
|
@@ -155,30 +158,24 @@ export interface RefundsApiCreateRefundRequest {
|
|
|
155
158
|
* @interface RefundsApiGetRefundRequest
|
|
156
159
|
*/
|
|
157
160
|
export interface RefundsApiGetRefundRequest {
|
|
158
|
-
/**
|
|
159
|
-
*
|
|
160
|
-
* @type {string}
|
|
161
|
-
* @memberof RefundsApiGetRefund
|
|
162
|
-
*/
|
|
163
|
-
readonly code: string;
|
|
164
161
|
/**
|
|
165
162
|
* Unique identifier for the object.
|
|
166
163
|
* @type {string}
|
|
167
164
|
* @memberof RefundsApiGetRefund
|
|
168
165
|
*/
|
|
169
|
-
readonly
|
|
166
|
+
readonly code: string;
|
|
170
167
|
/**
|
|
171
|
-
*
|
|
168
|
+
* Bearer Token
|
|
172
169
|
* @type {string}
|
|
173
170
|
* @memberof RefundsApiGetRefund
|
|
174
171
|
*/
|
|
175
|
-
readonly
|
|
172
|
+
readonly authorization?: string;
|
|
176
173
|
/**
|
|
177
|
-
*
|
|
174
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
178
175
|
* @type {string}
|
|
179
176
|
* @memberof RefundsApiGetRefund
|
|
180
177
|
*/
|
|
181
|
-
readonly
|
|
178
|
+
readonly expand?: string;
|
|
182
179
|
}
|
|
183
180
|
/**
|
|
184
181
|
* Request parameters for listRefunds operation in RefundsApi.
|
|
@@ -205,35 +202,35 @@ export interface RefundsApiListRefundsRequest {
|
|
|
205
202
|
*/
|
|
206
203
|
readonly pageToken?: any;
|
|
207
204
|
/**
|
|
208
|
-
* Filter the response by one or multiple fields.
|
|
209
|
-
* @type {
|
|
205
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
206
|
+
* @type {string}
|
|
210
207
|
* @memberof RefundsApiListRefunds
|
|
211
208
|
*/
|
|
212
|
-
readonly filter?:
|
|
209
|
+
readonly filter?: string;
|
|
213
210
|
/**
|
|
214
|
-
*
|
|
215
|
-
* @type {
|
|
211
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
|
|
212
|
+
* @type {string}
|
|
216
213
|
* @memberof RefundsApiListRefunds
|
|
217
214
|
*/
|
|
218
|
-
readonly search?:
|
|
215
|
+
readonly search?: string;
|
|
219
216
|
/**
|
|
220
|
-
*
|
|
221
|
-
* @type {
|
|
217
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, amount</i>
|
|
218
|
+
* @type {string}
|
|
222
219
|
* @memberof RefundsApiListRefunds
|
|
223
220
|
*/
|
|
224
|
-
readonly order?:
|
|
221
|
+
readonly order?: string;
|
|
225
222
|
/**
|
|
226
|
-
*
|
|
227
|
-
* @type {
|
|
223
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
224
|
+
* @type {string}
|
|
228
225
|
* @memberof RefundsApiListRefunds
|
|
229
226
|
*/
|
|
230
|
-
readonly expand?:
|
|
227
|
+
readonly expand?: string;
|
|
231
228
|
/**
|
|
232
|
-
* Filters the response by one or multiple fields.
|
|
233
|
-
* @type {
|
|
229
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
230
|
+
* @type {string}
|
|
234
231
|
* @memberof RefundsApiListRefunds
|
|
235
232
|
*/
|
|
236
|
-
readonly filters?:
|
|
233
|
+
readonly filters?: string;
|
|
237
234
|
}
|
|
238
235
|
/**
|
|
239
236
|
* RefundsApi - object-oriented interface
|
|
@@ -243,27 +240,30 @@ export interface RefundsApiListRefundsRequest {
|
|
|
243
240
|
*/
|
|
244
241
|
export declare class RefundsApi extends BaseAPI {
|
|
245
242
|
/**
|
|
246
|
-
*
|
|
243
|
+
* This will create a refund in the database.
|
|
244
|
+
* @summary Create the refund
|
|
247
245
|
* @param {RefundsApiCreateRefundRequest} requestParameters Request parameters.
|
|
248
246
|
* @param {*} [options] Override http request option.
|
|
249
247
|
* @throws {RequiredError}
|
|
250
248
|
* @memberof RefundsApi
|
|
251
249
|
*/
|
|
252
|
-
createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
250
|
+
createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
253
251
|
/**
|
|
254
|
-
*
|
|
252
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
253
|
+
* @summary Retrieve the refund
|
|
255
254
|
* @param {RefundsApiGetRefundRequest} requestParameters Request parameters.
|
|
256
255
|
* @param {*} [options] Override http request option.
|
|
257
256
|
* @throws {RequiredError}
|
|
258
257
|
* @memberof RefundsApi
|
|
259
258
|
*/
|
|
260
|
-
getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
259
|
+
getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
261
260
|
/**
|
|
262
|
-
*
|
|
261
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
262
|
+
* @summary List refunds
|
|
263
263
|
* @param {RefundsApiListRefundsRequest} requestParameters Request parameters.
|
|
264
264
|
* @param {*} [options] Override http request option.
|
|
265
265
|
* @throws {RequiredError}
|
|
266
266
|
* @memberof RefundsApi
|
|
267
267
|
*/
|
|
268
|
-
listRefunds(requestParameters?: RefundsApiListRefundsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
268
|
+
listRefunds(requestParameters?: RefundsApiListRefundsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
269
269
|
}
|
package/dist/api/refunds-api.js
CHANGED
|
@@ -93,7 +93,8 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* This will create a refund in the database.
|
|
97
|
+
* @summary Create the refund
|
|
97
98
|
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
98
99
|
* @param {string} [authorization] Bearer Token
|
|
99
100
|
* @param {*} [options] Override http request option.
|
|
@@ -141,15 +142,15 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
141
142
|
});
|
|
142
143
|
},
|
|
143
144
|
/**
|
|
144
|
-
*
|
|
145
|
-
* @
|
|
146
|
-
* @param {string}
|
|
147
|
-
* @param {string} expand Fields to expand response by
|
|
145
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
146
|
+
* @summary Retrieve the refund
|
|
147
|
+
* @param {string} code Unique identifier for the object.
|
|
148
148
|
* @param {string} [authorization] Bearer Token
|
|
149
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
149
150
|
* @param {*} [options] Override http request option.
|
|
150
151
|
* @throws {RequiredError}
|
|
151
152
|
*/
|
|
152
|
-
getRefund: function (code,
|
|
153
|
+
getRefund: function (code, authorization, expand, options) {
|
|
153
154
|
if (options === void 0) { options = {}; }
|
|
154
155
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
156
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -158,10 +159,6 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
158
159
|
case 0:
|
|
159
160
|
// verify required parameter 'code' is not null or undefined
|
|
160
161
|
(0, common_1.assertParamExists)('getRefund', 'code', code);
|
|
161
|
-
// verify required parameter 'code2' is not null or undefined
|
|
162
|
-
(0, common_1.assertParamExists)('getRefund', 'code2', code2);
|
|
163
|
-
// verify required parameter 'expand' is not null or undefined
|
|
164
|
-
(0, common_1.assertParamExists)('getRefund', 'expand', expand);
|
|
165
162
|
localVarPath = "/paymentservice/v1/refunds/{code}"
|
|
166
163
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
167
164
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -179,9 +176,6 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
179
176
|
// authentication bearer required
|
|
180
177
|
// http bearer authentication required
|
|
181
178
|
_a.sent();
|
|
182
|
-
if (code2 !== undefined) {
|
|
183
|
-
localVarQueryParameter['code'] = code2;
|
|
184
|
-
}
|
|
185
179
|
if (expand !== undefined) {
|
|
186
180
|
localVarQueryParameter['expand'] = expand;
|
|
187
181
|
}
|
|
@@ -200,15 +194,16 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
200
194
|
});
|
|
201
195
|
},
|
|
202
196
|
/**
|
|
203
|
-
*
|
|
197
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
198
|
+
* @summary List refunds
|
|
204
199
|
* @param {string} [authorization] Bearer Token
|
|
205
200
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
206
201
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
207
|
-
* @param {
|
|
208
|
-
* @param {
|
|
209
|
-
* @param {
|
|
210
|
-
* @param {
|
|
211
|
-
* @param {
|
|
202
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
203
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
|
|
204
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, amount</i>
|
|
205
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
206
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
212
207
|
* @param {*} [options] Override http request option.
|
|
213
208
|
* @throws {RequiredError}
|
|
214
209
|
*/
|
|
@@ -281,7 +276,8 @@ var RefundsApiFp = function (configuration) {
|
|
|
281
276
|
var localVarAxiosParamCreator = (0, exports.RefundsApiAxiosParamCreator)(configuration);
|
|
282
277
|
return {
|
|
283
278
|
/**
|
|
284
|
-
*
|
|
279
|
+
* This will create a refund in the database.
|
|
280
|
+
* @summary Create the refund
|
|
285
281
|
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
286
282
|
* @param {string} [authorization] Bearer Token
|
|
287
283
|
* @param {*} [options] Override http request option.
|
|
@@ -301,20 +297,20 @@ var RefundsApiFp = function (configuration) {
|
|
|
301
297
|
});
|
|
302
298
|
},
|
|
303
299
|
/**
|
|
304
|
-
*
|
|
305
|
-
* @
|
|
306
|
-
* @param {string}
|
|
307
|
-
* @param {string} expand Fields to expand response by
|
|
300
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
301
|
+
* @summary Retrieve the refund
|
|
302
|
+
* @param {string} code Unique identifier for the object.
|
|
308
303
|
* @param {string} [authorization] Bearer Token
|
|
304
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
309
305
|
* @param {*} [options] Override http request option.
|
|
310
306
|
* @throws {RequiredError}
|
|
311
307
|
*/
|
|
312
|
-
getRefund: function (code,
|
|
308
|
+
getRefund: function (code, authorization, expand, options) {
|
|
313
309
|
return __awaiter(this, void 0, void 0, function () {
|
|
314
310
|
var localVarAxiosArgs;
|
|
315
311
|
return __generator(this, function (_a) {
|
|
316
312
|
switch (_a.label) {
|
|
317
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRefund(code,
|
|
313
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRefund(code, authorization, expand, options)];
|
|
318
314
|
case 1:
|
|
319
315
|
localVarAxiosArgs = _a.sent();
|
|
320
316
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -323,15 +319,16 @@ var RefundsApiFp = function (configuration) {
|
|
|
323
319
|
});
|
|
324
320
|
},
|
|
325
321
|
/**
|
|
326
|
-
*
|
|
322
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
323
|
+
* @summary List refunds
|
|
327
324
|
* @param {string} [authorization] Bearer Token
|
|
328
325
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
329
326
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
330
|
-
* @param {
|
|
331
|
-
* @param {
|
|
332
|
-
* @param {
|
|
333
|
-
* @param {
|
|
334
|
-
* @param {
|
|
327
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
328
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
|
|
329
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, amount</i>
|
|
330
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
331
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
335
332
|
* @param {*} [options] Override http request option.
|
|
336
333
|
* @throws {RequiredError}
|
|
337
334
|
*/
|
|
@@ -359,7 +356,8 @@ var RefundsApiFactory = function (configuration, basePath, axios) {
|
|
|
359
356
|
var localVarFp = (0, exports.RefundsApiFp)(configuration);
|
|
360
357
|
return {
|
|
361
358
|
/**
|
|
362
|
-
*
|
|
359
|
+
* This will create a refund in the database.
|
|
360
|
+
* @summary Create the refund
|
|
363
361
|
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
364
362
|
* @param {string} [authorization] Bearer Token
|
|
365
363
|
* @param {*} [options] Override http request option.
|
|
@@ -369,27 +367,28 @@ var RefundsApiFactory = function (configuration, basePath, axios) {
|
|
|
369
367
|
return localVarFp.createRefund(createRefundRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
370
368
|
},
|
|
371
369
|
/**
|
|
372
|
-
*
|
|
373
|
-
* @
|
|
374
|
-
* @param {string}
|
|
375
|
-
* @param {string} expand Fields to expand response by
|
|
370
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
371
|
+
* @summary Retrieve the refund
|
|
372
|
+
* @param {string} code Unique identifier for the object.
|
|
376
373
|
* @param {string} [authorization] Bearer Token
|
|
374
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
377
375
|
* @param {*} [options] Override http request option.
|
|
378
376
|
* @throws {RequiredError}
|
|
379
377
|
*/
|
|
380
|
-
getRefund: function (code,
|
|
381
|
-
return localVarFp.getRefund(code,
|
|
378
|
+
getRefund: function (code, authorization, expand, options) {
|
|
379
|
+
return localVarFp.getRefund(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
382
380
|
},
|
|
383
381
|
/**
|
|
384
|
-
*
|
|
382
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
383
|
+
* @summary List refunds
|
|
385
384
|
* @param {string} [authorization] Bearer Token
|
|
386
385
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
387
386
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
388
|
-
* @param {
|
|
389
|
-
* @param {
|
|
390
|
-
* @param {
|
|
391
|
-
* @param {
|
|
392
|
-
* @param {
|
|
387
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
388
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
|
|
389
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, amount</i>
|
|
390
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
391
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
393
392
|
* @param {*} [options] Override http request option.
|
|
394
393
|
* @throws {RequiredError}
|
|
395
394
|
*/
|
|
@@ -411,7 +410,8 @@ var RefundsApi = /** @class */ (function (_super) {
|
|
|
411
410
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
412
411
|
}
|
|
413
412
|
/**
|
|
414
|
-
*
|
|
413
|
+
* This will create a refund in the database.
|
|
414
|
+
* @summary Create the refund
|
|
415
415
|
* @param {RefundsApiCreateRefundRequest} requestParameters Request parameters.
|
|
416
416
|
* @param {*} [options] Override http request option.
|
|
417
417
|
* @throws {RequiredError}
|
|
@@ -422,7 +422,8 @@ var RefundsApi = /** @class */ (function (_super) {
|
|
|
422
422
|
return (0, exports.RefundsApiFp)(this.configuration).createRefund(requestParameters.createRefundRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
423
423
|
};
|
|
424
424
|
/**
|
|
425
|
-
*
|
|
425
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
426
|
+
* @summary Retrieve the refund
|
|
426
427
|
* @param {RefundsApiGetRefundRequest} requestParameters Request parameters.
|
|
427
428
|
* @param {*} [options] Override http request option.
|
|
428
429
|
* @throws {RequiredError}
|
|
@@ -430,10 +431,11 @@ var RefundsApi = /** @class */ (function (_super) {
|
|
|
430
431
|
*/
|
|
431
432
|
RefundsApi.prototype.getRefund = function (requestParameters, options) {
|
|
432
433
|
var _this = this;
|
|
433
|
-
return (0, exports.RefundsApiFp)(this.configuration).getRefund(requestParameters.code, requestParameters.
|
|
434
|
+
return (0, exports.RefundsApiFp)(this.configuration).getRefund(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
434
435
|
};
|
|
435
436
|
/**
|
|
436
|
-
*
|
|
437
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
438
|
+
* @summary List refunds
|
|
437
439
|
* @param {RefundsApiListRefundsRequest} requestParameters Request parameters.
|
|
438
440
|
* @param {*} [options] Override http request option.
|
|
439
441
|
* @throws {RequiredError}
|