Skip to content

Commit

Permalink
Renamed *CoD functions to *Reimbursement
Browse files Browse the repository at this point in the history
  • Loading branch information
shusaura85 committed Dec 18, 2023
1 parent 3ce2ae5 commit 3277dcc
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions examples/create_awb.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
->setPaymentType(Fancourier\Request\CreateAwb::TYPE_SENDER) // expeditor (TYPE_RECIPIENT - destinatar)
->setParcels(1)
->setWeight(1) // in kg
->setCoD(199.99) // suma de incasat
->setReimbursement(199.99) // suma de incasat
->setDeclaredValue(1000)
->setSizes(10,5,1) // in cm // or use setLength(), setHeight(), setWidth()
->setNotes('testing notes')
Expand Down Expand Up @@ -82,7 +82,7 @@
->setEnvelopes($envelopes)
->setParcels($parcels)
->setWeight($weight)
->setCoD($cod) // cash on delivery (ramburs)
->setReimbursement($cod) // cash on delivery (ramburs)
->setCurrency($currency) // most likely not used in the api. field is set if you read the awb information, but doesn't appear to do anything when sent
->setDeclaredValue($declaredValue)
->setPaymentType($paymentType)
Expand Down
4 changes: 2 additions & 2 deletions examples/create_awb_extern.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
->setIban('RO53RZBR0000060009520959')
->setParcels(1)
->setWeight(1) // in kg
->setCoD(199.99)
->setReimbursement(199.99)
->setCurrency('BGN')
->setDeclaredValue(1000)
->setSizes(10,5,1) // in cm // or use setLength(), setHeight(), setWidth()
Expand Down Expand Up @@ -114,7 +114,7 @@
->setHeight($height)
->setLength($length)
->setWidth($width)
->setCoD($cod) // cash on delivery (ramburs)
->setReimbursement($cod) // cash on delivery (ramburs)
->setCurrency($currency) // most likely not used in the api. field is set if you read the awb information, but doesn't appear to do anything when sent
->setDeclaredValue($declaredValue)
->setPaymentType($paymentType)
Expand Down
2 changes: 1 addition & 1 deletion examples/getShippingSlip.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
->getLength()
->getPayment()
->getReturnPayment()
->getCoD()
->getReimbursement()
->getDeclaredValue()
->getNotes()
->getContents()
Expand Down
8 changes: 4 additions & 4 deletions src/Fancourier/Objects/AwbExtern.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,18 +398,18 @@ public function setWidth($width)
/**
* @return mixed
*/
public function getCoD()
public function getReimbursement()
{
return $this->CoD;
}

/**
* @param mixed $cod
* @param mixed $cashondelivery
* @return AwbIntern
*/
public function setCoD($cod)
public function setReimbursement($cashondelivery)
{
$this->CoD = $cod;
$this->CoD = $cashondelivery;
return $this;
}

Expand Down
8 changes: 4 additions & 4 deletions src/Fancourier/Objects/AwbIntern.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,18 @@ public function setWeight($weight)
/**
* @return mixed
*/
public function getCoD()
public function getReimbursement()
{
return $this->CoD;
}

/**
* @param mixed $cod
* @param mixed $cashondelivery
* @return AwbIntern
*/
public function setCoD($cod)
public function setReimbursement($cashondelivery)
{
$this->CoD = $cod;
$this->CoD = $cashondelivery;
return $this;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Fancourier/Objects/ShippingSlip.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function getReturnPayment(): float
return $this->returnPayment;
}

public function getCoD(): float
public function getReimbursement(): float
{
return $this->cod;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/FancourierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function it_can_create_an_awb()
$awb
->setParcels(1)
->setWeight(2)
->setCoD(125)
->setReimbursement(125)
->setDeclaredValue(125)
->setSizes(10,5,1) // in cm // or use setLength(), setHeight(), setWidth()
->setNotes('testing notes')
Expand Down

0 comments on commit 3277dcc

Please sign in to comment.