| 1 | package WWW::MailboxOrg::Entity::Account; | ||
| 2 | |||
| 3 | # ABSTRACT: Account entity object | ||
| 4 | |||
| 5 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | our $VERSION = '0.001'; | |
| 8 | |||
| 9 | 1 | has _client => ( | |
| 10 | is => 'ro', | ||
| 11 | required => 1, | ||
| 12 | weak_ref => 1, | ||
| 13 | init_arg => 'client', | ||
| 14 | ); | ||
| 15 | |||
| 16 | 1 | has account => ( | |
| 17 | is => 'ro', | ||
| 18 | required => 1, | ||
| 19 | ); | ||
| 20 | |||
| 21 | |||
| 22 | 1 | has plan => ( | |
| 23 | is => 'ro', | ||
| 24 | predicate => 'has_plan', | ||
| 25 | ); | ||
| 26 | |||
| 27 | |||
| 28 | 1 | has confirmed => ( | |
| 29 | is => 'ro', | ||
| 30 | predicate => 'has_confirmed', | ||
| 31 | ); | ||
| 32 | |||
| 33 | |||
| 34 | 1 | has is_active => ( | |
| 35 | is => 'ro', | ||
| 36 | predicate => 'has_is_active', | ||
| 37 | ); | ||
| 38 | |||
| 39 | |||
| 40 | 1 | has is_locked => ( | |
| 41 | is => 'ro', | ||
| 42 | predicate => 'has_is_locked', | ||
| 43 | ); | ||
| 44 | |||
| 45 | |||
| 46 | 1 | has data => ( | |
| 47 | is => 'ro', | ||
| 48 | builder => '_build_data', | ||
| 49 | ); | ||
| 50 | |||
| 51 | sub _build_data { | ||
| 52 | 0 | ▶ | my ($self) = @_; |
|
Subroutine
_build_data: not called CC=1 SCAR=6.9
| |||
| 53 | return { | ||
| 54 | 0 | account => $self->account, | |
| 55 | plan => $self->plan, | ||
| 56 | confirmed => $self->confirmed, | ||
| 57 | is_active => $self->is_active, | ||
| 58 | is_locked => $self->is_locked, | ||
| 59 | }; | ||
| 60 | } | ||
| 61 | |||
| 62 | |||
| 63 | 1 | 1; | |
| 64 | |||
| 65 | __END__ | ||
| 66 | |||
| 67 | =pod | ||
| 68 | |||
| 69 | =encoding UTF-8 | ||
| 70 | |||
| 71 | =head1 NAME | ||
| 72 | |||
| 73 | WWW::MailboxOrg::Entity::Account - Account entity object | ||
| 74 | |||
| 75 | =head1 VERSION | ||
| 76 | |||
| 77 | version 0.001 | ||
| 78 | |||
| 79 | =head2 account | ||
| 80 | |||
| 81 | Account email address. | ||
| 82 | |||
| 83 | =head2 plan | ||
| 84 | |||
| 85 | Account plan: basic, profi, profixl, reseller. | ||
| 86 | |||
| 87 | =head2 confirmed | ||
| 88 | |||
| 89 | Account confirmation status. | ||
| 90 | |||
| 91 | =head2 is_active | ||
| 92 | |||
| 93 | Whether the account is active. | ||
| 94 | |||
| 95 | =head2 is_locked | ||
| 96 | |||
| 97 | Whether the account is locked. | ||
| 98 | |||
| 99 | =head2 data | ||
| 100 | |||
| 101 | Returns a hashref of the entity data. | ||
| 102 | |||
| 103 | =head1 NAME | ||
| 104 | |||
| 105 | WWW::MailboxOrg::Entity::Account - Account entity object | ||
| 106 | |||
| 107 | =head1 SEE ALSO | ||
| 108 | |||
| 109 | L<WWW::MailboxOrg> | ||
| 110 | |||
| 111 | =cut | ||
| 112 | |||
| 113 | =head1 SUPPORT | ||
| 114 | |||
| 115 | =head2 Issues | ||
| 116 | |||
| 117 | Please report bugs and feature requests on GitHub at | ||
| 118 | L<https://github.com/getty/p5-www-mailboxorg/issues>. | ||
| 119 | |||
| 120 | =head2 IRC | ||
| 121 | |||
| 122 | Join C<#perl-help> on C<irc.perl.org> or message Getty directly. | ||
| 123 | |||
| 124 | =head1 CONTRIBUTING | ||
| 125 | |||
| 126 | Contributions are welcome! Please fork the repository and submit a pull request. | ||
| 127 | |||
| 128 | =head1 AUTHOR | ||
| 129 | |||
| 130 | Torsten Raudssus <getty@cpan.org> | ||
| 131 | |||
| 132 | =head1 COPYRIGHT AND LICENSE | ||
| 133 | |||
| 134 | This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> L<https://raudssus.de/>. | ||
| 135 | |||
| 136 | This is free software; you can redistribute it and/or modify it under | ||
| 137 | the same terms as the Perl 5 programming language system itself. | ||
| 138 | |||
| 139 | =cut | ||