@etohq/payment 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 +3 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/joiner-config.d.ts +2 -0
- package/dist/joiner-config.d.ts.map +1 -0
- package/dist/joiner-config.js +26 -0
- package/dist/joiner-config.js.map +1 -0
- package/dist/loaders/index.d.ts +2 -0
- package/dist/loaders/index.d.ts.map +1 -0
- package/dist/loaders/index.js +18 -0
- package/dist/loaders/index.js.map +1 -0
- package/dist/loaders/providers.d.ts +6 -0
- package/dist/loaders/providers.d.ts.map +1 -0
- package/dist/loaders/providers.js +70 -0
- package/dist/loaders/providers.js.map +1 -0
- package/dist/migrations/Migration20240225134525.d.ts +5 -0
- package/dist/migrations/Migration20240225134525.d.ts.map +1 -0
- package/dist/migrations/Migration20240225134525.js +272 -0
- package/dist/migrations/Migration20240225134525.js.map +1 -0
- package/dist/migrations/Migration20240806072619.d.ts +6 -0
- package/dist/migrations/Migration20240806072619.d.ts.map +1 -0
- package/dist/migrations/Migration20240806072619.js +38 -0
- package/dist/migrations/Migration20240806072619.js.map +1 -0
- package/dist/migrations/Migration20241211151053.d.ts +6 -0
- package/dist/migrations/Migration20241211151053.d.ts.map +1 -0
- package/dist/migrations/Migration20241211151053.js +34 -0
- package/dist/migrations/Migration20241211151053.js.map +1 -0
- package/dist/models/capture.d.ts +87 -0
- package/dist/models/capture.d.ts.map +1 -0
- package/dist/models/capture.js +25 -0
- package/dist/models/capture.js.map +1 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +23 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/payment-collection.d.ts +160 -0
- package/dist/models/payment-collection.d.ts.map +1 -0
- package/dist/models/payment-collection.js +44 -0
- package/dist/models/payment-collection.js.map +1 -0
- package/dist/models/payment-method-token.d.ts +11 -0
- package/dist/models/payment-method-token.d.ts.map +1 -0
- package/dist/models/payment-method-token.js +14 -0
- package/dist/models/payment-method-token.js.map +1 -0
- package/dist/models/payment-provider.d.ts +160 -0
- package/dist/models/payment-provider.d.ts.map +1 -0
- package/dist/models/payment-provider.js +16 -0
- package/dist/models/payment-provider.js.map +1 -0
- package/dist/models/payment-session.d.ts +137 -0
- package/dist/models/payment-session.d.ts.map +1 -0
- package/dist/models/payment-session.js +38 -0
- package/dist/models/payment-session.js.map +1 -0
- package/dist/models/payment.d.ts +88 -0
- package/dist/models/payment.d.ts.map +1 -0
- package/dist/models/payment.js +55 -0
- package/dist/models/payment.js.map +1 -0
- package/dist/models/refund-reason.d.ts +81 -0
- package/dist/models/refund-reason.d.ts.map +1 -0
- package/dist/models/refund-reason.js +18 -0
- package/dist/models/refund-reason.js.map +1 -0
- package/dist/models/refund.d.ts +87 -0
- package/dist/models/refund.d.ts.map +1 -0
- package/dist/models/refund.js +32 -0
- package/dist/models/refund.js.map +1 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +9 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/system.d.ts +22 -0
- package/dist/providers/system.d.ts.map +1 -0
- package/dist/providers/system.js +46 -0
- package/dist/providers/system.js.map +1 -0
- package/dist/schema/index.d.ts +3 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +114 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/services/index.d.ts +3 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +11 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/payment-module.d.ts +78 -0
- package/dist/services/payment-module.d.ts.map +1 -0
- package/dist/services/payment-module.js +629 -0
- package/dist/services/payment-module.js.map +1 -0
- package/dist/services/payment-provider.d.ts +27 -0
- package/dist/services/payment-provider.d.ts.map +1 -0
- package/dist/services/payment-provider.js +111 -0
- package/dist/services/payment-provider.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
declare const Capture: import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
2
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
3
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
4
|
+
payment: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
5
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
6
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
7
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
8
|
+
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
9
|
+
cart_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
10
|
+
order_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
11
|
+
customer_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
12
|
+
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
13
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
14
|
+
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
15
|
+
canceled_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
16
|
+
payment_collection: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
17
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
18
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
19
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
20
|
+
authorized_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
21
|
+
captured_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
22
|
+
refunded_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
23
|
+
region_id: import("@etohq/framework/utils").TextProperty;
|
|
24
|
+
completed_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
25
|
+
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").PaymentCollectionStatus>;
|
|
26
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
27
|
+
payment_providers: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
28
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
29
|
+
is_enabled: import("@etohq/framework/utils").BooleanProperty;
|
|
30
|
+
payment_collections: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentCollection">>;
|
|
31
|
+
}>, "PaymentProvider">>;
|
|
32
|
+
payment_sessions: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
33
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
34
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
35
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
36
|
+
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
37
|
+
data: import("@etohq/framework/utils").JSONProperty;
|
|
38
|
+
context: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
39
|
+
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").PaymentSessionStatus>;
|
|
40
|
+
authorized_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
41
|
+
payment_collection: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentCollection">, undefined>;
|
|
42
|
+
payment: import("@etohq/framework/utils").RelationNullableModifier<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">, import("@etohq/framework/utils").HasOne<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">>, false>;
|
|
43
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
44
|
+
}>, "PaymentSession">>;
|
|
45
|
+
payments: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">>;
|
|
46
|
+
}>, "PaymentCollection">, undefined>;
|
|
47
|
+
payment_session: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
48
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
49
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
50
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
51
|
+
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
52
|
+
data: import("@etohq/framework/utils").JSONProperty;
|
|
53
|
+
context: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
54
|
+
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").PaymentSessionStatus>;
|
|
55
|
+
authorized_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
56
|
+
payment_collection: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentCollection">, undefined>;
|
|
57
|
+
payment: import("@etohq/framework/utils").RelationNullableModifier<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">, import("@etohq/framework/utils").HasOne<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">>, false>;
|
|
58
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
59
|
+
}>, "PaymentSession">, undefined>;
|
|
60
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
61
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
62
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
63
|
+
payment: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">, undefined>;
|
|
64
|
+
refund_reason: import("@etohq/framework/utils").RelationNullableModifier<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
65
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
66
|
+
label: import("@etohq/framework/utils").TextProperty;
|
|
67
|
+
description: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
68
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
69
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Refund">>;
|
|
70
|
+
}>, "RefundReason">, import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
71
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
72
|
+
label: import("@etohq/framework/utils").TextProperty;
|
|
73
|
+
description: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
74
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
75
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Refund">>;
|
|
76
|
+
}>, "RefundReason">, undefined>, true>;
|
|
77
|
+
note: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
78
|
+
created_by: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
79
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
80
|
+
}>, "Refund">>;
|
|
81
|
+
captures: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Capture">>;
|
|
82
|
+
}>, "Payment">, undefined>;
|
|
83
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
84
|
+
created_by: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
85
|
+
}>, "Capture">;
|
|
86
|
+
export default Capture;
|
|
87
|
+
//# sourceMappingURL=capture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../src/models/capture.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAeT,CAAA;AAEJ,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const utils_1 = require("@etohq/framework/utils");
|
|
7
|
+
const payment_1 = __importDefault(require("./payment"));
|
|
8
|
+
const Capture = utils_1.model
|
|
9
|
+
.define("Capture", {
|
|
10
|
+
id: utils_1.model.id({ prefix: "capt" }).primaryKey(),
|
|
11
|
+
amount: utils_1.model.bigNumber(),
|
|
12
|
+
payment: utils_1.model.belongsTo(() => payment_1.default, {
|
|
13
|
+
mappedBy: "captures",
|
|
14
|
+
}),
|
|
15
|
+
metadata: utils_1.model.json().nullable(),
|
|
16
|
+
created_by: utils_1.model.text().nullable(),
|
|
17
|
+
})
|
|
18
|
+
.indexes([
|
|
19
|
+
{
|
|
20
|
+
name: "IDX_capture_payment_id",
|
|
21
|
+
on: ["payment_id"],
|
|
22
|
+
},
|
|
23
|
+
]);
|
|
24
|
+
exports.default = Capture;
|
|
25
|
+
//# sourceMappingURL=capture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture.js","sourceRoot":"","sources":["../../src/models/capture.ts"],"names":[],"mappings":";;;;;AAAA,kDAA8C;AAC9C,wDAA+B;AAE/B,MAAM,OAAO,GAAG,aAAK;KAClB,MAAM,CAAC,SAAS,EAAE;IACjB,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE;IAC7C,MAAM,EAAE,aAAK,CAAC,SAAS,EAAE;IACzB,OAAO,EAAE,aAAK,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,iBAAO,EAAE;QACtC,QAAQ,EAAE,UAAU;KACrB,CAAC;IACF,QAAQ,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC;KACD,OAAO,CAAC;IACP;QACE,IAAI,EAAE,wBAAwB;QAC9B,EAAE,EAAE,CAAC,YAAY,CAAC;KACnB;CACF,CAAC,CAAA;AAEJ,kBAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as Capture } from "./capture";
|
|
2
|
+
export { default as Payment } from "./payment";
|
|
3
|
+
export { default as PaymentCollection } from "./payment-collection";
|
|
4
|
+
export { default as PaymentMethodToken } from "./payment-method-token";
|
|
5
|
+
export { default as PaymentProvider } from "./payment-provider";
|
|
6
|
+
export { default as PaymentSession } from "./payment-session";
|
|
7
|
+
export { default as Refund } from "./refund";
|
|
8
|
+
export { default as RefundReason } from "./refund-reason";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RefundReason = exports.Refund = exports.PaymentSession = exports.PaymentProvider = exports.PaymentMethodToken = exports.PaymentCollection = exports.Payment = exports.Capture = void 0;
|
|
7
|
+
var capture_1 = require("./capture");
|
|
8
|
+
Object.defineProperty(exports, "Capture", { enumerable: true, get: function () { return __importDefault(capture_1).default; } });
|
|
9
|
+
var payment_1 = require("./payment");
|
|
10
|
+
Object.defineProperty(exports, "Payment", { enumerable: true, get: function () { return __importDefault(payment_1).default; } });
|
|
11
|
+
var payment_collection_1 = require("./payment-collection");
|
|
12
|
+
Object.defineProperty(exports, "PaymentCollection", { enumerable: true, get: function () { return __importDefault(payment_collection_1).default; } });
|
|
13
|
+
var payment_method_token_1 = require("./payment-method-token");
|
|
14
|
+
Object.defineProperty(exports, "PaymentMethodToken", { enumerable: true, get: function () { return __importDefault(payment_method_token_1).default; } });
|
|
15
|
+
var payment_provider_1 = require("./payment-provider");
|
|
16
|
+
Object.defineProperty(exports, "PaymentProvider", { enumerable: true, get: function () { return __importDefault(payment_provider_1).default; } });
|
|
17
|
+
var payment_session_1 = require("./payment-session");
|
|
18
|
+
Object.defineProperty(exports, "PaymentSession", { enumerable: true, get: function () { return __importDefault(payment_session_1).default; } });
|
|
19
|
+
var refund_1 = require("./refund");
|
|
20
|
+
Object.defineProperty(exports, "Refund", { enumerable: true, get: function () { return __importDefault(refund_1).default; } });
|
|
21
|
+
var refund_reason_1 = require("./refund-reason");
|
|
22
|
+
Object.defineProperty(exports, "RefundReason", { enumerable: true, get: function () { return __importDefault(refund_reason_1).default; } });
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;AAAA,qCAA8C;AAArC,mHAAA,OAAO,OAAW;AAC3B,qCAA8C;AAArC,mHAAA,OAAO,OAAW;AAC3B,2DAAmE;AAA1D,wIAAA,OAAO,OAAqB;AACrC,+DAAsE;AAA7D,2IAAA,OAAO,OAAsB;AACtC,uDAA+D;AAAtD,oIAAA,OAAO,OAAmB;AACnC,qDAA6D;AAApD,kIAAA,OAAO,OAAkB;AAClC,mCAA4C;AAAnC,iHAAA,OAAO,OAAU;AAC1B,iDAAyD;AAAhD,8HAAA,OAAO,OAAgB"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { PaymentCollectionStatus } from "@etohq/framework/utils";
|
|
2
|
+
declare const PaymentCollection: import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
3
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
4
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
5
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
6
|
+
authorized_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
7
|
+
captured_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
8
|
+
refunded_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
9
|
+
region_id: import("@etohq/framework/utils").TextProperty;
|
|
10
|
+
completed_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
11
|
+
status: import("@etohq/framework/utils").EnumProperty<typeof PaymentCollectionStatus>;
|
|
12
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
13
|
+
payment_providers: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
14
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
15
|
+
is_enabled: import("@etohq/framework/utils").BooleanProperty;
|
|
16
|
+
payment_collections: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentCollection">>;
|
|
17
|
+
}>, "PaymentProvider">>;
|
|
18
|
+
payment_sessions: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
19
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
20
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
21
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
22
|
+
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
23
|
+
data: import("@etohq/framework/utils").JSONProperty;
|
|
24
|
+
context: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
25
|
+
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").PaymentSessionStatus>;
|
|
26
|
+
authorized_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
27
|
+
payment_collection: import("@etohq/framework/utils").BelongsTo<() => typeof PaymentCollection, undefined>;
|
|
28
|
+
payment: import("@etohq/framework/utils").RelationNullableModifier<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
29
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
30
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
31
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
32
|
+
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
33
|
+
cart_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
34
|
+
order_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
35
|
+
customer_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
36
|
+
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
37
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
38
|
+
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
39
|
+
canceled_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
40
|
+
payment_collection: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentCollection">, undefined>;
|
|
41
|
+
payment_session: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentSession">, undefined>;
|
|
42
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
43
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
44
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
45
|
+
payment: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">, undefined>;
|
|
46
|
+
refund_reason: import("@etohq/framework/utils").RelationNullableModifier<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
47
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
48
|
+
label: import("@etohq/framework/utils").TextProperty;
|
|
49
|
+
description: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
50
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
51
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Refund">>;
|
|
52
|
+
}>, "RefundReason">, import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
53
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
54
|
+
label: import("@etohq/framework/utils").TextProperty;
|
|
55
|
+
description: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
56
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
57
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Refund">>;
|
|
58
|
+
}>, "RefundReason">, undefined>, true>;
|
|
59
|
+
note: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
60
|
+
created_by: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
61
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
62
|
+
}>, "Refund">>;
|
|
63
|
+
captures: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
64
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
65
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
66
|
+
payment: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">, undefined>;
|
|
67
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
68
|
+
created_by: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
69
|
+
}>, "Capture">>;
|
|
70
|
+
}>, "Payment">, import("@etohq/framework/utils").HasOne<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
71
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
72
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
73
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
74
|
+
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
75
|
+
cart_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
76
|
+
order_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
77
|
+
customer_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
78
|
+
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
79
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
80
|
+
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
81
|
+
canceled_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
82
|
+
payment_collection: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentCollection">, undefined>;
|
|
83
|
+
payment_session: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentSession">, undefined>;
|
|
84
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
85
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
86
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
87
|
+
payment: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">, undefined>;
|
|
88
|
+
refund_reason: import("@etohq/framework/utils").RelationNullableModifier<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
89
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
90
|
+
label: import("@etohq/framework/utils").TextProperty;
|
|
91
|
+
description: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
92
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
93
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Refund">>;
|
|
94
|
+
}>, "RefundReason">, import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
95
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
96
|
+
label: import("@etohq/framework/utils").TextProperty;
|
|
97
|
+
description: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
98
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
99
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Refund">>;
|
|
100
|
+
}>, "RefundReason">, undefined>, true>;
|
|
101
|
+
note: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
102
|
+
created_by: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
103
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
104
|
+
}>, "Refund">>;
|
|
105
|
+
captures: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
106
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
107
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
108
|
+
payment: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">, undefined>;
|
|
109
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
110
|
+
created_by: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
111
|
+
}>, "Capture">>;
|
|
112
|
+
}>, "Payment">>, false>;
|
|
113
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
114
|
+
}>, "PaymentSession">>;
|
|
115
|
+
payments: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
116
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
117
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
118
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
119
|
+
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
120
|
+
cart_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
121
|
+
order_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
122
|
+
customer_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
123
|
+
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
124
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
125
|
+
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
126
|
+
canceled_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
127
|
+
payment_collection: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentCollection">, undefined>;
|
|
128
|
+
payment_session: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentSession">, undefined>;
|
|
129
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
130
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
131
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
132
|
+
payment: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">, undefined>;
|
|
133
|
+
refund_reason: import("@etohq/framework/utils").RelationNullableModifier<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
134
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
135
|
+
label: import("@etohq/framework/utils").TextProperty;
|
|
136
|
+
description: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
137
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
138
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Refund">>;
|
|
139
|
+
}>, "RefundReason">, import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
140
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
141
|
+
label: import("@etohq/framework/utils").TextProperty;
|
|
142
|
+
description: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
143
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
144
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Refund">>;
|
|
145
|
+
}>, "RefundReason">, undefined>, true>;
|
|
146
|
+
note: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
147
|
+
created_by: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
148
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
149
|
+
}>, "Refund">>;
|
|
150
|
+
captures: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
151
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
152
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
153
|
+
payment: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">, undefined>;
|
|
154
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
155
|
+
created_by: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
156
|
+
}>, "Capture">>;
|
|
157
|
+
}>, "Payment">>;
|
|
158
|
+
}>, "PaymentCollection">;
|
|
159
|
+
export default PaymentCollection;
|
|
160
|
+
//# sourceMappingURL=payment-collection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-collection.d.ts","sourceRoot":"","sources":["../../src/models/payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAKvE,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgCnB,CAAA;AAEJ,eAAe,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const utils_1 = require("@etohq/framework/utils");
|
|
7
|
+
const payment_1 = __importDefault(require("./payment"));
|
|
8
|
+
const payment_provider_1 = __importDefault(require("./payment-provider"));
|
|
9
|
+
const payment_session_1 = __importDefault(require("./payment-session"));
|
|
10
|
+
const PaymentCollection = utils_1.model
|
|
11
|
+
.define("PaymentCollection", {
|
|
12
|
+
id: utils_1.model.id({ prefix: "pay_col" }).primaryKey(),
|
|
13
|
+
currency_code: utils_1.model.text(),
|
|
14
|
+
amount: utils_1.model.bigNumber(),
|
|
15
|
+
authorized_amount: utils_1.model.bigNumber().nullable(),
|
|
16
|
+
captured_amount: utils_1.model.bigNumber().nullable(),
|
|
17
|
+
refunded_amount: utils_1.model.bigNumber().nullable(),
|
|
18
|
+
region_id: utils_1.model.text(),
|
|
19
|
+
completed_at: utils_1.model.dateTime().nullable(),
|
|
20
|
+
status: utils_1.model
|
|
21
|
+
.enum(utils_1.PaymentCollectionStatus)
|
|
22
|
+
.default(utils_1.PaymentCollectionStatus.NOT_PAID),
|
|
23
|
+
metadata: utils_1.model.json().nullable(),
|
|
24
|
+
payment_providers: utils_1.model.manyToMany(() => payment_provider_1.default, {
|
|
25
|
+
mappedBy: "payment_collections",
|
|
26
|
+
}),
|
|
27
|
+
payment_sessions: utils_1.model.hasMany(() => payment_session_1.default, {
|
|
28
|
+
mappedBy: "payment_collection",
|
|
29
|
+
}),
|
|
30
|
+
payments: utils_1.model.hasMany(() => payment_1.default, {
|
|
31
|
+
mappedBy: "payment_collection",
|
|
32
|
+
}),
|
|
33
|
+
})
|
|
34
|
+
.cascades({
|
|
35
|
+
delete: ["payment_sessions", "payments"],
|
|
36
|
+
})
|
|
37
|
+
.indexes([
|
|
38
|
+
{
|
|
39
|
+
name: "IDX_payment_collection_region_id",
|
|
40
|
+
on: ["region_id"],
|
|
41
|
+
},
|
|
42
|
+
]);
|
|
43
|
+
exports.default = PaymentCollection;
|
|
44
|
+
//# sourceMappingURL=payment-collection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-collection.js","sourceRoot":"","sources":["../../src/models/payment-collection.ts"],"names":[],"mappings":";;;;;AAAA,kDAAuE;AACvE,wDAA+B;AAC/B,0EAAgD;AAChD,wEAA8C;AAE9C,MAAM,iBAAiB,GAAG,aAAK;KAC5B,MAAM,CAAC,mBAAmB,EAAE;IAC3B,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,UAAU,EAAE;IAChD,aAAa,EAAE,aAAK,CAAC,IAAI,EAAE;IAC3B,MAAM,EAAE,aAAK,CAAC,SAAS,EAAE;IACzB,iBAAiB,EAAE,aAAK,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE;IAC/C,eAAe,EAAE,aAAK,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE;IAC7C,eAAe,EAAE,aAAK,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE;IAC7C,SAAS,EAAE,aAAK,CAAC,IAAI,EAAE;IACvB,YAAY,EAAE,aAAK,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,MAAM,EAAE,aAAK;SACV,IAAI,CAAC,+BAAuB,CAAC;SAC7B,OAAO,CAAC,+BAAuB,CAAC,QAAQ,CAAC;IAC5C,QAAQ,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACjC,iBAAiB,EAAE,aAAK,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,0BAAe,EAAE;QACzD,QAAQ,EAAE,qBAAqB;KAChC,CAAC;IACF,gBAAgB,EAAE,aAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,yBAAc,EAAE;QACpD,QAAQ,EAAE,oBAAoB;KAC/B,CAAC;IACF,QAAQ,EAAE,aAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,iBAAO,EAAE;QACrC,QAAQ,EAAE,oBAAoB;KAC/B,CAAC;CACH,CAAC;KACD,QAAQ,CAAC;IACR,MAAM,EAAE,CAAC,kBAAkB,EAAE,UAAU,CAAC;CACzC,CAAC;KACD,OAAO,CAAC;IACP;QACE,IAAI,EAAE,kCAAkC;QACxC,EAAE,EAAE,CAAC,WAAW,CAAC;KAClB;CACF,CAAC,CAAA;AAEJ,kBAAe,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const PaymentMethodToken: import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
2
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
3
|
+
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
4
|
+
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
5
|
+
name: import("@etohq/framework/utils").TextProperty;
|
|
6
|
+
type_detail: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
7
|
+
description_detail: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
8
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
9
|
+
}>, "PaymentMethodToken">;
|
|
10
|
+
export default PaymentMethodToken;
|
|
11
|
+
//# sourceMappingURL=payment-method-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method-token.d.ts","sourceRoot":"","sources":["../../src/models/payment-method-token.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,kBAAkB;;;;;;;;yBAQtB,CAAA;AAEF,eAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("@etohq/framework/utils");
|
|
4
|
+
const PaymentMethodToken = utils_1.model.define("PaymentMethodToken", {
|
|
5
|
+
id: utils_1.model.id({ prefix: "paymttok" }).primaryKey(),
|
|
6
|
+
provider_id: utils_1.model.text(),
|
|
7
|
+
data: utils_1.model.json().nullable(),
|
|
8
|
+
name: utils_1.model.text(),
|
|
9
|
+
type_detail: utils_1.model.text().nullable(),
|
|
10
|
+
description_detail: utils_1.model.text().nullable(),
|
|
11
|
+
metadata: utils_1.model.json().nullable(),
|
|
12
|
+
});
|
|
13
|
+
exports.default = PaymentMethodToken;
|
|
14
|
+
//# sourceMappingURL=payment-method-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method-token.js","sourceRoot":"","sources":["../../src/models/payment-method-token.ts"],"names":[],"mappings":";;AAAA,kDAA8C;AAE9C,MAAM,kBAAkB,GAAG,aAAK,CAAC,MAAM,CAAC,oBAAoB,EAAE;IAC5D,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC,UAAU,EAAE;IACjD,WAAW,EAAE,aAAK,CAAC,IAAI,EAAE;IACzB,IAAI,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,aAAK,CAAC,IAAI,EAAE;IAClB,WAAW,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACpC,kBAAkB,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA;AAEF,kBAAe,kBAAkB,CAAA"}
|