@plyaz/types 1.46.7 → 1.46.9

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.
@@ -74,7 +74,6 @@ export interface PaymentStatusResult<TMetadata extends object = object> {
74
74
  /** Additional metadata or raw provider payload */
75
75
  metadata?: TMetadata;
76
76
  }
77
- export type WebhookDomain = 'payment' | 'subscription' | 'payout' | 'kyc' | 'product' | 'dispute';
78
77
  /**
79
78
  * Generic webhook payload structure used for parsing
80
79
  * incoming events from any payment provider.
@@ -98,24 +97,15 @@ export interface WebhookPayload {
98
97
  export interface WebhookResult<TMetadata extends object = object> {
99
98
  /** Whether the webhook was successfully processed */
100
99
  success: boolean;
101
- domain: WebhookDomain;
102
100
  /** Event type normalized to Plyaz domain */
103
101
  eventType: string;
104
- /** Transaction ID this event relates to */
105
- refId?: string;
102
+ /** Event ID this event relates to */
103
+ eventId: string;
104
+ providerEventId: string;
106
105
  /** Optional message for logging or auditing */
107
106
  /** Raw provider webhook payload */
108
107
  providerPayload?: TMetadata;
109
- metadata?: Partial<{
110
- message: string;
111
- disputeReason: string;
112
- disputeAmount: number;
113
- payoutAmount: number;
114
- payoutCurrency: string;
115
- kycStatus: string;
116
- productId: string;
117
- updatedStatus: PAYMENT_STATUS;
118
- }>;
108
+ metadata?: TMetadata;
119
109
  }
120
110
  /**
121
111
  * Options for calculating transaction fees before actual processing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/types",
3
- "version": "1.46.7",
3
+ "version": "1.46.9",
4
4
  "author": "Redeemer Pace",
5
5
  "license": "ISC",
6
6
  "description": "Provides shared TypeScript types and schema utilities for validation and parsing in the @playz ecosystem.",
@@ -1,5 +0,0 @@
1
- export declare enum PROVIDER_PRODUCT_STATUS {
2
- Active = "active",
3
- Inactive = "inactive",
4
- Archived = "archived"
5
- }