-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae0150d
commit f45d67e
Showing
5 changed files
with
212 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -355,6 +355,8 @@ public function getOmsStatusNew(): string | |
* | ||
* @api | ||
* | ||
* @deprecated Will be removed without replacement. | ||
* | ||
* @param int $unzerStateId | ||
* | ||
* @return string | ||
|
@@ -364,6 +366,19 @@ public function mapUnzerPaymentStatusToOmsStatus(int $unzerStateId): string | |
return static::UNZER_PAYMENT_STATE_OMS_STATUS_MAP[$unzerStateId]; | ||
} | ||
|
||
/** | ||
* Specification: | ||
* - Returns Unzer payment state to OMS status map. | ||
* | ||
* @api | ||
* | ||
* @return array<int, string> | ||
*/ | ||
public function getUnzerPaymentStateToOmsStatusMap(): string | ||
Check failure on line 377 in src/SprykerEco/Zed/Unzer/UnzerConfig.php GitHub Actions / Unzer (PHP 8.0)
Check failure on line 377 in src/SprykerEco/Zed/Unzer/UnzerConfig.php GitHub Actions / Unzer (PHP 8.1)
|
||
{ | ||
return static::UNZER_PAYMENT_STATE_OMS_STATUS_MAP; | ||
Check failure on line 379 in src/SprykerEco/Zed/Unzer/UnzerConfig.php GitHub Actions / Unzer (PHP 8.0)
|
||
} | ||
|
||
/** | ||
* Specification: | ||
* - Is notification type enabled. | ||
|
@@ -398,32 +413,28 @@ public function mapUnzerEventToOmsStatus(string $unzerEvent): string | |
|
||
/** | ||
* Specification: | ||
* - Maps Unzer charge transaction status to OMS status. | ||
* - Returns Unzer charge transaction status to OMS status map. | ||
* | ||
* @api | ||
* | ||
* @param string $transactionStatus | ||
* | ||
* @return string | ||
* @return array<string, string> | ||
*/ | ||
public function mapUnzerChargePaymentStatusToOmsStatus(string $transactionStatus): string | ||
public function getUnzerChargePaymentStatusToOmsStatusMap(): array | ||
{ | ||
return static::UNZER_CHARGE_STATE_OMS_STATUS_MAP[$transactionStatus]; | ||
return static::UNZER_CHARGE_STATE_OMS_STATUS_MAP; | ||
} | ||
|
||
/** | ||
* Specification: | ||
* - Maps Unzer authorize transaction status to OMS status. | ||
* - Returns Unzer authorize transaction status to OMS status map. | ||
* | ||
* @api | ||
* | ||
* @param string $transactionStatus | ||
* | ||
* @return string | ||
* @return array<string, string> | ||
*/ | ||
public function mapUnzerAuthorizePaymentStatusToOmsStatus(string $transactionStatus): string | ||
public function getUnzerAuthorizePaymentStatusToOmsStatusMap(): array | ||
{ | ||
return static::UNZER_AUTHORIZE_STATE_OMS_STATUS_MAP[$transactionStatus]; | ||
return static::UNZER_AUTHORIZE_STATE_OMS_STATUS_MAP; | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters