ℹ️ This document is a part of WooCommerce Payments Server Requests
The WCPay\Core\Server\Request\List_Disputes
class is used to construct the request for listing disputes.
Parameter | Setter | Immutable | Required | Default value |
---|---|---|---|---|
created_after |
set_created_after( string $created_after ) |
- | - | - |
created_before |
set_created_before( string $created_before ) |
- | - | - |
created_between |
set_created_between( array $created_between ) |
- | - | - |
currency_is |
set_currency_is( string $currency_is ) |
- | - | - |
match |
set_match( string $match ) |
- | - | - |
page |
set_page( int $page ) |
Yes | - | - |
pagesize |
set_page_size( int $page_size ) |
Yes | - | 25 |
search |
set_search( string $search ) |
- | - | - |
sort |
set_sort_by( string $sort ) |
Yes | - | 'created' |
direction |
set_sort_direction( string $direction ) |
Yes | - | 'desc' |
status_is |
set_status_is( string $status_is ) |
- | - | - |
status_is_not |
set_status_is_not( string $status_is_not ) |
- | - | - |
- Name:
wcpay_list_disputes_request
- Arguments:
$request
$request = List_Disputes::create();
$request->set_created_after( $created_after );
$request->set_created_before( $created_before );
$request->set_created_between( $created_between );
$request->set_currency_is( $currency_is );
$request->set_match( $match );
$request->set_page( $page );
$request->set_page_size( $page_size );
$request->set_search( $search );
$request->set_sort_by( $sort );
$request->set_sort_direction( $direction );
$request->set_status_is( $status_is );
$request->set_status_is_not( $status_is_not );
$request->send();