NAME

Webservice::OVH::Order::Cart

SYNOPSIS

use Webservice::OVH;

my $ovh = Webservice::OVH->new_from_json("credentials.json");

my $cart = $ovh->order->new_cart(ovh_subsidiary => 'DE');

$cart->add_domain('www.domain.com');

$cart->delete;

DESCRIPTION

Provides methods to manage shopping carts.

METHODS

_new_existing

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

_new_existing

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

properties

Retrieves properties. This method updates the intern property variable.

description

Exposed property value.

expire

Exposed property value.

read_only

Exposed property value.

change

Exposed property value.

is_valid

When this cart 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.

delete

Deletes the cart api sided and sets this object invalid.

id

Returns the api id.

offers_domain

Returns an Array of hashs with offers.

offers_domain

Adds a domain request to a cart.

offers_domain_transfer

Returns an Array of hashes with offers.

offers_domain

Adds a domain transfer request to a cart.

info_checkout

Returns checkout without generating an order.

checkout

Generates an order. Makes the cart invalid. Returns the order.

items

Produces an Array of Item Objects.

item

Returns a single item by id

item

Deletes all items from the cart.