NAME

Webservice::OVH::Order

SYNOPSIS

    use Webservice::OVH;
    
    my $ovh = Webservice::OVH->new_from_json("credentials.json");
    
    my $carts = $ovh->order->carts;
    my $cart_id = $carts->[0]->id;
    my $cart = $ovh->order->cart($cart_id);
    
    my $new_cart = $ovh->order->new_cart(ovh_subsidiary => 'DE');
    
    $ovh->order->hosting->web;
    $ovh->order->email->domain;
    $ovh->order->domain->zone;

DESCRIPTION

Module that support carts and domain/transfer orders at the moment

METHODS

_new

Internal Method to create the order object. This method is not ment to be called external.

  • Parameter: $api_wrapper - ovh api wrapper object, $module - root object

  • Return: Webservice::OVH::Order

  • Synopsis: Webservice::OVH::Order->_new($ovh_api_wrapper, $self);

new_cart

Creates a new 'shopping' cart. Items can be put into it, to create orders.

  • Parameter: %params - key => value (required) ovh_subsidiary => 'DE' (optional) expire => DateTime-str description => "shopping"

  • Return: Webservice::OVH::Order::Cart

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

carts

Produces an array of all available carts that are connected to the used account.

  • Return: ARRAY

  • Synopsis: my $carts = $ovh->order->carts();

cart

Returns a single cart by id

hosting

Gives Acces to the /order/hosting/ methods of the ovh api

email

Gives Acces to the /order/email/ methods of the ovh api

domain

Gives Acces to the /order/domain/ methods of the ovh api