@finverse/sdk-typescript 0.0.38 → 0.0.39

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 (3) hide show
  1. package/dist/api.d.ts +194 -0
  2. package/dist/api.js +146 -1
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -425,6 +425,49 @@ export interface CreatePaymentInstructionResponse {
425
425
  */
426
426
  payment_instruction_id?: string;
427
427
  }
428
+ /**
429
+ *
430
+ * @export
431
+ * @interface CreatePaymentRequest
432
+ */
433
+ export interface CreatePaymentRequest {
434
+ /**
435
+ * Amount to be paid, in currency’s smallest unit or “minor unit”, as defined in ISO 4217. For example, HKD 100.01 is represented as amount = 10001 (minor unit = cents). For currencies without minor units (e.g. VND, JPY), the amount is represented as is, without modification. For example, VND 15101 is represented as amount = 15101.
436
+ * @type {number}
437
+ * @memberof CreatePaymentRequest
438
+ */
439
+ amount: number;
440
+ /**
441
+ * Indicates whether this is a mandate-based payment or one-off direct payment to an account. Possible values - MANDATE, SINGLE
442
+ * @type {string}
443
+ * @memberof CreatePaymentRequest
444
+ */
445
+ type: CreatePaymentRequestTypeEnum;
446
+ /**
447
+ *
448
+ * @type {PaymentDetails2}
449
+ * @memberof CreatePaymentRequest
450
+ */
451
+ payment_details: PaymentDetails2;
452
+ }
453
+ export declare const CreatePaymentRequestTypeEnum: {
454
+ readonly Mandate: "MANDATE";
455
+ readonly Single: "SINGLE";
456
+ };
457
+ export declare type CreatePaymentRequestTypeEnum = typeof CreatePaymentRequestTypeEnum[keyof typeof CreatePaymentRequestTypeEnum];
458
+ /**
459
+ *
460
+ * @export
461
+ * @interface CreatePaymentResponse
462
+ */
463
+ export interface CreatePaymentResponse {
464
+ /**
465
+ * Finverse Payment ID
466
+ * @type {string}
467
+ * @memberof CreatePaymentResponse
468
+ */
469
+ payment_id?: string;
470
+ }
428
471
  /**
429
472
  *
430
473
  * @export
@@ -877,6 +920,58 @@ export interface GetPaymentInstructionsResponse {
877
920
  */
878
921
  payment_instruction?: PaymentInstruction;
879
922
  }
923
+ /**
924
+ *
925
+ * @export
926
+ * @interface GetPaymentResponse
927
+ */
928
+ export interface GetPaymentResponse {
929
+ /**
930
+ * Finverse Payment ID
931
+ * @type {string}
932
+ * @memberof GetPaymentResponse
933
+ */
934
+ payment_id?: string;
935
+ /**
936
+ * Amount to be paid, in currency’s smallest unit or “minor unit”, as defined in ISO 4217. For example, HKD 100.01 is represented as amount = 10001 (minor unit = cents). For currencies without minor units (e.g. VND, JPY), the amount is represented as is, without modification. For example, VND 15101 is represented as amount = 15101.
937
+ * @type {number}
938
+ * @memberof GetPaymentResponse
939
+ */
940
+ amount?: number;
941
+ /**
942
+ * Indicates whether this is a mandate-based payment or one-off direct payment to an account. Possible values - MANDATE, SINGLE
943
+ * @type {string}
944
+ * @memberof GetPaymentResponse
945
+ */
946
+ type?: GetPaymentResponseTypeEnum;
947
+ /**
948
+ * Possible values - CREATED, AUTHORIZED, SUBMITTED, EXECUTED, FAILED, REJECTED, CANCELLED.
949
+ * @type {string}
950
+ * @memberof GetPaymentResponse
951
+ */
952
+ status?: GetPaymentResponseStatusEnum;
953
+ /**
954
+ *
955
+ * @type {PaymentDetails2}
956
+ * @memberof GetPaymentResponse
957
+ */
958
+ payment_details?: PaymentDetails2;
959
+ }
960
+ export declare const GetPaymentResponseTypeEnum: {
961
+ readonly Mandate: "MANDATE";
962
+ readonly Single: "SINGLE";
963
+ };
964
+ export declare type GetPaymentResponseTypeEnum = typeof GetPaymentResponseTypeEnum[keyof typeof GetPaymentResponseTypeEnum];
965
+ export declare const GetPaymentResponseStatusEnum: {
966
+ readonly Created: "CREATED";
967
+ readonly Authorized: "AUTHORIZED";
968
+ readonly Submitted: "SUBMITTED";
969
+ readonly Executed: "EXECUTED";
970
+ readonly Failed: "FAILED";
971
+ readonly Rejected: "REJECTED";
972
+ readonly Cancelled: "CANCELLED";
973
+ };
974
+ export declare type GetPaymentResponseStatusEnum = typeof GetPaymentResponseStatusEnum[keyof typeof GetPaymentResponseStatusEnum];
880
975
  /**
881
976
  *
882
977
  * @export
@@ -2244,6 +2339,31 @@ export interface PaymentDetails {
2244
2339
  */
