| 1 |  |  | <?php | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3 |  |  | /* | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4 |  |  |  * This file has been created by developers from BitBag. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5 |  |  |  * Feel free to contact us once you face any issues or want to start | 
            
                                                                                                            
                            
            
                                    
            
            
                | 6 |  |  |  * You can find more information about us on https://bitbag.io and write us | 
            
                                                                                                            
                            
            
                                    
            
            
                | 7 |  |  |  * an email on [email protected]. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 8 |  |  |  */ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 9 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 10 |  |  | declare(strict_types=1); | 
            
                                                                                                            
                            
            
                                    
            
            
                | 11 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 12 |  |  | namespace BitBag\SyliusMolliePlugin\Payments\PaymentTerms; | 
            
                                                                                                            
                            
            
                                    
            
            
                | 13 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 14 |  |  | use BitBag\SyliusMolliePlugin\Logger\MollieLoggerActionInterface; | 
            
                                                                                                            
                            
            
                                    
            
            
                | 15 |  |  | use BitBag\SyliusMolliePlugin\Payments\Methods\MealVoucher; | 
            
                                                                                                            
                            
            
                                    
            
            
                | 16 |  |  | use Mollie\Api\Types\PaymentMethod; | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 17 |  |  |  | 
            
                                                                        
                            
            
                                    
            
            
                | 18 |  |  | final class Options | 
            
                                                                        
                            
            
                                    
            
            
                | 19 |  |  | { | 
            
                                                                        
                            
            
                                    
            
            
                | 20 |  |  |     public const ORDER_API = 'Orders API'; | 
            
                                                                        
                            
            
                                    
            
            
                | 21 |  |  |     public const PAYMENT_API = 'Payments API'; | 
            
                                                                        
                            
            
                                    
            
            
                | 22 |  |  |  | 
            
                                                                        
                            
            
                                    
            
            
                | 23 |  |  |     public const PERCENTAGE = 'percentage'; | 
            
                                                                        
                            
            
                                    
            
            
                | 24 |  |  |     public const FIXED_FEE = 'fixed_fee'; | 
            
                                                                        
                            
            
                                    
            
            
                | 25 |  |  |     public const FIXED_FEE_AND_PERCENTAGE = 'fixed_fee_and_percentage'; | 
            
                                                                        
                            
            
                                    
            
            
                | 26 |  |  |  | 
            
                                                                        
                            
            
                                    
            
            
                | 27 |  |  |     public const LOG_NOTHING = 'bitbag_sylius_mollie_plugin.ui.nothing_log'; | 
            
                                                                        
                            
            
                                    
            
            
                | 28 |  |  |     public const LOG_ERRORS = 'bitbag_sylius_mollie_plugin.ui.errors'; | 
            
                                                                        
                            
            
                                    
            
            
                | 29 |  |  |     public const LOG_EVERYTHING = 'bitbag_sylius_mollie_plugin.ui.everything'; | 
            
                                                                        
                            
            
                                    
            
            
                | 30 |  |  |     public const LOG_INFO = 'bitbag_sylius_mollie_plugin.ui.info'; | 
            
                                                                        
                            
            
                                    
            
            
                | 31 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 32 |  |  |     public static function getAvailablePaymentType(): array | 
            
                                                                                                            
                            
            
                                    
            
            
                | 33 |  |  |     { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 34 |  |  |         return [ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 35 |  |  |             self::PAYMENT_API => 'PAYMENT_API', | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 36 |  |  |             self::ORDER_API => 'ORDER_API', | 
            
                                                                        
                            
            
                                    
            
            
                | 37 |  |  |         ]; | 
            
                                                                        
                            
            
                                    
            
            
                | 38 |  |  |     } | 
            
                                                                        
                            
            
                                    
            
            
                | 39 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 40 |  |  |     public static function getAvailablePaymentSurchargeFeeType(): array | 
            
                                                                                                            
                            
            
                                    
            
            
                | 41 |  |  |     { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 42 |  |  |         return [ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 43 |  |  |             self::PERCENTAGE => self::PERCENTAGE, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 44 |  |  |             self::FIXED_FEE => self::FIXED_FEE, | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 45 |  |  |             self::FIXED_FEE_AND_PERCENTAGE => self::FIXED_FEE_AND_PERCENTAGE, | 
            
                                                                        
                            
            
                                    
            
            
                | 46 |  |  |         ]; | 
            
                                                                        
                            
            
                                    
            
            
                | 47 |  |  |     } | 
            
                                                                        
                            
            
                                    
            
            
                | 48 |  |  |  | 
            
                                                                        
                            
            
                                    
            
            
                | 49 |  |  |     public static function getDebugLevels(): array | 
            
                                                                        
                            
            
                                    
            
            
                | 50 |  |  |     { | 
            
                                                                        
                            
            
                                    
            
            
                | 51 |  |  |         return [ | 
            
                                                                        
                            
            
                                    
            
            
                | 52 |  |  |             self::LOG_NOTHING => MollieLoggerActionInterface::LOG_DISABLED, | 
            
                                                                        
                            
            
                                    
            
            
                | 53 |  |  |             self::LOG_ERRORS => MollieLoggerActionInterface::LOG_ERRORS, | 
            
                                                                        
                            
            
                                    
            
            
                | 54 |  |  |             self::LOG_EVERYTHING => MollieLoggerActionInterface::LOG_EVERYTHING, | 
            
                                                                        
                            
            
                                    
            
            
                | 55 |  |  |         ]; | 
            
                                                                        
                            
            
                                    
            
            
                | 56 |  |  |     } | 
            
                                                                        
                            
            
                                    
            
            
                | 57 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 58 |  |  |     public static function getLogLevels(): array | 
            
                                                                                                            
                            
            
                                    
            
            
                | 59 |  |  |     { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 60 |  |  |         return [ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 61 |  |  |             self::LOG_INFO => MollieLoggerActionInterface::LOG_ERRORS, | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 62 |  |  |             self::LOG_ERRORS => MollieLoggerActionInterface::LOG_EVERYTHING, | 
            
                                                                        
                            
            
                                    
            
            
                | 63 |  |  |         ]; | 
            
                                                                        
                            
            
                                    
            
            
                | 64 |  |  |     } | 
            
                                                                        
                            
            
                                    
            
            
                | 65 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 66 |  |  |     public static function getOnlyOrderAPIMethods(): array | 
            
                                                                                                            
                            
            
                                    
            
            
                | 67 |  |  |     { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 68 |  |  |         return [ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 69 |  |  |             PaymentMethod::KLARNA_PAY_LATER, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 70 |  |  |             PaymentMethod::KLARNA_SLICE_IT, | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 71 |  |  |             MealVoucher::MEAL_VOUCHERS, | 
            
                                                                        
                                                                
            
                                    
            
            
                | 72 |  |  |         ]; | 
            
                                                                                                            
                            
            
                                    
            
            
                | 73 |  |  |     } | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 74 |  |  | } | 
            
                                                        
            
                                    
            
            
                | 75 |  |  |  |