@etohq/payment 1.4.0 → 1.5.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/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/joiner-config.d.ts.map +1 -1
- package/dist/joiner-config.js +15 -17
- package/dist/joiner-config.js.map +1 -1
- package/dist/migrations/Migration20250115160517.d.ts +6 -0
- package/dist/migrations/Migration20250115160517.d.ts.map +1 -0
- package/dist/migrations/Migration20250115160517.js +20 -0
- package/dist/migrations/Migration20250115160517.js.map +1 -0
- package/dist/migrations/Migration20250120110552.d.ts +6 -0
- package/dist/migrations/Migration20250120110552.d.ts.map +1 -0
- package/dist/migrations/Migration20250120110552.js +16 -0
- package/dist/migrations/Migration20250120110552.js.map +1 -0
- package/dist/migrations/Migration20250123122334.d.ts +6 -0
- package/dist/migrations/Migration20250123122334.d.ts.map +1 -0
- package/dist/migrations/Migration20250123122334.js +24 -0
- package/dist/migrations/Migration20250123122334.js.map +1 -0
- package/dist/migrations/Migration20250206105639.d.ts +6 -0
- package/dist/migrations/Migration20250206105639.d.ts.map +1 -0
- package/dist/migrations/Migration20250206105639.js +15 -0
- package/dist/migrations/Migration20250206105639.js.map +1 -0
- package/dist/migrations/Migration20250207132723.d.ts +6 -0
- package/dist/migrations/Migration20250207132723.d.ts.map +1 -0
- package/dist/migrations/Migration20250207132723.js +16 -0
- package/dist/migrations/Migration20250207132723.js.map +1 -0
- package/dist/migrations/Migration20250625084134.d.ts +6 -0
- package/dist/migrations/Migration20250625084134.d.ts.map +1 -0
- package/dist/migrations/Migration20250625084134.js +16 -0
- package/dist/migrations/Migration20250625084134.js.map +1 -0
- package/dist/models/account-holder.d.ts +10 -0
- package/dist/models/account-holder.d.ts.map +1 -0
- package/dist/models/account-holder.js +20 -0
- package/dist/models/account-holder.js.map +1 -0
- package/dist/models/capture.d.ts +0 -5
- package/dist/models/capture.d.ts.map +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +3 -3
- package/dist/models/index.js.map +1 -1
- package/dist/models/payment-collection.d.ts +0 -10
- package/dist/models/payment-collection.d.ts.map +1 -1
- package/dist/models/payment-collection.js +1 -8
- package/dist/models/payment-collection.js.map +1 -1
- package/dist/models/payment-provider.d.ts +0 -10
- package/dist/models/payment-provider.d.ts.map +1 -1
- package/dist/models/payment-session.d.ts +0 -8
- package/dist/models/payment-session.d.ts.map +1 -1
- package/dist/models/payment.d.ts +0 -4
- package/dist/models/payment.d.ts.map +1 -1
- package/dist/models/payment.js +2 -3
- package/dist/models/payment.js.map +1 -1
- package/dist/models/refund-reason.d.ts +0 -5
- package/dist/models/refund-reason.d.ts.map +1 -1
- package/dist/models/refund.d.ts +0 -5
- package/dist/models/refund.d.ts.map +1 -1
- package/dist/providers/system.d.ts +13 -14
- package/dist/providers/system.d.ts.map +1 -1
- package/dist/providers/system.js +24 -14
- package/dist/providers/system.js.map +1 -1
- package/dist/schema/index.d.ts +1 -2
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +111 -111
- package/dist/schema/index.js.map +1 -1
- package/dist/services/payment-module.d.ts +19 -8
- package/dist/services/payment-module.d.ts.map +1 -1
- package/dist/services/payment-module.js +281 -118
- package/dist/services/payment-module.js.map +1 -1
- package/dist/services/payment-provider.d.ts +14 -13
- package/dist/services/payment-provider.d.ts.map +1 -1
- package/dist/services/payment-provider.js +61 -50
- package/dist/services/payment-provider.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/dist/models/payment-method-token.d.ts +0 -11
- package/dist/models/payment-method-token.d.ts.map +0 -1
- package/dist/models/payment-method-token.js +0 -14
- package/dist/models/payment-method-token.js.map +0 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;;;;AAIhD,wBAGE;AAEF,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
6
|
+
const _services_1 = require("./services");
|
|
7
7
|
const providers_1 = __importDefault(require("./loaders/providers"));
|
|
8
8
|
const utils_1 = require("@etohq/framework/utils");
|
|
9
9
|
exports.default = (0, utils_1.Module)(utils_1.Modules.PAYMENT, {
|
|
10
|
-
service:
|
|
10
|
+
service: _services_1.PaymentModuleService,
|
|
11
11
|
loaders: [providers_1.default],
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,yCAAgD;AAChD,oEAA+C;AAC/C,kDAAwD;AAExD,kBAAe,IAAA,cAAM,EAAC,eAAO,CAAC,OAAO,EAAE;IACrC,OAAO,EAAE,gCAAoB;IAC7B,OAAO,EAAE,CAAC,mBAAa,CAAC;CACzB,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joiner-config.d.ts","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"joiner-config.d.ts","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY,iOAiBvB,CAAA"}
|
package/dist/joiner-config.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.joinerConfig = void 0;
|
|
7
4
|
const utils_1 = require("@etohq/framework/utils");
|
|
8
|
-
const
|
|
9
|
-
const schema_1 = __importDefault(require("./schema"));
|
|
5
|
+
const _models_1 = require("./models");
|
|
10
6
|
exports.joinerConfig = (0, utils_1.defineJoinerConfig)(utils_1.Modules.PAYMENT, {
|
|
11
|
-
schema: schema_1.default,
|
|
12
|
-
models: [
|
|
13
|
-
models_1.Payment,
|
|
14
|
-
models_1.PaymentCollection,
|
|
15
|
-
models_1.PaymentProvider,
|
|
16
|
-
models_1.PaymentSession,
|
|
17
|
-
models_1.RefundReason,
|
|
18
|
-
],
|
|
19
7
|
linkableKeys: {
|
|
20
|
-
payment_id:
|
|
21
|
-
payment_collection_id:
|
|
22
|
-
payment_provider_id:
|
|
23
|
-
refund_reason_id:
|
|
8
|
+
payment_id: _models_1.Payment.name,
|
|
9
|
+
payment_collection_id: _models_1.PaymentCollection.name,
|
|
10
|
+
payment_provider_id: _models_1.PaymentProvider.name,
|
|
11
|
+
refund_reason_id: _models_1.RefundReason.name,
|
|
12
|
+
account_holder_id: _models_1.AccountHolder.name,
|
|
24
13
|
},
|
|
14
|
+
alias: [
|
|
15
|
+
{
|
|
16
|
+
name: ["payment_method", "payment_methods"],
|
|
17
|
+
entity: "PaymentMethod",
|
|
18
|
+
args: {
|
|
19
|
+
methodSuffix: "PaymentMethods",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
25
23
|
});
|
|
26
24
|
//# sourceMappingURL=joiner-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joiner-config.js","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"joiner-config.js","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":";;;AAAA,kDAAoE;AACpE,qCAMgB;AAEH,QAAA,YAAY,GAAG,IAAA,0BAAkB,EAAC,eAAO,CAAC,OAAO,EAAE;IAC9D,YAAY,EAAE;QACZ,UAAU,EAAE,iBAAO,CAAC,IAAI;QACxB,qBAAqB,EAAE,2BAAiB,CAAC,IAAI;QAC7C,mBAAmB,EAAE,yBAAe,CAAC,IAAI;QACzC,gBAAgB,EAAE,sBAAY,CAAC,IAAI;QACnC,iBAAiB,EAAE,uBAAa,CAAC,IAAI;KACtC;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;YAC3C,MAAM,EAAE,eAAe;YACvB,IAAI,EAAE;gBACJ,YAAY,EAAE,gBAAgB;aAC/B;SACF;KACF;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20250115160517.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20250115160517.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAE9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IASnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAO5B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20250115160517 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20250115160517 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('drop index if exists "IDX_payment_collection_region_id";');
|
|
8
|
+
this.addSql('alter table if exists "payment_collection" drop column if exists "region_id";');
|
|
9
|
+
this.addSql('alter table if exists "payment" drop column if exists "cart_id";');
|
|
10
|
+
this.addSql('alter table if exists "payment" drop column if exists "order_id";');
|
|
11
|
+
this.addSql('alter table if exists "payment" drop column if exists "customer_id";');
|
|
12
|
+
}
|
|
13
|
+
async down() {
|
|
14
|
+
this.addSql('alter table if exists "payment_collection" add column if not exists "region_id" text not null;');
|
|
15
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_payment_collection_region_id" ON "payment_collection" (region_id) WHERE deleted_at IS NULL;');
|
|
16
|
+
this.addSql('alter table if exists "payment" add column if not exists "cart_id" text null, add column if not exists "order_id" text null, add column if not exists "customer_id" text null;');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Migration20250115160517 = Migration20250115160517;
|
|
20
|
+
//# sourceMappingURL=Migration20250115160517.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20250115160517.js","sourceRoot":"","sources":["../../src/migrations/Migration20250115160517.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAEpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,0DAA0D,CAAC,CAAC;QACxE,IAAI,CAAC,MAAM,CAAC,+EAA+E,CAAC,CAAC;QAE7F,IAAI,CAAC,MAAM,CAAC,kEAAkE,CAAC,CAAC;QAChF,IAAI,CAAC,MAAM,CAAC,mEAAmE,CAAC,CAAC;QACjF,IAAI,CAAC,MAAM,CAAC,sEAAsE,CAAC,CAAC;IACtF,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,gGAAgG,CAAC,CAAC;QAC9G,IAAI,CAAC,MAAM,CAAC,6HAA6H,CAAC,CAAC;QAE3I,IAAI,CAAC,MAAM,CAAC,gLAAgL,CAAC,CAAC;IAChM,CAAC;CAEF;AAlBD,0DAkBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20250120110552.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20250120110552.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IAC9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IASnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAM5B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20250120110552 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20250120110552 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table if exists "payment" drop constraint if exists "payment_payment_session_id_unique";');
|
|
8
|
+
this.addSql('CREATE UNIQUE INDEX IF NOT EXISTS "IDX_payment_payment_session_id_unique" ON "payment" (payment_session_id) WHERE deleted_at IS NULL;');
|
|
9
|
+
}
|
|
10
|
+
async down() {
|
|
11
|
+
this.addSql('drop index if exists "IDX_payment_payment_session_id_unique";');
|
|
12
|
+
this.addSql('alter table if exists "payment" add constraint "payment_payment_session_id_unique" unique ("payment_session_id");');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Migration20250120110552 = Migration20250120110552;
|
|
16
|
+
//# sourceMappingURL=Migration20250120110552.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20250120110552.js","sourceRoot":"","sources":["../../src/migrations/Migration20250120110552.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IACpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CACT,gGAAgG,CACjG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,uIAAuI,CACxI,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,+DAA+D,CAAC,CAAA;QAC5E,IAAI,CAAC,MAAM,CACT,mHAAmH,CACpH,CAAA;IACH,CAAC;CACF;AAhBD,0DAgBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20250123122334.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20250123122334.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAErC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAYnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAUrC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20250123122334 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20250123122334 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql(`create table if not exists "account_holder" ("id" text not null, "provider_id" text not null, "external_id" text not null, "email" text null, "data" jsonb not null default '{}', "metadata" jsonb null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "account_holder_pkey" primary key ("id"));`);
|
|
8
|
+
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_account_holder_deleted_at" ON "account_holder" (deleted_at) WHERE deleted_at IS NULL;`);
|
|
9
|
+
this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_account_holder_provider_id_external_id_unique" ON "account_holder" (provider_id, external_id) WHERE deleted_at IS NULL;`);
|
|
10
|
+
this.addSql(`alter table if exists "payment_collection_payment_providers" drop constraint if exists "payment_collection_payment_providers_payment_coll_aa276_foreign";`);
|
|
11
|
+
this.addSql(`alter table if exists "payment_collection_payment_providers" drop constraint if exists "payment_collection_payment_providers_payment_provider_id_foreign";`);
|
|
12
|
+
this.addSql(`alter table if exists "payment_collection_payment_providers" add constraint "payment_collection_payment_providers_payment_col_aa276_foreign" foreign key ("payment_collection_id") references "payment_collection" ("id") on update cascade on delete cascade;`);
|
|
13
|
+
this.addSql(`alter table if exists "payment_collection_payment_providers" add constraint "payment_collection_payment_providers_payment_pro_2d555_foreign" foreign key ("payment_provider_id") references "payment_provider" ("id") on update cascade on delete cascade;`);
|
|
14
|
+
}
|
|
15
|
+
async down() {
|
|
16
|
+
this.addSql(`drop table if exists "account_holder" cascade;`);
|
|
17
|
+
this.addSql(`alter table if exists "payment_collection_payment_providers" drop constraint if exists "payment_collection_payment_providers_payment_col_aa276_foreign";`);
|
|
18
|
+
this.addSql(`alter table if exists "payment_collection_payment_providers" drop constraint if exists "payment_collection_payment_providers_payment_pro_2d555_foreign";`);
|
|
19
|
+
this.addSql(`alter table if exists "payment_collection_payment_providers" add constraint "payment_collection_payment_providers_payment_coll_aa276_foreign" foreign key ("payment_collection_id") references "payment_collection" ("id") on update cascade on delete cascade;`);
|
|
20
|
+
this.addSql(`alter table if exists "payment_collection_payment_providers" add constraint "payment_collection_payment_providers_payment_provider_id_foreign" foreign key ("payment_provider_id") references "payment_provider" ("id") on update cascade on delete cascade;`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.Migration20250123122334 = Migration20250123122334;
|
|
24
|
+
//# sourceMappingURL=Migration20250123122334.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20250123122334.js","sourceRoot":"","sources":["../../src/migrations/Migration20250123122334.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAE3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC,iYAAiY,CAAC,CAAC;QAC/Y,IAAI,CAAC,MAAM,CAAC,uHAAuH,CAAC,CAAC;QACrI,IAAI,CAAC,MAAM,CAAC,gKAAgK,CAAC,CAAC;QAE9K,IAAI,CAAC,MAAM,CAAC,2JAA2J,CAAC,CAAC;QACzK,IAAI,CAAC,MAAM,CAAC,4JAA4J,CAAC,CAAC;QAE1K,IAAI,CAAC,MAAM,CAAC,gQAAgQ,CAAC,CAAC;QAC9Q,IAAI,CAAC,MAAM,CAAC,4PAA4P,CAAC,CAAC;IAC5Q,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,gDAAgD,CAAC,CAAC;QAE9D,IAAI,CAAC,MAAM,CAAC,0JAA0J,CAAC,CAAC;QACxK,IAAI,CAAC,MAAM,CAAC,0JAA0J,CAAC,CAAC;QAExK,IAAI,CAAC,MAAM,CAAC,iQAAiQ,CAAC,CAAC;QAC/Q,IAAI,CAAC,MAAM,CAAC,8PAA8P,CAAC,CAAC;IAC9Q,CAAC;CAEF;AAxBD,0DAwBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20250206105639.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20250206105639.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAErC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAInB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAKrC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20250206105639 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20250206105639 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql(`drop table if exists "payment_method_token" cascade;`);
|
|
8
|
+
}
|
|
9
|
+
async down() {
|
|
10
|
+
this.addSql(`create table if not exists "payment_method_token" ("id" text not null, "provider_id" text not null, "data" jsonb null, "name" text not null, "type_detail" text null, "description_detail" text null, "metadata" jsonb null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "payment_method_token_pkey" primary key ("id"));`);
|
|
11
|
+
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_payment_method_token_deleted_at" ON "payment_method_token" (deleted_at) WHERE deleted_at IS NULL;`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.Migration20250206105639 = Migration20250206105639;
|
|
15
|
+
//# sourceMappingURL=Migration20250206105639.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20250206105639.js","sourceRoot":"","sources":["../../src/migrations/Migration20250206105639.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAE3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC,sDAAsD,CAAC,CAAC;IACtE,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,2ZAA2Z,CAAC,CAAC;QACza,IAAI,CAAC,MAAM,CAAC,mIAAmI,CAAC,CAAC;IACnJ,CAAC;CAEF;AAXD,0DAWC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20250207132723.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20250207132723.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAErC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAMnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAMrC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20250207132723 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20250207132723 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql(`alter table if exists "payment_collection" drop constraint if exists "payment_collection_status_check";`);
|
|
8
|
+
this.addSql(`alter table if exists "payment_collection" add constraint "payment_collection_status_check" check("status" in ('not_paid', 'awaiting', 'authorized', 'partially_authorized', 'canceled', 'failed', 'completed'));`);
|
|
9
|
+
}
|
|
10
|
+
async down() {
|
|
11
|
+
this.addSql(`alter table if exists "payment_collection" drop constraint if exists "payment_collection_status_check";`);
|
|
12
|
+
this.addSql(`alter table if exists "payment_collection" add constraint "payment_collection_status_check" check("status" in ('not_paid', 'awaiting', 'authorized', 'partially_authorized', 'canceled'));`);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Migration20250207132723 = Migration20250207132723;
|
|
16
|
+
//# sourceMappingURL=Migration20250207132723.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20250207132723.js","sourceRoot":"","sources":["../../src/migrations/Migration20250207132723.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAE3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC,yGAAyG,CAAC,CAAC;QAEvH,IAAI,CAAC,MAAM,CAAC,mNAAmN,CAAC,CAAC;IACnO,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,yGAAyG,CAAC,CAAC;QAEvH,IAAI,CAAC,MAAM,CAAC,4LAA4L,CAAC,CAAC;IAC5M,CAAC;CAEF;AAdD,0DAcC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20250625084134.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20250625084134.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAErC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAMnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAMrC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20250625084134 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20250625084134 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql(`alter table if exists "payment_collection" drop constraint if exists "payment_collection_status_check";`);
|
|
8
|
+
this.addSql(`alter table if exists "payment_collection" add constraint "payment_collection_status_check" check("status" in ('not_paid', 'awaiting', 'authorized', 'partially_authorized', 'canceled', 'failed', 'partially_captured', 'completed'));`);
|
|
9
|
+
}
|
|
10
|
+
async down() {
|
|
11
|
+
this.addSql(`alter table if exists "payment_collection" drop constraint if exists "payment_collection_status_check";`);
|
|
12
|
+
this.addSql(`alter table if exists "payment_collection" add constraint "payment_collection_status_check" check("status" in ('not_paid', 'awaiting', 'authorized', 'partially_authorized', 'canceled', 'failed', 'completed'));`);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Migration20250625084134 = Migration20250625084134;
|
|
16
|
+
//# sourceMappingURL=Migration20250625084134.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20250625084134.js","sourceRoot":"","sources":["../../src/migrations/Migration20250625084134.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAE3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC,yGAAyG,CAAC,CAAC;QAEvH,IAAI,CAAC,MAAM,CAAC,yOAAyO,CAAC,CAAC;IACzP,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,yGAAyG,CAAC,CAAC;QAEvH,IAAI,CAAC,MAAM,CAAC,mNAAmN,CAAC,CAAC;IACnO,CAAC;CAEF;AAdD,0DAcC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const AccountHolder: 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
|
+
external_id: import("@etohq/framework/utils").TextProperty;
|
|
5
|
+
email: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
6
|
+
data: import("@etohq/framework/utils").JSONProperty;
|
|
7
|
+
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
8
|
+
}>, "AccountHolder">;
|
|
9
|
+
export default AccountHolder;
|
|
10
|
+
//# sourceMappingURL=account-holder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-holder.d.ts","sourceRoot":"","sources":["../../src/models/account-holder.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa;;;;;;;oBAcf,CAAA;AAEJ,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("@etohq/framework/utils");
|
|
4
|
+
const AccountHolder = utils_1.model
|
|
5
|
+
.define("AccountHolder", {
|
|
6
|
+
id: utils_1.model.id({ prefix: "acchld" }).primaryKey(),
|
|
7
|
+
provider_id: utils_1.model.text(),
|
|
8
|
+
external_id: utils_1.model.text(),
|
|
9
|
+
email: utils_1.model.text().nullable(),
|
|
10
|
+
data: utils_1.model.json().default({}),
|
|
11
|
+
metadata: utils_1.model.json().nullable(),
|
|
12
|
+
})
|
|
13
|
+
.indexes([
|
|
14
|
+
{
|
|
15
|
+
on: ["provider_id", "external_id"],
|
|
16
|
+
unique: true,
|
|
17
|
+
},
|
|
18
|
+
]);
|
|
19
|
+
exports.default = AccountHolder;
|
|
20
|
+
//# sourceMappingURL=account-holder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-holder.js","sourceRoot":"","sources":["../../src/models/account-holder.ts"],"names":[],"mappings":";;AAAA,kDAA8C;AAE9C,MAAM,aAAa,GAAG,aAAK;KACxB,MAAM,CAAC,eAAe,EAAE;IACvB,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,UAAU,EAAE;IAC/C,WAAW,EAAE,aAAK,CAAC,IAAI,EAAE;IACzB,WAAW,EAAE,aAAK,CAAC,IAAI,EAAE;IACzB,KAAK,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9B,QAAQ,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,OAAO,CAAC;IACP;QACE,EAAE,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;QAClC,MAAM,EAAE,IAAI;KACb;CACF,CAAC,CAAA;AAEJ,kBAAe,aAAa,CAAA"}
|
package/dist/models/capture.d.ts
CHANGED
|
@@ -6,9 +6,6 @@ declare const Capture: import("@etohq/framework/utils").DmlEntity<import("@etohq
|
|
|
6
6
|
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
7
7
|
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
8
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
9
|
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
13
10
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
14
11
|
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
@@ -20,7 +17,6 @@ declare const Capture: import("@etohq/framework/utils").DmlEntity<import("@etohq
|
|
|
20
17
|
authorized_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
21
18
|
captured_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
22
19
|
refunded_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
23
|
-
region_id: import("@etohq/framework/utils").TextProperty;
|
|
24
20
|
completed_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
25
21
|
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").PaymentCollectionStatus>;
|
|
26
22
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
@@ -60,7 +56,6 @@ declare const Capture: import("@etohq/framework/utils").DmlEntity<import("@etohq
|
|
|
60
56
|
authorized_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
61
57
|
captured_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
62
58
|
refunded_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
63
|
-
region_id: import("@etohq/framework/utils").TextProperty;
|
|
64
59
|
completed_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
65
60
|
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").PaymentCollectionStatus>;
|
|
66
61
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../src/models/capture.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,OAAO
|
|
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"}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { default as Capture } from "./capture";
|
|
2
2
|
export { default as Payment } from "./payment";
|
|
3
3
|
export { default as PaymentCollection } from "./payment-collection";
|
|
4
|
-
export { default as PaymentMethodToken } from "./payment-method-token";
|
|
5
4
|
export { default as PaymentProvider } from "./payment-provider";
|
|
6
5
|
export { default as PaymentSession } from "./payment-session";
|
|
7
6
|
export { default as Refund } from "./refund";
|
|
8
7
|
export { default as RefundReason } from "./refund-reason";
|
|
8
|
+
export { default as AccountHolder } from "./account-holder";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,
|
|
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,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;AACzD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAA"}
|
package/dist/models/index.js
CHANGED
|
@@ -3,15 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.AccountHolder = exports.RefundReason = exports.Refund = exports.PaymentSession = exports.PaymentProvider = exports.PaymentCollection = exports.Payment = exports.Capture = void 0;
|
|
7
7
|
var capture_1 = require("./capture");
|
|
8
8
|
Object.defineProperty(exports, "Capture", { enumerable: true, get: function () { return __importDefault(capture_1).default; } });
|
|
9
9
|
var payment_1 = require("./payment");
|
|
10
10
|
Object.defineProperty(exports, "Payment", { enumerable: true, get: function () { return __importDefault(payment_1).default; } });
|
|
11
11
|
var payment_collection_1 = require("./payment-collection");
|
|
12
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
13
|
var payment_provider_1 = require("./payment-provider");
|
|
16
14
|
Object.defineProperty(exports, "PaymentProvider", { enumerable: true, get: function () { return __importDefault(payment_provider_1).default; } });
|
|
17
15
|
var payment_session_1 = require("./payment-session");
|
|
@@ -20,4 +18,6 @@ var refund_1 = require("./refund");
|
|
|
20
18
|
Object.defineProperty(exports, "Refund", { enumerable: true, get: function () { return __importDefault(refund_1).default; } });
|
|
21
19
|
var refund_reason_1 = require("./refund-reason");
|
|
22
20
|
Object.defineProperty(exports, "RefundReason", { enumerable: true, get: function () { return __importDefault(refund_reason_1).default; } });
|
|
21
|
+
var account_holder_1 = require("./account-holder");
|
|
22
|
+
Object.defineProperty(exports, "AccountHolder", { enumerable: true, get: function () { return __importDefault(account_holder_1).default; } });
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +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
|
|
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,uDAA+D;AAAtD,oIAAA,OAAO,OAAmB;AACnC,qDAA6D;AAApD,kIAAA,OAAO,OAAkB;AAClC,mCAA4C;AAAnC,iHAAA,OAAO,OAAU;AAC1B,iDAAyD;AAAhD,8HAAA,OAAO,OAAgB;AAChC,mDAA2D;AAAlD,gIAAA,OAAO,OAAiB"}
|
|
@@ -6,7 +6,6 @@ declare const PaymentCollection: import("@etohq/framework/utils").DmlEntity<impo
|
|
|
6
6
|
authorized_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
7
7
|
captured_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
8
8
|
refunded_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
9
|
-
region_id: import("@etohq/framework/utils").TextProperty;
|
|
10
9
|
completed_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
11
10
|
status: import("@etohq/framework/utils").EnumProperty<typeof PaymentCollectionStatus>;
|
|
12
11
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
@@ -30,9 +29,6 @@ declare const PaymentCollection: import("@etohq/framework/utils").DmlEntity<impo
|
|
|
30
29
|
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
31
30
|
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
32
31
|
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
32
|
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
37
33
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
38
34
|
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
@@ -72,9 +68,6 @@ declare const PaymentCollection: import("@etohq/framework/utils").DmlEntity<impo
|
|
|
72
68
|
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
73
69
|
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
74
70
|
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
71
|
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
79
72
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
80
73
|
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
@@ -117,9 +110,6 @@ declare const PaymentCollection: import("@etohq/framework/utils").DmlEntity<impo
|
|
|
117
110
|
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
118
111
|
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
119
112
|
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
113
|
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
124
114
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
125
115
|
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
@@ -1 +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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAyBnB,CAAA;AAEJ,eAAe,iBAAiB,CAAA"}
|
|
@@ -15,7 +15,6 @@ const PaymentCollection = utils_1.model
|
|
|
15
15
|
authorized_amount: utils_1.model.bigNumber().nullable(),
|
|
16
16
|
captured_amount: utils_1.model.bigNumber().nullable(),
|
|
17
17
|
refunded_amount: utils_1.model.bigNumber().nullable(),
|
|
18
|
-
region_id: utils_1.model.text(),
|
|
19
18
|
completed_at: utils_1.model.dateTime().nullable(),
|
|
20
19
|
status: utils_1.model
|
|
21
20
|
.enum(utils_1.PaymentCollectionStatus)
|
|
@@ -33,12 +32,6 @@ const PaymentCollection = utils_1.model
|
|
|
33
32
|
})
|
|
34
33
|
.cascades({
|
|
35
34
|
delete: ["payment_sessions", "payments"],
|
|
36
|
-
})
|
|
37
|
-
.indexes([
|
|
38
|
-
{
|
|
39
|
-
name: "IDX_payment_collection_region_id",
|
|
40
|
-
on: ["region_id"],
|
|
41
|
-
},
|
|
42
|
-
]);
|
|
35
|
+
});
|
|
43
36
|
exports.default = PaymentCollection;
|
|
44
37
|
//# sourceMappingURL=payment-collection.js.map
|
|
@@ -1 +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,
|
|
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,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,CAAA;AAEJ,kBAAe,iBAAiB,CAAA"}
|
|
@@ -9,7 +9,6 @@ declare const PaymentProvider: import("@etohq/framework/utils").DmlEntity<import
|
|
|
9
9
|
authorized_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
10
10
|
captured_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
11
11
|
refunded_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
12
|
-
region_id: import("@etohq/framework/utils").TextProperty;
|
|
13
12
|
completed_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
14
13
|
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").PaymentCollectionStatus>;
|
|
15
14
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
@@ -29,9 +28,6 @@ declare const PaymentProvider: import("@etohq/framework/utils").DmlEntity<import
|
|
|
29
28
|
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
30
29
|
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
31
30
|
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
32
|
-
cart_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
33
|
-
order_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
34
|
-
customer_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
35
31
|
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
36
32
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
37
33
|
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
@@ -71,9 +67,6 @@ declare const PaymentProvider: import("@etohq/framework/utils").DmlEntity<import
|
|
|
71
67
|
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
72
68
|
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
73
69
|
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
74
|
-
cart_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
75
|
-
order_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
76
|
-
customer_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
77
70
|
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
78
71
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
79
72
|
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
@@ -116,9 +109,6 @@ declare const PaymentProvider: import("@etohq/framework/utils").DmlEntity<import
|
|
|
116
109
|
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
117
110
|
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
118
111
|
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
119
|
-
cart_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
120
|
-
order_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
121
|
-
customer_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
122
112
|
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
123
113
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
124
114
|
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-provider.d.ts","sourceRoot":"","sources":["../../src/models/payment-provider.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,sBAAsB,CAAA;AAEpD,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"payment-provider.d.ts","sourceRoot":"","sources":["../../src/models/payment-provider.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,sBAAsB,CAAA;AAEpD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAMnB,CAAA;AAEF,eAAe,eAAe,CAAA"}
|
|
@@ -15,9 +15,6 @@ declare const PaymentSession: import("@etohq/framework/utils").DmlEntity<import(
|
|
|
15
15
|
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
16
16
|
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
17
17
|
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
18
|
-
cart_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
19
|
-
order_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
20
|
-
customer_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
21
18
|
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
22
19
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
23
20
|
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
@@ -29,7 +26,6 @@ declare const PaymentSession: import("@etohq/framework/utils").DmlEntity<import(
|
|
|
29
26
|
authorized_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
30
27
|
captured_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
31
28
|
refunded_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
32
|
-
region_id: import("@etohq/framework/utils").TextProperty;
|
|
33
29
|
completed_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
34
30
|
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").PaymentCollectionStatus>;
|
|
35
31
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
@@ -75,9 +71,6 @@ declare const PaymentSession: import("@etohq/framework/utils").DmlEntity<import(
|
|
|
75
71
|
amount: import("@etohq/framework/utils").BigNumberProperty;
|
|
76
72
|
currency_code: import("@etohq/framework/utils").TextProperty;
|
|
77
73
|
provider_id: import("@etohq/framework/utils").TextProperty;
|
|
78
|
-
cart_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
79
|
-
order_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
80
|
-
customer_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
81
74
|
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
82
75
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
83
76
|
captured_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
@@ -89,7 +82,6 @@ declare const PaymentSession: import("@etohq/framework/utils").DmlEntity<import(
|
|
|
89
82
|
authorized_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
90
83
|
captured_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
91
84
|
refunded_amount: import("@etohq/framework/utils").NullableModifier<number, import("@etohq/framework/utils").BigNumberProperty>;
|
|
92
|
-
region_id: import("@etohq/framework/utils").TextProperty;
|
|
93
85
|
completed_at: import("@etohq/framework/utils").NullableModifier<Date, import("@etohq/framework/utils").DateTimeProperty>;
|
|
94
86
|
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").PaymentCollectionStatus>;
|
|
95
87
|
metadata: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|