Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Stenvall committed Jun 12, 2017
2 parents 7f9de49 + b0f1498 commit c3f1cae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ $urlSet->configure(array(
'successUrl' => 'https://www.demoshop.com/sv/success',
'failureUrl' => 'https://www.demoshop.com/sv/failure',
'notificationUrl' => 'https://www.demoshop.com/sv/notify',
'pendingUrl' => 'https://www.demoshop.com/sv/pending',
));

$address = new Address;
$address->configure(array(
'streetAddress' => 'Test street 1',
'postalCode' => '12345',
'postOffice' => 'Helsinki',
'postalOffice' => 'Helsinki',
'countryCode' => 'FI',
));

Expand All @@ -57,7 +56,7 @@ $product = new Product;
$product->configure(array(
'title' => 'Test product',
'code' => '01234',
'quantity' => 1.00,
'amount' => 1.00,
'price' => 19.90,
'vat' => 23.00,
'discount' => 0.00,
Expand Down
10 changes: 5 additions & 5 deletions src/Object/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Address extends DataObject
/**
* @var string $postOffice
*/
protected $postOffice;
protected $postalOffice;

/**
* @var string $countryCode
Expand All @@ -48,7 +48,7 @@ public function toArray()
return array(
'street' => $this->streetAddress,
'postalCode' => $this->postalCode,
'postalOffice' => $this->postOffice,
'postalOffice' => $this->postalOffice,
'country' => $this->countryCode,
);
}
Expand All @@ -74,13 +74,13 @@ public function getPostalCode()
}

/**
* Get post office.
* Get postal office.
*
* @return string The post office.
*/
public function getPostOffice()
public function getPostalOffice()
{
return $this->postOffice;
return $this->postalOffice;
}

/**
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ protected function makeUrlSet()
'successUrl' => 'https://www.demoshop.com/sv/success',
'failureUrl' => 'https://www.demoshop.com/sv/failure',
'notificationUrl' => 'https://www.demoshop.com/sv/notify',
'pendingUrl' => 'https://www.demoshop.com/sv/pending',
));

return $urlSet;
Expand All @@ -150,7 +149,7 @@ protected function makeAddress()
$address->configure(array(
'streetAddress' => 'Test street 1',
'postalCode' => '12345',
'postOffice' => 'Helsinki',
'postalOffice' => 'Helsinki',
'countryCode' => 'FI',
));

Expand Down

0 comments on commit c3f1cae

Please sign in to comment.