PokepayAPI class

Available extensions

Constructors

PokepayAPI({required String accessToken, required APIEnv env})

Properties

accessToken String
final
env APIEnv
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addTerminalPublicKey({required String key}) Future<ServerKey>

Available on PokepayAPI, provided by the TerminalAPI extension

cancelUserTransaction({required String id}) Future<NoContent>

Available on PokepayAPI, provided by the TransactionAPI extension

createAccount({String? name, required String privateMoneyId, String? externalId}) Future<Account>

Available on PokepayAPI, provided by the AccountAPI extension

createAccountCpmToken({required String accountId, required CpmTokenScope scopes, int? expiresIn, Map<String, String>? metadata}) Future<AccountCpmToken>

Available on PokepayAPI, provided by the AccountAPI extension

createBill({double? amount, String? accountId, String? description, bool isOnetime = false, List<Product>? products}) Future<Bill>

Available on PokepayAPI, provided by the BillAPI extension

createCashtray({required double amount, String? description, int? expiresIn, List<Product>? products}) Future<Cashtray>

Available on PokepayAPI, provided by the CashtrayAPI extension

createCheck({double? amount, double? moneyAmount, double? pointAmount, String? accountId, String? description, bool? isOnetime = true, int? usageLimit, DateTime? expiresAt, DateTime? pointExpiresAt, int? pointExpiresInDays}) Future<Check>

Available on PokepayAPI, provided by the CheckAPI extension

createUserTransactionWithBill({required String billId, String? accountId, double? amount, String? couponId, TransactionStrategy strategy = TransactionStrategy.POINT_PREFERRED}) Future<UserTransaction>

Available on PokepayAPI, provided by the TransactionAPI extension

createUserTransactionWithCashtray({required String cashtrayId, String? accountId, String? couponId, TransactionStrategy strategy = TransactionStrategy.POINT_PREFERRED}) Future<UserTransaction>

Available on PokepayAPI, provided by the TransactionAPI extension

createUserTransactionWithCheck({required String checkId, String? accountId}) Future<UserTransaction>

Available on PokepayAPI, provided by the TransactionAPI extension

createUserTransactionWithCpm({required String cpmToken, String? accountId, required double amount, List<Product>? products}) Future<UserTransaction>

Available on PokepayAPI, provided by the TransactionAPI extension

createUserTransactionWithJwt({required String data, String? accountId, String? couponId, TransactionStrategy strategy = TransactionStrategy.POINT_PREFERRED}) Future<JwtResult>

Available on PokepayAPI, provided by the TransactionAPI extension

deleteBill({required String id}) Future<NoContent>

Available on PokepayAPI, provided by the BillAPI extension

deleteCashtray({required String id}) Future<NoContent>

Available on PokepayAPI, provided by the CashtrayAPI extension

deleteCheck({required String id}) Future<NoContent>

Available on PokepayAPI, provided by the CheckAPI extension

deleteUserEmail({required String id, required String email}) Future<NoContent>

Available on PokepayAPI, provided by the UserAPI extension

getAccount({required String id}) Future<Account>

Available on PokepayAPI, provided by the AccountAPI extension

getAccountBalances({required String id, String? before, String? after, int? perPage}) Future<PaginatedAccountBalances>

Available on PokepayAPI, provided by the AccountAPI extension

getAccountCouponDetail({required String accountId, required String couponId}) Future<CouponDetail>

Available on PokepayAPI, provided by the AccountAPI extension

getAccountCoupons({required String accountId, bool isAvailable = true, String? before, String? after, int? perPage}) Future<PaginatedCoupons>

Available on PokepayAPI, provided by the AccountAPI extension

getAccountTransactions({required String id, String? before, String? after, int? perPage}) Future<PaginatedTransactions>

Available on PokepayAPI, provided by the AccountAPI extension

getBill({required String id}) Future<Bill>

Available on PokepayAPI, provided by the BillAPI extension

getCashtray({required String id}) Future<Cashtray>

