Webservice::OVH::Order::Cart::Item
use Webservice::OVH;
my $ovh = Webservice::OVH->new_from_json("credentials.json");
my $cart = $ovh->order->new_cart(ovh_subsidiary => 'DE');
my $items = $cart->items;
Provides info for a specific cart item.
Internal Method to create the Item object. This method is not ment to be called directly.
Parameter: $api_wrapper - ovh api wrapper object, $module - root object, $item_id - api id
Return: Webservice::OVH::Order::Cart
Synopsis: Webservice::OVH::Order::Cart->_new($ovh_api_wrapper, $cart_id, $module);
When the item is deleted on the api side, this method returns 0.
Return: VALUE
Synopsis: print "Valid" if $item->is_valid;
Intern method to check validity. Difference is that this method carps an error.
Synopsis: $item->_is_valid;
Gets the associated cart.
Synopsis: my $cart = $item->cart;
Returns the api id.
Synopsis: my $id = $item->id;
Retrieves properties. This method updates the intern property variable.
Return: HASH
Synopsis: my $properties = $item->properties;
Exposed property value.
Return: ARRAY
Synopsis: my $configurations = $item->configurations;
Synopsis: my $duration = $item->duration;
Synopsis: my $offer_id = $item->offer_id;
Synopsis: my $options = $item->options;
Synopsis: my $prices = $item->prices;
Synopsis: my $product_id = $item->product_id;
Synopsis: my $settings = $item->settings;
Synopsis: my $available_configuration = $item->available_configuration;
Deletes the item and sets the object to invalid.
Synopsis: $item->delete;
To install Webservice::OVH, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::OVH
CPAN shell
perl -MCPAN -e shell install Webservice::OVH
For more information on module installation, please visit the detailed CPAN module installation guide.