|
|
|
|
@ -21,7 +21,7 @@ public enum RegistrationPaymentMode: Int, Codable { |
|
|
|
|
case stripe = 3 |
|
|
|
|
|
|
|
|
|
public static let stripeFixedFee = 0.25 // Fixed fee in euros |
|
|
|
|
public static let stripePercentageFee = 0.014 // 1.4% |
|
|
|
|
public static let stripePercentageFee = 0.015 |
|
|
|
|
|
|
|
|
|
public func canEnableOnlinePayment() -> Bool { |
|
|
|
|
switch self { |
|
|
|
|
@ -48,6 +48,19 @@ public enum RegistrationPaymentMode: Int, Codable { |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public func hasPadelClubFee() -> Bool { |
|
|
|
|
switch self { |
|
|
|
|
case .disabled: |
|
|
|
|
return false |
|
|
|
|
case .corporate: |
|
|
|
|
return false |
|
|
|
|
case .noFee: |
|
|
|
|
return false |
|
|
|
|
case .stripe: |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Observable |
|
|
|
|
|