Skip to content

Commit

Permalink
Added captures as embedded objects to payment
Browse files Browse the repository at this point in the history
  • Loading branch information
JoostMollie authored Sep 8, 2023
1 parent 7dec190 commit 0b38ac3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/data/payments/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export interface PaymentData extends Model<'payment'> {
_embedded?: {
refunds?: Omit<RefundData, '_embedded'>[];
chargebacks?: Omit<ChargebackData, '_embedded'>[];
captures?: Omit<CaptureData, '_embedded'>[];

Check failure on line 245 in src/data/payments/data.ts

View workflow job for this annotation

GitHub Actions / test (18.x)

Cannot find name 'CaptureData'.

Check failure on line 245 in src/data/payments/data.ts

View workflow job for this annotation

GitHub Actions / test (18.x)

Property '_embedded' of exported interface has or is using private name 'CaptureData'.
};
}

Expand Down Expand Up @@ -837,6 +838,7 @@ export type PaymentInclude = 'details.qrCode';
export enum PaymentEmbed {
refunds = 'refunds',
chargebacks = 'chargebacks',
captures = 'captures',
}

export interface GiftCard {
Expand Down

0 comments on commit 0b38ac3

Please sign in to comment.