Skip to content

Commit

Permalink
Add method com.untill.driver.untillapi.reasons.IUntillReasonsApi#getR…
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniilSolovyov and sda authored Aug 22, 2024
1 parent 29da61e commit 5480c12
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

/**
* UntillAPI for working with reasons
*
* @see IUntillApi
* @see IDriverContext
*/
Expand All @@ -16,4 +17,11 @@ public interface IUntillReasonsApi extends IUntillApi {
*/
Long getReasonIdByGuid(String guid);

/**
* Returns void-reason or discount-reason by GUID if reason not found returns null
*
* @param guid void-reason or discount-reason GUID
* @return {@link Reason}
*/
Reason getReasonByGuid(String guid);
}
22 changes: 22 additions & 0 deletions src/main/java/com/untill/driver/untillapi/reasons/Reason.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.untill.driver.untillapi.reasons;

public class Reason {
private Long id;
private String description;

public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}
}

0 comments on commit 5480c12

Please sign in to comment.