NAME
Net::API::Stripe::Order::SKU::Inventory - A Stripe SKU Inventory Object
SYNOPSIS
my $inv = $stripe->sku->inventory({
quantity => 2,
type => 'infinite',
value => undef,
});
VERSION
0.1
DESCRIPTION
Description of the SKU’s inventory.
This is instantiated by method inventory in module Net::API::Stripe::Order::SKU
CONSTRUCTOR
- new( %ARG )
-
Creates a new Net::API::Stripe::Order::SKU::Inventory object. It may also take an hash like arguments, that also are method of the same name.
METHODS
- quantity positive integer or zero
-
The count of inventory available. Will be present if and only if type is finite.
- type string
-
Inventory type. Possible values are finite, bucket (not quantified), and infinite.
- value string
-
An indicator of the inventory available. Possible values are in_stock, limited, and out_of_stock. Will be present if and only if type is bucket.
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:
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.