From c52854c150eb9fa72aff079bc9b79079b331a0a4 Mon Sep 17 00:00:00 2001 From: MGerasimchuk Date: Tue, 28 Mar 2017 10:55:42 +0700 Subject: [PATCH 1/6] add endpoint --- VP/Request/Shipping/Label/Mailclasses.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 VP/Request/Shipping/Label/Mailclasses.php diff --git a/VP/Request/Shipping/Label/Mailclasses.php b/VP/Request/Shipping/Label/Mailclasses.php new file mode 100644 index 0000000..fe8e6ad --- /dev/null +++ b/VP/Request/Shipping/Label/Mailclasses.php @@ -0,0 +1,22 @@ + Date: Tue, 28 Mar 2017 10:56:11 +0700 Subject: [PATCH 2/6] update info_params --- VP/Request/Shipping/Label/Calculate.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VP/Request/Shipping/Label/Calculate.php b/VP/Request/Shipping/Label/Calculate.php index 59db5bf..4ee44be 100644 --- a/VP/Request/Shipping/Label/Calculate.php +++ b/VP/Request/Shipping/Label/Calculate.php @@ -39,6 +39,9 @@ public function info_params() 'senderPostalCode', 'countryId', 'labelType', + 'length', + 'height', + 'width', ); $domestic = array( @@ -51,6 +54,9 @@ public function info_params() 'recipientPostalCode', 'dimensionalWeight', // @TODO array 'labelType', + 'length', + 'height', + 'width', ); return ($this->is_international() ? $international : $domestic); From aa4f6eb134ce14b858080e1631c5cc76ca328c45 Mon Sep 17 00:00:00 2001 From: MGerasimchuk Date: Tue, 28 Mar 2017 11:23:44 +0700 Subject: [PATCH 3/6] update info_params --- VP/Request/Shipping/Label/Print.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/VP/Request/Shipping/Label/Print.php b/VP/Request/Shipping/Label/Print.php index e70e9ba..61ff328 100644 --- a/VP/Request/Shipping/Label/Print.php +++ b/VP/Request/Shipping/Label/Print.php @@ -41,6 +41,11 @@ public function info_params() 'customsInfo', 'customsItem', 'labelType', + 'rubberStamp1', + 'rubberStamp2', + 'rubberStamp3', + 'imageFormat', + 'imageResolution' ); $domestic = array( @@ -54,6 +59,11 @@ public function info_params() 'insuredValue', 'dimensionalWeight', 'labelType', + 'rubberStamp1', + 'rubberStamp2', + 'rubberStamp3', + 'imageFormat', + 'imageResolution' ); return ($this->is_international() ? $international : $domestic); From a8dfa75f9a3d1f50e0d17e598fceee97b71014f8 Mon Sep 17 00:00:00 2001 From: MGerasimchuk Date: Tue, 28 Mar 2017 11:36:07 +0700 Subject: [PATCH 4/6] change mailClasses url --- VP/Request/Shipping/Label/Mailclasses.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VP/Request/Shipping/Label/Mailclasses.php b/VP/Request/Shipping/Label/Mailclasses.php index fe8e6ad..03a0223 100644 --- a/VP/Request/Shipping/Label/Mailclasses.php +++ b/VP/Request/Shipping/Label/Mailclasses.php @@ -9,7 +9,7 @@ public function info_method() public function info_url() { - return '/shipping/label/mailclasses'; + return '/shipping/label/mailClasses'; } public function info_params() From 4d686744ef7e9f93aa9b4aea65e430b2bf3c47c5 Mon Sep 17 00:00:00 2001 From: MGerasimchuk Date: Tue, 28 Mar 2017 11:38:04 +0700 Subject: [PATCH 5/6] add getLabels endpoint --- VP/Request/Shipping/Pickup/Labels.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 VP/Request/Shipping/Pickup/Labels.php diff --git a/VP/Request/Shipping/Pickup/Labels.php b/VP/Request/Shipping/Pickup/Labels.php new file mode 100644 index 0000000..85b387e --- /dev/null +++ b/VP/Request/Shipping/Pickup/Labels.php @@ -0,0 +1,25 @@ + Date: Tue, 28 Mar 2017 12:10:06 +0700 Subject: [PATCH 6/6] update info_params --- VP/Request/Location/State/List.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VP/Request/Location/State/List.php b/VP/Request/Location/State/List.php index 1bc0126..3b7e669 100644 --- a/VP/Request/Location/State/List.php +++ b/VP/Request/Location/State/List.php @@ -15,7 +15,8 @@ public function info_url() public function info_params() { return array( - 'authToken' + 'authToken', + 'military' ); }