1#include <test/jtx/check.h>
3#include <test/jtx/Account.h>
5#include <xrpl/basics/base_uint.h>
6#include <xrpl/json/json_value.h>
7#include <xrpl/protocol/SField.h>
8#include <xrpl/protocol/STAmount.h>
9#include <xrpl/protocol/jss.h>
18 jv[sfAccount.jsonName] = dest.
human();
20 jv[sfCheckID.jsonName] =
to_string(checkId);
21 jv[sfTransactionType.jsonName] = jss::CheckCash;
30 jv[sfAccount.jsonName] = dest.
human();
32 jv[sfCheckID.jsonName] =
to_string(checkId);
33 jv[sfTransactionType.jsonName] = jss::CheckCash;
42 jv[sfAccount.jsonName] = dest.
human();
43 jv[sfCheckID.jsonName] =
to_string(checkId);
44 jv[sfTransactionType.jsonName] = jss::CheckCancel;
json::Value getJson(JsonOptions=JsonOptions::Values::None) const override
Immutable cryptographic account descriptor.
std::string const & human() const
Returns the human readable public key.
json::Value cancel(jtx::Account const &dest, uint256 const &checkId)
Cancel a check.
json::Value cash(jtx::Account const &dest, uint256 const &checkId, STAmount const &amount)
Cash a check requiring that a specific amount be delivered.
std::string to_string(BaseUInt< Bits, Tag > const &a)
Type used to specify DeliverMin for cashing a check.