From 1d82294ba48813cc53e2f0c20426ab366877a289 Mon Sep 17 00:00:00 2001 From: fPolic Date: Mon, 15 Jan 2024 10:58:31 +0100 Subject: [PATCH] fix: currency code --- packages/payment/src/models/payment-collection.ts | 5 ++--- packages/payment/src/models/payment-session.ts | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/payment/src/models/payment-collection.ts b/packages/payment/src/models/payment-collection.ts index 80f41c0151..e844224381 100644 --- a/packages/payment/src/models/payment-collection.ts +++ b/packages/payment/src/models/payment-collection.ts @@ -48,7 +48,6 @@ export enum PaymentCollectionStatus { } type OptionalPaymentCollectionProps = - | "currency_code" | "authorized_amount" | "refunded_amount" | "region_id" @@ -63,8 +62,8 @@ export default class PaymentCollection { @PrimaryKey({ columnType: "text" }) id: string - @Property({ columnType: "text", nullable: true }) - currency_code: string | null + @Property({ columnType: "text" }) + currency_code: string @Property({ columnType: "numeric", diff --git a/packages/payment/src/models/payment-session.ts b/packages/payment/src/models/payment-session.ts index c96d651722..ca0a4e8f5f 100644 --- a/packages/payment/src/models/payment-session.ts +++ b/packages/payment/src/models/payment-session.ts @@ -44,7 +44,6 @@ export enum PaymentSessionStatus { } type OptionalPaymentSessionProps = - | "currency_code" | "data" | "is_selected" | "authorized_at" @@ -57,8 +56,8 @@ export default class PaymentSession { @PrimaryKey({ columnType: "text" }) id: string - @Property({ columnType: "text", nullable: true }) - currency_code: string | null + @Property({ columnType: "text" }) + currency_code: string @Property({ columnType: "numeric",