From 6e1ed757f61f9a05847fe0aae94219a168b91532 Mon Sep 17 00:00:00 2001 From: Jan Paepke Date: Thu, 26 Sep 2024 13:30:04 +0200 Subject: [PATCH] fix property types --- src/data/payments/PaymentHelper.ts | 3 +-- src/data/payments/data.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/data/payments/PaymentHelper.ts b/src/data/payments/PaymentHelper.ts index 3465105a..79b4998b 100644 --- a/src/data/payments/PaymentHelper.ts +++ b/src/data/payments/PaymentHelper.ts @@ -12,7 +12,6 @@ import { type ThrottlingParameter } from '../../types/parameters'; import Helper from '../Helper'; import type Chargeback from '../chargebacks/Chargeback'; import { type ChargebackData } from '../chargebacks/Chargeback'; -import { SequenceType, type Amount } from '../global'; import type Order from '../orders/Order'; import { type OrderData } from '../orders/data'; import type Refund from '../refunds/Refund'; @@ -20,7 +19,7 @@ import { type RefundData } from '../refunds/data'; import type Payment from './Payment'; import type Capture from './captures/Capture'; import { type CaptureData } from './captures/data'; -import { PaymentStatus, type BankTransferLinks, type PaymentData } from './data'; +import { type BankTransferLinks, type PaymentData } from './data'; export default class PaymentHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: PaymentData['_links'], protected readonly embedded: Payment['_embedded']) { diff --git a/src/data/payments/data.ts b/src/data/payments/data.ts index 39041ab3..be2f4b2e 100644 --- a/src/data/payments/data.ts +++ b/src/data/payments/data.ts @@ -185,13 +185,13 @@ export interface PaymentData extends Model<'payment'> { * * Possible values: `... hours`, `... days` */ - captureDelay?: number; + captureDelay?: string; /** * **Only relevant if you wish to manage authorization and capturing separately.** * * Indicates the date before which the payment needs to be captured, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. From this date onwards we can no longer guarantee a successful capture. The parameter is omitted if the payment is not authorized (yet). */ - captureBefore?: number; + captureBefore?: string; /** * The customer's locale, either forced on creation by specifying the `locale` parameter, or detected by us during checkout. Will be a full locale, for example `nl_NL`. *