Available on PokepayAPI, provided by the CashtrayAPI extension

getCashtrayAttempts({required String id}) Future<CashtrayAttempts>

Available on PokepayAPI, provided by the CashtrayAPI extension

getCheck({required String id}) Future<Check>

Available on PokepayAPI, provided by the CheckAPI extension

getCpmToken({required String cpmToken}) Future<AccountCpmToken>

Available on PokepayAPI, provided by the AccountAPI extension

getMessage({required String id}) Future<Message>

Available on PokepayAPI, provided by the MessageAPI extension

getMessageUnreadCount() Future<MessageUnreadCount>

Available on PokepayAPI, provided by the MessageAPI extension

getPrivateMoney({required String privateMoneyId}) Future<PrivateMoney>

Available on PokepayAPI, provided by the PrivateMoney extension

getPrivateMoneyCoupons({required String privateMoneyId, String? before, String? after, int? perPage}) Future<PaginatedCoupons>

Available on PokepayAPI, provided by the PrivateMoney extension

getTerminal() Future<Terminal>

Available on PokepayAPI, provided by the TerminalAPI extension

getUserAccounts({required String id, String? before, String? after, int? perPage}) Future<PaginatedAccounts>

Available on PokepayAPI, provided by the UserAPI extension

getUserTransaction({required String id}) Future<UserTransaction>

Available on PokepayAPI, provided by the TransactionAPI extension

getUserTransactions({required String id, String? before, String? after, int? perPage}) Future<PaginatedTransactions>

Available on PokepayAPI, provided by the UserAPI extension

listMessages({String? before, String? after, int? perPage}) Future<PaginatedMessages>

Available on PokepayAPI, provided by the MessageAPI extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patchAccountCouponDetail({required String accountId, required String couponId, required bool isReceived}) Future<CouponDetail>

Available on PokepayAPI, provided by the AccountAPI extension

receiveMessageAttachment({required String id}) Future<MessageAttachment>

Available on PokepayAPI, provided by the MessageAPI extension

registerUserEmail({required String token}) Future<NoContent>

Available on PokepayAPI, provided by the UserAPI extension

searchPrivateMoneys({String? name, bool includeExclusive = false, String? before, String? after, int? perPage}) Future<PaginatedPrivateMoneys>

Available on PokepayAPI, provided by the PrivateMoney extension

sendConfirmationEmail({required String id, required String email}) Future<NoContent>

Available on PokepayAPI, provided by the UserAPI extension

sendMessage({required String toUserId, double? amount, required String subject, required String body, required User sender, String? fromAccountId}) Future<Message>

Available on PokepayAPI, provided by the MessageAPI extension

sendToAccount({required String accountId, required double amount, String? receiverTerminalId, String? senderAccountId, String? description}) Future<UserTransaction>

Available on PokepayAPI, provided by the TransactionAPI extension

sendToUser({required String userId, required double amount, String? receiverTerminalId, String? senderAccountId, String? description}) Future<UserTransaction>

Available on PokepayAPI, provided by the TransactionAPI extension

toString() String
A string representation of this object.
inherited
updateBill({required String id, double? amount, String? description}) Future<Bill>

Available on PokepayAPI, provided by the BillAPI extension

updateCashtray({required String id, double? amount, String? description, int? expiresIn}) Future<Cashtray>

Available on PokepayAPI, provided by the CashtrayAPI extension

updateCheck({required String id, double? amount, String? description, required DateTime expiresAt, required DateTime pointExpiresAt, int? pointExpiresInDays}) Future<Check>

Available on PokepayAPI, provided by the CheckAPI extension

updateTerminal({required String accountId, required String name, String? pushToken}) Future<Terminal>

Available on PokepayAPI, provided by the TerminalAPI extension

updateUser({required String id, String? name}) Future<User>

Available on PokepayAPI, provided by the UserAPI extension

Operators

operator ==(Object other) bool
The equality operator.
inherited