Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion VP/Request/Location/State/List.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public function info_url()
public function info_params()
{
return array(
'authToken'
'authToken',
'military'
);
}

Expand Down
6 changes: 6 additions & 0 deletions VP/Request/Shipping/Label/Calculate.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public function info_params()
'senderPostalCode',
'countryId',
'labelType',
'length',
'height',
'width',
);

$domestic = array(
Expand All @@ -51,6 +54,9 @@ public function info_params()
'recipientPostalCode',
'dimensionalWeight', // @TODO array
'labelType',
'length',
'height',
'width',
);

return ($this->is_international() ? $international : $domestic);
Expand Down
22 changes: 22 additions & 0 deletions VP/Request/Shipping/Label/Mailclasses.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

class VP_Request_Shipping_Label_Mailclasses extends VP_Abstract_Request
{
public function info_method()
{
return self::METHOD_GET;
}

public function info_url()
{
return '/shipping/label/mailClasses';
}

public function info_params()
{
return array(
'authToken'
);
}

}
10 changes: 10 additions & 0 deletions VP/Request/Shipping/Label/Print.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public function info_params()
'customsInfo',
'customsItem',
'labelType',
'rubberStamp1',
'rubberStamp2',
'rubberStamp3',
'imageFormat',
'imageResolution'
);

$domestic = array(
Expand All @@ -54,6 +59,11 @@ public function info_params()
'insuredValue',
'dimensionalWeight',
'labelType',
'rubberStamp1',
'rubberStamp2',
'rubberStamp3',
'imageFormat',
'imageResolution'
);

return ($this->is_international() ? $international : $domestic);
Expand Down
25 changes: 25 additions & 0 deletions VP/Request/Shipping/Pickup/Labels.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

class VP_Request_Shipping_Pickup_Labels extends VP_Abstract_Request
{
public function info_method()
{
return self::METHOD_GET;
}

public function info_url()
{
return '/shipping/pickup/getLabels';
}

public function info_params()
{
return array(
'authToken',
'limit',
'offset',
'orderBy'
);
}

}