summaryrefslogtreecommitdiffstats
path: root/lib/WWW/YNAB/ScheduledSubTransaction.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-06-24 12:01:23 -0400
committerJesse Luehrs <doy@tozt.net>2018-06-24 12:01:23 -0400
commitc1fb530eea90fcf7c1c294b44d6d833e4dbcd809 (patch)
tree2198bfc289572b9321007a62df0f9bd732622ae1 /lib/WWW/YNAB/ScheduledSubTransaction.pm
parent2d115e33a28a5e8f98d18d371f1503760547674f (diff)
downloadwww-ynab-c1fb530eea90fcf7c1c294b44d6d833e4dbcd809.tar.gz
www-ynab-c1fb530eea90fcf7c1c294b44d6d833e4dbcd809.zip
add scheduled transactions
Diffstat (limited to 'lib/WWW/YNAB/ScheduledSubTransaction.pm')
-rw-r--r--lib/WWW/YNAB/ScheduledSubTransaction.pm48
1 files changed, 48 insertions, 0 deletions
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;