mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
cash back
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\ValueObjects\Constants;
|
||||
|
||||
final class CashBack {
|
||||
|
||||
public const MAX = 15000;
|
||||
|
||||
public const DISPLAY_MAX = 50000;
|
||||
|
||||
public const SEGMENT = [
|
||||
'0' => [
|
||||
'min_value' => 0,
|
||||
'max_value' => 2000,
|
||||
'weight' => [
|
||||
'0' => 80,
|
||||
'1' => 18,
|
||||
'2' => 2,
|
||||
],
|
||||
'percent' => [
|
||||
'0' => 0.002,
|
||||
'1' => 0.005,
|
||||
'2' => 0.02,
|
||||
]
|
||||
],
|
||||
'1' => [
|
||||
'min_value' => 2001,
|
||||
'max_value' => 10000,
|
||||
'weight' => [
|
||||
'0' => 85,
|
||||
'1' => 10,
|
||||
'2' => 5,
|
||||
],
|
||||
'percent' => [
|
||||
'0' => 0.002,
|
||||
'1' => 0.005,
|
||||
'2' => 0.02,
|
||||
]
|
||||
],
|
||||
'2' => [
|
||||
'min_value' => 10001,
|
||||
'max_value' => 100000,
|
||||
'weight' => [
|
||||
'0' => 70,
|
||||
'1' => 20,
|
||||
'2' => 10,
|
||||
],
|
||||
'percent' => [
|
||||
'0' => 0.002,
|
||||
'1' => 0.005,
|
||||
'2' => 0.02,
|
||||
]
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -29,4 +29,6 @@ final class TransactionType {
|
||||
public const WITHDRAW = 10;
|
||||
|
||||
public const TRANSFER_FEE = 11;
|
||||
|
||||
public const CASH_BACK = 12;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user