Skip to content

Commit

Permalink
Add new PayIn type (External Instruction)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMalfait committed Jul 5, 2017
1 parent 7ed89d7 commit 98b009f
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 98b009f

Please sign in to comment.