@rpg-engine/shared 0.9.120 → 0.9.121
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 +0 -0
- package/dist/types/payment.types.d.ts +3 -1
- package/dist/types/payment.types.d.ts.map +1 -1
- package/dist/types/payment.types.js +2 -0
- package/dist/types/payment.types.js.map +1 -1
- package/dist/types/purchase.types.d.ts +11 -0
- package/dist/types/purchase.types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
File without changes
|
|
@@ -2,6 +2,8 @@ export declare enum PaymentSocketEvents {
|
|
|
2
2
|
Completed = "PaymentCompleted",
|
|
3
3
|
Failed = "PaymentFailed",
|
|
4
4
|
ItemDelivered = "PaymentItemDelivered",
|
|
5
|
-
CheckStatus = "PaymentCheckStatus"
|
|
5
|
+
CheckStatus = "PaymentCheckStatus",
|
|
6
|
+
FetchPurchaseHistory = "payment:fetch_history",
|
|
7
|
+
PurchaseHistoryData = "payment:history_data"
|
|
6
8
|
}
|
|
7
9
|
//# sourceMappingURL=payment.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.types.d.ts","sourceRoot":"","sources":["../../src/types/payment.types.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC3B,SAAS,qBAAqB;IAC9B,MAAM,kBAAkB;IACxB,aAAa,yBAAyB;IACtC,WAAW,uBAAuB;
|
|
1
|
+
{"version":3,"file":"payment.types.d.ts","sourceRoot":"","sources":["../../src/types/payment.types.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC3B,SAAS,qBAAqB;IAC9B,MAAM,kBAAkB;IACxB,aAAa,yBAAyB;IACtC,WAAW,uBAAuB;IAClC,oBAAoB,0BAA0B;IAC9C,mBAAmB,yBAAyB;CAC7C"}
|
|
@@ -7,5 +7,7 @@ var PaymentSocketEvents;
|
|
|
7
7
|
PaymentSocketEvents["Failed"] = "PaymentFailed";
|
|
8
8
|
PaymentSocketEvents["ItemDelivered"] = "PaymentItemDelivered";
|
|
9
9
|
PaymentSocketEvents["CheckStatus"] = "PaymentCheckStatus";
|
|
10
|
+
PaymentSocketEvents["FetchPurchaseHistory"] = "payment:fetch_history";
|
|
11
|
+
PaymentSocketEvents["PurchaseHistoryData"] = "payment:history_data";
|
|
10
12
|
})(PaymentSocketEvents = exports.PaymentSocketEvents || (exports.PaymentSocketEvents = {}));
|
|
11
13
|
//# sourceMappingURL=payment.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.types.js","sourceRoot":"","sources":["../../src/types/payment.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"payment.types.js","sourceRoot":"","sources":["../../src/types/payment.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAOT;AAPH,WAAY,mBAAmB;IAC3B,qDAA8B,CAAA;IAC9B,+CAAwB,CAAA;IACxB,6DAAsC,CAAA;IACtC,yDAAkC,CAAA;IAClC,qEAA8C,CAAA;IAC9C,mEAA4C,CAAA;AAC9C,CAAC,EAPS,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAO5B"}
|
|
@@ -13,6 +13,17 @@ export interface IPurchaseUnit {
|
|
|
13
13
|
metadata?: Record<string, any>;
|
|
14
14
|
}
|
|
15
15
|
export interface IPurchase {
|
|
16
|
+
_id: string;
|
|
17
|
+
userId: string;
|
|
18
|
+
status: 'pending' | 'processing' | 'completed' | 'failed' | 'canceled';
|
|
16
19
|
purchases: IPurchaseUnit[];
|
|
20
|
+
payment?: {
|
|
21
|
+
amount: number;
|
|
22
|
+
currency: string;
|
|
23
|
+
provider: string;
|
|
24
|
+
transactionId?: string;
|
|
25
|
+
};
|
|
26
|
+
createdAt: string;
|
|
27
|
+
updatedAt: string;
|
|
17
28
|
}
|
|
18
29
|
//# sourceMappingURL=purchase.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.types.d.ts","sourceRoot":"","sources":["../../src/types/purchase.types.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACpB,cAAc,mBAAmB;IACjC,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAED,MAAM,WAAW,aAAa;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,SAAS;IACtB,SAAS,EAAE,aAAa,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"purchase.types.d.ts","sourceRoot":"","sources":["../../src/types/purchase.types.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACpB,cAAc,mBAAmB;IACjC,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAED,MAAM,WAAW,aAAa;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,SAAS;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAC;IACvE,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB"}
|