From c1fb530eea90fcf7c1c294b44d6d833e4dbcd809 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 24 Jun 2018 12:01:23 -0400 Subject: add scheduled transactions --- lib/WWW/YNAB/ScheduledSubTransaction.pm | 48 +++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 lib/WWW/YNAB/ScheduledSubTransaction.pm (limited to 'lib/WWW/YNAB/ScheduledSubTransaction.pm') diff --git a/lib/WWW/YNAB/ScheduledSubTransaction.pm b/lib/WWW/YNAB/ScheduledSubTransaction.pm new file mode 100644 index 0000000..d275f4d --- /dev/null +++ b/lib/WWW/YNAB/ScheduledSubTransaction.pm @@ -0,0 +1,48 @@ +package WWW::YNAB::ScheduledSubTransaction; +use Moose; + +has id => ( + is => 'ro', + isa => 'Str', + required => 1, +); + +has scheduled_transaction_id => ( + is => 'ro', + isa => 'Str', +); + +has amount => ( + is => 'ro', + isa => 'Int', +); + +has memo => ( + is => 'ro', + isa => 'Maybe[Str]', +); + +has payee_id => ( + is => 'ro', + isa => 'Maybe[Str]', +); + +has category_id => ( + is => 'ro', + isa => 'Maybe[Str]', +); + +has transfer_account_id => ( + is => 'ro', + isa => 'Maybe[Str]', +); + +has deleted => ( + is => 'ro', + isa => 'Bool', +); + +__PACKAGE__->meta->make_immutable; +no Moose; + +1; -- cgit v1.2.3-54-g00ecf