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",