Skip to content

Commit

Permalink
fix property types
Browse files Browse the repository at this point in the history
  • Loading branch information
janpaepke committed Sep 26, 2024
1 parent b9820ee commit 6e1ed75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/data/payments/PaymentHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ 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';
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<PaymentData, Payment> {
constructor(networkClient: TransformingNetworkClient, protected readonly links: PaymentData['_links'], protected readonly embedded: Payment['_embedded']) {
Expand Down
4 changes: 2 additions & 2 deletions src/data/payments/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
*
Expand Down

0 comments on commit 6e1ed75

Please sign in to comment.