chore: fixes to http and request types for payments (#13830)
This commit is contained in:
1 parent
83f2d87fa5
commit
64c5019b3b
14 files changed
+55
-39
No files matched your search
@@ -15,11 +15,11 @@ export interface AdminRefundPayment {
|
||||
/**
|
||||
* The ID of the refund's reason.
|
||||
*/
|
||||
refund_reason_id?: string | null
|
||||
refund_reason_id?: string
|
||||
/**
|
||||
* A note to attach to the refund.
|
||||
*/
|
||||
note?: string | null
|
||||
note?: string
|
||||
}
|
||||
|
||||
export interface AdminCreatePaymentCollection {
|
||||
@@ -28,10 +28,9 @@ export interface AdminCreatePaymentCollection {
|
||||
*/
|
||||
order_id: string
|
||||
/**
|
||||
* The payment collection's amount. If not specified,
|
||||
* the order's total is used as the amount instead.
|
||||
* The payment collection's amount.
|
||||
*/
|
||||
amount?: number
|
||||
amount: number
|
||||
}
|
||||
|
||||
export interface AdminMarkPaymentCollectionAsPaid {
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import { FindParams } from "../../common"
|
||||
import {
|
||||
BasePaymentCollectionFilters,
|
||||
BasePaymentSessionFilters,
|
||||
} from "../common"
|
||||
|
||||
export interface StorePaymentProviderFilters {
|
||||
export interface StorePaymentProviderFilters extends FindParams {
|
||||
/**
|
||||
* The ID of the region to retrieve its payment providers.
|
||||
*/
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
import { BaseFilterable, OperatorMap } from "../../../dal"
|
||||
import { BaseFilterable } from "../../../dal"
|
||||
import { SelectParams } from "../../common"
|
||||
import { BaseRefundReasonListParams } from "../common"
|
||||
|
||||
export interface AdminRefundReasonListParams
|
||||
extends BaseRefundReasonListParams,
|
||||
BaseFilterable<AdminRefundReasonListParams> {
|
||||
/**
|
||||
* Apply filters on the refund reason's deletion date.
|
||||
*/
|
||||
deleted_at?: OperatorMap<string>
|
||||
}
|
||||
BaseFilterable<AdminRefundReasonListParams> {}
|
||||
|
||||
export interface AdminRefundReasonParams extends SelectParams {}
|
||||
@@ -47,14 +47,6 @@ export interface BaseRefundReasonListParams extends FindParams {
|
||||
* Filter by refund reason ID(s).
|
||||
*/
|
||||
id?: string | string[]
|
||||
/**
|
||||
* Filter by label(s).
|
||||
*/
|
||||
label?: string | OperatorMap<string>
|
||||
/**
|
||||
* Filter by description(s).
|
||||
*/
|
||||
description?: string | OperatorMap<string>
|
||||
/**
|
||||
* Filter by parent refund reason ID(s).
|
||||
*/
|
||||
@@ -67,4 +59,8 @@ export interface BaseRefundReasonListParams extends FindParams {
|
||||
* Filter by update date.
|
||||
*/
|
||||
updated_at?: OperatorMap<string>
|
||||
/**
|
||||
* Apply filters on the refund reason's deletion date.
|
||||
*/
|
||||
deleted_at?: OperatorMap<string>
|
||||
}
|
||||
Reference in new issue
Block a user