@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.31
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 +12 -39
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +497 -47
- package/api/bank-transaction-api.ts +128 -96
- package/api/{default-api.ts → health-check-api.ts} +22 -18
- package/api/payment-methods-api.ts +74 -203
- package/api/payment-reminders-api.ts +76 -66
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +66 -89
- package/api/refunds-api.ts +74 -84
- package/api/tenant-bank-account-api.ts +88 -62
- package/api/webhooks-api.ts +17 -13
- package/api.ts +3 -3
- package/base.ts +6 -2
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +297 -49
- package/dist/api/bank-accounts-api.js +416 -28
- package/dist/api/bank-transaction-api.d.ts +109 -91
- package/dist/api/bank-transaction-api.js +83 -68
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +31 -27
- package/dist/api/payment-methods-api.d.ts +66 -134
- package/dist/api/payment-methods-api.js +55 -157
- package/dist/api/payment-reminders-api.d.ts +72 -65
- package/dist/api/payment-reminders-api.js +48 -42
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +64 -76
- package/dist/api/payments-api.js +47 -55
- package/dist/api/refunds-api.d.ts +74 -74
- package/dist/api/refunds-api.js +52 -48
- package/dist/api/tenant-bank-account-api.d.ts +89 -66
- package/dist/api/tenant-bank-account-api.js +59 -39
- package/dist/api/webhooks-api.d.ts +17 -13
- package/dist/api/webhooks-api.js +15 -11
- package/dist/api.d.ts +2 -2
- package/dist/api.js +2 -2
- package/dist/base.d.ts +2 -1
- package/dist/base.js +5 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/{bank-transaction-response-class.d.ts → bank-transaction-class-without-expand-properties.d.ts} +26 -34
- package/dist/models/{bank-account-class.js → bank-transaction-class-without-expand-properties.js} +1 -1
- package/dist/models/create-bank-account-request-dto.d.ts +15 -3
- package/dist/models/create-bank-account-request-dto.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/create-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/{bank-transaction-response-class.js → create-tenant-bank-account-response-class.js} +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +5 -5
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +11 -38
- package/dist/models/index.js +11 -38
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/{billing-profile-limited-response-dto.js → link-bank-transaction-request-dto-rest.js} +1 -1
- package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
- package/dist/models/{billing-profile-dto.js → list-tenant-bank-account-response-class.js} +1 -1
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
- package/dist/models/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +11 -11
- package/dist/models/tenant-bank-account-class-without-expand-properties.js +15 -0
- package/dist/models/tenant-bank-account-class.d.ts +73 -0
- package/dist/models/tenant-bank-account-class.js +15 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
- package/dist/models/update-bank-account-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto.d.ts +36 -0
- package/dist/models/update-bank-account-request-dto.js +15 -0
- package/dist/models/update-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-tenant-bank-account-response-class.js +15 -0
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +26 -34
- package/models/create-bank-account-request-dto.ts +15 -3
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/create-tenant-bank-account-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-tenant-bank-account-response-class.ts +5 -5
- package/models/index.ts +11 -38
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +30 -0
- package/models/list-tenant-bank-account-response-class.ts +37 -0
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +11 -11
- package/models/tenant-bank-account-class.ts +79 -0
- package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
- package/models/update-bank-account-request-dto-rest.ts +36 -0
- package/models/update-bank-account-request-dto.ts +42 -0
- package/models/update-tenant-bank-account-response-class.ts +31 -0
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/create-refund-response-class.d.ts +0 -25
- package/dist/models/create-refund-response-class.js +0 -15
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- 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-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-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/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.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-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-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/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/refund-class.d.ts +0 -104
- package/dist/models/refund-class.js +0 -28
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- 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/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/create-refund-response-class.ts +0 -31
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/get-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/refund-class.ts +0 -114
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
- package/models/transaction-class.ts +0 -60
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -25,13 +25,14 @@ import { InlineResponse200 } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { InlineResponse503 } from '../models';
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* HealthCheckApi - axios parameter creator
|
|
29
29
|
* @export
|
|
30
30
|
*/
|
|
31
|
-
export const
|
|
31
|
+
export const HealthCheckApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
32
|
return {
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
35
|
+
* @summary Health Check
|
|
35
36
|
* @param {*} [options] Override http request option.
|
|
36
37
|
* @throws {RequiredError}
|
|
37
38
|
*/
|
|
@@ -65,14 +66,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
/**
|
|
68
|
-
*
|
|
69
|
+
* HealthCheckApi - functional programming interface
|
|
69
70
|
* @export
|
|
70
71
|
*/
|
|
71
|
-
export const
|
|
72
|
-
const localVarAxiosParamCreator =
|
|
72
|
+
export const HealthCheckApiFp = function(configuration?: Configuration) {
|
|
73
|
+
const localVarAxiosParamCreator = HealthCheckApiAxiosParamCreator(configuration)
|
|
73
74
|
return {
|
|
74
75
|
/**
|
|
75
|
-
*
|
|
76
|
+
* Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
77
|
+
* @summary Health Check
|
|
76
78
|
* @param {*} [options] Override http request option.
|
|
77
79
|
* @throws {RequiredError}
|
|
78
80
|
*/
|
|
@@ -84,14 +86,15 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
84
86
|
};
|
|
85
87
|
|
|
86
88
|
/**
|
|
87
|
-
*
|
|
89
|
+
* HealthCheckApi - factory interface
|
|
88
90
|
* @export
|
|
89
91
|
*/
|
|
90
|
-
export const
|
|
91
|
-
const localVarFp =
|
|
92
|
+
export const HealthCheckApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
93
|
+
const localVarFp = HealthCheckApiFp(configuration)
|
|
92
94
|
return {
|
|
93
95
|
/**
|
|
94
|
-
*
|
|
96
|
+
* Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
97
|
+
* @summary Health Check
|
|
95
98
|
* @param {*} [options] Override http request option.
|
|
96
99
|
* @throws {RequiredError}
|
|
97
100
|
*/
|
|
@@ -102,19 +105,20 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
102
105
|
};
|
|
103
106
|
|
|
104
107
|
/**
|
|
105
|
-
*
|
|
108
|
+
* HealthCheckApi - object-oriented interface
|
|
106
109
|
* @export
|
|
107
|
-
* @class
|
|
110
|
+
* @class HealthCheckApi
|
|
108
111
|
* @extends {BaseAPI}
|
|
109
112
|
*/
|
|
110
|
-
export class
|
|
113
|
+
export class HealthCheckApi extends BaseAPI {
|
|
111
114
|
/**
|
|
112
|
-
*
|
|
115
|
+
* Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
116
|
+
* @summary Health Check
|
|
113
117
|
* @param {*} [options] Override http request option.
|
|
114
118
|
* @throws {RequiredError}
|
|
115
|
-
* @memberof
|
|
119
|
+
* @memberof HealthCheckApi
|
|
116
120
|
*/
|
|
117
121
|
public check(options?: AxiosRequestConfig) {
|
|
118
|
-
return
|
|
122
|
+
return HealthCheckApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
119
123
|
}
|
|
120
124
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -20,14 +20,6 @@ import { Configuration } from '../configuration';
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { CreatePaymentMethodResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreatePspPaymentMethodRequestDto } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetPaymentMethodResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListPaymentMethodsResponseClass } from '../models';
|
|
31
23
|
/**
|
|
32
24
|
* PaymentMethodsApi - axios parameter creator
|
|
33
25
|
* @export
|
|
@@ -36,15 +28,15 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
36
28
|
return {
|
|
37
29
|
/**
|
|
38
30
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
39
|
-
* @summary Create the payment
|
|
40
|
-
* @param {
|
|
31
|
+
* @summary Create the payment method
|
|
32
|
+
* @param {object} body
|
|
41
33
|
* @param {string} [authorization] Bearer Token
|
|
42
34
|
* @param {*} [options] Override http request option.
|
|
43
35
|
* @throws {RequiredError}
|
|
44
36
|
*/
|
|
45
|
-
createPaymentMethod: async (
|
|
46
|
-
// verify required parameter '
|
|
47
|
-
assertParamExists('createPaymentMethod', '
|
|
37
|
+
createPaymentMethod: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
+
// verify required parameter 'body' is not null or undefined
|
|
39
|
+
assertParamExists('createPaymentMethod', 'body', body)
|
|
48
40
|
const localVarPath = `/paymentservice/v1/payment-methods`;
|
|
49
41
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
42
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -74,7 +66,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
74
66
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
67
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
68
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
69
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
78
70
|
|
|
79
71
|
return {
|
|
80
72
|
url: toPathString(localVarUrlObj),
|
|
@@ -82,67 +74,19 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
82
74
|
};
|
|
83
75
|
},
|
|
84
76
|
/**
|
|
85
|
-
*
|
|
86
|
-
* @summary
|
|
87
|
-
* @param {number} id Unique identifier for payment method
|
|
88
|
-
* @param {string} [authorization] Bearer Token
|
|
89
|
-
* @param {*} [options] Override http request option.
|
|
90
|
-
* @throws {RequiredError}
|
|
91
|
-
*/
|
|
92
|
-
deletePaymentMethod: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
93
|
-
// verify required parameter 'id' is not null or undefined
|
|
94
|
-
assertParamExists('deletePaymentMethod', 'id', id)
|
|
95
|
-
const localVarPath = `/paymentservice/v1/payment-methods/{id}`;
|
|
96
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
-
let baseOptions;
|
|
99
|
-
let baseAccessToken;
|
|
100
|
-
if (configuration) {
|
|
101
|
-
baseOptions = configuration.baseOptions;
|
|
102
|
-
baseAccessToken = configuration.accessToken;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
106
|
-
const localVarHeaderParameter = {} as any;
|
|
107
|
-
const localVarQueryParameter = {} as any;
|
|
108
|
-
|
|
109
|
-
// authentication bearer required
|
|
110
|
-
// http bearer authentication required
|
|
111
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
112
|
-
|
|
113
|
-
if (id !== undefined) {
|
|
114
|
-
localVarQueryParameter['id'] = id;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
118
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
124
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
126
|
-
|
|
127
|
-
return {
|
|
128
|
-
url: toPathString(localVarUrlObj),
|
|
129
|
-
options: localVarRequestOptions,
|
|
130
|
-
};
|
|
131
|
-
},
|
|
132
|
-
/**
|
|
133
|
-
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
134
|
-
* @summary Retrieve a payment method
|
|
77
|
+
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
78
|
+
* @summary Retrieve the payment method
|
|
135
79
|
* @param {string} code Unique identifier for the object.
|
|
136
80
|
* @param {string} [authorization] Bearer Token
|
|
137
|
-
* @param {string} [expand]
|
|
138
|
-
* @param {string} [expand2] Fields to expand response by
|
|
81
|
+
* @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>
|
|
139
82
|
* @param {*} [options] Override http request option.
|
|
140
83
|
* @throws {RequiredError}
|
|
141
84
|
*/
|
|
142
|
-
getPaymentMethod: async (code: string, authorization?: string, expand?: string,
|
|
85
|
+
getPaymentMethod: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
143
86
|
// verify required parameter 'code' is not null or undefined
|
|
144
87
|
assertParamExists('getPaymentMethod', 'code', code)
|
|
145
|
-
const localVarPath = `/paymentservice/v1/payment-methods/{code}
|
|
88
|
+
const localVarPath = `/paymentservice/v1/payment-methods/{code}`
|
|
89
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
146
90
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147
91
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
148
92
|
let baseOptions;
|
|
@@ -160,18 +104,10 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
160
104
|
// http bearer authentication required
|
|
161
105
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
162
106
|
|
|
163
|
-
if (code !== undefined) {
|
|
164
|
-
localVarQueryParameter['code'] = code;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
107
|
if (expand !== undefined) {
|
|
168
108
|
localVarQueryParameter['expand'] = expand;
|
|
169
109
|
}
|
|
170
110
|
|
|
171
|
-
if (expand2 !== undefined) {
|
|
172
|
-
localVarQueryParameter['expand'] = expand2;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
111
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
176
112
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
177
113
|
}
|
|
@@ -188,20 +124,20 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
188
124
|
};
|
|
189
125
|
},
|
|
190
126
|
/**
|
|
191
|
-
* Returns a list of payment methods you
|
|
127
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
192
128
|
* @summary List payment methods
|
|
193
129
|
* @param {string} [authorization] Bearer Token
|
|
194
130
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
195
131
|
* @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.
|
|
196
|
-
* @param {
|
|
197
|
-
* @param {any} [search]
|
|
198
|
-
* @param {
|
|
199
|
-
* @param {
|
|
200
|
-
* @param {
|
|
132
|
+
* @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, pspCustomerId, psp, type</i>
|
|
133
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
134
|
+
* @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</i>
|
|
135
|
+
* @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>
|
|
136
|
+
* @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, pspCustomerId, psp, type</i>
|
|
201
137
|
* @param {*} [options] Override http request option.
|
|
202
138
|
* @throws {RequiredError}
|
|
203
139
|
*/
|
|
204
|
-
listPaymentMethods: async (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
140
|
+
listPaymentMethods: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
205
141
|
const localVarPath = `/paymentservice/v1/payment-methods`;
|
|
206
142
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
207
143
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -275,57 +211,44 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
275
211
|
return {
|
|
276
212
|
/**
|
|
277
213
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
278
|
-
* @summary Create the payment
|
|
279
|
-
* @param {
|
|
214
|
+
* @summary Create the payment method
|
|
215
|
+
* @param {object} body
|
|
280
216
|
* @param {string} [authorization] Bearer Token
|
|
281
217
|
* @param {*} [options] Override http request option.
|
|
282
218
|
* @throws {RequiredError}
|
|
283
219
|
*/
|
|
284
|
-
async createPaymentMethod(
|
|
285
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(
|
|
220
|
+
async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
221
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
|
|
286
222
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
287
223
|
},
|
|
288
224
|
/**
|
|
289
|
-
*
|
|
290
|
-
* @summary
|
|
291
|
-
* @param {number} id Unique identifier for payment method
|
|
292
|
-
* @param {string} [authorization] Bearer Token
|
|
293
|
-
* @param {*} [options] Override http request option.
|
|
294
|
-
* @throws {RequiredError}
|
|
295
|
-
*/
|
|
296
|
-
async deletePaymentMethod(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
297
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethod(id, authorization, options);
|
|
298
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
299
|
-
},
|
|
300
|
-
/**
|
|
301
|
-
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
302
|
-
* @summary Retrieve a payment method
|
|
225
|
+
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
226
|
+
* @summary Retrieve the payment method
|
|
303
227
|
* @param {string} code Unique identifier for the object.
|
|
304
228
|
* @param {string} [authorization] Bearer Token
|
|
305
|
-
* @param {string} [expand]
|
|
306
|
-
* @param {string} [expand2] Fields to expand response by
|
|
229
|
+
* @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>
|
|
307
230
|
* @param {*} [options] Override http request option.
|
|
308
231
|
* @throws {RequiredError}
|
|
309
232
|
*/
|
|
310
|
-
async getPaymentMethod(code: string, authorization?: string, expand?: string,
|
|
311
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, authorization, expand,
|
|
233
|
+
async getPaymentMethod(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
234
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, authorization, expand, options);
|
|
312
235
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
313
236
|
},
|
|
314
237
|
/**
|
|
315
|
-
* Returns a list of payment methods you
|
|
238
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
316
239
|
* @summary List payment methods
|
|
317
240
|
* @param {string} [authorization] Bearer Token
|
|
318
241
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
319
242
|
* @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.
|
|
320
|
-
* @param {
|
|
321
|
-
* @param {any} [search]
|
|
322
|
-
* @param {
|
|
323
|
-
* @param {
|
|
324
|
-
* @param {
|
|
243
|
+
* @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, pspCustomerId, psp, type</i>
|
|
244
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
245
|
+
* @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</i>
|
|
246
|
+
* @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>
|
|
247
|
+
* @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, pspCustomerId, psp, type</i>
|
|
325
248
|
* @param {*} [options] Override http request option.
|
|
326
249
|
* @throws {RequiredError}
|
|
327
250
|
*/
|
|
328
|
-
async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
251
|
+
async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
329
252
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
330
253
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
331
254
|
},
|
|
@@ -341,54 +264,42 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
341
264
|
return {
|
|
342
265
|
/**
|
|
343
266
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
344
|
-
* @summary Create the payment
|
|
345
|
-
* @param {
|
|
346
|
-
* @param {string} [authorization] Bearer Token
|
|
347
|
-
* @param {*} [options] Override http request option.
|
|
348
|
-
* @throws {RequiredError}
|
|
349
|
-
*/
|
|
350
|
-
createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass> {
|
|
351
|
-
return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
352
|
-
},
|
|
353
|
-
/**
|
|
354
|
-
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
355
|
-
* @summary Delete a payment method
|
|
356
|
-
* @param {number} id Unique identifier for payment method
|
|
267
|
+
* @summary Create the payment method
|
|
268
|
+
* @param {object} body
|
|
357
269
|
* @param {string} [authorization] Bearer Token
|
|
358
270
|
* @param {*} [options] Override http request option.
|
|
359
271
|
* @throws {RequiredError}
|
|
360
272
|
*/
|
|
361
|
-
|
|
362
|
-
return localVarFp.
|
|
273
|
+
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
274
|
+
return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
|
|
363
275
|
},
|
|
364
276
|
/**
|
|
365
|
-
* Retrieves the details of
|
|
366
|
-
* @summary Retrieve
|
|
277
|
+
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
278
|
+
* @summary Retrieve the payment method
|
|
367
279
|
* @param {string} code Unique identifier for the object.
|
|
368
280
|
* @param {string} [authorization] Bearer Token
|
|
369
|
-
* @param {string} [expand]
|
|
370
|
-
* @param {string} [expand2] Fields to expand response by
|
|
281
|
+
* @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>
|
|
371
282
|
* @param {*} [options] Override http request option.
|
|
372
283
|
* @throws {RequiredError}
|
|
373
284
|
*/
|
|
374
|
-
getPaymentMethod(code: string, authorization?: string, expand?: string,
|
|
375
|
-
return localVarFp.getPaymentMethod(code, authorization, expand,
|
|
285
|
+
getPaymentMethod(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
286
|
+
return localVarFp.getPaymentMethod(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
376
287
|
},
|
|
377
288
|
/**
|
|
378
|
-
* Returns a list of payment methods you
|
|
289
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
379
290
|
* @summary List payment methods
|
|
380
291
|
* @param {string} [authorization] Bearer Token
|
|
381
292
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
382
293
|
* @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.
|
|
383
|
-
* @param {
|
|
384
|
-
* @param {any} [search]
|
|
385
|
-
* @param {
|
|
386
|
-
* @param {
|
|
387
|
-
* @param {
|
|
294
|
+
* @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, pspCustomerId, psp, type</i>
|
|
295
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
296
|
+
* @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</i>
|
|
297
|
+
* @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>
|
|
298
|
+
* @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, pspCustomerId, psp, type</i>
|
|
388
299
|
* @param {*} [options] Override http request option.
|
|
389
300
|
* @throws {RequiredError}
|
|
390
301
|
*/
|
|
391
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
302
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
392
303
|
return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
393
304
|
},
|
|
394
305
|
};
|
|
@@ -402,10 +313,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
402
313
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
403
314
|
/**
|
|
404
315
|
*
|
|
405
|
-
* @type {
|
|
316
|
+
* @type {object}
|
|
406
317
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
407
318
|
*/
|
|
408
|
-
readonly
|
|
319
|
+
readonly body: object
|
|
409
320
|
|
|
410
321
|
/**
|
|
411
322
|
* Bearer Token
|
|
@@ -415,27 +326,6 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
|
415
326
|
readonly authorization?: string
|
|
416
327
|
}
|
|
417
328
|
|
|
418
|
-
/**
|
|
419
|
-
* Request parameters for deletePaymentMethod operation in PaymentMethodsApi.
|
|
420
|
-
* @export
|
|
421
|
-
* @interface PaymentMethodsApiDeletePaymentMethodRequest
|
|
422
|
-
*/
|
|
423
|
-
export interface PaymentMethodsApiDeletePaymentMethodRequest {
|
|
424
|
-
/**
|
|
425
|
-
* Unique identifier for payment method
|
|
426
|
-
* @type {number}
|
|
427
|
-
* @memberof PaymentMethodsApiDeletePaymentMethod
|
|
428
|
-
*/
|
|
429
|
-
readonly id: number
|
|
430
|
-
|
|
431
|
-
/**
|
|
432
|
-
* Bearer Token
|
|
433
|
-
* @type {string}
|
|
434
|
-
* @memberof PaymentMethodsApiDeletePaymentMethod
|
|
435
|
-
*/
|
|
436
|
-
readonly authorization?: string
|
|
437
|
-
}
|
|
438
|
-
|
|
439
329
|
/**
|
|
440
330
|
* Request parameters for getPaymentMethod operation in PaymentMethodsApi.
|
|
441
331
|
* @export
|
|
@@ -457,18 +347,11 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
|
457
347
|
readonly authorization?: string
|
|
458
348
|
|
|
459
349
|
/**
|
|
460
|
-
*
|
|
350
|
+
* 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>
|
|
461
351
|
* @type {string}
|
|
462
352
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
463
353
|
*/
|
|
464
354
|
readonly expand?: string
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* Fields to expand response by
|
|
468
|
-
* @type {string}
|
|
469
|
-
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
470
|
-
*/
|
|
471
|
-
readonly expand2?: string
|
|
472
355
|
}
|
|
473
356
|
|
|
474
357
|
/**
|
|
@@ -499,39 +382,39 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
499
382
|
readonly pageToken?: any
|
|
500
383
|
|
|
501
384
|
/**
|
|
502
|
-
* Filter the response by one or multiple fields.
|
|
503
|
-
* @type {
|
|
385
|
+
* 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, pspCustomerId, psp, type</i>
|
|
386
|
+
* @type {string}
|
|
504
387
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
505
388
|
*/
|
|
506
|
-
readonly filter?:
|
|
389
|
+
readonly filter?: string
|
|
507
390
|
|
|
508
391
|
/**
|
|
509
|
-
*
|
|
392
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
510
393
|
* @type {any}
|
|
511
394
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
512
395
|
*/
|
|
513
396
|
readonly search?: any
|
|
514
397
|
|
|
515
398
|
/**
|
|
516
|
-
*
|
|
517
|
-
* @type {
|
|
399
|
+
* 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</i>
|
|
400
|
+
* @type {string}
|
|
518
401
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
519
402
|
*/
|
|
520
|
-
readonly order?:
|
|
403
|
+
readonly order?: string
|
|
521
404
|
|
|
522
405
|
/**
|
|
523
|
-
*
|
|
524
|
-
* @type {
|
|
406
|
+
* 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>
|
|
407
|
+
* @type {string}
|
|
525
408
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
526
409
|
*/
|
|
527
|
-
readonly expand?:
|
|
410
|
+
readonly expand?: string
|
|
528
411
|
|
|
529
412
|
/**
|
|
530
|
-
* Filters the response by one or multiple fields.
|
|
531
|
-
* @type {
|
|
413
|
+
* 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, pspCustomerId, psp, type</i>
|
|
414
|
+
* @type {string}
|
|
532
415
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
533
416
|
*/
|
|
534
|
-
readonly filters?:
|
|
417
|
+
readonly filters?: string
|
|
535
418
|
}
|
|
536
419
|
|
|
537
420
|
/**
|
|
@@ -543,42 +426,30 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
543
426
|
export class PaymentMethodsApi extends BaseAPI {
|
|
544
427
|
/**
|
|
545
428
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
546
|
-
* @summary Create the payment
|
|
429
|
+
* @summary Create the payment method
|
|
547
430
|
* @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
|
|
548
431
|
* @param {*} [options] Override http request option.
|
|
549
432
|
* @throws {RequiredError}
|
|
550
433
|
* @memberof PaymentMethodsApi
|
|
551
434
|
*/
|
|
552
435
|
public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
553
|
-
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
558
|
-
* @summary Delete a payment method
|
|
559
|
-
* @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
|
|
560
|
-
* @param {*} [options] Override http request option.
|
|
561
|
-
* @throws {RequiredError}
|
|
562
|
-
* @memberof PaymentMethodsApi
|
|
563
|
-
*/
|
|
564
|
-
public deletePaymentMethod(requestParameters: PaymentMethodsApiDeletePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
565
|
-
return PaymentMethodsApiFp(this.configuration).deletePaymentMethod(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
436
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
566
437
|
}
|
|
567
438
|
|
|
568
439
|
/**
|
|
569
|
-
* Retrieves the details of
|
|
570
|
-
* @summary Retrieve
|
|
440
|
+
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
441
|
+
* @summary Retrieve the payment method
|
|
571
442
|
* @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
|
|
572
443
|
* @param {*} [options] Override http request option.
|
|
573
444
|
* @throws {RequiredError}
|
|
574
445
|
* @memberof PaymentMethodsApi
|
|
575
446
|
*/
|
|
576
447
|
public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
577
|
-
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand,
|
|
448
|
+
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
578
449
|
}
|
|
579
450
|
|
|
580
451
|
/**
|
|
581
|
-
* Returns a list of payment methods you
|
|
452
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
582
453
|
* @summary List payment methods
|
|
583
454
|
* @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
|
|
584
455
|
* @param {*} [options] Override http request option.
|