monime-package 1.1.3 → 1.1.4
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 +227 -235
- package/dist/index.d.mts +207 -166
- package/dist/index.d.ts +207 -166
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
declare class MonimeError extends Error {
|
|
2
|
+
readonly status?: number;
|
|
3
|
+
readonly requestId?: string;
|
|
4
|
+
readonly details?: unknown;
|
|
5
|
+
constructor(message: string, status?: number, requestId?: string, details?: unknown);
|
|
6
|
+
}
|
|
7
|
+
declare class MonimeAuthenticationError extends MonimeError {
|
|
8
|
+
constructor(message?: string);
|
|
9
|
+
}
|
|
10
|
+
declare class MonimeValidationError extends MonimeError {
|
|
11
|
+
constructor(message: string, details?: unknown);
|
|
12
|
+
}
|
|
13
|
+
|
|
1
14
|
interface ClientConfig {
|
|
2
15
|
monimeSpaceId: string;
|
|
3
16
|
accessToken: string;
|
|
@@ -10,10 +23,10 @@ interface Pagination {
|
|
|
10
23
|
interface Result<T> {
|
|
11
24
|
data?: T;
|
|
12
25
|
success: boolean;
|
|
13
|
-
error?: Error;
|
|
26
|
+
error?: Error | MonimeError;
|
|
14
27
|
}
|
|
15
28
|
|
|
16
|
-
interface
|
|
29
|
+
interface ListCheckoutsResponse {
|
|
17
30
|
result: CheckoutSession[];
|
|
18
31
|
Pagination: Pagination;
|
|
19
32
|
}
|
|
@@ -34,7 +47,7 @@ interface CheckoutSession {
|
|
|
34
47
|
createTime: string;
|
|
35
48
|
ownershipGraph: OwnershipGraph$4;
|
|
36
49
|
}
|
|
37
|
-
interface
|
|
50
|
+
interface RetrieveCheckoutResponse {
|
|
38
51
|
id: string;
|
|
39
52
|
status: string;
|
|
40
53
|
name: string;
|
|
@@ -51,7 +64,7 @@ interface OneCheckout {
|
|
|
51
64
|
createTime: string;
|
|
52
65
|
ownershipGraph: OwnershipGraph$4;
|
|
53
66
|
}
|
|
54
|
-
interface
|
|
67
|
+
interface CreateCheckoutResponse {
|
|
55
68
|
id: string;
|
|
56
69
|
status: string;
|
|
57
70
|
name: string;
|
|
@@ -165,14 +178,7 @@ interface Price {
|
|
|
165
178
|
value: number;
|
|
166
179
|
}
|
|
167
180
|
|
|
168
|
-
|
|
169
|
-
create: (name: string, amount: number, quantity: number, successUrl: string, cancelUrl: string, description?: string, financialAccountId?: string, primaryColor?: string, images?: string[]) => Promise<Result<CreateCheckout>>;
|
|
170
|
-
get: () => Promise<Result<AllCheckout>>;
|
|
171
|
-
getOne: (checkoutId: string) => Promise<Result<OneCheckout>>;
|
|
172
|
-
delete: (checkoutId: string) => Promise<Result<OneCheckout>>;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
interface CreateFinancialAccount {
|
|
181
|
+
interface CreateFinancialAccountResponse {
|
|
176
182
|
id: string;
|
|
177
183
|
uvan: string;
|
|
178
184
|
name: string;
|
|
@@ -183,7 +189,7 @@ interface CreateFinancialAccount {
|
|
|
183
189
|
createTime: string;
|
|
184
190
|
updateTime: string;
|
|
185
191
|
}
|
|
186
|
-
interface
|
|
192
|
+
interface RetrieveFinancialAccountResponse {
|
|
187
193
|
id: string;
|
|
188
194
|
uvan: string;
|
|
189
195
|
name: string;
|
|
@@ -194,7 +200,7 @@ interface GetFinancialAccount {
|
|
|
194
200
|
createTime: string;
|
|
195
201
|
updateTime: string;
|
|
196
202
|
}
|
|
197
|
-
interface
|
|
203
|
+
interface ListFinancialAccountsResponse {
|
|
198
204
|
result: FinancialAccount$1[];
|
|
199
205
|
pagination: Pagination;
|
|
200
206
|
}
|
|
@@ -231,67 +237,7 @@ interface Available {
|
|
|
231
237
|
value: number;
|
|
232
238
|
}
|
|
233
239
|
|
|
234
|
-
interface
|
|
235
|
-
canPayTo?: boolean;
|
|
236
|
-
canPayFrom?: boolean;
|
|
237
|
-
canVerifyAccount?: boolean;
|
|
238
|
-
schemes?: string[];
|
|
239
|
-
metadata: Record<string, unknown>;
|
|
240
|
-
}
|
|
241
|
-
interface BankFeatureSet {
|
|
242
|
-
payout: BankFeature;
|
|
243
|
-
payment: BankFeature;
|
|
244
|
-
kycVerification: BankFeature;
|
|
245
|
-
}
|
|
246
|
-
interface Bank {
|
|
247
|
-
providerId: string;
|
|
248
|
-
name: string;
|
|
249
|
-
country: string;
|
|
250
|
-
status: {
|
|
251
|
-
active: boolean;
|
|
252
|
-
};
|
|
253
|
-
featureSet: BankFeatureSet;
|
|
254
|
-
createTime: string;
|
|
255
|
-
updateTime: string;
|
|
256
|
-
}
|
|
257
|
-
interface ListBanksResponse {
|
|
258
|
-
result: Bank[];
|
|
259
|
-
pagination: Pagination;
|
|
260
|
-
}
|
|
261
|
-
interface GetBankResponse extends Bank {
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
interface MomoFeature {
|
|
265
|
-
canPayTo?: boolean;
|
|
266
|
-
canPayFrom?: boolean;
|
|
267
|
-
canVerifyAccount?: boolean;
|
|
268
|
-
schemes?: string[];
|
|
269
|
-
metadata: Record<string, unknown>;
|
|
270
|
-
}
|
|
271
|
-
interface MomoFeatureSet {
|
|
272
|
-
payout: MomoFeature;
|
|
273
|
-
payment: MomoFeature;
|
|
274
|
-
kycVerification: MomoFeature;
|
|
275
|
-
}
|
|
276
|
-
interface Momo {
|
|
277
|
-
providerId: string;
|
|
278
|
-
name: string;
|
|
279
|
-
country: string;
|
|
280
|
-
status: {
|
|
281
|
-
active: boolean;
|
|
282
|
-
};
|
|
283
|
-
featureSet: MomoFeatureSet;
|
|
284
|
-
createTime: string;
|
|
285
|
-
updateTime: string;
|
|
286
|
-
}
|
|
287
|
-
interface ListMomosResponse {
|
|
288
|
-
result: Momo[];
|
|
289
|
-
pagination: Pagination;
|
|
290
|
-
}
|
|
291
|
-
interface GetMomoResponse extends Momo {
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
interface GetTransaction {
|
|
240
|
+
interface RetrieveTransactionResponse {
|
|
295
241
|
id: string;
|
|
296
242
|
type: string;
|
|
297
243
|
amount: Amount$3;
|
|
@@ -302,7 +248,7 @@ interface GetTransaction {
|
|
|
302
248
|
originatingFee: OriginatingFee;
|
|
303
249
|
ownershipGraph: OwnershipGraph$3;
|
|
304
250
|
}
|
|
305
|
-
interface
|
|
251
|
+
interface ListTransactionsResponse {
|
|
306
252
|
result: Transaction[];
|
|
307
253
|
pagination: Pagination;
|
|
308
254
|
}
|
|
@@ -378,7 +324,7 @@ interface Amount$3 {
|
|
|
378
324
|
value: number;
|
|
379
325
|
}
|
|
380
326
|
|
|
381
|
-
interface
|
|
327
|
+
interface CreateInternalTransferResponse {
|
|
382
328
|
id: string;
|
|
383
329
|
status: string;
|
|
384
330
|
amount: Amount$2;
|
|
@@ -391,7 +337,7 @@ interface CreateInternalTransfer {
|
|
|
391
337
|
createTime: string;
|
|
392
338
|
updateTime: string;
|
|
393
339
|
}
|
|
394
|
-
interface
|
|
340
|
+
interface ListInternalTransfersResponse {
|
|
395
341
|
result: Transfer[];
|
|
396
342
|
pagination: Pagination;
|
|
397
343
|
}
|
|
@@ -408,7 +354,7 @@ interface Transfer {
|
|
|
408
354
|
createTime: string;
|
|
409
355
|
updateTime: string;
|
|
410
356
|
}
|
|
411
|
-
interface
|
|
357
|
+
interface RetrieveInternalTransferResponse {
|
|
412
358
|
id: string;
|
|
413
359
|
status: string;
|
|
414
360
|
amount: Amount$2;
|
|
@@ -524,16 +470,16 @@ interface Payment {
|
|
|
524
470
|
};
|
|
525
471
|
metadata: Record<string, unknown> | null;
|
|
526
472
|
}
|
|
527
|
-
interface
|
|
473
|
+
interface RetrievePaymentResponse extends Payment {
|
|
528
474
|
}
|
|
529
|
-
interface
|
|
475
|
+
interface ListPaymentsResponse {
|
|
530
476
|
result: Payment[];
|
|
531
477
|
pagination: Pagination;
|
|
532
478
|
}
|
|
533
|
-
interface
|
|
479
|
+
interface UpdatePaymentResponse extends Payment {
|
|
534
480
|
}
|
|
535
481
|
|
|
536
|
-
interface
|
|
482
|
+
interface CreatePaymentCodeResponse {
|
|
537
483
|
id: string;
|
|
538
484
|
mode: string;
|
|
539
485
|
status: string;
|
|
@@ -564,7 +510,7 @@ interface CreatePaymentCode {
|
|
|
564
510
|
updateTime: string;
|
|
565
511
|
ownershipGraph: OwnershipGraph$1;
|
|
566
512
|
}
|
|
567
|
-
interface
|
|
513
|
+
interface ListPaymentCodesResponse {
|
|
568
514
|
result: PaymentCode[];
|
|
569
515
|
pagination: Pagination;
|
|
570
516
|
}
|
|
@@ -588,7 +534,7 @@ interface PaymentCode {
|
|
|
588
534
|
updateTime: string;
|
|
589
535
|
ownershipGraph: OwnershipGraph$1;
|
|
590
536
|
}
|
|
591
|
-
interface
|
|
537
|
+
interface RetrievePaymentCodeResponse {
|
|
592
538
|
id: string;
|
|
593
539
|
mode: string;
|
|
594
540
|
status: string;
|
|
@@ -719,7 +665,7 @@ type DestinationOption = {
|
|
|
719
665
|
providerId: "w01" | "w02";
|
|
720
666
|
walletId: string;
|
|
721
667
|
};
|
|
722
|
-
interface
|
|
668
|
+
interface CreatePayoutResponse {
|
|
723
669
|
id: string;
|
|
724
670
|
status: string;
|
|
725
671
|
amount: Amount;
|
|
@@ -731,7 +677,7 @@ interface CreatePayout {
|
|
|
731
677
|
updateTime: string;
|
|
732
678
|
ownershipGraph: OwnershipGraph;
|
|
733
679
|
}
|
|
734
|
-
interface
|
|
680
|
+
interface ListPayoutsResponse {
|
|
735
681
|
result: Payout[];
|
|
736
682
|
pagination: Pagination;
|
|
737
683
|
}
|
|
@@ -747,7 +693,7 @@ interface Payout {
|
|
|
747
693
|
updateTime: string;
|
|
748
694
|
ownershipGraph: OwnershipGraph;
|
|
749
695
|
}
|
|
750
|
-
interface
|
|
696
|
+
interface RetrievePayoutResponse {
|
|
751
697
|
id: string;
|
|
752
698
|
status: string;
|
|
753
699
|
amount: Amount;
|
|
@@ -942,104 +888,199 @@ interface UpdateWebhookRequest {
|
|
|
942
888
|
interface UpdateWebhookResponse extends Webhook {
|
|
943
889
|
}
|
|
944
890
|
|
|
945
|
-
|
|
891
|
+
interface BankFeature {
|
|
892
|
+
canPayTo?: boolean;
|
|
893
|
+
canPayFrom?: boolean;
|
|
894
|
+
canVerifyAccount?: boolean;
|
|
895
|
+
schemes?: string[];
|
|
896
|
+
metadata: Record<string, unknown>;
|
|
897
|
+
}
|
|
898
|
+
interface BankFeatureSet {
|
|
899
|
+
payout: BankFeature;
|
|
900
|
+
payment: BankFeature;
|
|
901
|
+
kycVerification: BankFeature;
|
|
902
|
+
}
|
|
903
|
+
interface Bank {
|
|
904
|
+
providerId: string;
|
|
905
|
+
name: string;
|
|
906
|
+
country: string;
|
|
907
|
+
status: {
|
|
908
|
+
active: boolean;
|
|
909
|
+
};
|
|
910
|
+
featureSet: BankFeatureSet;
|
|
911
|
+
createTime: string;
|
|
912
|
+
updateTime: string;
|
|
913
|
+
}
|
|
914
|
+
interface ListBanksResponse {
|
|
915
|
+
result: Bank[];
|
|
916
|
+
pagination: Pagination;
|
|
917
|
+
}
|
|
918
|
+
interface RetrieveBankResponse extends Bank {
|
|
919
|
+
}
|
|
946
920
|
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
921
|
+
interface MomoFeature {
|
|
922
|
+
canPayTo?: boolean;
|
|
923
|
+
canPayFrom?: boolean;
|
|
924
|
+
canVerifyAccount?: boolean;
|
|
925
|
+
schemes?: string[];
|
|
926
|
+
metadata: Record<string, unknown>;
|
|
927
|
+
}
|
|
928
|
+
interface MomoFeatureSet {
|
|
929
|
+
payout: MomoFeature;
|
|
930
|
+
payment: MomoFeature;
|
|
931
|
+
kycVerification: MomoFeature;
|
|
932
|
+
}
|
|
933
|
+
interface Momo {
|
|
934
|
+
providerId: string;
|
|
935
|
+
name: string;
|
|
936
|
+
country: string;
|
|
937
|
+
status: {
|
|
938
|
+
active: boolean;
|
|
939
|
+
};
|
|
940
|
+
featureSet: MomoFeatureSet;
|
|
941
|
+
createTime: string;
|
|
942
|
+
updateTime: string;
|
|
943
|
+
}
|
|
944
|
+
interface ListMomosResponse {
|
|
945
|
+
result: Momo[];
|
|
946
|
+
pagination: Pagination;
|
|
947
|
+
}
|
|
948
|
+
interface RetrieveMomoResponse extends Momo {
|
|
949
|
+
}
|
|
952
950
|
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
951
|
+
interface RequestOptions {
|
|
952
|
+
path: string;
|
|
953
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
954
|
+
body?: unknown;
|
|
955
|
+
idempotencyKey?: string;
|
|
956
|
+
}
|
|
957
|
+
declare class HttpClient {
|
|
958
|
+
private readonly baseUrl;
|
|
959
|
+
protected readonly config: ClientConfig;
|
|
960
|
+
constructor(config: ClientConfig);
|
|
961
|
+
private getHeaders;
|
|
962
|
+
protected request<T>(options: RequestOptions): Promise<Result<T>>;
|
|
963
|
+
}
|
|
957
964
|
|
|
958
|
-
declare
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
965
|
+
declare class CheckoutSessionAPI extends HttpClient {
|
|
966
|
+
private readonly path;
|
|
967
|
+
create(name: string, amount: number, quantity: number, successUrl: string, cancelUrl: string, options?: {
|
|
968
|
+
description?: string;
|
|
969
|
+
financialAccountId?: string;
|
|
970
|
+
primaryColor?: string;
|
|
971
|
+
images?: string[];
|
|
972
|
+
}): Promise<Result<CreateCheckoutResponse>>;
|
|
973
|
+
list(): Promise<Result<ListCheckoutsResponse>>;
|
|
974
|
+
retrieve(checkoutId: string): Promise<Result<RetrieveCheckoutResponse>>;
|
|
975
|
+
delete(checkoutId: string): Promise<Result<void>>;
|
|
976
|
+
}
|
|
962
977
|
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
978
|
+
type Currency = "USD" | "SLE";
|
|
979
|
+
declare class FinancialAccountAPI extends HttpClient {
|
|
980
|
+
private readonly path;
|
|
981
|
+
create(accountName: string, currency: Currency): Promise<Result<CreateFinancialAccountResponse>>;
|
|
982
|
+
retrieve(financialAccountId: string): Promise<Result<RetrieveFinancialAccountResponse>>;
|
|
983
|
+
list(): Promise<Result<ListFinancialAccountsResponse>>;
|
|
984
|
+
}
|
|
967
985
|
|
|
968
|
-
declare
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
};
|
|
986
|
+
declare class BankAPI extends HttpClient {
|
|
987
|
+
private readonly path;
|
|
988
|
+
retrieve(providerId: string): Promise<Result<RetrieveBankResponse>>;
|
|
989
|
+
list(): Promise<Result<ListBanksResponse>>;
|
|
990
|
+
}
|
|
974
991
|
|
|
975
|
-
declare
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
}
|
|
992
|
+
declare class MomoAPI extends HttpClient {
|
|
993
|
+
private readonly path;
|
|
994
|
+
retrieve(providerId: string): Promise<Result<RetrieveMomoResponse>>;
|
|
995
|
+
list(): Promise<Result<ListMomosResponse>>;
|
|
996
|
+
}
|
|
980
997
|
|
|
981
|
-
declare
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
};
|
|
998
|
+
declare class FinancialTransactionAPI extends HttpClient {
|
|
999
|
+
private readonly path;
|
|
1000
|
+
list(): Promise<Result<ListTransactionsResponse>>;
|
|
1001
|
+
retrieve(transactionId: string): Promise<Result<RetrieveTransactionResponse>>;
|
|
1002
|
+
}
|
|
987
1003
|
|
|
988
|
-
declare
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1004
|
+
declare class InternalTransferAPI extends HttpClient {
|
|
1005
|
+
private readonly path;
|
|
1006
|
+
create(sourceAccount: string, destinationAccount: string, amount: number): Promise<Result<CreateInternalTransferResponse>>;
|
|
1007
|
+
list(): Promise<Result<ListInternalTransfersResponse>>;
|
|
1008
|
+
retrieve(internalTransferId: string): Promise<Result<RetrieveInternalTransferResponse>>;
|
|
1009
|
+
delete(internalTransferId: string): Promise<Result<void>>;
|
|
1010
|
+
}
|
|
994
1011
|
|
|
995
|
-
declare
|
|
996
|
-
|
|
997
|
-
|
|
1012
|
+
declare class PaymentAPI extends HttpClient {
|
|
1013
|
+
private readonly path;
|
|
1014
|
+
retrieve(paymentId: string): Promise<Result<RetrievePaymentResponse>>;
|
|
1015
|
+
list(): Promise<Result<ListPaymentsResponse>>;
|
|
1016
|
+
update(paymentId: string, body: Record<string, unknown>): Promise<Result<UpdatePaymentResponse>>;
|
|
1017
|
+
}
|
|
998
1018
|
|
|
999
|
-
declare
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1019
|
+
declare class PaymentCodeAPI extends HttpClient {
|
|
1020
|
+
private readonly path;
|
|
1021
|
+
create(paymentName: string, amount: number, financialAccountId: string | null, name: string, phoneNumber: string): Promise<Result<CreatePaymentCodeResponse>>;
|
|
1022
|
+
retrieve(paymentCodeId: string): Promise<Result<RetrievePaymentCodeResponse>>;
|
|
1023
|
+
list(): Promise<Result<ListPaymentCodesResponse>>;
|
|
1024
|
+
delete(paymentCodeId: string): Promise<Result<void>>;
|
|
1025
|
+
}
|
|
1003
1026
|
|
|
1004
|
-
declare
|
|
1005
|
-
|
|
1006
|
-
|
|
1027
|
+
declare class PayoutAPI extends HttpClient {
|
|
1028
|
+
private readonly path;
|
|
1029
|
+
create(amount: number, sourceAccount: string, destination: DestinationOption): Promise<Result<CreatePayoutResponse>>;
|
|
1030
|
+
list(): Promise<Result<ListPayoutsResponse>>;
|
|
1031
|
+
retrieve(payoutId: string): Promise<Result<RetrievePayoutResponse>>;
|
|
1032
|
+
delete(payoutId: string): Promise<Result<void>>;
|
|
1033
|
+
}
|
|
1007
1034
|
|
|
1008
|
-
declare
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1035
|
+
declare class ProviderKycAPI extends HttpClient {
|
|
1036
|
+
private readonly path;
|
|
1037
|
+
retrieve(providerId: string): Promise<Result<GetProviderKycResponse>>;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
declare class ReceiptAPI extends HttpClient {
|
|
1041
|
+
private readonly path;
|
|
1042
|
+
retrieve(orderNumber: string): Promise<Result<GetReceiptResponse>>;
|
|
1043
|
+
redeem(orderNumber: string, body: Record<string, unknown>): Promise<Result<RedeemReceiptResponse>>;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
declare class UssdOtpAPI extends HttpClient {
|
|
1047
|
+
private readonly path;
|
|
1048
|
+
create(body: CreateUssdOtpRequest): Promise<Result<CreateUssdOtpResponse>>;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
declare class WebhookAPI extends HttpClient {
|
|
1052
|
+
private readonly path;
|
|
1053
|
+
create(body: CreateWebhookRequest): Promise<Result<CreateWebhookResponse>>;
|
|
1054
|
+
retrieve(webhookId: string): Promise<Result<GetWebhookResponse>>;
|
|
1055
|
+
list(): Promise<Result<ListWebhooksResponse>>;
|
|
1056
|
+
update(webhookId: string, body: UpdateWebhookRequest): Promise<Result<UpdateWebhookResponse>>;
|
|
1057
|
+
delete(webhookId: string): Promise<Result<void>>;
|
|
1058
|
+
}
|
|
1015
1059
|
|
|
1016
1060
|
interface ClientOptions {
|
|
1017
|
-
monimeSpaceId
|
|
1018
|
-
accessToken
|
|
1061
|
+
monimeSpaceId?: string;
|
|
1062
|
+
accessToken?: string;
|
|
1019
1063
|
monimeVersion?: "caph.2025-08-23" | "caph.2025-06-20";
|
|
1020
1064
|
}
|
|
1021
1065
|
declare class MonimeClient {
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
webhook: ReturnType<typeof WebhookAPI>;
|
|
1034
|
-
financialTransaction: ReturnType<typeof FinancialTransactionAPI>;
|
|
1035
|
-
checkoutSession: ReturnType<typeof CheckoutSessionAPI>;
|
|
1066
|
+
financialAccount: FinancialAccountAPI;
|
|
1067
|
+
internalTransfer: InternalTransferAPI;
|
|
1068
|
+
paymentCode: PaymentCodeAPI;
|
|
1069
|
+
payment: PaymentAPI;
|
|
1070
|
+
payout: PayoutAPI;
|
|
1071
|
+
providerKyc: ProviderKycAPI;
|
|
1072
|
+
receipt: ReceiptAPI;
|
|
1073
|
+
ussdOtp: UssdOtpAPI;
|
|
1074
|
+
webhook: WebhookAPI;
|
|
1075
|
+
financialTransaction: FinancialTransactionAPI;
|
|
1076
|
+
checkoutSession: CheckoutSessionAPI;
|
|
1036
1077
|
financialProvider: {
|
|
1037
|
-
bank:
|
|
1038
|
-
momo:
|
|
1078
|
+
bank: BankAPI;
|
|
1079
|
+
momo: MomoAPI;
|
|
1039
1080
|
};
|
|
1040
|
-
constructor(options
|
|
1081
|
+
constructor(options?: ClientOptions);
|
|
1041
1082
|
}
|
|
1042
1083
|
|
|
1043
1084
|
declare function createClient(options: ClientOptions): MonimeClient;
|
|
1044
1085
|
|
|
1045
|
-
export { type
|
|
1086
|
+
export { type Bank, type BankFeature, type BankFeatureSet, type ClientConfig, type ClientOptions, type CreateCheckoutResponse, type CreateFinancialAccountResponse, type CreateInternalTransferResponse, type CreatePaymentCodeResponse, type CreatePayoutResponse, type CreateUssdOtpRequest, type CreateUssdOtpResponse, type CreateWebhookRequest, type CreateWebhookResponse, type DestinationOption, type GetProviderKycResponse, type GetReceiptResponse, type GetWebhookResponse, type ListBanksResponse, type ListCheckoutsResponse, type ListFinancialAccountsResponse, type ListInternalTransfersResponse, type ListMomosResponse, type ListPaymentCodesResponse, type ListPaymentsResponse, type ListPayoutsResponse, type ListTransactionsResponse, type ListWebhooksResponse, type Momo, type MomoFeature, type MomoFeatureSet, MonimeAuthenticationError, MonimeClient, MonimeError, MonimeValidationError, type Pagination, type Payment, type ProviderKyc, type Receipt, type RedeemReceiptResponse, type Result, type RetrieveBankResponse, type RetrieveCheckoutResponse, type RetrieveFinancialAccountResponse, type RetrieveInternalTransferResponse, type RetrieveMomoResponse, type RetrievePaymentCodeResponse, type RetrievePaymentResponse, type RetrievePayoutResponse, type RetrieveTransactionResponse, type UpdatePaymentResponse, type UpdateWebhookRequest, type UpdateWebhookResponse, type UssdOtp, type Webhook, type WebhookVerificationMethod, createClient };
|