ApiDisputes
class ApiDisputes extends ApiBase (View source)
Class ApiDisputes
Properties
protected MangoPayApi | $_root | Root/parent instance that holds the OAuthToken and Configuration instance |
from ApiBase |
Methods
Constructor Root/parent instance that holds the OAuthToken and Configuration instance
Create object in API
Get entity object from API
Get lst with entities object from API
Save object in API
Executes a POST request
Cast response object to entity object
Get all disputes
List Disputes that need settling
This method is used to resubmit a Dispute if it is reopened requiring more docs
Close dispute
Gets dispute's transactions
Gets dispute's documents for wallet
Gets user's disputes
Gets repudiation
Creates settlement transfer
Gets settlement transfer
Gets documents for dispute
Creates document for dispute
Creates document's page for dispute
Creates document's page for dispute from file
Details
protected mixed
getLogger()
No description
__construct(MangoPayApi $root)
Constructor Root/parent instance that holds the OAuthToken and Configuration instance
protected string
GetRequestUrl(string $key)
Get URL for REST Mango Pay API
protected RequestType
GetRequestType(string $key)
Get request type for REST Mango Pay API
protected object
CreateObject(string $methodKey, object $entity, object $responseClassName = null, string $entityId = null, $subEntityId = null, $idempotencyKey = null)
Create object in API
protected object
GetObject(string $methodKey, object $responseClassName, $firstEntityId = null, $secondEntityId = null, $thirdEntityId = null, $clientIdRequired = true)
Get entity object from API
protected object[]
GetList(string $methodKey, Pagination $pagination, object $responseClassName = null, string $entityId = null, object $filter = null, Sorting $sorting = null, $secondEntityId = null, $clientIdRequired = true)
Get lst with entities object from API
protected object
SaveObject(string $methodKey, object $entity, object $responseClassName = null, $secondEntityId = null, $thirdEntityId = null)
Save object in API
protected object
ExecutePostRequest($methodKey, $entity, $responseClassName, $entityId = null)
Executes a POST request
protected Error
CastResponseToError(object $response)
Cast response object to an error object
protected
CastResponseToEntity(object $response, string $entityClassName, $asDependentObject = false)
Cast response object to entity object
protected array
BuildRequestData(object $entity)
Get array with request data
protected
GetObjectForIdempotencyUrl($url)
No description
Dispute
Get(string $disputeId)
Gets dispute
Dispute[]
GetAll(Pagination $pagination = null, Sorting $sorting = null, FilterDisputes $filter = null)
Get all disputes
Dispute[]
GetPendingSettlements(Pagination $pagination = null, Sorting $sorting = null)
List Disputes that need settling
Dispute
ResubmitDispute(string $disputeId)
This method is used to resubmit a Dispute if it is reopened requiring more docs
Dispute
CloseDispute(string $disputeId)
Close dispute
Transaction[]
GetTransactions(string $disputeId, Pagination $pagination = null, Sorting $sorting = null, FilterTransactions $filter = null)
Gets dispute's transactions
Dispute[]
GetDisputesForWallet(string $walletId, Pagination $pagination = null, Sorting $sorting = null, FilterDisputes $filter = null)
Gets dispute's documents for wallet
Dispute[]
GetDisputesForUser(string $userId, Pagination $pagination = null, Sorting $sorting = null, FilterDisputes $filter = null)
Gets user's disputes
Repudiation
GetRepudiation(string $repudiationId)
Gets repudiation
Transfer
CreateSettlementTransfer(SettlementTransfer $settlementTransfer, string $repudiationId, $idempotencyKey = null)
Creates settlement transfer
SettlementTransfer
GetSettlementTransfer(string $settlementTransferId)
Gets settlement transfer
DisputeDocument[]
GetDocumentsForDispute(string $disputeId, Pagination $pagination = null, Sorting $sorting = null, FilterDisputeDocuments $filter = null)
Gets documents for dispute
DisputeDocument
UpdateDisputeDocument(string $disputeId, DisputeDocument $disputeDocument)
Update dispute document
DisputeDocument
CreateDisputeDocument(string $disputeId, DisputeDocument $disputeDocument, $idempotencyKey = null)
Creates document for dispute
CreateDisputeDocumentPage(string $disputeId, string $disputeDocumentId, DisputeDocumentPage $disputeDocumentPage, $idempotencyKey = null)
Creates document's page for dispute
CreateDisputeDocumentPageFromFile(string $disputeId, string $disputeDocumentId, string $file, $idempotencyKey = null)
Creates document's page for dispute from file