diff --git a/src/binders/orders/parameters.ts b/src/binders/orders/parameters.ts index fb98229c..46e1d22f 100644 --- a/src/binders/orders/parameters.ts +++ b/src/binders/orders/parameters.ts @@ -5,8 +5,8 @@ import { type IdempotencyParameter, type PaginationParameters, type ThrottlingPa import { type CreateParameters as PaymentCreateParameters } from '../payments/parameters'; import type PickOptional from '../../types/PickOptional'; -export type CreateParameters = Pick & - PickOptional & { +export type CreateParameters = Pick & + PickOptional & { /** * All order lines must have the same currency as the order. You cannot mix currencies within a single order. * diff --git a/src/binders/payments/refunds/parameters.ts b/src/binders/payments/refunds/parameters.ts index 35eaf966..c2a9ac32 100644 --- a/src/binders/payments/refunds/parameters.ts +++ b/src/binders/payments/refunds/parameters.ts @@ -7,7 +7,7 @@ interface ContextParameters { testmode?: boolean; } -export type CreateParameters = ContextParameters & Pick & PickOptional & IdempotencyParameter; +export type CreateParameters = ContextParameters & Pick & PickOptional & IdempotencyParameter; export type GetParameters = ContextParameters & { embed?: RefundEmbed[]; diff --git a/src/data/customers/Customer.ts b/src/data/customers/Customer.ts index 61449ba7..e31590a4 100644 --- a/src/data/customers/Customer.ts +++ b/src/data/customers/Customer.ts @@ -40,7 +40,7 @@ export interface CustomerData extends Model<'customer'> { * * @see https://docs.mollie.com/reference/v2/customers-api/get-customer?path=metadata#response */ - metadata: Record; + metadata: unknown; /** * The customer's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. * diff --git a/src/data/orders/data.ts b/src/data/orders/data.ts index b94acf22..43bd16d7 100644 --- a/src/data/orders/data.ts +++ b/src/data/orders/data.ts @@ -105,7 +105,7 @@ export interface OrderData extends Model<'order'> { * * @see https://docs.mollie.com/reference/v2/orders-api/get-order?path=metadata#response */ - metadata?: any; + metadata: unknown; /** * The URL your customer will be redirected to after completing or canceling the payment process. * diff --git a/src/data/orders/orderlines/OrderLine.ts b/src/data/orders/orderlines/OrderLine.ts index fac9ca22..d04cbc2a 100644 --- a/src/data/orders/orderlines/OrderLine.ts +++ b/src/data/orders/orderlines/OrderLine.ts @@ -146,7 +146,7 @@ export interface OrderLineData extends Model<'orderline'> { * @see https://docs.mollie.com/reference/v2/orders-api/get-order?path=lines/_links#response */ _links: OrderLineLinks; - metadata: any; + metadata: unknown; } type OrderLine = Seal; diff --git a/src/data/payments/data.ts b/src/data/payments/data.ts index 31c61c37..644896ec 100644 --- a/src/data/payments/data.ts +++ b/src/data/payments/data.ts @@ -161,7 +161,7 @@ export interface PaymentData extends Model<'payment'> { * * @see https://docs.mollie.com/reference/v2/payments-api/get-payment?path=metadata#response */ - metadata: any; + metadata: unknown; /** * 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`. * diff --git a/src/data/refunds/data.ts b/src/data/refunds/data.ts index 080049f1..f6fdd38d 100644 --- a/src/data/refunds/data.ts +++ b/src/data/refunds/data.ts @@ -40,7 +40,7 @@ export interface RefundData extends Model<'refund'> { * * @see https://docs.mollie.com/reference/v2/refunds-api/get-payment-refund?path=metadata#response */ - metadata?: any; + metadata: unknown; /** * Since refunds may not be instant for certain payment methods, the refund carries a status field. * diff --git a/src/data/subscriptions/data.ts b/src/data/subscriptions/data.ts index 88911065..4c06f30f 100644 --- a/src/data/subscriptions/data.ts +++ b/src/data/subscriptions/data.ts @@ -99,7 +99,7 @@ export interface SubscriptionData extends Model<'subscription'> { * * @see https://docs.mollie.com/reference/v2/subscriptions-api/get-subscription?path=metadata#response */ - metadata: any; + metadata: unknown; /** * The application fee, if the subscription was created with one. This will be applied on each payment created for the subscription. *