@silexpert/core 1.3.71 → 1.3.72-1

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.
@@ -1,6 +1,7 @@
1
1
  import { CancelToken } from 'axios';
2
2
  import { Resource } from '../Resource';
3
- import { QueryGetPaymentExpectationCustomer, IPaymentExpectationCustomer, QueryPayPaymentExpectationCustomer, QueryConfirmPaymentExpectationCustomer, QueryGetSocietyPaymentsExpectationsCustomers, QueryDeleteSocietyPaymentExpectationCustomer, BasePaginate, UpdateRefundSocietyPaymentExpectationCustomer, CreateSocietyPaymentExpectationCustomer, ReadPaymentExpectationCustomerStat, QueryGetSocietyPaymentsExpectationsCustomersStats, ReadPaymentIntent, SendPaymentExpectationCustomer } from '../../types';
3
+ import { QueryGetPaymentExpectationCustomer, IPaymentExpectationCustomer, QueryPayPaymentExpectationCustomer, QueryConfirmPaymentExpectationCustomer, QueryGetSocietyPaymentsExpectationsCustomers, QueryDeleteSocietyPaymentExpectationCustomer, BasePaginate, UpdateRefundSocietyPaymentExpectationCustomer, CreateSocietyPaymentExpectationCustomer, ReadPaymentExpectationCustomerStat, QueryGetSocietyPaymentsExpectationsCustomersStats, ReadPaymentIntent, SendPaymentExpectationCustomer, CreateTapToPayIntent, CreateTapToPayConnectionToken } from '../../types';
4
+ import Stripe from 'stripe';
4
5
  export declare class PaymentExpectationCustomer extends Resource {
5
6
  get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
6
7
  getBySociety(params: QueryGetSocietyPaymentsExpectationsCustomers, cancelToken?: CancelToken, signal?: AbortSignal): Promise<BasePaginate<IPaymentExpectationCustomer>>;
@@ -11,5 +12,7 @@ export declare class PaymentExpectationCustomer extends Resource {
11
12
  refund(params: UpdateRefundSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
12
13
  create(params: CreateSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
13
14
  send(id: number, payload: SendPaymentExpectationCustomer): Promise<true>;
15
+ createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken>;
16
+ createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>>;
14
17
  }
15
18
  //# sourceMappingURL=PaymentExpectationCustomer.d.ts.map
@@ -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,EAC/B,MAAM,aAAa,CAAC;AAErB,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,CAAC,MAAM,EAAE,4CAA4C,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAGlG,MAAM,CAAC,MAAM,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AE,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,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
+ createTapToPayConnectionToken(payload) {
36
+ return this.axios.$post('/stripe/tap-to-pay/tokens', payload);
37
+ }
38
+ createTapToPayIntent(payload) {
39
+ return this.axios.$post('/stripe/tap-to-pay/intents', payload);
40
+ }
35
41
  }
36
42
  exports.PaymentExpectationCustomer = PaymentExpectationCustomer;
37
43
  //# sourceMappingURL=PaymentExpectationCustomer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAiBvC,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,CAA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C,CAAC;IACxF,CAAC;CACF;AAvCD,gEAuCC","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} from '../../types';\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"]}
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;AA/CD,gEA+CC","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"]}
@@ -37,4 +37,10 @@ export declare class CreatePaymentIntent {
37
37
  export declare class PostProcessPaymentAutomatically {
38
38
  idSociety?: number;
39
39
  }
40
+ export declare class CreateTapToPayIntent {
41
+ amountInCents: number;
42
+ }
43
+ export declare class CreateTapToPayConnectionToken {
44
+ locationId?: string;
45
+ }
40
46
  //# sourceMappingURL=Create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,qBAAa,sBAAsB;IAGjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,cAAc;IAGzB,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iCAAiC;IAI5C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAGpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,uBAAuB;IAGlC,SAAS,EAAE,MAAM,CAAC;IAIlB,MAAM,EAAE,MAAM,CAAC;IAIf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,4BAA4B;IAIvC,gBAAgB,CAAC,EAAE,MAAM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IxB,aAAa,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC;CACjC;AAED,qBAAa,+BAA+B;IAI1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,oBAAoB;IAM/B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,6BAA6B;IAIxC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -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.PostProcessPaymentAutomatically = exports.CreatePaymentIntent = exports.CreateSubscriptionSessionOff = exports.CreateCommercialSession = exports.CreateSubscriptionSession = exports.CreateImportTransactionForSociety = exports.CreateCustomer = exports.CreateStripePortals = exports.CreateStripeConnection = void 0;
12
+ exports.CreateTapToPayConnectionToken = exports.CreateTapToPayIntent = exports.PostProcessPaymentAutomatically = exports.CreatePaymentIntent = exports.CreateSubscriptionSessionOff = exports.CreateCommercialSession = exports.CreateSubscriptionSession = exports.CreateImportTransactionForSociety = exports.CreateCustomer = exports.CreateStripePortals = exports.CreateStripeConnection = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
15
  class CreateStripeConnection {
@@ -143,4 +143,24 @@ __decorate([
143
143
  (0, class_validator_1.IsOptional)(),
144
144
  __metadata("design:type", Number)
145
145
  ], PostProcessPaymentAutomatically.prototype, "idSociety", void 0);
146
+ class CreateTapToPayIntent {
147
+ }
148
+ exports.CreateTapToPayIntent = CreateTapToPayIntent;
149
+ __decorate([
150
+ (0, utils_1.ApiProperty)(),
151
+ (0, class_validator_1.IsNumber)(),
152
+ (0, class_validator_1.Min)(1, {
153
+ message: 'Le montant doit être supérieur à 1ct',
154
+ }),
155
+ __metadata("design:type", Number)
156
+ ], CreateTapToPayIntent.prototype, "amountInCents", void 0);
157
+ class CreateTapToPayConnectionToken {
158
+ }
159
+ exports.CreateTapToPayConnectionToken = CreateTapToPayConnectionToken;
160
+ __decorate([
161
+ (0, utils_1.ApiProperty)(),
162
+ (0, class_validator_1.IsString)(),
163
+ (0, class_validator_1.IsOptional)(),
164
+ __metadata("design:type", String)
165
+ ], CreateTapToPayConnectionToken.prototype, "locationId", void 0);
146
166
  //# sourceMappingURL=Create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsE;AACtE,6CAAqE;AAErE,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACE;AAGf,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6DACc;AAG3B,MAAa,cAAc;CAgB1B;AAhBD,wCAgBC;AAbC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0CACG;AAIX;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;;gDACO;AAIlB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;;iDACQ;AAGrB,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AANC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACD,IAAI;oEAAC;AAKjB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACH,IAAI;kEAAC;AAGjB,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;0DACK;AAGlB,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AATC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0DACU;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;uDACO;AAIf;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;wDACK;AAGlB,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAVC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sEACe;AAI1B;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;yDACC;AAKZ;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACQ;AAGrB,MAAa,mBAAmB;CAe/B;AAfD,kDAeC;AAZC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6DACc;AAIzB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;4DACa;AAIxB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0DACc;AAGtB;IADC,IAAA,2BAAmB,GAAE;;qDACU;AAGlC,MAAa,+BAA+B;CAK3C;AALD,0EAKC;AADC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;;kEACM","sourcesContent":["import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n}\n"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqF;AACrF,6CAAqE;AAErE,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACE;AAGf,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6DACc;AAG3B,MAAa,cAAc;CAgB1B;AAhBD,wCAgBC;A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DACc;AAIzB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;4DACa;AAIxB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0DACc;AAGtB;IADC,IAAA,2BAAmB,GAAE;;qDACU;AAGlC,MAAa,+BAA+B;CAK3C;AALD,0EAKC;AADC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;;kEACM;AAGrB,MAAa,oBAAoB;CAOhC;AAPD,oDAOC;AADC;IALC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,EAAE;QACN,OAAO,EAAE,sCAAsC;KAChD,CAAC;;2DACoB;AAGxB,MAAa,6BAA6B;CAKzC;AALD,sEAKC;AADC;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACO","sourcesContent":["import { IsDate, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n}\n\nexport class CreateTapToPayIntent {\n @ApiProperty()\n @IsNumber()\n @Min(1, {\n message: 'Le montant doit être supérieur à 1ct',\n })\n amountInCents: number;\n}\n\nexport class CreateTapToPayConnectionToken {\n @ApiProperty()\n @IsString()\n @IsOptional()\n locationId?: string;\n}\n"]}
@@ -1,6 +1,7 @@
1
1
  import { CancelToken } from 'axios';
2
2
  import { Resource } from '../Resource';
3
- import { QueryGetPaymentExpectationCustomer, IPaymentExpectationCustomer, QueryPayPaymentExpectationCustomer, QueryConfirmPaymentExpectationCustomer, QueryGetSocietyPaymentsExpectationsCustomers, QueryDeleteSocietyPaymentExpectationCustomer, BasePaginate, UpdateRefundSocietyPaymentExpectationCustomer, CreateSocietyPaymentExpectationCustomer, ReadPaymentExpectationCustomerStat, QueryGetSocietyPaymentsExpectationsCustomersStats, ReadPaymentIntent, SendPaymentExpectationCustomer } from '../../types';
3
+ import { QueryGetPaymentExpectationCustomer, IPaymentExpectationCustomer, QueryPayPaymentExpectationCustomer, QueryConfirmPaymentExpectationCustomer, QueryGetSocietyPaymentsExpectationsCustomers, QueryDeleteSocietyPaymentExpectationCustomer, BasePaginate, UpdateRefundSocietyPaymentExpectationCustomer, CreateSocietyPaymentExpectationCustomer, ReadPaymentExpectationCustomerStat, QueryGetSocietyPaymentsExpectationsCustomersStats, ReadPaymentIntent, SendPaymentExpectationCustomer, CreateTapToPayIntent, CreateTapToPayConnectionToken } from '../../types';
4
+ import Stripe from 'stripe';
4
5
  export declare class PaymentExpectationCustomer extends Resource {
5
6
  get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
6
7
  getBySociety(params: QueryGetSocietyPaymentsExpectationsCustomers, cancelToken?: CancelToken, signal?: AbortSignal): Promise<BasePaginate<IPaymentExpectationCustomer>>;
@@ -11,5 +12,7 @@ export declare class PaymentExpectationCustomer extends Resource {
11
12
  refund(params: UpdateRefundSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
12
13
  create(params: CreateSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
13
14
  send(id: number, payload: SendPaymentExpectationCustomer): Promise<true>;
15
+ createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken>;
16
+ createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>>;
14
17
  }
15
18
  //# sourceMappingURL=PaymentExpectationCustomer.d.ts.map
@@ -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,EAC/B,MAAM,aAAa,CAAC;AAErB,qBAAa,0BAA2B,SAAQ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AAC;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,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,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"}
@@ -33,5 +33,11 @@ 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
+ createTapToPayConnectionToken(payload) {
37
+ return this.axios.$post('/stripe/tap-to-pay/tokens', payload);
38
+ }
39
+ createTapToPayIntent(payload) {
40
+ return this.axios.$post('/stripe/tap-to-pay/intents', payload);
41
+ }
36
42
  }
37
43
  //# sourceMappingURL=PaymentExpectationCustomer.js.map
@@ -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;AAiBvC,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;YAC7B,MAAM;SACP,CAAC,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;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} from '../../types';\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"]}
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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AK,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","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"]}
@@ -37,4 +37,10 @@ export declare class CreatePaymentIntent {
37
37
  export declare class PostProcessPaymentAutomatically {
38
38
  idSociety?: number;
39
39
  }
40
+ export declare class CreateTapToPayIntent {
41
+ amountInCents: number;
42
+ }
43
+ export declare class CreateTapToPayConnectionToken {
44
+ locationId?: string;
45
+ }
40
46
  //# sourceMappingURL=Create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,qBAAa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AAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iCAAiC;IAI5C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAGpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,uBAAuB;IAGlC,SAAS,EAAE,MAAM,CAAC;IAIlB,MAAM,EAAE,MAAM,CAAC;IAIf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,4BAA4B;IAIvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,GAAG,EAAE,MAAM,CAAC;IAKZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,eAAe,EAAE,MAAM,CAAC;IAIxB,aAAa,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC;CACjC;AAED,qBAAa,+BAA+B;IAI1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,oBAAoB;IAM/B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,6BAA6B;IAIxC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -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 { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
10
+ import { IsDate, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';
11
11
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
12
12
  export class CreateStripeConnection {
13
13
  code;
@@ -151,4 +151,24 @@ __decorate([
151
151
  IsOptional(),
152
152
  __metadata("design:type", Number)
153
153
  ], PostProcessPaymentAutomatically.prototype, "idSociety", void 0);
154
+ export class CreateTapToPayIntent {
155
+ amountInCents;
156
+ }
157
+ __decorate([
158
+ ApiProperty(),
159
+ IsNumber(),
160
+ Min(1, {
161
+ message: 'Le montant doit être supérieur à 1ct',
162
+ }),
163
+ __metadata("design:type", Number)
164
+ ], CreateTapToPayIntent.prototype, "amountInCents", void 0);
165
+ export class CreateTapToPayConnectionToken {
166
+ locationId;
167
+ }
168
+ __decorate([
169
+ ApiProperty(),
170
+ IsString(),
171
+ IsOptional(),
172
+ __metadata("design:type", String)
173
+ ], CreateTapToPayConnectionToken.prototype, "locationId", void 0);
154
174
  //# sourceMappingURL=Create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,sBAAsB;IAGjC,IAAI,CAAS;CACd;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACE;AAGf,MAAM,OAAO,mBAAmB;IAG9B,gBAAgB,CAAS;CAC1B;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACc;AAG3B,MAAM,OAAO,cAAc;IAGzB,EAAE,CAAS;IAIX,KAAK,CAAS;IAId,QAAQ,CAAU;IAIlB,SAAS,CAAU;CACpB;AAbC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;0CACG;AAIX;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACG;AAId;IAFC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;;gDACO;AAIlB;IAFC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;;iDACQ;A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AAE;IACrB,KAAK,EAAE;IACP,UAAU,EAAE;;kEACM","sourcesContent":["import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n}\n"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[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AAIf;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;wDACK;AAGlB,MAAM,OAAO,4BAA4B;IAIvC,gBAAgB,CAAU;IAI1B,GAAG,CAAS;IAKZ,SAAS,CAAU;CACpB;AAVC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;sEACe;AAI1B;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;yDACC;AAKZ;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;+DACQ;AAGrB,MAAM,OAAO,mBAAmB;IAG9B,gBAAgB,CAAS;IAIzB,eAAe,CAAS;IAIxB,aAAa,CAAS;IAGtB,QAAQ,CAAwB;CACjC;AAZC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACc;AAIzB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;4DACa;AAIxB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;0DACc;AAGtB;IADC,mBAAmB,EAAE;;qDACU;AAGlC,MAAM,OAAO,+BAA+B;IAI1C,SAAS,CAAU;CACpB;AADC;IAHC,mBAAmB,EAAE;IACrB,KAAK,EAAE;IACP,UAAU,EAAE;;kEACM;AAGrB,MAAM,OAAO,oBAAoB;IAM/B,aAAa,CAAS;CACvB;AADC;IALC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,GAAG,CAAC,CAAC,EAAE;QACN,OAAO,EAAE,sCAAsC;KAChD,CAAC;;2DACoB;AAGxB,MAAM,OAAO,6BAA6B;IAIxC,UAAU,CAAU;CACrB;AADC;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,EAAE;;iEACO","sourcesContent":["import { IsDate, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n}\n\nexport class CreateTapToPayIntent {\n @ApiProperty()\n @IsNumber()\n @Min(1, {\n message: 'Le montant doit être supérieur à 1ct',\n })\n amountInCents: number;\n}\n\nexport class CreateTapToPayConnectionToken {\n @ApiProperty()\n @IsString()\n @IsOptional()\n locationId?: string;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.71",
3
+ "version": "1.3.72-1",
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",
@@ -14,7 +14,10 @@ import {
14
14
  QueryGetSocietyPaymentsExpectationsCustomersStats,
15
15
  ReadPaymentIntent,
16
16
  SendPaymentExpectationCustomer,
17
+ CreateTapToPayIntent,
18
+ CreateTapToPayConnectionToken,
17
19
  } from '../../types';
20
+ import Stripe from 'stripe';
18
21
 
19
22
  export class PaymentExpectationCustomer extends Resource {
20
23
  get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {
@@ -55,4 +58,12 @@ export class PaymentExpectationCustomer extends Resource {
55
58
  send(id: number, payload: SendPaymentExpectationCustomer): Promise<true> {
56
59
  return this.axios.$post(`/society/payment-expectation-customers/${id}/send`, payload);
57
60
  }
61
+
62
+ createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken> {
63
+ return this.axios.$post('/stripe/tap-to-pay/tokens', payload);
64
+ }
65
+
66
+ createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>> {
67
+ return this.axios.$post('/stripe/tap-to-pay/intents', payload);
68
+ }
58
69
  }
@@ -1,4 +1,4 @@
1
- import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
1
+ import { IsDate, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import type Stripe from 'stripe';
4
4
  export class CreateStripeConnection {
@@ -102,3 +102,19 @@ export class PostProcessPaymentAutomatically {
102
102
  @IsOptional()
103
103
  idSociety?: number;
104
104
  }
105
+
106
+ export class CreateTapToPayIntent {
107
+ @ApiProperty()
108
+ @IsNumber()
109
+ @Min(1, {
110
+ message: 'Le montant doit être supérieur à 1ct',
111
+ })
112
+ amountInCents: number;
113
+ }
114
+
115
+ export class CreateTapToPayConnectionToken {
116
+ @ApiProperty()
117
+ @IsString()
118
+ @IsOptional()
119
+ locationId?: string;
120
+ }