2245
2340
  other_info?: OtherInfo;
2246
2341
  }
2342
+ /**
2343
+ *
2344
+ * @export
2345
+ * @interface PaymentDetails2
2346
+ */
2347
+ export interface PaymentDetails2 {
2348
+ /**
2349
+ * The transaction description provided to banks, which banks will show to their customers.
2350
+ * @type {string}
2351
+ * @memberof PaymentDetails2
2352
+ */
2353
+ description?: string;
2354
+ /**
2355
+ * ID of the mandate this pament is referring to.
2356
+ * @type {string}
2357
+ * @memberof PaymentDetails2
2358
+ */
2359
+ mandate_id: string;
2360
+ /**
2361
+ * Customer\'s ID for this transaction
2362
+ * @type {string}
2363
+ * @memberof PaymentDetails2
2364
+ */
2365
+ transaction_reference_id?: string;
2366
+ }
2247
2367
  /**
2248
2368
  *
2249
2369
  * @export
@@ -2905,6 +3025,13 @@ export declare type TransactionLimitsPeriodEnum = typeof TransactionLimitsPeriod
2905
3025
  * @export
2906
3026
  */
2907
3027
  export declare const CustomerApiAxiosParamCreator: (configuration?: Configuration) => {
3028
+ /**
3029
+ * Create new Payment
3030
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3031
+ * @param {*} [options] Override http request option.
3032
+ * @throws {RequiredError}
3033
+ */
3034
+ createPayment: (createPaymentRequest: CreatePaymentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2908
3035
  /**
2909
3036
  * Create a new payment instruction to be used when linking to perform new payment
2910
3037
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -2947,6 +3074,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
2947
3074
  * @throws {RequiredError}
2948
3075
  */
2949
3076
  getMandates: (mandateId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3077
+ /**
3078
+ * Get Payment details by payment_id
3079
+ * @param {string} paymentId payment id
3080
+ * @param {*} [options] Override http request option.
3081
+ * @throws {RequiredError}
3082
+ */
3083
+ getPayment: (paymentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2950
3084
  /**
2951
3085
  * Get payment instructions by payment_instruction_id
2952
3086
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -2984,6 +3118,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
2984
3118
  * @export
2985
3119
  */
2986
3120
  export declare const CustomerApiFp: (configuration?: Configuration) => {
3121
+ /**
3122
+ * Create new Payment
3123
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3124
+ * @param {*} [options] Override http request option.
3125
+ * @throws {RequiredError}
3126
+ */
3127
+ createPayment(createPaymentRequest: CreatePaymentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponse>>;
2987
3128
  /**
2988
3129
  * Create a new payment instruction to be used when linking to perform new payment
2989
3130
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -3026,6 +3167,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
3026
3167
  * @throws {RequiredError}
3027
3168
  */
3028
3169
  getMandates(mandateId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMandatesResponse>>;
3170
+ /**
3171
+ * Get Payment details by payment_id
3172
+ * @param {string} paymentId payment id
3173
+ * @param {*} [options] Override http request option.
3174
+ * @throws {RequiredError}
3175
+ */
3176
+ getPayment(paymentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponse>>;
3029
3177
  /**
3030
3178
  * Get payment instructions by payment_instruction_id
3031
3179
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -3063,6 +3211,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
3063
3211
  * @export
3064
3212
  */
3065
3213
  export declare const CustomerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3214
+ /**
3215
+ * Create new Payment
3216
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3217
+ * @param {*} [options] Override http request option.
3218
+ * @throws {RequiredError}
3219
+ */
3220
+ createPayment(createPaymentRequest: CreatePaymentRequest, options?: any): AxiosPromise<CreatePaymentResponse>;
3066
3221
  /**
3067
3222
  * Create a new payment instruction to be used when linking to perform new payment
3068
3223
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -3105,6 +3260,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
3105
3260
  * @throws {RequiredError}
3106
3261
  */
3107
3262
  getMandates(mandateId: string, options?: any): AxiosPromise<GetMandatesResponse>;
3263
+ /**
3264
+ * Get Payment details by payment_id
3265
+ * @param {string} paymentId payment id
3266
+ * @param {*} [options] Override http request option.
3267
+ * @throws {RequiredError}
3268
+ */
3269
+ getPayment(paymentId: string, options?: any): AxiosPromise<GetPaymentResponse>;
3108
3270
  /**
3109
3271
  * Get payment instructions by payment_instruction_id
3110
3272
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -3143,6 +3305,14 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
3143
3305
  * @interface CustomerApi
3144
3306
  */
3145
3307
  export interface CustomerApiInterface {
3308
+ /**
3309
+ * Create new Payment
3310
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3311
+ * @param {*} [options] Override http request option.
3312
+ * @throws {RequiredError}
3313
+ * @memberof CustomerApiInterface
3314
+ */
3315
+ createPayment(createPaymentRequest: CreatePaymentRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentResponse>;
3146
3316
  /**
3147
3317
  * Create a new payment instruction to be used when linking to perform new payment
3148
3318
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -3191,6 +3361,14 @@ export interface CustomerApiInterface {
3191
3361
  * @memberof CustomerApiInterface
3192
3362
  */
3193
3363
  getMandates(mandateId: string, options?: AxiosRequestConfig): AxiosPromise<GetMandatesResponse>;
3364
+ /**
3365
+ * Get Payment details by payment_id
3366
+ * @param {string} paymentId payment id
3367
+ * @param {*} [options] Override http request option.
3368
+ * @throws {RequiredError}
3369
+ * @memberof CustomerApiInterface
3370
+ */
3371
+ getPayment(paymentId: string, options?: AxiosRequestConfig): AxiosPromise<GetPaymentResponse>;
3194
3372
  /**
3195
3373
  * Get payment instructions by payment_instruction_id
3196
3374
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -3234,6 +3412,14 @@ export interface CustomerApiInterface {
3234
3412
  * @extends {BaseAPI}
3235
3413
  */
3236
3414
  export declare class CustomerApi extends BaseAPI implements CustomerApiInterface {
3415
+ /**
3416
+ * Create new Payment
3417
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3418
+ * @param {*} [options] Override http request option.
3419
+ * @throws {RequiredError}
3420
+ * @memberof CustomerApi
3421
+ */
3422
+ createPayment(createPaymentRequest: CreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponse>>;
3237
3423
  /**
3238
3424
  * Create a new payment instruction to be used when linking to perform new payment
3239
3425
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -3282,6 +3468,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
3282
3468
  * @memberof CustomerApi
3283
3469
  */
3284
3470
  getMandates(mandateId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMandatesResponse>>;
3471
+ /**
3472
+ * Get Payment details by payment_id
3473
+ * @param {string} paymentId payment id
3474
+ * @param {*} [options] Override http request option.
3475
+ * @throws {RequiredError}
3476
+ * @memberof CustomerApi
3477
+ */
3478
+ getPayment(paymentId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentResponse>>;
3285
3479
  /**
3286
3480
  * Get payment instructions by payment_instruction_id
3287
3481
  * @param {string} paymentInstructionId The id of a payment instruction
package/dist/api.js CHANGED
@@ -22,13 +22,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentInstructionTypeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.GetMandatesResponseMandateStatusEnum = exports.CustomerPaymentInstructionTypeEnum = void 0;
25
+ exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentInstructionTypeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.GetPaymentResponseStatusEnum = exports.GetPaymentResponseTypeEnum = exports.GetMandatesResponseMandateStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreatePaymentRequestTypeEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
29
29
  const common_1 = require("./common");
30
30
  // @ts-ignore
31
31
  const base_1 = require("./base");
32
+ exports.CreatePaymentRequestTypeEnum = {
33
+ Mandate: 'MANDATE',
34
+ Single: 'SINGLE',
35
+ };
32
36
  exports.CustomerPaymentInstructionTypeEnum = {
33
37
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
34
38
  };
@@ -38,6 +42,19 @@ exports.GetMandatesResponseMandateStatusEnum = {
38
42
  Submitted: 'SUBMITTED',
39
43
  Error: 'ERROR',
40
44
  };
45
+ exports.GetPaymentResponseTypeEnum = {
46
+ Mandate: 'MANDATE',
47
+ Single: 'SINGLE',
48
+ };
49
+ exports.GetPaymentResponseStatusEnum = {
50
+ Created: 'CREATED',
51
+ Authorized: 'AUTHORIZED',
52
+ Submitted: 'SUBMITTED',
53
+ Executed: 'EXECUTED',
54
+ Failed: 'FAILED',
55
+ Rejected: 'REJECTED',
56
+ Cancelled: 'CANCELLED',
57
+ };
41
58
  exports.LinkTokenRequestUiModeEnum = {
42
59
  Iframe: 'iframe',
43
60
  Redirect: 'redirect',
@@ -72,6 +89,38 @@ exports.TransactionLimitsPeriodEnum = {
72
89
  */
73
90
  exports.CustomerApiAxiosParamCreator = function (configuration) {
74
91
  return {
92
+ /**
93
+ * Create new Payment
94
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ createPayment: (createPaymentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
99
+ // verify required parameter 'createPaymentRequest' is not null or undefined
100
+ common_1.assertParamExists('createPayment', 'createPaymentRequest', createPaymentRequest);
101
+ const localVarPath = `/payments`;
102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
104
+ let baseOptions;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ }
108
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
109
+ const localVarHeaderParameter = {};
110
+ const localVarQueryParameter = {};
111
+ // authentication Oauth2 required
112
+ // oauth required
113
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
114
+ localVarHeaderParameter['Content-Type'] = 'application/json';
115
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
117
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
118
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPaymentRequest, localVarRequestOptions, configuration);
119
+ return {
120
+ url: common_1.toPathString(localVarUrlObj),
121
+ options: localVarRequestOptions,
122
+ };
123
+ }),
75
124
  /**
76
125
  * Create a new payment instruction to be used when linking to perform new payment
77
126
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -256,6 +305,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
256
305
  options: localVarRequestOptions,
257
306
  };
258
307
  }),
308
+ /**
309
+ * Get Payment details by payment_id
310
+ * @param {string} paymentId payment id
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ getPayment: (paymentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
315
+ // verify required parameter 'paymentId' is not null or undefined
316
+ common_1.assertParamExists('getPayment', 'paymentId', paymentId);
317
+ const localVarPath = `/payments/{paymentId}`.replace(`{${'paymentId'}}`, encodeURIComponent(String(paymentId)));
318
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
319
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
320
+ let baseOptions;
321
+ if (configuration) {
322
+ baseOptions = configuration.baseOptions;
323
+ }
324
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
325
+ const localVarHeaderParameter = {};
326
+ const localVarQueryParameter = {};
327
+ // authentication Oauth2 required
328
+ // oauth required
329
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
330
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
331
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
332
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
333
+ return {
334
+ url: common_1.toPathString(localVarUrlObj),
335
+ options: localVarRequestOptions,
336
+ };
337
+ }),
259
338
  /**
260
339
  * Get payment instructions by payment_instruction_id
261
340
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -402,6 +481,18 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
402
481
  exports.CustomerApiFp = function (configuration) {
403
482
  const localVarAxiosParamCreator = exports.CustomerApiAxiosParamCreator(configuration);
404
483
  return {
484
+ /**
485
+ * Create new Payment
486
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
487
+ * @param {*} [options] Override http request option.
488
+ * @throws {RequiredError}
489
+ */
490
+ createPayment(createPaymentRequest, options) {
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayment(createPaymentRequest, options);
493
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
494
+ });
495
+ },
405
496
  /**
406
497
  * Create a new payment instruction to be used when linking to perform new payment
407
498
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -474,6 +565,18 @@ exports.CustomerApiFp = function (configuration) {
474
565
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
475
566
  });
476
567
  },
568
+ /**
569
+ * Get Payment details by payment_id
570
+ * @param {string} paymentId payment id
571
+ * @param {*} [options] Override http request option.
572
+ * @throws {RequiredError}
573
+ */
574
+ getPayment(paymentId, options) {
575
+ return __awaiter(this, void 0, void 0, function* () {
576
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPayment(paymentId, options);
577
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
578
+ });
579
+ },
477
580
  /**
478
581
  * Get payment instructions by payment_instruction_id
479
582
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -534,6 +637,15 @@ exports.CustomerApiFp = function (configuration) {
534
637
  exports.CustomerApiFactory = function (configuration, basePath, axios) {
535
638
  const localVarFp = exports.CustomerApiFp(configuration);
536
639
  return {
640
+ /**
641
+ * Create new Payment
642
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ */
646
+ createPayment(createPaymentRequest, options) {
647
+ return localVarFp.createPayment(createPaymentRequest, options).then((request) => request(axios, basePath));
648
+ },
537
649
  /**
538
650
  * Create a new payment instruction to be used when linking to perform new payment
539
651
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -590,6 +702,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
590
702
  getMandates(mandateId, options) {
591
703
  return localVarFp.getMandates(mandateId, options).then((request) => request(axios, basePath));
592
704
  },
705
+ /**
706
+ * Get Payment details by payment_id
707
+ * @param {string} paymentId payment id
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ getPayment(paymentId, options) {
712
+ return localVarFp.getPayment(paymentId, options).then((request) => request(axios, basePath));
713
+ },
593
714
  /**
594
715
  * Get payment instructions by payment_instruction_id
595
716
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -642,6 +763,18 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
642
763
  * @extends {BaseAPI}
643
764
  */
644
765
  class CustomerApi extends base_1.BaseAPI {
766
+ /**
767
+ * Create new Payment
768
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ * @memberof CustomerApi
772
+ */
773
+ createPayment(createPaymentRequest, options) {
774
+ return exports.CustomerApiFp(this.configuration)
775
+ .createPayment(createPaymentRequest, options)
776
+ .then((request) => request(this.axios, this.basePath));
777
+ }
645
778
  /**
646
779
  * Create a new payment instruction to be used when linking to perform new payment
647
780
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -714,6 +847,18 @@ class CustomerApi extends base_1.BaseAPI {
714
847
  .getMandates(mandateId, options)
715
848
  .then((request) => request(this.axios, this.basePath));
716
849
  }
850
+ /**
851
+ * Get Payment details by payment_id
852
+ * @param {string} paymentId payment id
853
+ * @param {*} [options] Override http request option.
854
+ * @throws {RequiredError}
855
+ * @memberof CustomerApi
856
+ */
857
+ getPayment(paymentId, options) {
858
+ return exports.CustomerApiFp(this.configuration)
859
+ .getPayment(paymentId, options)
860
+ .then((request) => request(this.axios, this.basePath));
861
+ }
717
862
  /**
718
863
  * Get payment instructions by payment_instruction_id
719
864
  * @param {string} paymentInstructionId The id of a payment instruction
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [