Group
Extension

SemanticWeb-Schema/lib/SemanticWeb/Schema/DeliveryEvent.pm

use utf8;

package SemanticWeb::Schema::DeliveryEvent;

# ABSTRACT: An event involving the delivery of an item.

use v5.14;
use Moo;

extends qw/ SemanticWeb::Schema::Event /;


use MooX::JSON_LD 'DeliveryEvent';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS

use namespace::autoclean;

our $VERSION = 'v23.0.0';


has access_code => (
    is        => 'rw',
    predicate => '_has_access_code',
    json_ld   => 'accessCode',
);



has available_from => (
    is        => 'rw',
    predicate => '_has_available_from',
    json_ld   => 'availableFrom',
);



has available_through => (
    is        => 'rw',
    predicate => '_has_available_through',
    json_ld   => 'availableThrough',
);



has has_delivery_method => (
    is        => 'rw',
    predicate => '_has_has_delivery_method',
    json_ld   => 'hasDeliveryMethod',
);





1;

__END__

=pod

=encoding UTF-8

=head1 NAME

SemanticWeb::Schema::DeliveryEvent - An event involving the delivery of an item.

=head1 VERSION

version v23.0.0

=head1 DESCRIPTION

An event involving the delivery of an item.

=head1 ATTRIBUTES

=head2 C<access_code>

C<accessCode>

Password, PIN, or access code needed for delivery (e.g. from a locker).

A access_code should be one of the following types:

=over

=item C<Str>

=back

=head2 C<_has_access_code>

A predicate for the L</access_code> attribute.

=head2 C<available_from>

C<availableFrom>

When the item is available for pickup from the store, locker, etc.

A available_from should be one of the following types:

=over

=item C<Str>

=back

=head2 C<_has_available_from>

A predicate for the L</available_from> attribute.

=head2 C<available_through>

C<availableThrough>

After this date, the item will no longer be available for pickup.

A available_through should be one of the following types:

=over

=item C<Str>

=back

=head2 C<_has_available_through>

A predicate for the L</available_through> attribute.

=head2 C<has_delivery_method>

C<hasDeliveryMethod>

Method used for delivery or shipping.

A has_delivery_method should be one of the following types:

=over

=item C<InstanceOf['SemanticWeb::Schema::DeliveryMethod']>

=back

=head2 C<_has_has_delivery_method>

A predicate for the L</has_delivery_method> attribute.

=head1 SEE ALSO

L<SemanticWeb::Schema::Event>

=head1 SOURCE

The development version is on github at L<https://github.com/robrwo/SemanticWeb-Schema>
and may be cloned from L<git://github.com/robrwo/SemanticWeb-Schema.git>

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website
L<https://github.com/robrwo/SemanticWeb-Schema/issues>

When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.

=head1 AUTHOR

Robert Rothenberg <rrwo@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is Copyright (c) 2018-2023 by Robert Rothenberg.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)

=cut


Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.