@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,81 @@
|
|
|
1
|
+
declare const RefundReason: import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
2
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
3
|
+
label: import("@etohq/framework/utils").TextProperty;
|
|
4
|
+
description: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
5
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
6
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
7
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
8
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
9
|
+
payment: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
10
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
11
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
12
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
13
|
+
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
14
|
+
cart_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
15
|
+
order_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
16
|
+
customer_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
17
|
+
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
18
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
19
|
+
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
20
|
+
canceled_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
21
|
+
payment_collection: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
22
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
23
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
24
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
25
|
+
authorized_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
26
|
+
captured_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
27
|
+
refunded_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
28
|
+
region_id: import("@etohq/framework/utils").TextProperty;
|
|
29
|
+
completed_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
30
|
+
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").PaymentCollectionStatus>;
|
|
31
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
32
|
+
payment_providers: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
33
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
34
|
+
is_enabled: import("@etohq/framework/utils").BooleanProperty;
|
|
35
|
+
payment_collections: import("@etohq/framework/utils").ManyToMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentCollection">>;
|
|
36
|
+
}>, "PaymentProvider">>;
|
|
37
|
+
payment_sessions: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
38
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
39
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
40
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
41
|
+
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
42
|
+
data: import("@etohq/framework/utils").JSONProperty;
|
|
43
|
+
context: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
44
|
+
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").PaymentSessionStatus>;
|
|
45
|
+
authorized_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
46
|
+
payment_collection: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentCollection">, undefined>;
|
|
47
|
+
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>;
|
|
48
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
49
|
+
}>, "PaymentSession">>;
|
|
50
|
+
payments: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">>;
|
|
51
|
+
}>, "PaymentCollection">, undefined>;
|
|
52
|
+
payment_session: 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
|
+
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
55
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
56
|
+
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
57
|
+
data: import("@etohq/framework/utils").JSONProperty;
|
|
58
|
+
context: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
59
|
+
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").PaymentSessionStatus>;
|
|
60
|
+
authorized_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
61
|
+
payment_collection: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "PaymentCollection">, undefined>;
|
|
62
|
+
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>;
|
|
63
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
64
|
+
}>, "PaymentSession">, undefined>;
|
|
65
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Refund">>;
|
|
66
|
+
captures: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
67
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
68
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
69
|
+
payment: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">, undefined>;
|
|
70
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
71
|
+
created_by: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
72
|
+
}>, "Capture">>;
|
|
73
|
+
}>, "Payment">, undefined>;
|
|
74
|
+
refund_reason: import("@etohq/framework/utils").RelationNullableModifier<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "RefundReason">, import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "RefundReason">, undefined>, true>;
|
|
75
|
+
note: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
76
|
+
created_by: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
77
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
78
|
+
}>, "Refund">>;
|
|
79
|
+
}>, "RefundReason">;
|
|
80
|
+
export default RefundReason;
|
|
81
|
+
//# sourceMappingURL=refund-reason.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refund-reason.d.ts","sourceRoot":"","sources":["../../src/models/refund-reason.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAQhB,CAAA;AAEF,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 refund_1 = __importDefault(require("./refund"));
|
|
8
|
+
const RefundReason = utils_1.model.define("RefundReason", {
|
|
9
|
+
id: utils_1.model.id({ prefix: "refr" }).primaryKey(),
|
|
10
|
+
label: utils_1.model.text().searchable(),
|
|
11
|
+
description: utils_1.model.text().nullable(),
|
|
12
|
+
metadata: utils_1.model.json().nullable(),
|
|
13
|
+
refunds: utils_1.model.hasMany(() => refund_1.default, {
|
|
14
|
+
mappedBy: "refund_reason",
|
|
15
|
+
}),
|
|
16
|
+
});
|
|
17
|
+
exports.default = RefundReason;
|
|
18
|
+
//# sourceMappingURL=refund-reason.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refund-reason.js","sourceRoot":"","sources":["../../src/models/refund-reason.ts"],"names":[],"mappings":";;;;;AAAA,kDAA8C;AAC9C,sDAA6B;AAE7B,MAAM,YAAY,GAAG,aAAK,CAAC,MAAM,CAAC,cAAc,EAAE;IAChD,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE;IAC7C,KAAK,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE;IAChC,WAAW,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,aAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,gBAAM,EAAE;QACnC,QAAQ,EAAE,eAAe;KAC1B,CAAC;CACH,CAAC,CAAA;AAEF,kBAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
declare const Refund: 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<any>, "Refund">>;
|
|
61
|
+
captures: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
62
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
63
|
+
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
64
|
+
payment: import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Payment">, undefined>;
|
|
65
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
66
|
+
created_by: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
67
|
+
}>, "Capture">>;
|
|
68
|
+
}>, "Payment">, undefined>;
|
|
69
|
+
refund_reason: import("@etohq/framework/utils").RelationNullableModifier<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
70
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
71
|
+
label: import("@etohq/framework/utils").TextProperty;
|
|
72
|
+
description: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
73
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
74
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Refund">>;
|
|
75
|
+
}>, "RefundReason">, import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
76
|
+
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
77
|
+
label: import("@etohq/framework/utils").TextProperty;
|
|
78
|
+
description: 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
|
+
refunds: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<any>, "Refund">>;
|
|
81
|
+
}>, "RefundReason">, undefined>, true>;
|
|
82
|
+
note: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
83
|
+
created_by: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
84
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
85
|
+
}>, "Refund">;
|
|
86
|
+
export default Refund;
|
|
87
|
+
//# sourceMappingURL=refund.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refund.d.ts","sourceRoot":"","sources":["../../src/models/refund.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAqBR,CAAA;AAEJ,eAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 refund_reason_1 = __importDefault(require("./refund-reason"));
|
|
9
|
+
const Refund = utils_1.model
|
|
10
|
+
.define("Refund", {
|
|
11
|
+
id: utils_1.model.id({ prefix: "ref" }).primaryKey(),
|
|
12
|
+
amount: utils_1.model.bigNumber(),
|
|
13
|
+
payment: utils_1.model.belongsTo(() => payment_1.default, {
|
|
14
|
+
mappedBy: "refunds",
|
|
15
|
+
}),
|
|
16
|
+
refund_reason: utils_1.model
|
|
17
|
+
.belongsTo(() => refund_reason_1.default, {
|
|
18
|
+
mappedBy: "refunds",
|
|
19
|
+
})
|
|
20
|
+
.nullable(),
|
|
21
|
+
note: utils_1.model.text().nullable(),
|
|
22
|
+
created_by: utils_1.model.text().nullable(),
|
|
23
|
+
metadata: utils_1.model.json().nullable(),
|
|
24
|
+
})
|
|
25
|
+
.indexes([
|
|
26
|
+
{
|
|
27
|
+
name: "IDX_refund_payment_id",
|
|
28
|
+
on: ["payment_id"],
|
|
29
|
+
},
|
|
30
|
+
]);
|
|
31
|
+
exports.default = Refund;
|
|
32
|
+
//# sourceMappingURL=refund.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refund.js","sourceRoot":"","sources":["../../src/models/refund.ts"],"names":[],"mappings":";;;;;AAAA,kDAA8C;AAC9C,wDAA+B;AAC/B,oEAA0C;AAE1C,MAAM,MAAM,GAAG,aAAK;KACjB,MAAM,CAAC,QAAQ,EAAE;IAChB,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,UAAU,EAAE;IAC5C,MAAM,EAAE,aAAK,CAAC,SAAS,EAAE;IACzB,OAAO,EAAE,aAAK,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,iBAAO,EAAE;QACtC,QAAQ,EAAE,SAAS;KACpB,CAAC;IACF,aAAa,EAAE,aAAK;SACjB,SAAS,CAAC,GAAG,EAAE,CAAC,uBAAY,EAAE;QAC7B,QAAQ,EAAE,SAAS;KACpB,CAAC;SACD,QAAQ,EAAE;IACb,IAAI,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC7B,UAAU,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,OAAO,CAAC;IACP;QACE,IAAI,EAAE,uBAAuB;QAC7B,EAAE,EAAE,CAAC,YAAY,CAAC;KACnB;CACF,CAAC,CAAA;AAEJ,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.SystemPaymentProvider = void 0;
|
|
7
|
+
var system_1 = require("./system");
|
|
8
|
+
Object.defineProperty(exports, "SystemPaymentProvider", { enumerable: true, get: function () { return __importDefault(system_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":";;;;;;AAAA,mCAA2D;AAAlD,gIAAA,OAAO,OAAyB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CreatePaymentProviderSession, PaymentProviderError, PaymentProviderSessionResponse, ProviderWebhookPayload, WebhookActionResult } from "@etohq/framework/types";
|
|
2
|
+
import { AbstractPaymentProvider, PaymentSessionStatus } from "@etohq/framework/utils";
|
|
3
|
+
export declare class SystemProviderService extends AbstractPaymentProvider {
|
|
4
|
+
static identifier: string;
|
|
5
|
+
getStatus(_: any): Promise<string>;
|
|
6
|
+
getPaymentData(_: any): Promise<Record<string, unknown>>;
|
|
7
|
+
initiatePayment(context: CreatePaymentProviderSession): Promise<PaymentProviderSessionResponse>;
|
|
8
|
+
getPaymentStatus(paymentSessionData: Record<string, unknown>): Promise<PaymentSessionStatus>;
|
|
9
|
+
retrievePayment(paymentSessionData: Record<string, unknown>): Promise<Record<string, unknown> | PaymentProviderError>;
|
|
10
|
+
authorizePayment(_: any): Promise<PaymentProviderError | {
|
|
11
|
+
status: PaymentSessionStatus;
|
|
12
|
+
data: PaymentProviderSessionResponse["data"];
|
|
13
|
+
}>;
|
|
14
|
+
updatePayment(_: any): Promise<PaymentProviderError | PaymentProviderSessionResponse>;
|
|
15
|
+
deletePayment(_: any): Promise<Record<string, unknown>>;
|
|
16
|
+
capturePayment(_: any): Promise<Record<string, unknown>>;
|
|
17
|
+
refundPayment(_: any): Promise<Record<string, unknown>>;
|
|
18
|
+
cancelPayment(_: any): Promise<Record<string, unknown>>;
|
|
19
|
+
getWebhookActionAndData(data: ProviderWebhookPayload["payload"]): Promise<WebhookActionResult>;
|
|
20
|
+
}
|
|
21
|
+
export default SystemProviderService;
|
|
22
|
+
//# sourceMappingURL=system.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../src/providers/system.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,8BAA8B,EAC9B,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,uBAAuB,EAEvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAE/B,qBAAa,qBAAsB,SAAQ,uBAAuB;IAChE,MAAM,CAAC,UAAU,SAAW;IAEtB,SAAS,CAAC,CAAC,KAAA,GAAG,OAAO,CAAC,MAAM,CAAC;IAI7B,cAAc,CAAC,CAAC,KAAA,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAInD,eAAe,CACnB,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,8BAA8B,CAAC;IAIpC,gBAAgB,CACpB,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC1C,OAAO,CAAC,oBAAoB,CAAC;IAI1B,eAAe,CACnB,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC1C,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,oBAAoB,CAAC;IAIpD,gBAAgB,CAAC,CAAC,KAAA,GAAG,OAAO,CAC9B,oBAAoB,GACpB;QACE,MAAM,EAAE,oBAAoB,CAAA;QAC5B,IAAI,EAAE,8BAA8B,CAAC,MAAM,CAAC,CAAA;KAC7C,CACJ;IAIK,aAAa,CACjB,CAAC,KAAA,GACA,OAAO,CAAC,oBAAoB,GAAG,8BAA8B,CAAC;IAI3D,aAAa,CAAC,CAAC,KAAA,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIlD,cAAc,CAAC,CAAC,KAAA,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAInD,aAAa,CAAC,CAAC,KAAA,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIlD,aAAa,CAAC,CAAC,KAAA,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIlD,uBAAuB,CAC3B,IAAI,EAAE,sBAAsB,CAAC,SAAS,CAAC,GACtC,OAAO,CAAC,mBAAmB,CAAC;CAGhC;AAED,eAAe,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SystemProviderService = void 0;
|
|
4
|
+
const utils_1 = require("@etohq/framework/utils");
|
|
5
|
+
class SystemProviderService extends utils_1.AbstractPaymentProvider {
|
|
6
|
+
async getStatus(_) {
|
|
7
|
+
return "authorized";
|
|
8
|
+
}
|
|
9
|
+
async getPaymentData(_) {
|
|
10
|
+
return {};
|
|
11
|
+
}
|
|
12
|
+
async initiatePayment(context) {
|
|
13
|
+
return { data: {} };
|
|
14
|
+
}
|
|
15
|
+
async getPaymentStatus(paymentSessionData) {
|
|
16
|
+
throw new Error("Method not implemented.");
|
|
17
|
+
}
|
|
18
|
+
async retrievePayment(paymentSessionData) {
|
|
19
|
+
return {};
|
|
20
|
+
}
|
|
21
|
+
async authorizePayment(_) {
|
|
22
|
+
return { data: {}, status: utils_1.PaymentSessionStatus.AUTHORIZED };
|
|
23
|
+
}
|
|
24
|
+
async updatePayment(_) {
|
|
25
|
+
return { data: {} };
|
|
26
|
+
}
|
|
27
|
+
async deletePayment(_) {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
async capturePayment(_) {
|
|
31
|
+
return {};
|
|
32
|
+
}
|
|
33
|
+
async refundPayment(_) {
|
|
34
|
+
return {};
|
|
35
|
+
}
|
|
36
|
+
async cancelPayment(_) {
|
|
37
|
+
return {};
|
|
38
|
+
}
|
|
39
|
+
async getWebhookActionAndData(data) {
|
|
40
|
+
return { action: utils_1.PaymentActions.NOT_SUPPORTED };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.SystemProviderService = SystemProviderService;
|
|
44
|
+
SystemProviderService.identifier = "system";
|
|
45
|
+
exports.default = SystemProviderService;
|
|
46
|
+
//# sourceMappingURL=system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../src/providers/system.ts"],"names":[],"mappings":";;;AAOA,kDAI+B;AAE/B,MAAa,qBAAsB,SAAQ,+BAAuB;IAGhE,KAAK,CAAC,SAAS,CAAC,CAAC;QACf,OAAO,YAAY,CAAA;IACrB,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,CAAC;QACpB,OAAO,EAAE,CAAA;IACX,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,OAAqC;QAErC,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;IACrB,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,kBAA2C;QAE3C,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;IAC5C,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,kBAA2C;QAE3C,OAAO,EAAE,CAAA;IACX,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAOtB,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,4BAAoB,CAAC,UAAU,EAAE,CAAA;IAC9D,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,CAAC;QAED,OAAO,EAAE,IAAI,EAAE,EAAE,EAAoC,CAAA;IACvD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,CAAC;QACnB,OAAO,EAAE,CAAA;IACX,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,CAAC;QACpB,OAAO,EAAE,CAAA;IACX,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,CAAC;QACnB,OAAO,EAAE,CAAA;IACX,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,CAAC;QACnB,OAAO,EAAE,CAAA;IACX,CAAC;IAED,KAAK,CAAC,uBAAuB,CAC3B,IAAuC;QAEvC,OAAO,EAAE,MAAM,EAAE,sBAAc,CAAC,aAAa,EAAE,CAAA;IACjD,CAAC;;AAjEH,sDAkEC;AAjEQ,gCAAU,GAAG,QAAQ,CAAA;AAmE9B,kBAAe,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: "\nenum PaymentCollectionStatus {\n not_paid\n awaiting\n authorized\n partially_authorized\n canceled\n}\n\nenum PaymentSessionStatus {\n authorized\n captured\n pending\n requires_more\n error\n canceled\n}\n\ntype PaymentCollection {\n id: ID!\n currency_code: String!\n region_id: String!\n amount: Float!\n authorized_amount: Float\n refunded_amount: Float\n captured_amount: Float\n completed_at: DateTime\n created_at: DateTime\n updated_at: DateTime\n metadata: JSON\n status: PaymentCollectionStatus!\n payment_providers: [PaymentProviderDTO!]!\n payment_sessions: [PaymentSessionDTO]\n payments: [PaymentDTO]\n}\n\ntype Payment {\n id: ID!\n amount: Float!\n raw_amount: Float\n authorized_amount: Float\n raw_authorized_amount: Float\n currency_code: String!\n provider_id: String!\n cart_id: String\n order_id: String\n order_edit_id: String\n customer_id: String\n data: JSON\n created_at: DateTime\n updated_at: DateTime\n captured_at: DateTime\n canceled_at: DateTime\n captured_amount: Float\n raw_captured_amount: Float\n refunded_amount: Float\n raw_refunded_amount: Float\n captures: [CaptureDTO]\n refunds: [RefundDTO]\n payment_collection_id: String!\n payment_collection: PaymentCollectionDTO\n payment_session: PaymentSessionDTO\n}\n\ntype Capture {\n id: ID!\n amount: Float!\n created_at: DateTime!\n created_by: String\n payment: Payment!\n}\n\ntype Refund {\n id: ID!\n amount: Float!\n refund_reason_id: String\n refund_reason: RefundReason\n note: String\n created_at: DateTime!\n created_by: String\n payment: Payment!\n}\n\ntype PaymentSession {\n id: ID!\n amount: Float!\n currency_code: String!\n provider_id: String!\n data: JSON!\n context: JSON\n status: PaymentSessionStatus!\n authorized_at: DateTime\n payment_collection_id: String!\n payment_collection: PaymentCollection\n payment: Payment\n}\n\ntype PaymentProvider {\n id: ID!\n is_enabled: String!\n}\n\ntype RefundReason {\n id: ID!\n label: String!\n description: String\n metadata: JSON\n created_at: DateTime!\n updated_at: DateTime!\n}\n";
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";AAAA,wBA8GC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = `
|
|
4
|
+
enum PaymentCollectionStatus {
|
|
5
|
+
not_paid
|
|
6
|
+
awaiting
|
|
7
|
+
authorized
|
|
8
|
+
partially_authorized
|
|
9
|
+
canceled
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
enum PaymentSessionStatus {
|
|
13
|
+
authorized
|
|
14
|
+
captured
|
|
15
|
+
pending
|
|
16
|
+
requires_more
|
|
17
|
+
error
|
|
18
|
+
canceled
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type PaymentCollection {
|
|
22
|
+
id: ID!
|
|
23
|
+
currency_code: String!
|
|
24
|
+
region_id: String!
|
|
25
|
+
amount: Float!
|
|
26
|
+
authorized_amount: Float
|
|
27
|
+
refunded_amount: Float
|
|
28
|
+
captured_amount: Float
|
|
29
|
+
completed_at: DateTime
|
|
30
|
+
created_at: DateTime
|
|
31
|
+
updated_at: DateTime
|
|
32
|
+
metadata: JSON
|
|
33
|
+
status: PaymentCollectionStatus!
|
|
34
|
+
payment_providers: [PaymentProviderDTO!]!
|
|
35
|
+
payment_sessions: [PaymentSessionDTO]
|
|
36
|
+
payments: [PaymentDTO]
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type Payment {
|
|
40
|
+
id: ID!
|
|
41
|
+
amount: Float!
|
|
42
|
+
raw_amount: Float
|
|
43
|
+
authorized_amount: Float
|
|
44
|
+
raw_authorized_amount: Float
|
|
45
|
+
currency_code: String!
|
|
46
|
+
provider_id: String!
|
|
47
|
+
cart_id: String
|
|
48
|
+
order_id: String
|
|
49
|
+
order_edit_id: String
|
|
50
|
+
customer_id: String
|
|
51
|
+
data: JSON
|
|
52
|
+
created_at: DateTime
|
|
53
|
+
updated_at: DateTime
|
|
54
|
+
captured_at: DateTime
|
|
55
|
+
canceled_at: DateTime
|
|
56
|
+
captured_amount: Float
|
|
57
|
+
raw_captured_amount: Float
|
|
58
|
+
refunded_amount: Float
|
|
59
|
+
raw_refunded_amount: Float
|
|
60
|
+
captures: [CaptureDTO]
|
|
61
|
+
refunds: [RefundDTO]
|
|
62
|
+
payment_collection_id: String!
|
|
63
|
+
payment_collection: PaymentCollectionDTO
|
|
64
|
+
payment_session: PaymentSessionDTO
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
type Capture {
|
|
68
|
+
id: ID!
|
|
69
|
+
amount: Float!
|
|
70
|
+
created_at: DateTime!
|
|
71
|
+
created_by: String
|
|
72
|
+
payment: Payment!
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
type Refund {
|
|
76
|
+
id: ID!
|
|
77
|
+
amount: Float!
|
|
78
|
+
refund_reason_id: String
|
|
79
|
+
refund_reason: RefundReason
|
|
80
|
+
note: String
|
|
81
|
+
created_at: DateTime!
|
|
82
|
+
created_by: String
|
|
83
|
+
payment: Payment!
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
type PaymentSession {
|
|
87
|
+
id: ID!
|
|
88
|
+
amount: Float!
|
|
89
|
+
currency_code: String!
|
|
90
|
+
provider_id: String!
|
|
91
|
+
data: JSON!
|
|
92
|
+
context: JSON
|
|
93
|
+
status: PaymentSessionStatus!
|
|
94
|
+
authorized_at: DateTime
|
|
95
|
+
payment_collection_id: String!
|
|
96
|
+
payment_collection: PaymentCollection
|
|
97
|
+
payment: Payment
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
type PaymentProvider {
|
|
101
|
+
id: ID!
|
|
102
|
+
is_enabled: String!
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
type RefundReason {
|
|
106
|
+
id: ID!
|
|
107
|
+
label: String!
|
|
108
|
+
description: String
|
|
109
|
+
metadata: JSON
|
|
110
|
+
created_at: DateTime!
|
|
111
|
+
updated_at: DateTime!
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;AAAA,kBAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Gd,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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.PaymentProviderService = exports.PaymentModuleService = void 0;
|
|
7
|
+
var payment_module_1 = require("./payment-module");
|
|
8
|
+
Object.defineProperty(exports, "PaymentModuleService", { enumerable: true, get: function () { return __importDefault(payment_module_1).default; } });
|
|
9
|
+
var payment_provider_1 = require("./payment-provider");
|
|
10
|
+
Object.defineProperty(exports, "PaymentProviderService", { enumerable: true, get: function () { return __importDefault(payment_provider_1).default; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;;;;AAAA,mDAAkE;AAAzD,uIAAA,OAAO,OAAwB;AACxC,uDAAsE;AAA7D,2IAAA,OAAO,OAA0B"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { CaptureDTO, Context, CreateCaptureDTO, CreatePaymentCollectionDTO, CreatePaymentSessionDTO, CreateRefundDTO, DAL, FilterablePaymentCollectionProps, FilterablePaymentProviderProps, FilterablePaymentSessionProps, FindConfig, InferEntityType, InternalModuleDeclaration, IPaymentModuleService, Logger, ModuleJoinerConfig, ModulesSdkTypes, PaymentCollectionDTO, PaymentCollectionUpdatableFields, PaymentDTO, PaymentProviderDTO, PaymentSessionDTO, ProviderWebhookPayload, RefundDTO, RefundReasonDTO, UpdatePaymentCollectionDTO, UpdatePaymentDTO, UpdatePaymentSessionDTO, UpsertPaymentCollectionDTO, WebhookActionResult } from "@etohq/framework/types";
|
|
2
|
+
import { ModulesSdkUtils, PaymentSessionStatus } from "@etohq/framework/utils";
|
|
3
|
+
import { Capture, Payment, PaymentCollection, PaymentSession, Refund } from "../models";
|
|
4
|
+
import PaymentProviderService from "./payment-provider";
|
|
5
|
+
type InjectedDependencies = {
|
|
6
|
+
logger?: Logger;
|
|
7
|
+
baseRepository: DAL.RepositoryService;
|
|
8
|
+
paymentService: ModulesSdkTypes.IEtoInternalService<any>;
|
|
9
|
+
captureService: ModulesSdkTypes.IEtoInternalService<any>;
|
|
10
|
+
refundService: ModulesSdkTypes.IEtoInternalService<any>;
|
|
11
|
+
paymentSessionService: ModulesSdkTypes.IEtoInternalService<any>;
|
|
12
|
+
paymentCollectionService: ModulesSdkTypes.IEtoInternalService<any>;
|
|
13
|
+
paymentProviderService: PaymentProviderService;
|
|
14
|
+
};
|
|
15
|
+
declare const PaymentModuleService_base: ModulesSdkUtils.EtoServiceReturnType<{
|
|
16
|
+
PaymentCollection: {
|
|
17
|
+
dto: PaymentCollectionDTO;
|
|
18
|
+
};
|
|
19
|
+
PaymentSession: {
|
|
20
|
+
dto: PaymentSessionDTO;
|
|
21
|
+
};
|
|
22
|
+
Payment: {
|
|
23
|
+
dto: PaymentDTO;
|
|
24
|
+
};
|
|
25
|
+
Capture: {
|
|
26
|
+
dto: CaptureDTO;
|
|
27
|
+
};
|
|
28
|
+
Refund: {
|
|
29
|
+
dto: RefundDTO;
|
|
30
|
+
};
|
|
31
|
+
RefundReason: {
|
|
32
|
+
dto: RefundReasonDTO;
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
export default class PaymentModuleService extends PaymentModuleService_base implements IPaymentModuleService {
|
|
36
|
+
protected readonly moduleDeclaration: InternalModuleDeclaration;
|
|
37
|
+
protected baseRepository_: DAL.RepositoryService;
|
|
38
|
+
protected paymentService_: ModulesSdkTypes.IEtoInternalService<typeof Payment>;
|
|
39
|
+
protected captureService_: ModulesSdkTypes.IEtoInternalService<typeof Capture>;
|
|
40
|
+
protected refundService_: ModulesSdkTypes.IEtoInternalService<typeof Refund>;
|
|
41
|
+
protected paymentSessionService_: ModulesSdkTypes.IEtoInternalService<typeof PaymentSession>;
|
|
42
|
+
protected paymentCollectionService_: ModulesSdkTypes.IEtoInternalService<typeof PaymentCollection>;
|
|
43
|
+
protected paymentProviderService_: PaymentProviderService;
|
|
44
|
+
constructor({ baseRepository, paymentService, captureService, refundService, paymentSessionService, paymentProviderService, paymentCollectionService, }: InjectedDependencies, moduleDeclaration: InternalModuleDeclaration);
|
|
45
|
+
__joinerConfig(): ModuleJoinerConfig;
|
|
46
|
+
createPaymentCollections(data: CreatePaymentCollectionDTO, sharedContext?: Context): Promise<PaymentCollectionDTO>;
|
|
47
|
+
createPaymentCollections(data: CreatePaymentCollectionDTO[], sharedContext?: Context): Promise<PaymentCollectionDTO[]>;
|
|
48
|
+
createPaymentCollections_(data: CreatePaymentCollectionDTO[], sharedContext?: Context): Promise<InferEntityType<typeof PaymentCollection>[]>;
|
|
49
|
+
updatePaymentCollections(paymentCollectionId: string, data: PaymentCollectionUpdatableFields, sharedContext?: Context): Promise<PaymentCollectionDTO>;
|
|
50
|
+
updatePaymentCollections(selector: FilterablePaymentCollectionProps, data: PaymentCollectionUpdatableFields, sharedContext?: Context): Promise<PaymentCollectionDTO[]>;
|
|
51
|
+
updatePaymentCollections_(data: UpdatePaymentCollectionDTO[], sharedContext?: Context): Promise<InferEntityType<typeof PaymentCollection>[]>;
|
|
52
|
+
upsertPaymentCollections(data: UpsertPaymentCollectionDTO[], sharedContext?: Context): Promise<PaymentCollectionDTO[]>;
|
|
53
|
+
upsertPaymentCollections(data: UpsertPaymentCollectionDTO, sharedContext?: Context): Promise<PaymentCollectionDTO>;
|
|
54
|
+
completePaymentCollections(paymentCollectionId: string, sharedContext?: Context): Promise<PaymentCollectionDTO>;
|
|
55
|
+
completePaymentCollections(paymentCollectionId: string[], sharedContext?: Context): Promise<PaymentCollectionDTO[]>;
|
|
56
|
+
createPaymentSession(paymentCollectionId: string, input: CreatePaymentSessionDTO, sharedContext?: Context): Promise<PaymentSessionDTO>;
|
|
57
|
+
createPaymentSession_(paymentCollectionId: string, data: CreatePaymentSessionDTO, sharedContext?: Context): Promise<InferEntityType<typeof PaymentSession>>;
|
|
58
|
+
updatePaymentSession(data: UpdatePaymentSessionDTO, sharedContext?: Context): Promise<PaymentSessionDTO>;
|
|
59
|
+
deletePaymentSession(id: string, sharedContext?: Context): Promise<void>;
|
|
60
|
+
authorizePaymentSession(id: string, context: Record<string, unknown>, sharedContext?: Context): Promise<PaymentDTO>;
|
|
61
|
+
authorizePaymentSession_(session: InferEntityType<typeof PaymentSession>, data: Record<string, unknown>, status: PaymentSessionStatus, sharedContext?: Context): Promise<InferEntityType<typeof Payment>>;
|
|
62
|
+
retrievePaymentSession(id: string, config?: FindConfig<PaymentSessionDTO>, sharedContext?: Context): Promise<PaymentSessionDTO>;
|
|
63
|
+
listPaymentSessions(filters?: FilterablePaymentSessionProps, config?: FindConfig<PaymentSessionDTO>, sharedContext?: Context): Promise<PaymentSessionDTO[]>;
|
|
64
|
+
updatePayment(data: UpdatePaymentDTO, sharedContext?: Context): Promise<PaymentDTO>;
|
|
65
|
+
capturePayment(data: CreateCaptureDTO, sharedContext?: Context): Promise<PaymentDTO>;
|
|
66
|
+
private capturePayment_;
|
|
67
|
+
private capturePaymentFromProvider_;
|
|
68
|
+
refundPayment(data: CreateRefundDTO, sharedContext?: Context): Promise<PaymentDTO>;
|
|
69
|
+
private refundPayment_;
|
|
70
|
+
private refundPaymentFromProvider_;
|
|
71
|
+
cancelPayment(paymentId: string, sharedContext?: Context): Promise<PaymentDTO>;
|
|
72
|
+
getWebhookActionAndData(eventData: ProviderWebhookPayload, sharedContext?: Context): Promise<WebhookActionResult>;
|
|
73
|
+
listPaymentProviders(filters?: FilterablePaymentProviderProps, config?: FindConfig<PaymentProviderDTO>, sharedContext?: Context): Promise<PaymentProviderDTO[]>;
|
|
74
|
+
listAndCountPaymentProviders(filters?: FilterablePaymentProviderProps, config?: FindConfig<PaymentProviderDTO>, sharedContext?: Context): Promise<[PaymentProviderDTO[], number]>;
|
|
75
|
+
private maybeUpdatePaymentCollection_;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=payment-module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-module.d.ts","sourceRoot":"","sources":["../../src/services/payment-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,0BAA0B,EAC1B,uBAAuB,EACvB,eAAe,EACf,GAAG,EACH,gCAAgC,EAChC,8BAA8B,EAC9B,6BAA6B,EAC7B,UAAU,EACV,eAAe,EACf,yBAAyB,EACzB,qBAAqB,EACrB,MAAM,EACN,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,gCAAgC,EAChC,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAQL,eAAe,EAEf,oBAAoB,EAErB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,cAAc,EACd,MAAM,EAEP,MAAM,SAAS,CAAA;AAEhB,OAAO,sBAAsB,MAAM,oBAAoB,CAAA;AAEvD,KAAK,oBAAoB,GAAG;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,cAAc,EAAE,GAAG,CAAC,iBAAiB,CAAA;IACrC,cAAc,EAAE,eAAe,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACxD,cAAc,EAAE,eAAe,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACx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