@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.
Files changed (93) hide show
  1. package/.openapi-generator/FILES +5 -15
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +34 -38
  4. package/api/bank-transaction-api.ts +73 -77
  5. package/api/{default-api.ts → health-check-api.ts} +21 -17
  6. package/api/payment-methods-api.ts +52 -70
  7. package/api/payment-reminders-api.ts +63 -49
  8. package/api/payment-setup-api.ts +16 -8
  9. package/api/payments-api.ts +52 -70
  10. package/api/refunds-api.ts +76 -88
  11. package/api/tenant-bank-account-api.ts +79 -63
  12. package/api/webhooks-api.ts +16 -12
  13. package/api.ts +2 -2
  14. package/base.ts +15 -7
  15. package/dist/api/bank-accounts-api.d.ts +37 -39
  16. package/dist/api/bank-accounts-api.js +18 -18
  17. package/dist/api/bank-transaction-api.d.ts +77 -79
  18. package/dist/api/bank-transaction-api.js +45 -45
  19. package/dist/api/health-check-api.d.ts +70 -0
  20. package/dist/api/{default-api.js → health-check-api.js} +30 -26
  21. package/dist/api/payment-methods-api.d.ts +49 -58
  22. package/dist/api/payment-methods-api.js +32 -42
  23. package/dist/api/payment-reminders-api.d.ts +55 -46
  24. package/dist/api/payment-reminders-api.js +40 -34
  25. package/dist/api/payment-setup-api.d.ts +16 -8
  26. package/dist/api/payment-setup-api.js +16 -8
  27. package/dist/api/payments-api.d.ts +49 -58
  28. package/dist/api/payments-api.js +32 -42
  29. package/dist/api/refunds-api.d.ts +76 -76
  30. package/dist/api/refunds-api.js +51 -49
  31. package/dist/api/tenant-bank-account-api.d.ts +71 -61
  32. package/dist/api/tenant-bank-account-api.js +51 -45
  33. package/dist/api/webhooks-api.d.ts +16 -12
  34. package/dist/api/webhooks-api.js +14 -10
  35. package/dist/api.d.ts +1 -1
  36. package/dist/api.js +1 -1
  37. package/dist/base.d.ts +3 -1
  38. package/dist/base.js +27 -20
  39. package/dist/models/{bank-transaction-response-class.d.ts → bank-transaction-class-without-expand-properties.d.ts} +20 -34
  40. package/dist/models/create-tenant-bank-account-response-class.d.ts +4 -4
  41. package/dist/models/get-tenant-bank-account-response-class.d.ts +4 -4
  42. package/dist/models/index.d.ts +4 -14
  43. package/dist/models/index.js +4 -14
  44. package/dist/models/list-tenant-bank-account-response-class.d.ts +5 -5
  45. package/dist/models/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +10 -10
  46. package/dist/models/tenant-bank-account-class.d.ts +73 -0
  47. package/dist/models/{get-bank-account-response-class.d.ts → update-tenant-bank-account-response-class.d.ts} +7 -7
  48. package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +20 -34
  49. package/models/create-tenant-bank-account-response-class.ts +4 -4
  50. package/models/get-tenant-bank-account-response-class.ts +4 -4
  51. package/models/index.ts +4 -14
  52. package/models/list-tenant-bank-account-response-class.ts +5 -5
  53. package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +10 -10
  54. package/models/tenant-bank-account-class.ts +79 -0
  55. package/models/{create-refund-response-class.ts → update-tenant-bank-account-response-class.ts} +7 -7
  56. package/package.json +1 -1
  57. package/dist/api/default-api.d.ts +0 -66
  58. package/dist/models/bank-account-class.d.ts +0 -73
  59. package/dist/models/create-refund-response-class.d.ts +0 -25
  60. package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
  61. package/dist/models/get-bank-transactions-response-class.js +0 -15
  62. package/dist/models/get-refund-response-class.d.ts +0 -25
  63. package/dist/models/get-refund-response-class.js +0 -15
  64. package/dist/models/get-request-dto.d.ts +0 -30
  65. package/dist/models/get-request-dto.js +0 -15
  66. package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
  67. package/dist/models/list-bank-transactions-response-class.js +0 -15
  68. package/dist/models/list-refunds-response-class.d.ts +0 -31
  69. package/dist/models/list-refunds-response-class.js +0 -15
  70. package/dist/models/primary-bank-account-response-class.d.ts +0 -42
  71. package/dist/models/primary-bank-account-response-class.js +0 -15
  72. package/dist/models/refund-class.d.ts +0 -105
  73. package/dist/models/refund-class.js +0 -29
  74. package/dist/models/tenant-bank-account-response-class.js +0 -15
  75. package/dist/models/transaction-class.d.ts +0 -54
  76. package/dist/models/transaction-class.js +0 -15
  77. package/dist/models/update-bank-account-response-class.d.ts +0 -25
  78. package/dist/models/update-bank-account-response-class.js +0 -15
  79. package/models/bank-account-class.ts +0 -79
  80. package/models/get-bank-account-response-class.ts +0 -31
  81. package/models/get-bank-transactions-response-class.ts +0 -31
  82. package/models/get-refund-response-class.ts +0 -31
  83. package/models/get-request-dto.ts +0 -36
  84. package/models/list-bank-transactions-response-class.ts +0 -37
  85. package/models/list-refunds-response-class.ts +0 -37
  86. package/models/primary-bank-account-response-class.ts +0 -48
  87. package/models/refund-class.ts +0 -115
  88. package/models/transaction-class.ts +0 -60
  89. package/models/update-bank-account-response-class.ts +0 -31
  90. /package/dist/models/{bank-account-class.js → bank-transaction-class-without-expand-properties.js} +0 -0
  91. /package/dist/models/{bank-transaction-response-class.js → tenant-bank-account-class-without-expand-properties.js} +0 -0
  92. /package/dist/models/{create-refund-response-class.js → tenant-bank-account-class.js} +0 -0
  93. /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
