chore: Move payment tests to http folder (#7588)

This commit is contained in:
Stevche Radevski
2024-06-03 15:04:18 +00:00
committed by GitHub
parent 337b8ce0bb
commit fdd9022376
6 changed files with 251 additions and 485 deletions
+2 -2
View File
@@ -389,7 +389,7 @@ export interface FilterablePaymentProps
/**
* Filter the payments by the ID of their associated payment session.
*/
session_id?: string | string[] | OperatorMap<string>
payment_session_id?: string | string[] | OperatorMap<string>
/**
* Filter the payments by the ID of their associated customer.
@@ -574,7 +574,7 @@ export interface PaymentProviderDTO {
export interface FilterablePaymentProviderProps
extends BaseFilterable<PaymentProviderDTO> {
/**
* The IDs to filter the payment collection by.
* The IDs to filter the payment provider by.
*/
id?: string | string[] | OperatorMap<string | string[]>
@@ -16,6 +16,7 @@ export const AdminGetPaymentsParams = createFindParams({
z.object({
q: z.string().optional(),
id: z.union([z.string(), z.array(z.string())]).optional(),
payment_session_id: z.union([z.string(), z.array(z.string())]).optional(),
created_at: createOperatorMap().optional(),
updated_at: createOperatorMap().optional(),
deleted_at: createOperatorMap().optional(),