@silexpert/core 1.3.143 → 1.3.144
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/cjs/api/resources/PaymentExpectationCustomer.d.ts +4 -0
- package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectationCustomer.js +6 -0
- package/dist/cjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/dist/cjs/types/Interface/api/bankAccount/Query.d.ts +6 -0
- package/dist/cjs/types/Interface/api/bankAccount/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/bankAccount/Query.js +24 -1
- package/dist/cjs/types/Interface/api/bankAccount/Query.js.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts +4 -0
- package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectationCustomer.js +6 -0
- package/dist/mjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/dist/mjs/types/Interface/api/bankAccount/Query.d.ts +6 -0
- package/dist/mjs/types/Interface/api/bankAccount/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/bankAccount/Query.js +27 -1
- package/dist/mjs/types/Interface/api/bankAccount/Query.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/PaymentExpectationCustomer.ts +8 -0
- package/ts/types/Interface/api/bankAccount/Query.ts +19 -1
|
@@ -12,6 +12,10 @@ export declare class PaymentExpectationCustomer extends Resource {
|
|
|
12
12
|
refund(params: UpdateRefundSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
|
|
13
13
|
create(params: CreateSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
|
|
14
14
|
send(id: number, payload: SendPaymentExpectationCustomer): Promise<true>;
|
|
15
|
+
/**
|
|
16
|
+
* TAP TO PAY - STRIPE
|
|
17
|
+
*/
|
|
18
|
+
getAllLocations(): Promise<Stripe.ApiList<Stripe.Terminal.Location>>;
|
|
15
19
|
createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken>;
|
|
16
20
|
createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>>;
|
|
17
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentExpectationCustomer.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC3B,kCAAkC,EAClC,sCAAsC,EACtC,4CAA4C,EAC5C,4CAA4C,EAC5C,YAAY,EACZ,6CAA6C,EAC7C,uCAAuC,EACvC,kCAAkC,EAClC,iDAAiD,EACjD,iBAAiB,EACjB,8BAA8B,EAC9B,oBAAoB,EACpB,6BAA6B,EAC9B,MAAM,aAAa,CAAC;AACrB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,qBAAa,0BAA2B,SAAQ,QAAQ;IACtD,GAAG,CAAC,MAAM,EAAE,kCAAkC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAGrF,YAAY,CACV,MAAM,EAAE,4CAA4C,EACpD,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC;IAOrD,KAAK,CAAC,MAAM,EAAE,iDAAiD,GAAG,OAAO,CAAC,kCAAkC,CAAC;IAK7G,GAAG,CAAC,MAAM,EAAE,kCAAkC,GAAG,OAAO,CAAC,iBAAiB,GAAG,2BAA2B,CAAC;IAGzG,OAAO,CAAC,MAAM,EAAE,sCAAsC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAG7F,MAAM,C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OAAO,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC;IAOrD,KAAK,CAAC,MAAM,EAAE,iDAAiD,GAAG,OAAO,CAAC,kCAAkC,CAAC;IAK7G,GAAG,CAAC,MAAM,EAAE,kCAAkC,GAAG,OAAO,CAAC,iBAAiB,GAAG,2BAA2B,CAAC;IAGzG,OAAO,CAAC,MAAM,EAAE,sCAAsC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAG7F,MAAM,CAAC,MAAM,EAAE,4CAA4C,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAGlG,MAAM,CAAC,MAAM,EAAE,6CAA6C,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAGnG,MAAM,CAAC,MAAM,EAAE,uCAAuC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAI7F,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxE;;OAEG;IAEH,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAIpE,6BAA6B,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;IAI/G,oBAAoB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;CAGpG"}
|
|
@@ -32,6 +32,12 @@ class PaymentExpectationCustomer extends Resource_1.Resource {
|
|
|
32
32
|
send(id, payload) {
|
|
33
33
|
return this.axios.$post(`/society/payment-expectation-customers/${id}/send`, payload);
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* TAP TO PAY - STRIPE
|
|
37
|
+
*/
|
|
38
|
+
getAllLocations() {
|
|
39
|
+
return this.axios.$get('/stripe/tap-to-pay/locations');
|
|
40
|
+
}
|
|
35
41
|
createTapToPayConnectionToken(payload) {
|
|
36
42
|
return this.axios.$post('/stripe/tap-to-pay/tokens', payload);
|
|
37
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAoBvC,MAAa,0BAA2B,SAAQ,mBAAQ;IACtD,GAAG,CAAC,MAA0C;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,YAAY,CACV,MAAoD,EACpD,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,gCAAgC,gDAC9E,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GACpC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC7B,MAAM,IACN,CAAC;IACL,CAAC;IACD,KAAK,CAAC,MAAyD;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,sCAAsC,EAAE;YACzF,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IACD,GAAG,CAAC,MAA0C;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,EAAE,MAAM,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,CAAC,MAA8C;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,qCAAqC,EAAE,MAAM,CAAC,CAAC;IACzE,CAAC;IACD,MAAM,CAAC,MAAoD;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,MAAM,CAAC,SAAS,kCAAkC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;IACvG,CAAC;IACD,MAAM,CAAC,MAAqD;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,kCAAkC,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACnH,CAAC;IACD,MAAM,CAAC,MAA+C;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,MAAM,CAAC,SAAS,6BAA6B,EAAE,MAAM,CAAC,CAAC;IAC7F,CAAC;IAED,IAAI,CAAC,EAAU,EAAE,OAAuC;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0CAA0C,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED,6BAA6B,CAAC,OAAsC;QAClE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED,oBAAoB,CAAC,OAA6B;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"PaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAoBvC,MAAa,0BAA2B,SAAQ,mBAAQ;IACtD,GAAG,CAAC,MAA0C;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,YAAY,CACV,MAAoD,EACpD,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,gCAAgC,gDAC9E,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CA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,OAAsC;QAClE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED,oBAAoB,CAAC,OAA6B;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;AAvDD,gEAuDC","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n QueryGetPaymentExpectationCustomer,\n IPaymentExpectationCustomer,\n QueryPayPaymentExpectationCustomer,\n QueryConfirmPaymentExpectationCustomer,\n QueryGetSocietyPaymentsExpectationsCustomers,\n QueryDeleteSocietyPaymentExpectationCustomer,\n BasePaginate,\n UpdateRefundSocietyPaymentExpectationCustomer,\n CreateSocietyPaymentExpectationCustomer,\n ReadPaymentExpectationCustomerStat,\n QueryGetSocietyPaymentsExpectationsCustomersStats,\n ReadPaymentIntent,\n SendPaymentExpectationCustomer,\n CreateTapToPayIntent,\n CreateTapToPayConnectionToken,\n} from '../../types';\nimport Stripe from 'stripe';\n\nexport class PaymentExpectationCustomer extends Resource {\n get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$get('/paymentExpectationCustomer', { params });\n }\n getBySociety(\n params: QueryGetSocietyPaymentsExpectationsCustomers,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<IPaymentExpectationCustomer>> {\n return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n stats(params: QueryGetSocietyPaymentsExpectationsCustomersStats): Promise<ReadPaymentExpectationCustomerStat> {\n return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers/stats`, {\n params,\n });\n }\n pay(params: QueryPayPaymentExpectationCustomer): Promise<ReadPaymentIntent | IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/pay', params);\n }\n confirm(params: QueryConfirmPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/confirm', params);\n }\n delete(params: QueryDeleteSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$delete(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}`);\n }\n refund(params: UpdateRefundSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$put(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}/refund`, params);\n }\n create(params: CreateSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post(`/society/${params.idSociety}/paymentExpectationCustomer`, params);\n }\n\n send(id: number, payload: SendPaymentExpectationCustomer): Promise<true> {\n return this.axios.$post(`/society/payment-expectation-customers/${id}/send`, payload);\n }\n\n /**\n * TAP TO PAY - STRIPE\n */\n\n getAllLocations(): Promise<Stripe.ApiList<Stripe.Terminal.Location>> {\n return this.axios.$get('/stripe/tap-to-pay/locations');\n }\n\n createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken> {\n return this.axios.$post('/stripe/tap-to-pay/tokens', payload);\n }\n\n createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>> {\n return this.axios.$post('/stripe/tap-to-pay/intents', payload);\n }\n}\n"]}
|
|
@@ -22,4 +22,10 @@ export declare class QueryBankAccount {
|
|
|
22
22
|
withCheckBalance?: boolean;
|
|
23
23
|
withBankConnection?: boolean;
|
|
24
24
|
}
|
|
25
|
+
export declare class QueryBankTransactionPrediction {
|
|
26
|
+
amount: number;
|
|
27
|
+
label: string;
|
|
28
|
+
originalLabel: string;
|
|
29
|
+
date: string;
|
|
30
|
+
}
|
|
25
31
|
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankAccount/Query.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAC;AAErD,qBAAa,uCAAuC;IAGlD,SAAS,EAAE,MAAM,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAMf,UAAU,CAAC,EAAE,OAAO,CAAC;IAIrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,OAAO,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CAC3B;AAED,qBAAa,gBAAgB;IAK3B,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAM3B,aAAa,CAAC,EAAE,sBAAsB,CAAC;IAMvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
|
|
1
|
+
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankAccount/Query.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAC;AAErD,qBAAa,uCAAuC;IAGlD,SAAS,EAAE,MAAM,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAMf,UAAU,CAAC,EAAE,OAAO,CAAC;IAIrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,OAAO,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CAC3B;AAED,qBAAa,gBAAgB;IAK3B,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAM3B,aAAa,CAAC,EAAE,sBAAsB,CAAC;IAMvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,qBAAa,8BAA8B;IAGzC,MAAM,EAAE,MAAM,CAAC;IAIf,KAAK,EAAE,MAAM,CAAC;IAId,aAAa,EAAE,MAAM,CAAC;IAItB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.QueryBankAccount = exports.QueryTransactionsForComparisonPaginated = void 0;
|
|
12
|
+
exports.QueryBankTransactionPrediction = exports.QueryBankAccount = exports.QueryTransactionsForComparisonPaginated = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
15
|
const PartnerTransactionType_1 = require("../../../Enum/PartnerTransactionType");
|
|
@@ -126,4 +126,27 @@ __decorate([
|
|
|
126
126
|
(0, boolean_transform_1.ToBoolean)(),
|
|
127
127
|
__metadata("design:type", Boolean)
|
|
128
128
|
], QueryBankAccount.prototype, "withBankConnection", void 0);
|
|
129
|
+
class QueryBankTransactionPrediction {
|
|
130
|
+
}
|
|
131
|
+
exports.QueryBankTransactionPrediction = QueryBankTransactionPrediction;
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, utils_1.ApiProperty)({ description: 'Amount of transaction to predict (negative for debit, positive for credit)' }),
|
|
134
|
+
(0, class_validator_1.IsNumber)(),
|
|
135
|
+
__metadata("design:type", Number)
|
|
136
|
+
], QueryBankTransactionPrediction.prototype, "amount", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, utils_1.ApiProperty)({ description: 'Label of the transaction to predict' }),
|
|
139
|
+
(0, class_validator_1.IsString)(),
|
|
140
|
+
__metadata("design:type", String)
|
|
141
|
+
], QueryBankTransactionPrediction.prototype, "label", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, utils_1.ApiProperty)({ description: 'Original label of the transaction to predict' }),
|
|
144
|
+
(0, class_validator_1.IsString)(),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], QueryBankTransactionPrediction.prototype, "originalLabel", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, utils_1.ApiProperty)({ description: 'Date of the transaction to predict (YYYY-MM-DD)' }),
|
|
149
|
+
(0, class_validator_1.IsDateString)(),
|
|
150
|
+
__metadata("design:type", String)
|
|
151
|
+
], QueryBankTransactionPrediction.prototype, "date", void 0);
|
|
129
152
|
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankAccount/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types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9BD,4CA8BC;AAzBC;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;qDACU;AAMtB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAM,EAAC,iCAAe,CAAC;;2DACG;AAM3B;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAM,EAAC,+CAAsB,CAAC;;uDACQ;AAMvC;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;0DACe;AAM3B;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;4DACiB;AAG/B,MAAa,8BAA8B;CAgB1C;AAhBD,wEAgBC;AAbC;IAFC,IAAA,mBAAW,EAAC,EAAE,WAAW,EAAE,4EAA4E,EAAE,CAAC;IAC1G,IAAA,0BAAQ,GAAE;;8DACI;AAIf;IAFC,IAAA,mBAAW,EAAC,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;IACnE,IAAA,0BAAQ,GAAE;;6DACG;AAId;IAFC,IAAA,mBAAW,EAAC,EAAE,WAAW,EAAE,8CAA8C,EAAE,CAAC;IAC5E,IAAA,0BAAQ,GAAE;;qEACW;AAItB;IAFC,IAAA,mBAAW,EAAC,EAAE,WAAW,EAAE,iDAAiD,EAAE,CAAC;IAC/E,IAAA,8BAAY,GAAE;;4DACF","sourcesContent":["import { IsBoolean, IsNumber, IsOptional, IsString, IsInt, IsEnum, IsDateString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { PartnerTransactionType } from '../../../Enum/PartnerTransactionType';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { Nature } from '../../../Enum/Nature';\nimport { BankAccountType } from '../../../Enum/BankAccountType';\n\nexport type FilterByType = 'debit' | 'credit' | null;\n\nexport class QueryTransactionsForComparisonPaginated {\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n startDate: string;\n\n @ApiProperty()\n @IsString()\n endDate: string;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n limit?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n page?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n search?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n order?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n descending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n filterByType?: Nature;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n minimumAmount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n maximumAmount?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n groupBy?: 'day' | 'month';\n}\n\nexport class QueryBankAccount {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isActivated?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(BankAccountType)\n idBankAccountType?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(PartnerTransactionType)\n idPartnerType?: PartnerTransactionType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n withCheckBalance?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n withBankConnection?: boolean;\n}\n\nexport class QueryBankTransactionPrediction {\n @ApiProperty({ description: 'Amount of transaction to predict (negative for debit, positive for credit)' })\n @IsNumber()\n amount: number;\n\n @ApiProperty({ description: 'Label of the transaction to predict' })\n @IsString()\n label: string;\n\n @ApiProperty({ description: 'Original label of the transaction to predict' })\n @IsString()\n originalLabel: string;\n\n @ApiProperty({ description: 'Date of the transaction to predict (YYYY-MM-DD)' })\n @IsDateString()\n date: string;\n}\n"]}
|
|
@@ -12,6 +12,10 @@ export declare class PaymentExpectationCustomer extends Resource {
|
|
|
12
12
|
refund(params: UpdateRefundSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
|
|
13
13
|
create(params: CreateSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
|
|
14
14
|
send(id: number, payload: SendPaymentExpectationCustomer): Promise<true>;
|
|
15
|
+
/**
|
|
16
|
+
* TAP TO PAY - STRIPE
|
|
17
|
+
*/
|
|
18
|
+
getAllLocations(): Promise<Stripe.ApiList<Stripe.Terminal.Location>>;
|
|
15
19
|
createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken>;
|
|
16
20
|
createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>>;
|
|
17
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentExpectationCustomer.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC3B,kCAAkC,EAClC,sCAAsC,EACtC,4CAA4C,EAC5C,4CAA4C,EAC5C,YAAY,EACZ,6CAA6C,EAC7C,uCAAuC,EACvC,kCAAkC,EAClC,iDAAiD,EACjD,iBAAiB,EACjB,8BAA8B,EAC9B,oBAAoB,EACpB,6BAA6B,EAC9B,MAAM,aAAa,CAAC;AACrB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5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BAA6B,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;IAI/G,oBAAoB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;CAGpG"}
|
|
@@ -33,6 +33,12 @@ export class PaymentExpectationCustomer extends Resource {
|
|
|
33
33
|
send(id, payload) {
|
|
34
34
|
return this.axios.$post(`/society/payment-expectation-customers/${id}/send`, payload);
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* TAP TO PAY - STRIPE
|
|
38
|
+
*/
|
|
39
|
+
getAllLocations() {
|
|
40
|
+
return this.axios.$get('/stripe/tap-to-pay/locations');
|
|
41
|
+
}
|
|
36
42
|
createTapToPayConnectionToken(payload) {
|
|
37
43
|
return this.axios.$post('/stripe/tap-to-pay/tokens', payload);
|
|
38
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAoBvC,MAAM,OAAO,0BAA2B,SAAQ,QAAQ;IACtD,GAAG,CAAC,MAA0C;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,YAAY,CACV,MAAoD,EACpD,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,gCAAgC,EAAE;YACnF,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,C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4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n QueryGetPaymentExpectationCustomer,\n IPaymentExpectationCustomer,\n QueryPayPaymentExpectationCustomer,\n QueryConfirmPaymentExpectationCustomer,\n QueryGetSocietyPaymentsExpectationsCustomers,\n QueryDeleteSocietyPaymentExpectationCustomer,\n BasePaginate,\n UpdateRefundSocietyPaymentExpectationCustomer,\n CreateSocietyPaymentExpectationCustomer,\n ReadPaymentExpectationCustomerStat,\n QueryGetSocietyPaymentsExpectationsCustomersStats,\n ReadPaymentIntent,\n SendPaymentExpectationCustomer,\n CreateTapToPayIntent,\n CreateTapToPayConnectionToken,\n} from '../../types';\nimport Stripe from 'stripe';\n\nexport class PaymentExpectationCustomer extends Resource {\n get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$get('/paymentExpectationCustomer', { params });\n }\n getBySociety(\n params: QueryGetSocietyPaymentsExpectationsCustomers,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<IPaymentExpectationCustomer>> {\n return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n stats(params: QueryGetSocietyPaymentsExpectationsCustomersStats): Promise<ReadPaymentExpectationCustomerStat> {\n return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers/stats`, {\n params,\n });\n }\n pay(params: QueryPayPaymentExpectationCustomer): Promise<ReadPaymentIntent | IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/pay', params);\n }\n confirm(params: QueryConfirmPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/confirm', params);\n }\n delete(params: QueryDeleteSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$delete(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}`);\n }\n refund(params: UpdateRefundSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$put(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}/refund`, params);\n }\n create(params: CreateSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post(`/society/${params.idSociety}/paymentExpectationCustomer`, params);\n }\n\n send(id: number, payload: SendPaymentExpectationCustomer): Promise<true> {\n return this.axios.$post(`/society/payment-expectation-customers/${id}/send`, payload);\n }\n\n createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken> {\n return this.axios.$post('/stripe/tap-to-pay/tokens', payload);\n }\n\n createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>> {\n return this.axios.$post('/stripe/tap-to-pay/intents', payload);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"PaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAoBvC,MAAM,OAAO,0BAA2B,SAAQ,QAAQ;IACtD,GAAG,CAAC,MAA0C;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,YAAY,CACV,MAAoD,EACpD,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,gCAAgC,EAAE;YACnF,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;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,CAAC;IAChE,CAAC;IAED,oBAAoB,CAAC,OAA6B;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n QueryGetPaymentExpectationCustomer,\n IPaymentExpectationCustomer,\n QueryPayPaymentExpectationCustomer,\n QueryConfirmPaymentExpectationCustomer,\n QueryGetSocietyPaymentsExpectationsCustomers,\n QueryDeleteSocietyPaymentExpectationCustomer,\n BasePaginate,\n UpdateRefundSocietyPaymentExpectationCustomer,\n CreateSocietyPaymentExpectationCustomer,\n ReadPaymentExpectationCustomerStat,\n QueryGetSocietyPaymentsExpectationsCustomersStats,\n ReadPaymentIntent,\n SendPaymentExpectationCustomer,\n CreateTapToPayIntent,\n CreateTapToPayConnectionToken,\n} from '../../types';\nimport Stripe from 'stripe';\n\nexport class PaymentExpectationCustomer extends Resource {\n get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$get('/paymentExpectationCustomer', { params });\n }\n getBySociety(\n params: QueryGetSocietyPaymentsExpectationsCustomers,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<IPaymentExpectationCustomer>> {\n return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n stats(params: QueryGetSocietyPaymentsExpectationsCustomersStats): Promise<ReadPaymentExpectationCustomerStat> {\n return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers/stats`, {\n params,\n });\n }\n pay(params: QueryPayPaymentExpectationCustomer): Promise<ReadPaymentIntent | IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/pay', params);\n }\n confirm(params: QueryConfirmPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/confirm', params);\n }\n delete(params: QueryDeleteSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$delete(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}`);\n }\n refund(params: UpdateRefundSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$put(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}/refund`, params);\n }\n create(params: CreateSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post(`/society/${params.idSociety}/paymentExpectationCustomer`, params);\n }\n\n send(id: number, payload: SendPaymentExpectationCustomer): Promise<true> {\n return this.axios.$post(`/society/payment-expectation-customers/${id}/send`, payload);\n }\n\n /**\n * TAP TO PAY - STRIPE\n */\n\n getAllLocations(): Promise<Stripe.ApiList<Stripe.Terminal.Location>> {\n return this.axios.$get('/stripe/tap-to-pay/locations');\n }\n\n createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken> {\n return this.axios.$post('/stripe/tap-to-pay/tokens', payload);\n }\n\n createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>> {\n return this.axios.$post('/stripe/tap-to-pay/intents', payload);\n }\n}\n"]}
|
|
@@ -22,4 +22,10 @@ export declare class QueryBankAccount {
|
|
|
22
22
|
withCheckBalance?: boolean;
|
|
23
23
|
withBankConnection?: boolean;
|
|
24
24
|
}
|
|
25
|
+
export declare class QueryBankTransactionPrediction {
|
|
26
|
+
amount: number;
|
|
27
|
+
label: string;
|
|
28
|
+
originalLabel: string;
|
|
29
|
+
date: string;
|
|
30
|
+
}
|
|
25
31
|
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankAccount/Query.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE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AK,CAAC,EAAE,MAAM,CAAC;IAKf,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAMf,UAAU,CAAC,EAAE,OAAO,CAAC;IAIrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,OAAO,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CAC3B;AAED,qBAAa,gBAAgB;IAK3B,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAM3B,aAAa,CAAC,EAAE,sBAAsB,CAAC;IAMvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,qBAAa,8BAA8B;IAGzC,MAAM,EAAE,MAAM,CAAC;IAIf,KAAK,EAAE,MAAM,CAAC;IAId,aAAa,EAAE,MAAM,CAAC;IAItB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { IsBoolean, IsNumber, IsOptional, IsString, IsInt, IsEnum } from 'class-validator';
|
|
10
|
+
import { IsBoolean, IsNumber, IsOptional, IsString, IsInt, IsEnum, IsDateString } from 'class-validator';
|
|
11
11
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
import { PartnerTransactionType } from '../../../Enum/PartnerTransactionType';
|
|
13
13
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
@@ -138,4 +138,30 @@ __decorate([
|
|
|
138
138
|
ToBoolean(),
|
|
139
139
|
__metadata("design:type", Boolean)
|
|
140
140
|
], QueryBankAccount.prototype, "withBankConnection", void 0);
|
|
141
|
+
export class QueryBankTransactionPrediction {
|
|
142
|
+
amount;
|
|
143
|
+
label;
|
|
144
|
+
originalLabel;
|
|
145
|
+
date;
|
|
146
|
+
}
|
|
147
|
+
__decorate([
|
|
148
|
+
ApiProperty({ description: 'Amount of transaction to predict (negative for debit, positive for credit)' }),
|
|
149
|
+
IsNumber(),
|
|
150
|
+
__metadata("design:type", Number)
|
|
151
|
+
], QueryBankTransactionPrediction.prototype, "amount", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
ApiProperty({ description: 'Label of the transaction to predict' }),
|
|
154
|
+
IsString(),
|
|
155
|
+
__metadata("design:type", String)
|
|
156
|
+
], QueryBankTransactionPrediction.prototype, "label", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
ApiProperty({ description: 'Original label of the transaction to predict' }),
|
|
159
|
+
IsString(),
|
|
160
|
+
__metadata("design:type", String)
|
|
161
|
+
], QueryBankTransactionPrediction.prototype, "originalLabel", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
ApiProperty({ description: 'Date of the transaction to predict (YYYY-MM-DD)' }),
|
|
164
|
+
IsDateString(),
|
|
165
|
+
__metadata("design:type", String)
|
|
166
|
+
], QueryBankTransactionPrediction.prototype, "date", void 0);
|
|
141
167
|
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankAccount/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankAccount/Query.ts"],"names":[],"mappings":";;;;;;;;;AA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AE,iDAAiD,EAAE,CAAC;IAC/E,YAAY,EAAE;;4DACF","sourcesContent":["import { IsBoolean, IsNumber, IsOptional, IsString, IsInt, IsEnum, IsDateString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { PartnerTransactionType } from '../../../Enum/PartnerTransactionType';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { Nature } from '../../../Enum/Nature';\nimport { BankAccountType } from '../../../Enum/BankAccountType';\n\nexport type FilterByType = 'debit' | 'credit' | null;\n\nexport class QueryTransactionsForComparisonPaginated {\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n startDate: string;\n\n @ApiProperty()\n @IsString()\n endDate: string;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n limit?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n page?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n search?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n order?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n descending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n filterByType?: Nature;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n minimumAmount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n maximumAmount?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n groupBy?: 'day' | 'month';\n}\n\nexport class QueryBankAccount {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isActivated?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(BankAccountType)\n idBankAccountType?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(PartnerTransactionType)\n idPartnerType?: PartnerTransactionType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n withCheckBalance?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n withBankConnection?: boolean;\n}\n\nexport class QueryBankTransactionPrediction {\n @ApiProperty({ description: 'Amount of transaction to predict (negative for debit, positive for credit)' })\n @IsNumber()\n amount: number;\n\n @ApiProperty({ description: 'Label of the transaction to predict' })\n @IsString()\n label: string;\n\n @ApiProperty({ description: 'Original label of the transaction to predict' })\n @IsString()\n originalLabel: string;\n\n @ApiProperty({ description: 'Date of the transaction to predict (YYYY-MM-DD)' })\n @IsDateString()\n date: string;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.144",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -59,6 +59,14 @@ export class PaymentExpectationCustomer extends Resource {
|
|
|
59
59
|
return this.axios.$post(`/society/payment-expectation-customers/${id}/send`, payload);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
/**
|
|
63
|
+
* TAP TO PAY - STRIPE
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
getAllLocations(): Promise<Stripe.ApiList<Stripe.Terminal.Location>> {
|
|
67
|
+
return this.axios.$get('/stripe/tap-to-pay/locations');
|
|
68
|
+
}
|
|
69
|
+
|
|
62
70
|
createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken> {
|
|
63
71
|
return this.axios.$post('/stripe/tap-to-pay/tokens', payload);
|
|
64
72
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsNumber, IsOptional, IsString, IsInt, IsEnum } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsNumber, IsOptional, IsString, IsInt, IsEnum, IsDateString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { PartnerTransactionType } from '../../../Enum/PartnerTransactionType';
|
|
4
4
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
@@ -97,3 +97,21 @@ export class QueryBankAccount {
|
|
|
97
97
|
@ToBoolean()
|
|
98
98
|
withBankConnection?: boolean;
|
|
99
99
|
}
|
|
100
|
+
|
|
101
|
+
export class QueryBankTransactionPrediction {
|
|
102
|
+
@ApiProperty({ description: 'Amount of transaction to predict (negative for debit, positive for credit)' })
|
|
103
|
+
@IsNumber()
|
|
104
|
+
amount: number;
|
|
105
|
+
|
|
106
|
+
@ApiProperty({ description: 'Label of the transaction to predict' })
|
|
107
|
+
@IsString()
|
|
108
|
+
label: string;
|
|
109
|
+
|
|
110
|
+
@ApiProperty({ description: 'Original label of the transaction to predict' })
|
|
111
|
+
@IsString()
|
|
112
|
+
originalLabel: string;
|
|
113
|
+
|
|
114
|
+
@ApiProperty({ description: 'Date of the transaction to predict (YYYY-MM-DD)' })
|
|
115
|
+
@IsDateString()
|
|
116
|
+
date: string;
|
|
117
|
+
}
|