- * @param {string} code
35
- * @param {string} code2 Unique identifier for the object.
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
38
36
  * @param {*} [options] Override http request option.
39
37
  * @throws {RequiredError}
40
38
  */
41
- getRefund: (code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
47
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
48
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
49
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
50
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
51
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
46
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
47
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, amount&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
50
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
52
51
  * @param {*} [options] Override http request option.
53
52
  * @throws {RequiredError}
54
53
  */
55
- listRefunds: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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<CreateRefundResponseClass>>;
69
+ createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
70
70
  /**
71
- *
72
- * @param {string} code
73
- * @param {string} code2 Unique identifier for the object.
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
76
76
  * @param {*} [options] Override http request option.
77
77
  * @throws {RequiredError}
78
78
  */
79
- getRefund(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>>;
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
85
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
86
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
87
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
88
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
89
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
86
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
87
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, amount&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
90
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
90
91
  * @param {*} [options] Override http request option.
91
92
  * @throws {RequiredError}
92
93
  */
93
- listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRefundsResponseClass>>;
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<CreateRefundResponseClass>;
109
+ createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
108
110
  /**
109
- *
110
- * @param {string} code
111
- * @param {string} code2 Unique identifier for the object.
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
114
116
  * @param {*} [options] Override http request option.
115
117
  * @throws {RequiredError}
116
118
  */
117
- getRefund(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetRefundResponseClass>;
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
123
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
124
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
125
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
126
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
127
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
126
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
127
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, amount&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
130
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
128
131
  * @param {*} [options] Override http request option.
129
132
  * @throws {RequiredError}
130
133
  */
131
- listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListRefundsResponseClass>;
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 code2: string;
166
+ readonly code: string;
170
167
  /**
171
- * Fields to expand response by
168
+ * Bearer Token
172
169
  * @type {string}
173
170
  * @memberof RefundsApiGetRefund
174
171
  */
175
- readonly expand: string;
172
+ readonly authorization?: string;
176
173
  /**
177
- * Bearer Token
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
178
175
  * @type {string}
179
176
  * @memberof RefundsApiGetRefund
180
177
  */
181
- readonly authorization?: string;
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. In general, fetching filtered responses will conserve bandwidth and reduce response time.
209
- * @type {any}
205
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
206
+ * @type {string}
210
207
  * @memberof RefundsApiListRefunds
211
208
  */
212
- readonly filter?: any;
209
+ readonly filter?: string;
213
210
  /**
214
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
215
- * @type {any}
211
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
212
+ * @type {string}
216
213
  * @memberof RefundsApiListRefunds
217
214
  */
218
- readonly search?: any;
215
+ readonly search?: string;
219
216
  /**
220
- * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
221
- * @type {any}
217
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, amount&lt;/i&gt;
218
+ * @type {string}
222
219
  * @memberof RefundsApiListRefunds
223
220
  */
224
- readonly order?: any;
221
+ readonly order?: string;
225
222
  /**
226
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
227
- * @type {any}
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
224
+ * @type {string}
228
225
  * @memberof RefundsApiListRefunds
229
226
  */
230
- readonly expand?: any;
227
+ readonly expand?: string;
231
228
  /**
232
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
233
- * @type {any}
229
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
230
+ * @type {string}
234
231
  * @memberof RefundsApiListRefunds
235
232
  */
236
- readonly filters?: any;
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<CreateRefundResponseClass, any>>;
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<GetRefundResponseClass, any>>;
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<ListRefundsResponseClass, any>>;
268
+ listRefunds(requestParameters?: RefundsApiListRefundsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
269
269
  }
@@ -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
- * @param {string} code
146
- * @param {string} code2 Unique identifier for the object.
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
149
150
  * @param {*} [options] Override http request option.
150
151
  * @throws {RequiredError}
151
152
  */
152
- getRefund: function (code, code2, expand, authorization, options) {
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
207
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
208
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
209
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
210
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
211
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
202
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
203
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, amount&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
206
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
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
- * @param {string} code
306
- * @param {string} code2 Unique identifier for the object.
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
309
305
  * @param {*} [options] Override http request option.
310
306
  * @throws {RequiredError}
311
307
  */
312
- getRefund: function (code, code2, expand, authorization, options) {
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, code2, expand, authorization, options)];
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
330
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
331
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
332
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
333
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
334
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
327
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
328
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, amount&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
331
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
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
- * @param {string} code
374
- * @param {string} code2 Unique identifier for the object.
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
377
375
  * @param {*} [options] Override http request option.
378
376
  * @throws {RequiredError}
379
377
  */
380
- getRefund: function (code, code2, expand, authorization, options) {
381
- return localVarFp.getRefund(code, code2, expand, authorization, options).then(function (request) { return request(axios, basePath); });
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
388
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
389
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
390
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
391
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
392
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
387
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
388
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, amount&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
391
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
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.code2, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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}