Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: args missing issue for reverse-withdrawal API endpoints #2482

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions includes/REST/DummyDataController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function register_routes() {
'methods' => WP_REST_Server::READABLE,
'callback' => array( $this, 'import_dummy_data_status' ),
'permission_callback' => array( $this, 'get_permissions_check' ),
'args' => [], // No args needed.
),
)
);
Expand All @@ -63,6 +64,7 @@ public function register_routes() {
'methods' => WP_REST_Server::DELETABLE,
'callback' => array( $this, 'clear_dummy_data' ),
'permission_callback' => array( $this, 'get_permissions_check' ),
'args' => [], // No args needed.
),
)
);
Expand Down
2 changes: 2 additions & 0 deletions includes/REST/ReverseWithdrawalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public function register_routes() {
'methods' => WP_REST_Server::READABLE,
'callback' => [ $this, 'get_transaction_types' ],
'permission_callback' => [ $this, 'get_transaction_types_permissions_check' ],
'args' => $this->get_collection_params(), // It returns a collection of items, can added pagination type support
],
'schema' => [ $this, 'get_public_item_schema_for_transaction_types' ],
]
Expand All @@ -114,6 +115,7 @@ public function register_routes() {
'methods' => WP_REST_Server::READABLE,
'callback' => [ $this, 'get_stores' ],
'permission_callback' => [ $this, 'get_stores_permissions_check' ],
'args' => $this->get_collection_params(), // This is a collection endpoint
],
'schema' => [ $this, 'get_public_schema_for_stores' ],
]
Expand Down
Loading