| @@ 34-57 (lines=24) @@ | ||
| 31 | /** |
|
| 32 | * Source class for credit score states |
|
| 33 | */ |
|
| 34 | class CreditratingIntegrationEvent implements ArrayInterface |
|
| 35 | { |
|
| 36 | const BEFORE_PAYMENT = 'before_payment'; |
|
| 37 | const AFTER_PAYMENT = 'after_payment'; |
|
| 38 | ||
| 39 | /** |
|
| 40 | * Return existing credit score states |
|
| 41 | * |
|
| 42 | * @return array |
|
| 43 | */ |
|
| 44 | public function toOptionArray() |
|
| 45 | { |
|
| 46 | return [ |
|
| 47 | [ |
|
| 48 | 'value' => self::BEFORE_PAYMENT, |
|
| 49 | 'label' => __('Before Payment Selection'), |
|
| 50 | ], |
|
| 51 | [ |
|
| 52 | 'value' => self::AFTER_PAYMENT, |
|
| 53 | 'label' => __('After Payment Selection'), |
|
| 54 | ], |
|
| 55 | ]; |
|
| 56 | } |
|
| 57 | } |
|
| 58 | ||
| @@ 34-57 (lines=24) @@ | ||
| 31 | /** |
|
| 32 | * Source class for existing address check response handling |
|
| 33 | */ |
|
| 34 | class HandleResponseError implements ArrayInterface |
|
| 35 | { |
|
| 36 | const CONTINUE_CHECKOUT = 'continue_checkout'; |
|
| 37 | const STOP_CHECKOUT = 'stop_checkout'; |
|
| 38 | ||
| 39 | /** |
|
| 40 | * Return existing address check types |
|
| 41 | * |
|
| 42 | * @return array |
|
| 43 | */ |
|
| 44 | public function toOptionArray() |
|
| 45 | { |
|
| 46 | return [ |
|
| 47 | [ |
|
| 48 | 'value' => self::CONTINUE_CHECKOUT, |
|
| 49 | 'label' => __('Continue Checkout'), |
|
| 50 | ], |
|
| 51 | [ |
|
| 52 | 'value' => self::STOP_CHECKOUT, |
|
| 53 | 'label' => __('Stop Checkout') |
|
| 54 | ] |
|
| 55 | ]; |
|
| 56 | } |
|
| 57 | } |
|
| 58 | ||