Marketplace-Ebay
view release on metacpan or search on metacpan
lib/Marketplace/Ebay/Order.pm view on Meta::CPAN
=head2 order
The raw structure got from the XML parsing
=head2 shop_type
Always returns C<ebay>
=cut
has order => (is => 'ro', isa => HashRef, required => 1);
sub shop_type {
return 'ebay';
}
=head2 name_from_shipping_address
By default, lookup the name from the shipping address. Defaults to
true. Otherwise look it up from the first item. Prior to version 0.19,
the name was looked up from the first item only.
lib/Marketplace/Ebay/Order/Item.pm view on Meta::CPAN
=cut
use strict;
use warnings;
use Moo;
use MooX::Types::MooseLike::Base qw(HashRef Str);
use Data::Dumper;
use namespace::clean;
has struct => (is => 'ro', isa => HashRef);
has merchant_order_item => (is => 'rw', isa => Str);
sub sku {
my $self = shift;
return $self->variant_sku || $self->canonical_sku;
}
sub canonical_sku {
# Item is always present
return shift->struct->{Item}->{SKU};
( run in 0.570 second using v1.01-cache-2.11-cpan-5f2e87ce722 )