@plyaz/types 1.27.1 → 1.27.3
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/index.cjs +25 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -1
- package/dist/index.js.map +1 -1
- package/dist/payments/base-error/types.d.ts +2 -1
- package/dist/payments/gateways/provider/fee/enum.d.ts +25 -0
- package/dist/payments/gateways/provider/fee/index.d.ts +2 -0
- package/dist/payments/gateways/provider/fee/types.d.ts +1 -19
- package/dist/payments/gateways/provider/index.d.ts +1 -0
- package/dist/payments/gateways/provider/types.d.ts +1 -1
- package/dist/payments/index.cjs +25 -0
- package/dist/payments/index.cjs.map +1 -1
- package/dist/payments/index.js +24 -1
- package/dist/payments/index.js.map +1 -1
- package/dist/payments/kyc/enum.d.ts +7 -0
- package/dist/payments/provider/adapter/types.d.ts +6 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ import type { AdapterConfiguration, CreateCustomerParams, CreateSubscriptionPara
|
|
|
7
7
|
import type { PayoutAccountCapabilities, ProviderCapabilities, ProviderConfiguration } from '../payment-provider';
|
|
8
8
|
import type { PAYMENT_METHOD, PAYMENT_PROVIDER_TYPE } from '../provider-capability';
|
|
9
9
|
import type { CalculateFeeParams } from '../../gateways/provider/fee/types';
|
|
10
|
+
import type { CreateAccountLinkParams, CreateAccountLinkResponse, CreatePayoutAccountParams, CreatePayoutAccountResponse, PayoutAccountStatus } from '../../kyc';
|
|
10
11
|
/**
|
|
11
12
|
* Core interface that all payment providers must implement.
|
|
12
13
|
* This interface ensures consistent behavior across all providers
|
|
@@ -33,7 +34,7 @@ export interface PaymentAdapter {
|
|
|
33
34
|
* Detailed payout/account-level capabilities.
|
|
34
35
|
* Includes core, optional/region-specific, advanced, and compliance capabilities.
|
|
35
36
|
*/
|
|
36
|
-
readonly
|
|
37
|
+
readonly payoutAccountCapabilities: PayoutAccountCapabilities;
|
|
37
38
|
/** Provider configuration and metadata */
|
|
38
39
|
readonly config: ProviderConfiguration;
|
|
39
40
|
/**
|
|
@@ -207,6 +208,10 @@ export interface PaymentAdapter {
|
|
|
207
208
|
* Process payout to recipient (optional)
|
|
208
209
|
*/
|
|
209
210
|
processPayout?(params: PayoutParams): Promise<PayoutResult>;
|
|
211
|
+
onboardPayoutAccount?<TMetadata extends object = object>(params: CreatePayoutAccountParams<TMetadata>): Promise<CreatePayoutAccountResponse<TMetadata>>;
|
|
212
|
+
generateOnboardingLink?(params: CreateAccountLinkParams): Promise<CreateAccountLinkResponse>;
|
|
213
|
+
getPayoutAccountStatus?(accountId: string): Promise<PayoutAccountStatus>;
|
|
214
|
+
getCapabilities?(): Promise<PayoutAccountCapabilities>;
|
|
210
215
|
/**
|
|
211
216
|
* Process withdrawal from a user's balance (optional)
|
|
212
217
|
* This method represents a user-initiated request to move funds from their platform account
|
package/package.json
CHANGED