Skip to content

Commit

Permalink
Merge pull request #160 from FelixMalfait/master
Browse files Browse the repository at this point in the history
Add new PayIn type (External Instruction) - URGENT !
  • Loading branch information
mickaelpois authored Jul 5, 2017
2 parents 7ed89d7 + 98b009f commit b7fd040
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions MangoPay/PayIn.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function GetDependsObjects()
'_property_name' => 'ExecutionDetails',
PayInExecutionType::Web => '\MangoPay\PayInExecutionDetailsWeb',
PayInExecutionType::Direct => '\MangoPay\PayInExecutionDetailsDirect',
PayInExecutionType::ExternalInstruction => '\MangoPay\PayInExecutionDetailsExternalInstruction',
// ...and more in future...
)
);
Expand Down
9 changes: 9 additions & 0 deletions MangoPay/PayInExecutionDetailsExternalInstruction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
namespace MangoPay;

/**
* Class represents Web type for execution option in PayIn entity
*/
class PayInExecutionDetailsExternalInstruction extends Libraries\Dto implements PayInExecutionDetails
{
}
1 change: 1 addition & 0 deletions MangoPay/PayInExecutionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ class PayInExecutionType
{
const Direct = 'DIRECT';
const Web = 'WEB';
const ExternalInstruction = 'EXTERNAL_INSTRUCTION';
}

0 comments on commit b7fd040

Please sign in to comment.