Skip to content

Commit

Permalink
Merge pull request #226 from mundipagg/hotfix/PAOP-397-add-created-to…
Browse files Browse the repository at this point in the history
…-transaction-status

Hotfix/paop 397 add created to transaction status
  • Loading branch information
wallaceSF authored Jan 19, 2022
2 parents 18cbb8f + 5d22191 commit ad9c753
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mundipagg/ecommerce-module-core",
"description": "Core component for Mundipagg e-commerce platform modules.",
"license": "MIT",
"version": "2.8.7",
"version": "2.8.8",
"authors": [
{
"name": "MundiPagg Embeddables Team",
Expand Down
5 changes: 5 additions & 0 deletions src/Kernel/ValueObjects/TransactionStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ final class TransactionStatus extends AbstractValueObject
const PENDING_REVIEW = 'pending_review';
const ANALYZING = 'analyzing';
const WAITING_CAPTURE = 'waiting_capture';
const CREATED = 'created';

/**
*
Expand Down Expand Up @@ -144,6 +145,10 @@ public static function waitingCapture()
return new self(self::WAITING_CAPTURE);
}

public static function created()
{
return new self(self::CREATED);
}

/**
*
Expand Down
Loading

0 comments on commit ad9c753

Please sign in to comment.