Back to project page Java-Yandex.Money-API-SDK.
The source code is released under:
MIT License
If you think the Android project Java-Yandex.Money-API-SDK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ru.yandex.money.api.response.util; //from w ww . j a v a2 s .c o m import ru.yandex.money.api.enums.MoneyDirection; import ru.yandex.money.api.rights.IdentifierType; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; /** * ?????? ?????????? ????????. * @author dvmelnikov */ public class Operation implements Serializable { private static final long serialVersionUID = -8165150792250463801L; public enum Status { /** * ?????? ???????? ???????? */ success, /** * ?????? ??? ???????? ???????????, ???? ?????? ????? ?????????? ???????. * * ??????? ????? ??????? ???? ???????? ?? ????? ????????? ? ???????? ?? ??????????????? * (??????? ?? ???????/e-mail, ????? ? ??????????? ??? ??? ??????) */ refused, /** * ????? ? ?????????? ???????????. * ?????????? ????? ???????? ???, ????? ?????? ??? ?????????/??????? ????? ?? ???????????? ?????????/e-mail'?? * * ??????? ????? ??????? ???? ???????? ?? ????? ????????? ? ???????? ?? ??????????????? * (??????? ?? ???????/e-mail, ????? ? ??????????? ??? ??? ??????) */ in_progress } protected String operationId; protected String patternId; protected Status status; protected MoneyDirection direction; protected BigDecimal amount; protected Date datetime; protected String title; protected String sender; protected String recipient; protected IdentifierType recipientType; protected String message; protected Boolean codepro; protected String details; protected String label; protected Operation() { } /** * @return ????????????? ???????? */ public String getOperationId() { return operationId; } /** * @return * <p>????????????? ??????? ???????, * ?? ???????? ????????? ??????. ?????????????? ?????? ???? ????????. * </p> * <p>???? ???????? ????? ???????? ????????????? ????????: p2p. * ? ?????????? ???????? ???? ???????? ?? ??????????.</p> */ public String getPatternId() { return patternId; } /** * ???????????? ????????? ????????? * @return ?????? {@link ru.yandex.money.api.enums.MoneyDirection} */ public MoneyDirection getDirection() { return direction; } /** * @return ????? ???????? */ public BigDecimal getAmount() { return amount; } /** * @return ???? ? ?????? ???????????? ????????. */ public Date getDatetime() { return datetime; } /** * @return ??????? ????????? ???????? (???????? ???????? ??? ????????? ???????????). */ public String getTitle() { return title; } /** * ???? ?????????????? ?????? ??? ???????? operation-history ?? ?????????? details=true, * ??? ??? ???????? operation-detail * * @return ?????????? ????? ?????? ???????????? ????????. ?????????????? ???? * ????????? ????????? ?? ?????? ?????????????. */ public String getSender() { return sender; } /** * ???? ?????????????? ?????? ??? ???????? operation-history ?? ?????????? details=true, * ??? ??? ???????? operation-detail * * @return ?????????? ????? ?????? ???????????? ????????. ?????????????? ???? * ????????? ????????? ?? ?????? ?????????????. */ public String getRecipient() { return recipient; } /** * @return ??? ?????????????? ??????????? ????????. * ?????????????? ???? ??????????? ????????? ?????? ??????????????. */ public IdentifierType getRecipientType() { return recipientType; } /** * ???? ?????????????? ?????? ??? ???????? operation-history ?? ?????????? details=true, * ??? ??? ???????? operation-detail * * @return ?????????? ??????????? ? ????????. ?????????????? ???? * ????????? ?????? ??????????????. */ public String getMessage() { return message; } /** * ????????? ????????? ???????. ?????????????? ???? ????? ????????. * @return ???????? ??????? */ public Status getStatus() { return status; } /** * ???? ?????????????? ?????? ??? ???????? operation-history ?? ?????????? details=true, * ??? ??? ???????? operation-detail * * @return ?????????? ??????? ??????? ??????? ????? ?????????. * ?????????????? ???? ????????? ?????? ??????????????. */ public Boolean getCodepro() { return codepro; } /** * ???? ?????????????? ?????? ??? ???????? operation-history ?? ?????????? details=true, * ??? ??? ???????? operation-detail * * @return ?????????? ????????? ????????? ???????. * ?????? ????????????? ???????, ????? ?????????? ????? ???????? ? * ???????? ??????. */ public String getDetails() { return details; } public String getLabel() { return label; } @Override public String toString() { return "Operation{" + "operationId='" + operationId + '\'' + ", patternId='" + patternId + '\'' + ", title='" + title + '\'' + ", status='" + status + '\'' + ", direction=" + direction + ", amount=" + amount + ", datetime=" + datetime + ", sender='" + sender + '\'' + ", recipient='" + recipient + '\'' + ", recipient_type='" + recipientType + '\'' + ", message='" + message + '\'' + ", codepro=" + codepro + ", label='" + label + '\'' + '}'; } }