@mbanq/core-sdk-js 0.22.0 → 0.24.0
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/README.md +2 -0
- package/dist/{chunk-ARR7PVSU.js → chunk-EM7SKZCN.js} +1 -1
- package/dist/{chunk-5SFHDAQT.mjs → chunk-ZUBUHVOU.mjs} +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/commands/index.d.mts +456 -2
- package/dist/commands/index.d.ts +456 -2
- package/dist/commands/index.js +2 -2
- package/dist/commands/index.mjs +2 -2
- package/dist/{config.d-3z0BBs0n.d.mts → config.d-BSoFrdxi.d.mts} +0 -2
- package/dist/{config.d-3z0BBs0n.d.ts → config.d-BSoFrdxi.d.ts} +0 -2
- package/dist/{error.d-b8v9_A6B.d.ts → error.d-Cn1_ZmBN.d.ts} +1 -1
- package/dist/{error.d-Dxib52uQ.d.mts → error.d-aUq9Boe9.d.mts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types/types.d.mts +2 -2
- package/dist/types/types.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -448,6 +448,8 @@ The SDK uses a Command Pattern for all operations. Commands are created using fa
|
|
|
448
448
|
| `GetCardById` | Get detailed information about a specific card by ID |
|
|
449
449
|
| `GetCardAuthorizations` | List card authorizations with filtering options (status, pagination, sorting) |
|
|
450
450
|
| `GetCardAuthorizationById` | Retrieve detailed information about a specific card authorization including transaction details, merchant information, and optional associations (notes/media) |
|
|
451
|
+
| `GetCardSettlements` | List all card settlements with comprehensive filtering (date range, status, pagination, sorting). A settlement is where a card transaction is finalized and funds are transferred from the cardholder to the merchant |
|
|
452
|
+
| `GetCardSettlementById` | Retrieve detailed information about a specific card settlement by ID, including client info, merchant details, transaction amounts, batch information, and interchange fees |
|
|
451
453
|
| `SendAuthorizationToCore` | Send card authorization request to core system |
|
|
452
454
|
| `UpdateCardID` | Update client card identification information (URL and QR code) |
|
|
453
455
|
| `GetCards` | Retrieve all cards associated with a specific client |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunk6M772WIBjs = require('./chunk-6M772WIB.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunk6M772WIBjs = require('./chunk-6M772WIB.js');var k=r=>{let s=[];if(!r.baseUrl)s.push("baseUrl is required");else if(typeof r.baseUrl!="string")s.push("baseUrl must be a string");else try{new URL(r.baseUrl)}catch (e2){s.push("baseUrl must be a valid URL")}return _optionalChain([r, 'access', _ => _.axiosConfig, 'optionalAccess', _2 => _2.timeout])!==void 0&&(typeof r.axiosConfig.timeout!="number"||r.axiosConfig.timeout<0)&&s.push("timeout must be a positive number"),s};var _axios = require('axios'); var _axios2 = _interopRequireDefault(_axios);var _jsonwebtoken = require('jsonwebtoken'); var _jsonwebtoken2 = _interopRequireDefault(_jsonwebtoken);var m=(r,s)=>{if(!r)throw _chunk6M772WIBjs.a.call(void 0, {message:"Missing JWT secret",code:"missing_jwt_secret"});return _jsonwebtoken2.default.sign({signee:s},r,{algorithm:"HS512",expiresIn:"1d"})||""},w=async(r,s,a)=>{let o={method:"POST",url:`${r}/oauth/token`,headers:{"Content-Type":"application/x-www-form-urlencoded",tenantId:s},data:a},{data:{access_token:c}}=await _axios2.default.request(o);return c};var O=r=>{let s=k(r);if(s.length>0)throw _chunk6M772WIBjs.a.call(void 0, {message:`Invalid configuration: ${s.join(", ")}`,code:"invalid_config"});let a=r,o={accessToken:"",tokenType:"bearer",authConfig:null},c=async(e,t,n)=>{if(a.middlewares)for(let i of a.middlewares)e==="before"&&i.before?await i.before(t):e==="after"&&i.after?await i.after(t,n):e==="onError"&&i.onError&&await i.onError(t,n)},f=e=>{let t={...e,[o.tokenType==="jwt"?"jwtToken":"bearerToken"]:o.accessToken};return _optionalChain([o, 'access', _3 => _3.authConfig, 'optionalAccess', _4 => _4.tenantId])&&(t.tenantId=o.authConfig.tenantId),t},d=(e,t)=>t?{...e,axiosConfig:{...e.axiosConfig,...t.timeout&&{timeout:t.timeout},...t.keepAlive!==void 0&&{keepAlive:t.keepAlive},headers:{..._optionalChain([e, 'access', _5 => _5.axiosConfig, 'optionalAccess', _6 => _6.headers]),...t.headers}}}:e,l=async e=>{if(e.credential){let t=e.tenantId||a.tenantId;if(!t)throw _chunk6M772WIBjs.a.call(void 0, {message:"Tenant ID is required when using credential-based authentication",code:"missing_tenant_id"});return{token:await w(a.baseUrl,t,e.credential),type:"bearer"}}else{if(e.signee&&e.secret)return{token:m(e.secret,e.signee||""),type:"jwt"};if(e.bearerToken)return{token:e.bearerToken,type:"bearer"};if(e.jwtToken)return{token:e.jwtToken,type:"jwt"};throw _chunk6M772WIBjs.a.call(void 0, {message:"No valid authentication method provided in config",code:"missing_authentication"})}};return{connect:async e=>{let{token:t,type:n}=await l(e);o.accessToken=t,o.tokenType=n,o.authConfig=e},request:async(e,t)=>{try{if(await c("before",e),!o.accessToken)throw _chunk6M772WIBjs.a.call(void 0, {message:"No authentication token found. Please await instance.connect() first.",code:"missing_authentication"});let n=d(a,t);n=f(n);try{let i=await e.execute(n);return await c("after",e,i),i}catch(i){if(_chunk6M772WIBjs.b.call(void 0, i)&&i.statusCode===401&&o.authConfig){let{token:T,type:h}=await l(o.authConfig);o.accessToken=T,o.tokenType=h,n=d(a,t),n=f(n);let g=await e.execute(n);return await c("after",e,g),g}else throw await c("onError",e,i),i}}catch(n){throw await c("onError",e,n),n}}}};exports.a = O;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u,b as p}from"./chunk-2PLZ534I.mjs";var
|
|
1
|
+
import{a as u,b as p}from"./chunk-2PLZ534I.mjs";var k=r=>{let s=[];if(!r.baseUrl)s.push("baseUrl is required");else if(typeof r.baseUrl!="string")s.push("baseUrl must be a string");else try{new URL(r.baseUrl)}catch{s.push("baseUrl must be a valid URL")}return r.axiosConfig?.timeout!==void 0&&(typeof r.axiosConfig.timeout!="number"||r.axiosConfig.timeout<0)&&s.push("timeout must be a positive number"),s};import C from"axios";import b from"jsonwebtoken";var m=(r,s)=>{if(!r)throw u({message:"Missing JWT secret",code:"missing_jwt_secret"});return b.sign({signee:s},r,{algorithm:"HS512",expiresIn:"1d"})||""},w=async(r,s,a)=>{let o={method:"POST",url:`${r}/oauth/token`,headers:{"Content-Type":"application/x-www-form-urlencoded",tenantId:s},data:a},{data:{access_token:c}}=await C.request(o);return c};var O=r=>{let s=k(r);if(s.length>0)throw u({message:`Invalid configuration: ${s.join(", ")}`,code:"invalid_config"});let a=r,o={accessToken:"",tokenType:"bearer",authConfig:null},c=async(e,t,n)=>{if(a.middlewares)for(let i of a.middlewares)e==="before"&&i.before?await i.before(t):e==="after"&&i.after?await i.after(t,n):e==="onError"&&i.onError&&await i.onError(t,n)},f=e=>{let t={...e,[o.tokenType==="jwt"?"jwtToken":"bearerToken"]:o.accessToken};return o.authConfig?.tenantId&&(t.tenantId=o.authConfig.tenantId),t},d=(e,t)=>t?{...e,axiosConfig:{...e.axiosConfig,...t.timeout&&{timeout:t.timeout},...t.keepAlive!==void 0&&{keepAlive:t.keepAlive},headers:{...e.axiosConfig?.headers,...t.headers}}}:e,l=async e=>{if(e.credential){let t=e.tenantId||a.tenantId;if(!t)throw u({message:"Tenant ID is required when using credential-based authentication",code:"missing_tenant_id"});return{token:await w(a.baseUrl,t,e.credential),type:"bearer"}}else{if(e.signee&&e.secret)return{token:m(e.secret,e.signee||""),type:"jwt"};if(e.bearerToken)return{token:e.bearerToken,type:"bearer"};if(e.jwtToken)return{token:e.jwtToken,type:"jwt"};throw u({message:"No valid authentication method provided in config",code:"missing_authentication"})}};return{connect:async e=>{let{token:t,type:n}=await l(e);o.accessToken=t,o.tokenType=n,o.authConfig=e},request:async(e,t)=>{try{if(await c("before",e),!o.accessToken)throw u({message:"No authentication token found. Please await instance.connect() first.",code:"missing_authentication"});let n=d(a,t);n=f(n);try{let i=await e.execute(n);return await c("after",e,i),i}catch(i){if(p(i)&&i.statusCode===401&&o.authConfig){let{token:T,type:h}=await l(o.authConfig);o.accessToken=T,o.tokenType=h,n=d(a,t),n=f(n);let g=await e.execute(n);return await c("after",e,g),g}else throw await c("onError",e,i),i}}catch(n){throw await c("onError",e,n),n}}}};export{O as a};
|
package/dist/client/index.d.mts
CHANGED
package/dist/client/index.d.ts
CHANGED
package/dist/client/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEM7SKZCNjs = require('../chunk-EM7SKZCN.js');require('../chunk-6M772WIB.js');exports.createInstance = _chunkEM7SKZCNjs.a;
|
package/dist/client/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-ZUBUHVOU.mjs";import"../chunk-2PLZ534I.mjs";export{a as createInstance};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z$1, { z } from 'zod';
|
|
2
|
-
import { a as Command, G as GraphQLRequest } from '../config.d-
|
|
2
|
+
import { a as Command, G as GraphQLRequest } from '../config.d-BSoFrdxi.mjs';
|
|
3
3
|
import * as buffer from 'buffer';
|
|
4
4
|
import { e as ProcessOutput, G as GetTransferInput, T as Transfer, b as CreateTransferInput, ai as CreateTransferOutput, P as Payment, aj as PaymentFilters, a as PaymentResponse, C as CreatePaymentInput, ak as ProcessOutput$1, U as UpdatePaymentInput, u as SavingAccount, al as ListAccountsOfClientRequest, y as UpdateAccountRequest, am as CreateAndActivateAccountRequest, an as CreateAndActivateAccountResponse, ao as CloseAccountRequest, ap as CloseAccountResponse, aq as BlockAccountRequest, ar as BlockAccountResponse, as as HoldAmountRequest, at as HoldAmountResponse, au as UpdateRecipientRequest, R as Recipient, g as CreateRecipientRequest, h as RecipientRequest, av as Recipients, B as UserDetail, aw as EnableSelfServiceAccessRequest, ax as EnableSelfServiceAccessResponse, ay as UpdateSelfServiceUserRequest, az as UpdateSelfServiceUserResponse, aA as DeleteSelfServiceUserResponse } from '../recipient-i5k7edaA.mjs';
|
|
5
5
|
import 'graphql';
|
|
@@ -8696,6 +8696,350 @@ type GetCardAuthorizationsRequest = z.infer<typeof GetCardAuthorizationsRequestS
|
|
|
8696
8696
|
type GetCardAuthorizationsResponse = z.infer<typeof GetCardAuthorizationsResponseSchema>;
|
|
8697
8697
|
type GetCardAuthorizationByIdRequest = z.infer<typeof GetCardAuthorizationByIdRequestSchema>;
|
|
8698
8698
|
type CardAuthorizationDetails = z.infer<typeof CardAuthorizationDetailsSchema>;
|
|
8699
|
+
declare const CardSettlementSchema: z.ZodObject<{
|
|
8700
|
+
clientId: z.ZodNumber;
|
|
8701
|
+
firstName: z.ZodString;
|
|
8702
|
+
lastName: z.ZodString;
|
|
8703
|
+
accountNumber: z.ZodString;
|
|
8704
|
+
id: z.ZodNumber;
|
|
8705
|
+
type: z.ZodString;
|
|
8706
|
+
internalClearingId: z.ZodString;
|
|
8707
|
+
internalAuthId: z.ZodString;
|
|
8708
|
+
externalClearingId: z.ZodString;
|
|
8709
|
+
externalAuthId: z.ZodString;
|
|
8710
|
+
externalOriginalAuthId: z.ZodString;
|
|
8711
|
+
externalCardId: z.ZodString;
|
|
8712
|
+
cardToken: z.ZodString;
|
|
8713
|
+
merchant: z.ZodObject<{
|
|
8714
|
+
merchant_number: z.ZodString;
|
|
8715
|
+
merchantId: z.ZodString;
|
|
8716
|
+
merchant_location: z.ZodString;
|
|
8717
|
+
mcc: z.ZodString;
|
|
8718
|
+
description: z.ZodString;
|
|
8719
|
+
}, "strip", z.ZodTypeAny, {
|
|
8720
|
+
description: string;
|
|
8721
|
+
mcc: string;
|
|
8722
|
+
merchantId: string;
|
|
8723
|
+
merchant_number: string;
|
|
8724
|
+
merchant_location: string;
|
|
8725
|
+
}, {
|
|
8726
|
+
description: string;
|
|
8727
|
+
mcc: string;
|
|
8728
|
+
merchantId: string;
|
|
8729
|
+
merchant_number: string;
|
|
8730
|
+
merchant_location: string;
|
|
8731
|
+
}>;
|
|
8732
|
+
amount: z.ZodNumber;
|
|
8733
|
+
network: z.ZodString;
|
|
8734
|
+
currency: z.ZodString;
|
|
8735
|
+
requestedAt: z.ZodString;
|
|
8736
|
+
createdAt: z.ZodString;
|
|
8737
|
+
status: z.ZodString;
|
|
8738
|
+
batchDate: z.ZodString;
|
|
8739
|
+
batchIdentifier: z.ZodString;
|
|
8740
|
+
mcSequenceNumber: z.ZodNumber;
|
|
8741
|
+
mcSequenceCount: z.ZodNumber;
|
|
8742
|
+
completedInternalClearingId: z.ZodNumber;
|
|
8743
|
+
interchangeFeeAmount: z.ZodNumber;
|
|
8744
|
+
}, "strip", z.ZodTypeAny, {
|
|
8745
|
+
type: string;
|
|
8746
|
+
status: string;
|
|
8747
|
+
id: number;
|
|
8748
|
+
currency: string;
|
|
8749
|
+
amount: number;
|
|
8750
|
+
createdAt: string;
|
|
8751
|
+
clientId: number;
|
|
8752
|
+
accountNumber: string;
|
|
8753
|
+
firstName: string;
|
|
8754
|
+
lastName: string;
|
|
8755
|
+
cardToken: string;
|
|
8756
|
+
network: string;
|
|
8757
|
+
externalAuthId: string;
|
|
8758
|
+
externalOriginalAuthId: string;
|
|
8759
|
+
merchant: {
|
|
8760
|
+
description: string;
|
|
8761
|
+
mcc: string;
|
|
8762
|
+
merchantId: string;
|
|
8763
|
+
merchant_number: string;
|
|
8764
|
+
merchant_location: string;
|
|
8765
|
+
};
|
|
8766
|
+
externalCardId: string;
|
|
8767
|
+
internalClearingId: string;
|
|
8768
|
+
internalAuthId: string;
|
|
8769
|
+
externalClearingId: string;
|
|
8770
|
+
requestedAt: string;
|
|
8771
|
+
batchDate: string;
|
|
8772
|
+
batchIdentifier: string;
|
|
8773
|
+
mcSequenceNumber: number;
|
|
8774
|
+
mcSequenceCount: number;
|
|
8775
|
+
completedInternalClearingId: number;
|
|
8776
|
+
interchangeFeeAmount: number;
|
|
8777
|
+
}, {
|
|
8778
|
+
type: string;
|
|
8779
|
+
status: string;
|
|
8780
|
+
id: number;
|
|
8781
|
+
currency: string;
|
|
8782
|
+
amount: number;
|
|
8783
|
+
createdAt: string;
|
|
8784
|
+
clientId: number;
|
|
8785
|
+
accountNumber: string;
|
|
8786
|
+
firstName: string;
|
|
8787
|
+
lastName: string;
|
|
8788
|
+
cardToken: string;
|
|
8789
|
+
network: string;
|
|
8790
|
+
externalAuthId: string;
|
|
8791
|
+
externalOriginalAuthId: string;
|
|
8792
|
+
merchant: {
|
|
8793
|
+
description: string;
|
|
8794
|
+
mcc: string;
|
|
8795
|
+
merchantId: string;
|
|
8796
|
+
merchant_number: string;
|
|
8797
|
+
merchant_location: string;
|
|
8798
|
+
};
|
|
8799
|
+
externalCardId: string;
|
|
8800
|
+
internalClearingId: string;
|
|
8801
|
+
internalAuthId: string;
|
|
8802
|
+
externalClearingId: string;
|
|
8803
|
+
requestedAt: string;
|
|
8804
|
+
batchDate: string;
|
|
8805
|
+
batchIdentifier: string;
|
|
8806
|
+
mcSequenceNumber: number;
|
|
8807
|
+
mcSequenceCount: number;
|
|
8808
|
+
completedInternalClearingId: number;
|
|
8809
|
+
interchangeFeeAmount: number;
|
|
8810
|
+
}>;
|
|
8811
|
+
declare const GetCardSettlementsRequestSchema: z.ZodObject<{
|
|
8812
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
8813
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
8814
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
8815
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
8816
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
8817
|
+
status: z.ZodOptional<z.ZodEnum<["COMPLETED", "REJECTED", "PENDING"]>>;
|
|
8818
|
+
internalClearingId: z.ZodOptional<z.ZodString>;
|
|
8819
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
8820
|
+
sortOrder: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
8821
|
+
isCardSettlementOnly: z.ZodOptional<z.ZodBoolean>;
|
|
8822
|
+
}, "strip", z.ZodTypeAny, {
|
|
8823
|
+
status?: "COMPLETED" | "REJECTED" | "PENDING" | undefined;
|
|
8824
|
+
dateFormat?: string | undefined;
|
|
8825
|
+
orderBy?: string | undefined;
|
|
8826
|
+
sortOrder?: "asc" | "desc" | undefined;
|
|
8827
|
+
limit?: number | undefined;
|
|
8828
|
+
offset?: number | undefined;
|
|
8829
|
+
startDate?: string | undefined;
|
|
8830
|
+
endDate?: string | undefined;
|
|
8831
|
+
internalClearingId?: string | undefined;
|
|
8832
|
+
isCardSettlementOnly?: boolean | undefined;
|
|
8833
|
+
}, {
|
|
8834
|
+
status?: "COMPLETED" | "REJECTED" | "PENDING" | undefined;
|
|
8835
|
+
dateFormat?: string | undefined;
|
|
8836
|
+
orderBy?: string | undefined;
|
|
8837
|
+
sortOrder?: "asc" | "desc" | undefined;
|
|
8838
|
+
limit?: number | undefined;
|
|
8839
|
+
offset?: number | undefined;
|
|
8840
|
+
startDate?: string | undefined;
|
|
8841
|
+
endDate?: string | undefined;
|
|
8842
|
+
internalClearingId?: string | undefined;
|
|
8843
|
+
isCardSettlementOnly?: boolean | undefined;
|
|
8844
|
+
}>;
|
|
8845
|
+
declare const GetCardSettlementsResponseSchema: z.ZodObject<{
|
|
8846
|
+
totalFilteredRecords: z.ZodNumber;
|
|
8847
|
+
pageItems: z.ZodArray<z.ZodObject<{
|
|
8848
|
+
clientId: z.ZodNumber;
|
|
8849
|
+
firstName: z.ZodString;
|
|
8850
|
+
lastName: z.ZodString;
|
|
8851
|
+
accountNumber: z.ZodString;
|
|
8852
|
+
id: z.ZodNumber;
|
|
8853
|
+
type: z.ZodString;
|
|
8854
|
+
internalClearingId: z.ZodString;
|
|
8855
|
+
internalAuthId: z.ZodString;
|
|
8856
|
+
externalClearingId: z.ZodString;
|
|
8857
|
+
externalAuthId: z.ZodString;
|
|
8858
|
+
externalOriginalAuthId: z.ZodString;
|
|
8859
|
+
externalCardId: z.ZodString;
|
|
8860
|
+
cardToken: z.ZodString;
|
|
8861
|
+
merchant: z.ZodObject<{
|
|
8862
|
+
merchant_number: z.ZodString;
|
|
8863
|
+
merchantId: z.ZodString;
|
|
8864
|
+
merchant_location: z.ZodString;
|
|
8865
|
+
mcc: z.ZodString;
|
|
8866
|
+
description: z.ZodString;
|
|
8867
|
+
}, "strip", z.ZodTypeAny, {
|
|
8868
|
+
description: string;
|
|
8869
|
+
mcc: string;
|
|
8870
|
+
merchantId: string;
|
|
8871
|
+
merchant_number: string;
|
|
8872
|
+
merchant_location: string;
|
|
8873
|
+
}, {
|
|
8874
|
+
description: string;
|
|
8875
|
+
mcc: string;
|
|
8876
|
+
merchantId: string;
|
|
8877
|
+
merchant_number: string;
|
|
8878
|
+
merchant_location: string;
|
|
8879
|
+
}>;
|
|
8880
|
+
amount: z.ZodNumber;
|
|
8881
|
+
network: z.ZodString;
|
|
8882
|
+
currency: z.ZodString;
|
|
8883
|
+
requestedAt: z.ZodString;
|
|
8884
|
+
createdAt: z.ZodString;
|
|
8885
|
+
status: z.ZodString;
|
|
8886
|
+
batchDate: z.ZodString;
|
|
8887
|
+
batchIdentifier: z.ZodString;
|
|
8888
|
+
mcSequenceNumber: z.ZodNumber;
|
|
8889
|
+
mcSequenceCount: z.ZodNumber;
|
|
8890
|
+
completedInternalClearingId: z.ZodNumber;
|
|
8891
|
+
interchangeFeeAmount: z.ZodNumber;
|
|
8892
|
+
}, "strip", z.ZodTypeAny, {
|
|
8893
|
+
type: string;
|
|
8894
|
+
status: string;
|
|
8895
|
+
id: number;
|
|
8896
|
+
currency: string;
|
|
8897
|
+
amount: number;
|
|
8898
|
+
createdAt: string;
|
|
8899
|
+
clientId: number;
|
|
8900
|
+
accountNumber: string;
|
|
8901
|
+
firstName: string;
|
|
8902
|
+
lastName: string;
|
|
8903
|
+
cardToken: string;
|
|
8904
|
+
network: string;
|
|
8905
|
+
externalAuthId: string;
|
|
8906
|
+
externalOriginalAuthId: string;
|
|
8907
|
+
merchant: {
|
|
8908
|
+
description: string;
|
|
8909
|
+
mcc: string;
|
|
8910
|
+
merchantId: string;
|
|
8911
|
+
merchant_number: string;
|
|
8912
|
+
merchant_location: string;
|
|
8913
|
+
};
|
|
8914
|
+
externalCardId: string;
|
|
8915
|
+
internalClearingId: string;
|
|
8916
|
+
internalAuthId: string;
|
|
8917
|
+
externalClearingId: string;
|
|
8918
|
+
requestedAt: string;
|
|
8919
|
+
batchDate: string;
|
|
8920
|
+
batchIdentifier: string;
|
|
8921
|
+
mcSequenceNumber: number;
|
|
8922
|
+
mcSequenceCount: number;
|
|
8923
|
+
completedInternalClearingId: number;
|
|
8924
|
+
interchangeFeeAmount: number;
|
|
8925
|
+
}, {
|
|
8926
|
+
type: string;
|
|
8927
|
+
status: string;
|
|
8928
|
+
id: number;
|
|
8929
|
+
currency: string;
|
|
8930
|
+
amount: number;
|
|
8931
|
+
createdAt: string;
|
|
8932
|
+
clientId: number;
|
|
8933
|
+
accountNumber: string;
|
|
8934
|
+
firstName: string;
|
|
8935
|
+
lastName: string;
|
|
8936
|
+
cardToken: string;
|
|
8937
|
+
network: string;
|
|
8938
|
+
externalAuthId: string;
|
|
8939
|
+
externalOriginalAuthId: string;
|
|
8940
|
+
merchant: {
|
|
8941
|
+
description: string;
|
|
8942
|
+
mcc: string;
|
|
8943
|
+
merchantId: string;
|
|
8944
|
+
merchant_number: string;
|
|
8945
|
+
merchant_location: string;
|
|
8946
|
+
};
|
|
8947
|
+
externalCardId: string;
|
|
8948
|
+
internalClearingId: string;
|
|
8949
|
+
internalAuthId: string;
|
|
8950
|
+
externalClearingId: string;
|
|
8951
|
+
requestedAt: string;
|
|
8952
|
+
batchDate: string;
|
|
8953
|
+
batchIdentifier: string;
|
|
8954
|
+
mcSequenceNumber: number;
|
|
8955
|
+
mcSequenceCount: number;
|
|
8956
|
+
completedInternalClearingId: number;
|
|
8957
|
+
interchangeFeeAmount: number;
|
|
8958
|
+
}>, "many">;
|
|
8959
|
+
}, "strip", z.ZodTypeAny, {
|
|
8960
|
+
totalFilteredRecords: number;
|
|
8961
|
+
pageItems: {
|
|
8962
|
+
type: string;
|
|
8963
|
+
status: string;
|
|
8964
|
+
id: number;
|
|
8965
|
+
currency: string;
|
|
8966
|
+
amount: number;
|
|
8967
|
+
createdAt: string;
|
|
8968
|
+
clientId: number;
|
|
8969
|
+
accountNumber: string;
|
|
8970
|
+
firstName: string;
|
|
8971
|
+
lastName: string;
|
|
8972
|
+
cardToken: string;
|
|
8973
|
+
network: string;
|
|
8974
|
+
externalAuthId: string;
|
|
8975
|
+
externalOriginalAuthId: string;
|
|
8976
|
+
merchant: {
|
|
8977
|
+
description: string;
|
|
8978
|
+
mcc: string;
|
|
8979
|
+
merchantId: string;
|
|
8980
|
+
merchant_number: string;
|
|
8981
|
+
merchant_location: string;
|
|
8982
|
+
};
|
|
8983
|
+
externalCardId: string;
|
|
8984
|
+
internalClearingId: string;
|
|
8985
|
+
internalAuthId: string;
|
|
8986
|
+
externalClearingId: string;
|
|
8987
|
+
requestedAt: string;
|
|
8988
|
+
batchDate: string;
|
|
8989
|
+
batchIdentifier: string;
|
|
8990
|
+
mcSequenceNumber: number;
|
|
8991
|
+
mcSequenceCount: number;
|
|
8992
|
+
completedInternalClearingId: number;
|
|
8993
|
+
interchangeFeeAmount: number;
|
|
8994
|
+
}[];
|
|
8995
|
+
}, {
|
|
8996
|
+
totalFilteredRecords: number;
|
|
8997
|
+
pageItems: {
|
|
8998
|
+
type: string;
|
|
8999
|
+
status: string;
|
|
9000
|
+
id: number;
|
|
9001
|
+
currency: string;
|
|
9002
|
+
amount: number;
|
|
9003
|
+
createdAt: string;
|
|
9004
|
+
clientId: number;
|
|
9005
|
+
accountNumber: string;
|
|
9006
|
+
firstName: string;
|
|
9007
|
+
lastName: string;
|
|
9008
|
+
cardToken: string;
|
|
9009
|
+
network: string;
|
|
9010
|
+
externalAuthId: string;
|
|
9011
|
+
externalOriginalAuthId: string;
|
|
9012
|
+
merchant: {
|
|
9013
|
+
description: string;
|
|
9014
|
+
mcc: string;
|
|
9015
|
+
merchantId: string;
|
|
9016
|
+
merchant_number: string;
|
|
9017
|
+
merchant_location: string;
|
|
9018
|
+
};
|
|
9019
|
+
externalCardId: string;
|
|
9020
|
+
internalClearingId: string;
|
|
9021
|
+
internalAuthId: string;
|
|
9022
|
+
externalClearingId: string;
|
|
9023
|
+
requestedAt: string;
|
|
9024
|
+
batchDate: string;
|
|
9025
|
+
batchIdentifier: string;
|
|
9026
|
+
mcSequenceNumber: number;
|
|
9027
|
+
mcSequenceCount: number;
|
|
9028
|
+
completedInternalClearingId: number;
|
|
9029
|
+
interchangeFeeAmount: number;
|
|
9030
|
+
}[];
|
|
9031
|
+
}>;
|
|
9032
|
+
declare const GetCardSettlementByIdRequestSchema: z.ZodObject<{
|
|
9033
|
+
settlementId: z.ZodNumber;
|
|
9034
|
+
}, "strip", z.ZodTypeAny, {
|
|
9035
|
+
settlementId: number;
|
|
9036
|
+
}, {
|
|
9037
|
+
settlementId: number;
|
|
9038
|
+
}>;
|
|
9039
|
+
type CardSettlement = z.infer<typeof CardSettlementSchema>;
|
|
9040
|
+
type GetCardSettlementsRequest = z.infer<typeof GetCardSettlementsRequestSchema>;
|
|
9041
|
+
type GetCardSettlementsResponse = z.infer<typeof GetCardSettlementsResponseSchema>;
|
|
9042
|
+
type GetCardSettlementByIdRequest = z.infer<typeof GetCardSettlementByIdRequestSchema>;
|
|
8699
9043
|
|
|
8700
9044
|
/**
|
|
8701
9045
|
* Get all cards for a client
|
|
@@ -9028,6 +9372,116 @@ declare const UpdateCardLimit: (cardId: number, params: CardLimitRequest) => Com
|
|
|
9028
9372
|
declare const GetCardAuthorizationById: (params: GetCardAuthorizationByIdRequest) => Command<{
|
|
9029
9373
|
params: GetCardAuthorizationByIdRequest;
|
|
9030
9374
|
}, CardAuthorizationDetails>;
|
|
9375
|
+
/**
|
|
9376
|
+
* Get Card Settlements
|
|
9377
|
+
*
|
|
9378
|
+
* Retrieves a list of all card settlements with comprehensive filtering, pagination, and sorting options.
|
|
9379
|
+
*
|
|
9380
|
+
* A card settlement is the process where a card transaction is finalized and funds are
|
|
9381
|
+
* officially transferred from the cardholder's account to the merchant's account.
|
|
9382
|
+
*
|
|
9383
|
+
* @param params - Request parameters for filtering and pagination
|
|
9384
|
+
* @returns Command object that executes the API request
|
|
9385
|
+
*
|
|
9386
|
+
* @example
|
|
9387
|
+
* ```typescript
|
|
9388
|
+
* // Get settlements within a date range
|
|
9389
|
+
* const command = GetCardSettlements({
|
|
9390
|
+
* startDate: '10 May 2024',
|
|
9391
|
+
* endDate: '10 June 2024',
|
|
9392
|
+
* dateFormat: 'dd MM yyyy',
|
|
9393
|
+
* limit: 15,
|
|
9394
|
+
* status: 'COMPLETED',
|
|
9395
|
+
* orderBy: 'created_at',
|
|
9396
|
+
* sortOrder: 'desc'
|
|
9397
|
+
* });
|
|
9398
|
+
* const result = await client.request(command);
|
|
9399
|
+
* console.log(`Total settlements: ${result.totalFilteredRecords}`);
|
|
9400
|
+
* console.log(`Settlements:`, result.pageItems);
|
|
9401
|
+
* ```
|
|
9402
|
+
*/
|
|
9403
|
+
declare const GetCardSettlements: (params: GetCardSettlementsRequest) => Command<{
|
|
9404
|
+
params: GetCardSettlementsRequest;
|
|
9405
|
+
}, GetCardSettlementsResponse>;
|
|
9406
|
+
/**
|
|
9407
|
+
* Get Card Settlement By Id
|
|
9408
|
+
*
|
|
9409
|
+
* Retrieves detailed information about a specific card settlement by its unique identifier.
|
|
9410
|
+
*
|
|
9411
|
+
* This endpoint allows you to fetch specific information related to a card settlement
|
|
9412
|
+
* based on the settlement ID, including transaction amounts, dates, merchant information,
|
|
9413
|
+
* and transaction status.
|
|
9414
|
+
*
|
|
9415
|
+
* @param params - Request parameters including settlement ID
|
|
9416
|
+
* @returns Command object that executes the API request
|
|
9417
|
+
*
|
|
9418
|
+
* @example
|
|
9419
|
+
* ```typescript
|
|
9420
|
+
* const command = GetCardSettlementById({
|
|
9421
|
+
* settlementId: 4
|
|
9422
|
+
* });
|
|
9423
|
+
* const result = await client.request(command);
|
|
9424
|
+
* console.log(`Settlement ID: ${result.id}`);
|
|
9425
|
+
* console.log(`Status: ${result.status}`);
|
|
9426
|
+
* console.log(`Merchant: ${result.merchant.description}`);
|
|
9427
|
+
* console.log(`Amount: ${result.amount} ${result.currency}`);
|
|
9428
|
+
* ```
|
|
9429
|
+
*/
|
|
9430
|
+
declare const GetCardSettlementById: (params: GetCardSettlementByIdRequest) => Command<{
|
|
9431
|
+
params: GetCardSettlementByIdRequest;
|
|
9432
|
+
}, CardSettlement>;
|
|
9433
|
+
declare const TerminateCard: (cardId: number) => Command<{
|
|
9434
|
+
cardId: number;
|
|
9435
|
+
command: string;
|
|
9436
|
+
}, {
|
|
9437
|
+
id: number;
|
|
9438
|
+
resourceId: number;
|
|
9439
|
+
clientId: number;
|
|
9440
|
+
cardToken: string;
|
|
9441
|
+
}>;
|
|
9442
|
+
declare const SuspendCard: (cardId: number) => Command<{
|
|
9443
|
+
cardId: number;
|
|
9444
|
+
command: string;
|
|
9445
|
+
}, {
|
|
9446
|
+
id: number;
|
|
9447
|
+
resourceId: number;
|
|
9448
|
+
clientId: number;
|
|
9449
|
+
cardToken: string;
|
|
9450
|
+
}>;
|
|
9451
|
+
declare const ActivateCard: (cardId: number) => Command<{
|
|
9452
|
+
cardId: number;
|
|
9453
|
+
command: string;
|
|
9454
|
+
}, {
|
|
9455
|
+
id: number;
|
|
9456
|
+
resourceId: number;
|
|
9457
|
+
clientId: number;
|
|
9458
|
+
cardToken: string;
|
|
9459
|
+
}>;
|
|
9460
|
+
declare const ReactivateCard: (cardId: number) => Command<{
|
|
9461
|
+
cardId: number;
|
|
9462
|
+
command: string;
|
|
9463
|
+
}, {
|
|
9464
|
+
id: number;
|
|
9465
|
+
resourceId: number;
|
|
9466
|
+
clientId: number;
|
|
9467
|
+
cardToken: string;
|
|
9468
|
+
}>;
|
|
9469
|
+
declare const ReplaceCard: (cardId: number, reason: "LOST" | "STOLEN" | "DAMAGED" | "CARD_NOT_RECEIVED") => Command<{
|
|
9470
|
+
cardId: number;
|
|
9471
|
+
reason: string;
|
|
9472
|
+
}, {
|
|
9473
|
+
id: number;
|
|
9474
|
+
resourceId: number;
|
|
9475
|
+
clientId: number;
|
|
9476
|
+
}>;
|
|
9477
|
+
declare const RenewCard: (cardId: number, productId: number) => Command<{
|
|
9478
|
+
cardId: number;
|
|
9479
|
+
productId: number;
|
|
9480
|
+
}, {
|
|
9481
|
+
id: number;
|
|
9482
|
+
resourceId: number;
|
|
9483
|
+
clientId: number;
|
|
9484
|
+
}>;
|
|
9031
9485
|
|
|
9032
9486
|
declare const ClientIdentifierRequestSchema: z$1.ZodObject<{
|
|
9033
9487
|
documentTypeId: z$1.ZodString;
|
|
@@ -14400,4 +14854,4 @@ declare const DeleteFixedDepositAccount: (accountId: number) => Command<{
|
|
|
14400
14854
|
accountId: number;
|
|
14401
14855
|
}, DeleteFixedDepositAccountResponse>;
|
|
14402
14856
|
|
|
14403
|
-
export { ActivatePhysicalCard, AddCardToMobileWallet, ApproveRejectClientDocument, BlockAccount, ChangeCardType, CloseAccount, CreateAccountProduct, CreateAndActivateAccount, CreateCard, CreateCardProduct, CreateClient, CreateClientAddress, CreateClientIdentifier, CreateFixedDepositAccount, CreatePayment, CreateRecipient, CreateTransfer, CustomCreate, CustomGet, CustomUpdate, DeleteAccount, DeleteClient, DeleteClientDocument, DeleteFixedDepositAccount, DeletePayment, DeleteRecipient, DeleteSelfServiceUser, DownloadAccountStatement, EnableDisableConfiguration, EnableSelfServiceAccess, GenerateAccountStatement, GetAccount, GetAccountDocumentsDetails, GetAccountProductById, GetAccountsOfClient, GetAllAccountProducts, GetBankDetailsFromRoutingCode, GetCardAuthorizationById, GetCardAuthorizations, GetCardById, GetCardImageUrl, GetCardProduct, GetCards, GetClient, GetClientAddress, GetClientClassification, GetClients, GetCompletedTransactions, GetConfigurationByName, GetConfigurations, GetFixedDepositAccount, GetPayment, GetPayments, GetPendingTransactions, GetPermittedDocumentTypes, GetRecentTransactions, GetRecipient, GetRecipients, GetStatusOfVerifyClient, GetTransactionById, GetTransfer, GetTransfers, GetUserDetail, GraphQL, HoldAmount, ListCardProduct, ListClientDocument, OrderPhysicalCard, ScheduleAccountClosure, SetClientAddressStatus, SetPIN, SwitchClientClassification, UpdateAccount, UpdateAccountProduct, UpdateCardFeature, UpdateCardLimit, UpdateCardProduct, UpdateClient, UpdateClientAddress, UpdateClientIdentifier, UpdateFixedDepositAccount, UpdatePayment, UpdateRecipientGQL as UpdateRecipient, UpdateSelfServiceUser, UploadClientIdentifierDocument, VerifyWithActivateClients };
|
|
14857
|
+
export { ActivateCard, ActivatePhysicalCard, AddCardToMobileWallet, ApproveRejectClientDocument, BlockAccount, ChangeCardType, CloseAccount, CreateAccountProduct, CreateAndActivateAccount, CreateCard, CreateCardProduct, CreateClient, CreateClientAddress, CreateClientIdentifier, CreateFixedDepositAccount, CreatePayment, CreateRecipient, CreateTransfer, CustomCreate, CustomGet, CustomUpdate, DeleteAccount, DeleteClient, DeleteClientDocument, DeleteFixedDepositAccount, DeletePayment, DeleteRecipient, DeleteSelfServiceUser, DownloadAccountStatement, EnableDisableConfiguration, EnableSelfServiceAccess, GenerateAccountStatement, GetAccount, GetAccountDocumentsDetails, GetAccountProductById, GetAccountsOfClient, GetAllAccountProducts, GetBankDetailsFromRoutingCode, GetCardAuthorizationById, GetCardAuthorizations, GetCardById, GetCardImageUrl, GetCardProduct, GetCardSettlementById, GetCardSettlements, GetCards, GetClient, GetClientAddress, GetClientClassification, GetClients, GetCompletedTransactions, GetConfigurationByName, GetConfigurations, GetFixedDepositAccount, GetPayment, GetPayments, GetPendingTransactions, GetPermittedDocumentTypes, GetRecentTransactions, GetRecipient, GetRecipients, GetStatusOfVerifyClient, GetTransactionById, GetTransfer, GetTransfers, GetUserDetail, GraphQL, HoldAmount, ListCardProduct, ListClientDocument, OrderPhysicalCard, ReactivateCard, RenewCard, ReplaceCard, ScheduleAccountClosure, SetClientAddressStatus, SetPIN, SuspendCard, SwitchClientClassification, TerminateCard, UpdateAccount, UpdateAccountProduct, UpdateCardFeature, UpdateCardLimit, UpdateCardProduct, UpdateClient, UpdateClientAddress, UpdateClientIdentifier, UpdateFixedDepositAccount, UpdatePayment, UpdateRecipientGQL as UpdateRecipient, UpdateSelfServiceUser, UploadClientIdentifierDocument, VerifyWithActivateClients };
|