@plyaz/types 1.15.12 → 1.15.14
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/dist/db/dbConstant.d.ts +2 -0
- package/dist/db/index.cjs +3 -1
- package/dist/db/index.cjs.map +1 -1
- package/dist/db/index.js +3 -1
- package/dist/db/index.js.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/payments/service/types.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ValidationResult } from '../../common';
|
|
2
|
+
import type { BaseProviderConfig } from '../gateways';
|
|
2
3
|
import type { PAYMENT_PROVIDER_TYPE, PAYMENT_STATUS } from '../provider';
|
|
3
4
|
import type { PaymentAdapter } from '../provider/adapter';
|
|
4
5
|
import type { PaymentResult, ProcessPaymentRequest } from '../request';
|
|
@@ -32,6 +33,8 @@ export interface PaymentAdapterFactory {
|
|
|
32
33
|
validateProviderConfig(provider: PAYMENT_PROVIDER_TYPE): boolean;
|
|
33
34
|
/** Get adapter with automatic provider selection based on routing rules */
|
|
34
35
|
getOptimalAdapter(request: ProcessPaymentRequest): Promise<PaymentAdapter>;
|
|
36
|
+
/** Retrieve the public (non-sensitive) configuration details of a specific provider */
|
|
37
|
+
getProviderConfigPublic(provider: PAYMENT_PROVIDER_TYPE): BaseProviderConfig;
|
|
35
38
|
}
|
|
36
39
|
/**
|
|
37
40
|
* High-level orchestration service that coordinates payment workflows.
|
package/package.json
CHANGED