NAME

WWW::Picnic::Result::Article - Detailed Picnic product/article information

VERSION

version 0.100

SYNOPSIS

my $article = $picnic->get_article($product_id);
say $article->name;
say $article->description;
say "Price: ", $article->price / 100, " EUR";

DESCRIPTION

Represents detailed product information including description, nutritional info, allergens, and pricing details.

id

Product identifier.

name

Product name.

description

Full product description.

type

Product type.

images

Arrayref of image identifiers.

image_ids

Arrayref of image IDs.

price_info

Hashref containing pricing details: price, original_price, deposit, base_price_text.

price

Returns the current price in cents.

original_price

Returns the original price in cents (before discount).

deposit

Returns deposit amount in cents, if any.

unit_quantity

Quantity/unit description (e.g., "500g", "1L").

max_order_quantity

Maximum quantity that can be ordered at once.

labels

Arrayref of product labels (organic, vegan, etc.).

allergies

Hashref containing allergy information: allergy_contains (arrayref) and allergy_text.

highlights

Arrayref of product highlights/features.

perishable

Boolean indicating if product is perishable.

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-picnic/issues.

IRC

You can reach Getty on irc.perl.org for questions and support.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <torsten@raudssus.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2025 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.