Skip to content

Commit 61ca327

Browse files
committed
Add other option for International & Insurance
Add other option for International & Insurance 
1 parent 529d1b1 commit 61ca327

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

USPSRate.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,17 @@ public function getPostFields() {
3939
public function setInternationalCall($status) {
4040
$this->apiVersion = $status === true ? 'IntlRateV2' : 'RateV4';
4141
}
42-
42+
43+
/**
44+
* Add other option for International & Insurance
45+
* @param string|int $key
46+
* @param string|int $value
47+
*/
48+
public function addExtraOption(USPSRatePackage $data, $key, $value) {
49+
$this->packages[$key][] = $value;
50+
}
51+
52+
4353
/**
4454
* Add Package to the stack
4555
* @param USPSRatePackage object $data
@@ -196,4 +206,4 @@ public function setField($key, $value) {
196206
public function getPackageInfo() {
197207
return $this->packageInfo;
198208
}
199-
}
209+
}

0 commit comments

Comments
 (0)