@natrave/shared-entities 1.4.85 → 1.4.87

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,4 +1,5 @@
1
1
  export declare enum PaymentProviderName {
2
- PAGARME = "pagarme"
2
+ PAGARME = "pagarme",
3
+ MERCADO_PAGO = "mercado_pago"
3
4
  }
4
5
  //# sourceMappingURL=payment-provider-name.enum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-provider-name.enum.d.ts","sourceRoot":"","sources":["../../../../src/payments/payment-providers/enums/payment-provider-name.enum.ts"],"names":[],"mappings":"AASA,oBAAY,mBAAmB;IAI7B,OAAO,YAAY;CACpB"}
1
+ {"version":3,"file":"payment-provider-name.enum.d.ts","sourceRoot":"","sources":["../../../../src/payments/payment-providers/enums/payment-provider-name.enum.ts"],"names":[],"mappings":"AASA,oBAAY,mBAAmB;IAI7B,OAAO,YAAY;IAKnB,YAAY,iBAAiB;CAC9B"}
@@ -1,5 +1,6 @@
1
1
  var PaymentProviderName = /* @__PURE__ */ ((PaymentProviderName2) => {
2
2
  PaymentProviderName2["PAGARME"] = "pagarme";
3
+ PaymentProviderName2["MERCADO_PAGO"] = "mercado_pago";
3
4
  return PaymentProviderName2;
4
5
  })(PaymentProviderName || {});
5
6
  export {
@@ -12,6 +12,8 @@ export declare class Payment {
12
12
  qrCodeUrl?: string;
13
13
  qrCode?: string;
14
14
  expiresAt?: Date;
15
+ providerResponse?: unknown;
16
+ checkoutUrl?: string;
15
17
  createdAt: Date;
16
18
  updatedAt: Date;
17
19
  tournamentPayments: TournamentPayment[];
@@ -1 +1 @@
1
- {"version":3,"file":"payment.entity.d.ts","sourceRoot":"","sources":["../../../src/payments/payments/payment.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,aAAa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,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAUhB,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CACzC"}
@@ -61,6 +61,7 @@ __decorateClass([
61
61
  ], Payment.prototype, "status", 2);
62
62
  __decorateClass([
63
63
  Column({
64
+ name: "payment_provider_name",
64
65
  type: "enum",
65
66
  enum: PaymentProviderName,
66
67
  enumName: "PaymentProviderName",
@@ -92,6 +93,22 @@ __decorateClass([
92
93
  comment: "Data e hora de expira\xE7\xE3o do pagamento."
93
94
  })
94
95
  ], Payment.prototype, "expiresAt", 2);
96
+ __decorateClass([
97
+ Column({
98
+ type: "jsonb",
99
+ name: "provider_response",
100
+ nullable: true,
101
+ comment: "Resposta do provedor de pagamento."
102
+ })
103
+ ], Payment.prototype, "providerResponse", 2);
104
+ __decorateClass([
105
+ Column({
106
+ type: "text",
107
+ name: "checkout_url",
108
+ nullable: true,
109
+ comment: "URL de checkout do pagamento."
110
+ })
111
+ ], Payment.prototype, "checkoutUrl", 2);
95
112
  __decorateClass([
96
113
  CreateDateColumn({
97
114
  name: "created_at",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.4.85",
3
+ "version": "1.4.87",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",