NAME

Net::API::Stripe::Order::SKU::PackageDimensions - A Stripe SKU Package Dimensions Object

SYNOPSIS

# In inches
my $pkg = $stripe->sku->package_dimensions({
height => 6,
length => 20,
# Ounce
weight => 21
width => 12
});
# Then, because we are in EU
$pkg->use_metric( 1 );
my $width = $pkg->width;
# returns in centimetres: 30.48

VERSION

v0.100.0

DESCRIPTION

This module inherits completely from Net::API::Stripe::Product::PackageDimension.

API SAMPLE

{
"id": "sku_fake123456789",
"object": "sku",
"active": true,
"attributes": {
"size": "Medium",
"gender": "Unisex"
},
"created": 1571480453,
"currency": "jpy",
"image": null,
"inventory": {
"quantity": 50,
"type": "finite",
"value": null
},
"livemode": false,
"metadata": {},
"package_dimensions": null,
"price": 1500,
"product": "prod_fake123456789",
"updated": 1571480453
}

HISTORY

v0.1

Initial version

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Stripe API documentation:

https://stripe.com/docs/api

COPYRIGHT & LICENSE

Copyright (c) 2019-2020 DEGUEST Pte. Ltd.

You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.