Skip to content

Commit

Permalink
Rename Event property RessourceId to ResourceId
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-puslecki committed Dec 11, 2013
1 parent b1f8775 commit f85699c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MangoPaySDK/entities/event.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Event extends Dto {
* Ressource ID
* @var string
*/
public $RessourceId;
public $ResourceId;

/**
* Event type
Expand Down
7 changes: 7 additions & 0 deletions demos/paymentDirect/non_js.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
$user = new MangoPay\UserNatural();
$user->FirstName = 'John';
$user->LastName = 'Smith';
$user->Email = '[email protected]';
$user->Address = "Some Address";
$user->Birthday = time();
$user->Nationality = 'FR';
$user->CountryOfResidence = 'FR';
$user->Occupation = "programmer";
$user->IncomeRange = 3;
$createdUser = $mangoPayApi->Users->Create($user);

// register card
Expand Down
7 changes: 7 additions & 0 deletions demos/paymentDirect/with_js.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
$user = new MangoPay\UserNatural();
$user->FirstName = 'John';
$user->LastName = 'Smith';
$user->Email = '[email protected]';
$user->Address = "Some Address";
$user->Birthday = time();
$user->Nationality = 'FR';
$user->CountryOfResidence = 'FR';
$user->Occupation = "programmer";
$user->IncomeRange = 3;
$createdUser = $mangoPayApi->Users->Create($user);

// register card
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ protected function getJohnsKycDocument() {
private function getPayInPaymentDetailsCard() {
if (self::$PayInPaymentDetailsCard === null) {
self::$PayInPaymentDetailsCard = new \MangoPay\PayInPaymentDetailsCard();
self::$PayInPaymentDetailsCard->CardType = 'AMEX';
self::$PayInPaymentDetailsCard->CardType = 'CB_VISA_MASTERCARD';
}

return self::$PayInPaymentDetailsCard;
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function test_GetEventList_PayoutNormalCreated() {
private function ExistEventById($eventList, $eventId) {

foreach ($eventList as $event) {
if ($event->RessourceId == $eventId) {
if ($event->ResourceId == $eventId) {
return true;
}
}
Expand Down

0 comments on commit f85699c

Please sign in to comment.