NAME

Webservice::OVH::Order::Cart::Item

SYNOPSIS

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;

DESCRIPTION

Provides info for a specific cart item.

METHODS

_new

Internal Method to create the Item object. This method is not ment to be called directly.

is_valid

When the item is deleted on the api side, this method returns 0.

_is_valid

Intern method to check validity. Difference is that this method carps an error.

_is_valid

Gets the associated cart.

id

Returns the api id.

properties

Retrieves properties. This method updates the intern property variable.

configurations

Exposed property value.

duration

Exposed property value.

offer_id

Exposed property value.

options

Exposed property value.

prices

Exposed property value.

product_id

Exposed property value.

settings

Exposed property value.

available_configuration

Exposed property value.

delete

Deletes the item and sets the object to invalid.