@classytic/revenue 0.2.4 → 1.0.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 +498 -501
- package/dist/actions-CwG-b7fR.d.ts +519 -0
- package/dist/core/index.d.ts +884 -0
- package/dist/core/index.js +2941 -0
- package/dist/core/index.js.map +1 -0
- package/dist/enums/index.d.ts +130 -0
- package/dist/enums/index.js +167 -0
- package/dist/enums/index.js.map +1 -0
- package/dist/index-BnJWVXuw.d.ts +378 -0
- package/dist/index-ChVD3P9k.d.ts +504 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +4353 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/index.d.ts +132 -0
- package/dist/providers/index.js +122 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/retry-80lBCmSe.d.ts +234 -0
- package/dist/schemas/index.d.ts +894 -0
- package/dist/schemas/index.js +524 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/validation.d.ts +309 -0
- package/dist/schemas/validation.js +249 -0
- package/dist/schemas/validation.js.map +1 -0
- package/dist/services/index.d.ts +3 -0
- package/dist/services/index.js +1632 -0
- package/dist/services/index.js.map +1 -0
- package/dist/split.enums-DHdM1YAV.d.ts +255 -0
- package/dist/split.schema-BPdFZMbU.d.ts +958 -0
- package/dist/utils/index.d.ts +24 -0
- package/dist/utils/index.js +1067 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +48 -32
- package/core/builder.js +0 -219
- package/core/container.js +0 -119
- package/core/errors.js +0 -262
- package/dist/types/core/builder.d.ts +0 -97
- package/dist/types/core/container.d.ts +0 -57
- package/dist/types/core/errors.d.ts +0 -122
- package/dist/types/enums/escrow.enums.d.ts +0 -24
- package/dist/types/enums/index.d.ts +0 -69
- package/dist/types/enums/monetization.enums.d.ts +0 -6
- package/dist/types/enums/payment.enums.d.ts +0 -16
- package/dist/types/enums/split.enums.d.ts +0 -25
- package/dist/types/enums/subscription.enums.d.ts +0 -15
- package/dist/types/enums/transaction.enums.d.ts +0 -24
- package/dist/types/index.d.ts +0 -22
- package/dist/types/providers/base.d.ts +0 -128
- package/dist/types/schemas/escrow/hold.schema.d.ts +0 -54
- package/dist/types/schemas/escrow/index.d.ts +0 -6
- package/dist/types/schemas/index.d.ts +0 -506
- package/dist/types/schemas/split/index.d.ts +0 -8
- package/dist/types/schemas/split/split.schema.d.ts +0 -142
- package/dist/types/schemas/subscription/index.d.ts +0 -152
- package/dist/types/schemas/subscription/info.schema.d.ts +0 -128
- package/dist/types/schemas/subscription/plan.schema.d.ts +0 -39
- package/dist/types/schemas/transaction/common.schema.d.ts +0 -12
- package/dist/types/schemas/transaction/gateway.schema.d.ts +0 -86
- package/dist/types/schemas/transaction/index.d.ts +0 -202
- package/dist/types/schemas/transaction/payment.schema.d.ts +0 -145
- package/dist/types/services/escrow.service.d.ts +0 -51
- package/dist/types/services/monetization.service.d.ts +0 -193
- package/dist/types/services/payment.service.d.ts +0 -117
- package/dist/types/services/transaction.service.d.ts +0 -40
- package/dist/types/utils/category-resolver.d.ts +0 -46
- package/dist/types/utils/commission-split.d.ts +0 -56
- package/dist/types/utils/commission.d.ts +0 -29
- package/dist/types/utils/hooks.d.ts +0 -17
- package/dist/types/utils/index.d.ts +0 -6
- package/dist/types/utils/logger.d.ts +0 -12
- package/dist/types/utils/subscription/actions.d.ts +0 -28
- package/dist/types/utils/subscription/index.d.ts +0 -2
- package/dist/types/utils/subscription/period.d.ts +0 -47
- package/dist/types/utils/transaction-type.d.ts +0 -102
- package/enums/escrow.enums.js +0 -36
- package/enums/index.d.ts +0 -116
- package/enums/index.js +0 -110
- package/enums/monetization.enums.js +0 -15
- package/enums/payment.enums.js +0 -64
- package/enums/split.enums.js +0 -37
- package/enums/subscription.enums.js +0 -33
- package/enums/transaction.enums.js +0 -69
- package/index.js +0 -76
- package/providers/base.js +0 -162
- package/schemas/escrow/hold.schema.js +0 -62
- package/schemas/escrow/index.js +0 -15
- package/schemas/index.d.ts +0 -33
- package/schemas/index.js +0 -27
- package/schemas/split/index.js +0 -16
- package/schemas/split/split.schema.js +0 -86
- package/schemas/subscription/index.js +0 -17
- package/schemas/subscription/info.schema.js +0 -115
- package/schemas/subscription/plan.schema.js +0 -48
- package/schemas/transaction/common.schema.js +0 -22
- package/schemas/transaction/gateway.schema.js +0 -69
- package/schemas/transaction/index.js +0 -20
- package/schemas/transaction/payment.schema.js +0 -110
- package/services/escrow.service.js +0 -353
- package/services/monetization.service.js +0 -675
- package/services/payment.service.js +0 -535
- package/services/transaction.service.js +0 -142
- package/utils/category-resolver.js +0 -74
- package/utils/commission-split.js +0 -180
- package/utils/commission.js +0 -83
- package/utils/hooks.js +0 -44
- package/utils/index.d.ts +0 -164
- package/utils/index.js +0 -16
- package/utils/logger.js +0 -36
- package/utils/subscription/actions.js +0 -68
- package/utils/subscription/index.js +0 -20
- package/utils/subscription/period.js +0 -123
- package/utils/transaction-type.js +0 -254
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export * from "./transaction.enums.js";
|
|
2
|
-
export * from "./payment.enums.js";
|
|
3
|
-
export * from "./subscription.enums.js";
|
|
4
|
-
export * from "./monetization.enums.js";
|
|
5
|
-
export * from "./escrow.enums.js";
|
|
6
|
-
export * from "./split.enums.js";
|
|
7
|
-
declare namespace _default {
|
|
8
|
-
export { TRANSACTION_TYPE };
|
|
9
|
-
export { TRANSACTION_TYPE_VALUES };
|
|
10
|
-
export { TRANSACTION_STATUS };
|
|
11
|
-
export { TRANSACTION_STATUS_VALUES };
|
|
12
|
-
export { LIBRARY_CATEGORIES };
|
|
13
|
-
export { LIBRARY_CATEGORY_VALUES };
|
|
14
|
-
export { PAYMENT_STATUS };
|
|
15
|
-
export { PAYMENT_STATUS_VALUES };
|
|
16
|
-
export { PAYMENT_GATEWAY_TYPE };
|
|
17
|
-
export { PAYMENT_GATEWAY_TYPE_VALUES };
|
|
18
|
-
export { GATEWAY_TYPES };
|
|
19
|
-
export { GATEWAY_TYPE_VALUES };
|
|
20
|
-
export { SUBSCRIPTION_STATUS };
|
|
21
|
-
export { SUBSCRIPTION_STATUS_VALUES };
|
|
22
|
-
export { PLAN_KEYS };
|
|
23
|
-
export { PLAN_KEY_VALUES };
|
|
24
|
-
export { MONETIZATION_TYPES };
|
|
25
|
-
export { MONETIZATION_TYPE_VALUES };
|
|
26
|
-
export { HOLD_STATUS };
|
|
27
|
-
export { HOLD_STATUS_VALUES };
|
|
28
|
-
export { RELEASE_REASON };
|
|
29
|
-
export { RELEASE_REASON_VALUES };
|
|
30
|
-
export { HOLD_REASON };
|
|
31
|
-
export { HOLD_REASON_VALUES };
|
|
32
|
-
export { SPLIT_TYPE };
|
|
33
|
-
export { SPLIT_TYPE_VALUES };
|
|
34
|
-
export { SPLIT_STATUS };
|
|
35
|
-
export { SPLIT_STATUS_VALUES };
|
|
36
|
-
export { PAYOUT_METHOD };
|
|
37
|
-
export { PAYOUT_METHOD_VALUES };
|
|
38
|
-
}
|
|
39
|
-
export default _default;
|
|
40
|
-
import { TRANSACTION_TYPE } from './transaction.enums.js';
|
|
41
|
-
import { TRANSACTION_TYPE_VALUES } from './transaction.enums.js';
|
|
42
|
-
import { TRANSACTION_STATUS } from './transaction.enums.js';
|
|
43
|
-
import { TRANSACTION_STATUS_VALUES } from './transaction.enums.js';
|
|
44
|
-
import { LIBRARY_CATEGORIES } from './transaction.enums.js';
|
|
45
|
-
import { LIBRARY_CATEGORY_VALUES } from './transaction.enums.js';
|
|
46
|
-
import { PAYMENT_STATUS } from './payment.enums.js';
|
|
47
|
-
import { PAYMENT_STATUS_VALUES } from './payment.enums.js';
|
|
48
|
-
import { PAYMENT_GATEWAY_TYPE } from './payment.enums.js';
|
|
49
|
-
import { PAYMENT_GATEWAY_TYPE_VALUES } from './payment.enums.js';
|
|
50
|
-
import { GATEWAY_TYPES } from './payment.enums.js';
|
|
51
|
-
import { GATEWAY_TYPE_VALUES } from './payment.enums.js';
|
|
52
|
-
import { SUBSCRIPTION_STATUS } from './subscription.enums.js';
|
|
53
|
-
import { SUBSCRIPTION_STATUS_VALUES } from './subscription.enums.js';
|
|
54
|
-
import { PLAN_KEYS } from './subscription.enums.js';
|
|
55
|
-
import { PLAN_KEY_VALUES } from './subscription.enums.js';
|
|
56
|
-
import { MONETIZATION_TYPES } from './monetization.enums.js';
|
|
57
|
-
import { MONETIZATION_TYPE_VALUES } from './monetization.enums.js';
|
|
58
|
-
import { HOLD_STATUS } from './escrow.enums.js';
|
|
59
|
-
import { HOLD_STATUS_VALUES } from './escrow.enums.js';
|
|
60
|
-
import { RELEASE_REASON } from './escrow.enums.js';
|
|
61
|
-
import { RELEASE_REASON_VALUES } from './escrow.enums.js';
|
|
62
|
-
import { HOLD_REASON } from './escrow.enums.js';
|
|
63
|
-
import { HOLD_REASON_VALUES } from './escrow.enums.js';
|
|
64
|
-
import { SPLIT_TYPE } from './split.enums.js';
|
|
65
|
-
import { SPLIT_TYPE_VALUES } from './split.enums.js';
|
|
66
|
-
import { SPLIT_STATUS } from './split.enums.js';
|
|
67
|
-
import { SPLIT_STATUS_VALUES } from './split.enums.js';
|
|
68
|
-
import { PAYOUT_METHOD } from './split.enums.js';
|
|
69
|
-
import { PAYOUT_METHOD_VALUES } from './split.enums.js';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export namespace PAYMENT_STATUS {
|
|
2
|
-
let PENDING: string;
|
|
3
|
-
let VERIFIED: string;
|
|
4
|
-
let FAILED: string;
|
|
5
|
-
let REFUNDED: string;
|
|
6
|
-
let CANCELLED: string;
|
|
7
|
-
}
|
|
8
|
-
export const PAYMENT_STATUS_VALUES: string[];
|
|
9
|
-
export namespace PAYMENT_GATEWAY_TYPE {
|
|
10
|
-
let MANUAL: string;
|
|
11
|
-
let STRIPE: string;
|
|
12
|
-
let SSLCOMMERZ: string;
|
|
13
|
-
}
|
|
14
|
-
export const PAYMENT_GATEWAY_TYPE_VALUES: string[];
|
|
15
|
-
export namespace GATEWAY_TYPES { }
|
|
16
|
-
export const GATEWAY_TYPE_VALUES: string[];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export namespace SPLIT_TYPE {
|
|
2
|
-
let PLATFORM_COMMISSION: string;
|
|
3
|
-
let AFFILIATE_COMMISSION: string;
|
|
4
|
-
let REFERRAL_COMMISSION: string;
|
|
5
|
-
let PARTNER_COMMISSION: string;
|
|
6
|
-
let CUSTOM: string;
|
|
7
|
-
}
|
|
8
|
-
export const SPLIT_TYPE_VALUES: string[];
|
|
9
|
-
export namespace SPLIT_STATUS {
|
|
10
|
-
let PENDING: string;
|
|
11
|
-
let DUE: string;
|
|
12
|
-
let PAID: string;
|
|
13
|
-
let WAIVED: string;
|
|
14
|
-
let CANCELLED: string;
|
|
15
|
-
}
|
|
16
|
-
export const SPLIT_STATUS_VALUES: string[];
|
|
17
|
-
export namespace PAYOUT_METHOD {
|
|
18
|
-
let BANK_TRANSFER: string;
|
|
19
|
-
let MOBILE_WALLET: string;
|
|
20
|
-
let PLATFORM_BALANCE: string;
|
|
21
|
-
let CRYPTO: string;
|
|
22
|
-
let CHECK: string;
|
|
23
|
-
let MANUAL: string;
|
|
24
|
-
}
|
|
25
|
-
export const PAYOUT_METHOD_VALUES: string[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export namespace SUBSCRIPTION_STATUS {
|
|
2
|
-
let ACTIVE: string;
|
|
3
|
-
let PAUSED: string;
|
|
4
|
-
let CANCELLED: string;
|
|
5
|
-
let EXPIRED: string;
|
|
6
|
-
let PENDING: string;
|
|
7
|
-
let INACTIVE: string;
|
|
8
|
-
}
|
|
9
|
-
export const SUBSCRIPTION_STATUS_VALUES: string[];
|
|
10
|
-
export namespace PLAN_KEYS {
|
|
11
|
-
let MONTHLY: string;
|
|
12
|
-
let QUARTERLY: string;
|
|
13
|
-
let YEARLY: string;
|
|
14
|
-
}
|
|
15
|
-
export const PLAN_KEY_VALUES: string[];
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export namespace TRANSACTION_TYPE {
|
|
2
|
-
let INCOME: string;
|
|
3
|
-
let EXPENSE: string;
|
|
4
|
-
}
|
|
5
|
-
export const TRANSACTION_TYPE_VALUES: string[];
|
|
6
|
-
export namespace TRANSACTION_STATUS {
|
|
7
|
-
let PENDING: string;
|
|
8
|
-
let PAYMENT_INITIATED: string;
|
|
9
|
-
let PROCESSING: string;
|
|
10
|
-
let REQUIRES_ACTION: string;
|
|
11
|
-
let VERIFIED: string;
|
|
12
|
-
let COMPLETED: string;
|
|
13
|
-
let FAILED: string;
|
|
14
|
-
let CANCELLED: string;
|
|
15
|
-
let EXPIRED: string;
|
|
16
|
-
let REFUNDED: string;
|
|
17
|
-
let PARTIALLY_REFUNDED: string;
|
|
18
|
-
}
|
|
19
|
-
export const TRANSACTION_STATUS_VALUES: string[];
|
|
20
|
-
export namespace LIBRARY_CATEGORIES {
|
|
21
|
-
let SUBSCRIPTION: string;
|
|
22
|
-
let PURCHASE: string;
|
|
23
|
-
}
|
|
24
|
-
export const LIBRARY_CATEGORY_VALUES: string[];
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export { createRevenue } from "./core/builder.js";
|
|
2
|
-
export { Container } from "./core/container.js";
|
|
3
|
-
export * from "./core/errors.js";
|
|
4
|
-
export * from "./enums/index.js";
|
|
5
|
-
export * from "./schemas/index.js";
|
|
6
|
-
export { MonetizationService } from "./services/monetization.service.js";
|
|
7
|
-
export { PaymentService } from "./services/payment.service.js";
|
|
8
|
-
export { TransactionService } from "./services/transaction.service.js";
|
|
9
|
-
export { EscrowService } from "./services/escrow.service.js";
|
|
10
|
-
declare namespace _default {
|
|
11
|
-
export { _createRevenue as createRevenue };
|
|
12
|
-
export { _PaymentProvider as PaymentProvider };
|
|
13
|
-
export { RevenueError };
|
|
14
|
-
export { _Container as Container };
|
|
15
|
-
}
|
|
16
|
-
export default _default;
|
|
17
|
-
import { createRevenue as _createRevenue } from './core/builder.js';
|
|
18
|
-
import { PaymentProvider as _PaymentProvider } from './providers/base.js';
|
|
19
|
-
import { RevenueError } from './core/errors.js';
|
|
20
|
-
import { Container as _Container } from './core/container.js';
|
|
21
|
-
export { PaymentProvider, PaymentIntent, PaymentResult, RefundResult, WebhookEvent } from "./providers/base.js";
|
|
22
|
-
export { logger, setLogger, calculateCommission, reverseCommission, addDuration, calculatePeriodRange, calculateProratedAmount, resolveIntervalToDuration, isSubscriptionActive, canRenewSubscription, canCancelSubscription, canPauseSubscription, canResumeSubscription } from "./utils/index.js";
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Payment Provider Base Class
|
|
3
|
-
* @classytic/revenue
|
|
4
|
-
*
|
|
5
|
-
* Abstract base class for all payment providers
|
|
6
|
-
* Inspired by: Vercel AI SDK, Stripe SDK
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Payment Intent - standardized response from createIntent
|
|
10
|
-
*/
|
|
11
|
-
export class PaymentIntent {
|
|
12
|
-
constructor(data: any);
|
|
13
|
-
id: any;
|
|
14
|
-
sessionId: any;
|
|
15
|
-
paymentIntentId: any;
|
|
16
|
-
provider: any;
|
|
17
|
-
status: any;
|
|
18
|
-
amount: any;
|
|
19
|
-
currency: any;
|
|
20
|
-
metadata: any;
|
|
21
|
-
clientSecret: any;
|
|
22
|
-
paymentUrl: any;
|
|
23
|
-
instructions: any;
|
|
24
|
-
raw: any;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Payment Result - standardized response from verifyPayment
|
|
28
|
-
*/
|
|
29
|
-
export class PaymentResult {
|
|
30
|
-
constructor(data: any);
|
|
31
|
-
id: any;
|
|
32
|
-
provider: any;
|
|
33
|
-
status: any;
|
|
34
|
-
amount: any;
|
|
35
|
-
currency: any;
|
|
36
|
-
paidAt: any;
|
|
37
|
-
metadata: any;
|
|
38
|
-
raw: any;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Refund Result - standardized response from refund
|
|
42
|
-
*/
|
|
43
|
-
export class RefundResult {
|
|
44
|
-
constructor(data: any);
|
|
45
|
-
id: any;
|
|
46
|
-
provider: any;
|
|
47
|
-
status: any;
|
|
48
|
-
amount: any;
|
|
49
|
-
currency: any;
|
|
50
|
-
refundedAt: any;
|
|
51
|
-
reason: any;
|
|
52
|
-
metadata: any;
|
|
53
|
-
raw: any;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Webhook Event - standardized webhook event
|
|
57
|
-
*/
|
|
58
|
-
export class WebhookEvent {
|
|
59
|
-
constructor(data: any);
|
|
60
|
-
id: any;
|
|
61
|
-
provider: any;
|
|
62
|
-
type: any;
|
|
63
|
-
data: any;
|
|
64
|
-
createdAt: any;
|
|
65
|
-
raw: any;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Base Payment Provider
|
|
69
|
-
* All payment providers must extend this class
|
|
70
|
-
*/
|
|
71
|
-
export class PaymentProvider {
|
|
72
|
-
constructor(config?: {});
|
|
73
|
-
config: {};
|
|
74
|
-
name: string;
|
|
75
|
-
/**
|
|
76
|
-
* Create a payment intent
|
|
77
|
-
* @param {Object} params - Payment parameters
|
|
78
|
-
* @param {number} params.amount - Amount in smallest currency unit
|
|
79
|
-
* @param {string} params.currency - Currency code
|
|
80
|
-
* @param {Object} params.metadata - Additional metadata
|
|
81
|
-
* @returns {Promise<PaymentIntent>}
|
|
82
|
-
*/
|
|
83
|
-
createIntent(params: {
|
|
84
|
-
amount: number;
|
|
85
|
-
currency: string;
|
|
86
|
-
metadata: any;
|
|
87
|
-
}): Promise<PaymentIntent>;
|
|
88
|
-
/**
|
|
89
|
-
* Verify a payment
|
|
90
|
-
* @param {string} intentId - Payment intent ID
|
|
91
|
-
* @returns {Promise<PaymentResult>}
|
|
92
|
-
*/
|
|
93
|
-
verifyPayment(intentId: string): Promise<PaymentResult>;
|
|
94
|
-
/**
|
|
95
|
-
* Get payment status
|
|
96
|
-
* @param {string} intentId - Payment intent ID
|
|
97
|
-
* @returns {Promise<PaymentResult>}
|
|
98
|
-
*/
|
|
99
|
-
getStatus(intentId: string): Promise<PaymentResult>;
|
|
100
|
-
/**
|
|
101
|
-
* Refund a payment
|
|
102
|
-
* @param {string} paymentId - Payment ID
|
|
103
|
-
* @param {number} amount - Amount to refund (optional, full refund if not provided)
|
|
104
|
-
* @param {Object} options - Refund options
|
|
105
|
-
* @returns {Promise<RefundResult>}
|
|
106
|
-
*/
|
|
107
|
-
refund(paymentId: string, amount: number, options?: any): Promise<RefundResult>;
|
|
108
|
-
/**
|
|
109
|
-
* Handle webhook from provider
|
|
110
|
-
* @param {Object} payload - Webhook payload
|
|
111
|
-
* @param {Object} headers - Request headers (for signature verification)
|
|
112
|
-
* @returns {Promise<WebhookEvent>}
|
|
113
|
-
*/
|
|
114
|
-
handleWebhook(payload: any, headers?: any): Promise<WebhookEvent>;
|
|
115
|
-
/**
|
|
116
|
-
* Verify webhook signature (optional)
|
|
117
|
-
* @param {Object} payload - Webhook payload
|
|
118
|
-
* @param {string} signature - Webhook signature
|
|
119
|
-
* @returns {boolean}
|
|
120
|
-
*/
|
|
121
|
-
verifyWebhookSignature(payload: any, signature: string): boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Get provider capabilities
|
|
124
|
-
* @returns {Object}
|
|
125
|
-
*/
|
|
126
|
-
getCapabilities(): any;
|
|
127
|
-
}
|
|
128
|
-
export default PaymentProvider;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export namespace holdSchema {
|
|
2
|
-
namespace status {
|
|
3
|
-
export let type: StringConstructor;
|
|
4
|
-
export { HOLD_STATUS_VALUES as enum };
|
|
5
|
-
let _default: string;
|
|
6
|
-
export { _default as default };
|
|
7
|
-
export let index: boolean;
|
|
8
|
-
}
|
|
9
|
-
namespace heldAmount {
|
|
10
|
-
let type_1: NumberConstructor;
|
|
11
|
-
export { type_1 as type };
|
|
12
|
-
export let required: boolean;
|
|
13
|
-
}
|
|
14
|
-
namespace releasedAmount {
|
|
15
|
-
let type_2: NumberConstructor;
|
|
16
|
-
export { type_2 as type };
|
|
17
|
-
let _default_1: number;
|
|
18
|
-
export { _default_1 as default };
|
|
19
|
-
}
|
|
20
|
-
namespace reason {
|
|
21
|
-
let type_3: StringConstructor;
|
|
22
|
-
export { type_3 as type };
|
|
23
|
-
export { HOLD_REASON_VALUES as enum };
|
|
24
|
-
let required_1: boolean;
|
|
25
|
-
export { required_1 as required };
|
|
26
|
-
}
|
|
27
|
-
namespace holdUntil {
|
|
28
|
-
let type_4: DateConstructor;
|
|
29
|
-
export { type_4 as type };
|
|
30
|
-
let required_2: boolean;
|
|
31
|
-
export { required_2 as required };
|
|
32
|
-
}
|
|
33
|
-
let heldAt: DateConstructor;
|
|
34
|
-
let releasedAt: DateConstructor;
|
|
35
|
-
let cancelledAt: DateConstructor;
|
|
36
|
-
let releases: {
|
|
37
|
-
amount: NumberConstructor;
|
|
38
|
-
recipientId: StringConstructor;
|
|
39
|
-
recipientType: StringConstructor;
|
|
40
|
-
releasedAt: DateConstructor;
|
|
41
|
-
releasedBy: StringConstructor;
|
|
42
|
-
reason: StringConstructor;
|
|
43
|
-
metadata: ObjectConstructor;
|
|
44
|
-
}[];
|
|
45
|
-
namespace metadata {
|
|
46
|
-
let type_5: ObjectConstructor;
|
|
47
|
-
export { type_5 as type };
|
|
48
|
-
let _default_2: {};
|
|
49
|
-
export { _default_2 as default };
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
export default holdSchema;
|
|
53
|
-
import { HOLD_STATUS_VALUES } from '../../enums/escrow.enums.js';
|
|
54
|
-
import { HOLD_REASON_VALUES } from '../../enums/escrow.enums.js';
|