@lyxa.ai/core 1.3.208 → 1.3.209
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/libraries/mongo/models/payment-intent.model.d.ts +2 -0
- package/dist/libraries/mongo/models/payment-intent.model.js +16 -1
- package/dist/libraries/mongo/models/payment-intent.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,8 @@ let PaymentIntent = class PaymentIntent extends defaultClasses_1.TimeStamps {
|
|
|
22
22
|
token;
|
|
23
23
|
amount;
|
|
24
24
|
secondaryAmount;
|
|
25
|
+
authorization;
|
|
26
|
+
orderContext;
|
|
25
27
|
status;
|
|
26
28
|
};
|
|
27
29
|
exports.PaymentIntent = PaymentIntent;
|
|
@@ -49,11 +51,24 @@ __decorate([
|
|
|
49
51
|
(0, typegoose_1.prop)({ required: true, type: Number }),
|
|
50
52
|
__metadata("design:type", Number)
|
|
51
53
|
], PaymentIntent.prototype, "secondaryAmount", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], PaymentIntent.prototype, "authorization", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typegoose_1.prop)({ type: typegoose_1.mongoose.Schema.Types.Mixed }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], PaymentIntent.prototype, "orderContext", void 0);
|
|
52
62
|
__decorate([
|
|
53
63
|
(0, typegoose_1.prop)({ type: String, enum: enum_1.PaymentIntentStatus, default: enum_1.PaymentIntentStatus.PENDING }),
|
|
54
64
|
__metadata("design:type", String)
|
|
55
65
|
], PaymentIntent.prototype, "status", void 0);
|
|
56
66
|
exports.PaymentIntent = PaymentIntent = __decorate([
|
|
57
|
-
(0, typegoose_1.modelOptions)({
|
|
67
|
+
(0, typegoose_1.modelOptions)({
|
|
68
|
+
schemaOptions: { collection: 'paymentIntents' },
|
|
69
|
+
options: {
|
|
70
|
+
allowMixed: typegoose_1.Severity.ALLOW,
|
|
71
|
+
},
|
|
72
|
+
})
|
|
58
73
|
], PaymentIntent);
|
|
59
74
|
//# sourceMappingURL=payment-intent.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-intent.model.js","sourceRoot":"/","sources":["libraries/mongo/models/payment-intent.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"payment-intent.model.js","sourceRoot":"/","sources":["libraries/mongo/models/payment-intent.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmF;AACnF,4EAAqE;AACrE,uDAA6C;AAC7C,kDAA8F;AAC9F,6CAAoC;AAQ7B,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,2BAAU;IAErC,QAAQ,CAAiB;IAGzB,IAAI,CAAa;IAGjB,OAAO,CAAU;IAGjB,KAAK,CAAU;IAGf,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,aAAa,CAAU;IAGvB,YAAY,CAAO;IAGnB,MAAM,CAAuB;CACpC,CAAA;AA3BY,sCAAa;AAElB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC;;+CACd;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;2CAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACf;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACP;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACO;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,oBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;;mDAClB;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,0BAAmB,EAAE,OAAO,EAAE,0BAAmB,CAAC,OAAO,EAAE,CAAC;;6CACpD;wBA1BxB,aAAa;IANzB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,gBAAgB,EAAE;QAC/C,OAAO,EAAE;YACR,UAAU,EAAE,oBAAQ,CAAC,KAAK;SAC1B;KACD,CAAC;GACW,aAAa,CA2BzB","sourcesContent":["import { modelOptions, mongoose, prop, Ref, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { CoreUser } from './core-user.model';\nimport { CardStatus, CardType, Currency, PaymentIntentStatus } from '../../../utilities/enum';\nimport { User } from './user.model';\n\n@modelOptions({\n\tschemaOptions: { collection: 'paymentIntents' },\n\toptions: {\n\t\tallowMixed: Severity.ALLOW,\n\t},\n})\nexport class PaymentIntent extends TimeStamps {\n\t@prop({ required: true, ref: () => CoreUser })\n\tpublic coreUser!: Ref<CoreUser>;\n\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ required: true, type: String })\n\tpublic orderId!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic token!: string;\n\n\t@prop({ required: true, type: Number })\n\tpublic amount!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic secondaryAmount!: number;\n\n\t@prop({ type: String })\n\tpublic authorization?: string;\n\n\t@prop({ type: mongoose.Schema.Types.Mixed })\n\tpublic orderContext?: any;\n\n\t@prop({ type: String, enum: PaymentIntentStatus, default: PaymentIntentStatus.PENDING })\n\tpublic status?: PaymentIntentStatus;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED