/// <summary>Creates document's page for dispute.</summary> /// <param name="idempotencyKey">Idempotency key for this request.</param> /// <param name="disputeId">Dispute identifier.</param> /// <param name="documentId">Dispute document identifier.</param> /// <param name="binaryData">The byte array the DisputePage will be created from.</param> public void CreateDisputePage(string idempotencyKey, string disputeId, string documentId, byte[] binaryData) { string fileContent = Convert.ToBase64String(binaryData); DisputePagePostDTO disputePage = new DisputePagePostDTO(fileContent); this.CreateObject <DisputePageDTO, DisputePagePostDTO>(idempotencyKey, MethodKey.DisputesDocumentPageCreate, disputePage, disputeId, documentId); }
/// <summary>Creates document's page for dispute.</summary> /// <param name="idempotencyKey">Idempotency key for this request.</param> /// <param name="disputeId">Dispute identifier.</param> /// <param name="documentId">Dispute document identifier.</param> /// <param name="binaryData">The byte array the DisputePage will be created from.</param> public bool CreateDisputePage(string idempotencyKey, string disputeId, string documentId, byte[] binaryData) { var fileContent = Convert.ToBase64String(binaryData); var disputePage = new DisputePagePostDTO(fileContent); var result = this.CreateObject <DisputePageDTO, DisputePagePostDTO>(idempotencyKey, MethodKey.DisputesDocumentPageCreate, disputePage, disputeId, documentId); return(result != null); }