Files
Morgan Pretty 92dc30ffcb Bunch of process on pro integration
• Added integration for new refund request
• Wired up the refunding states based on the new data
• Updated code to use strings from libSession instead of hardcoded values
• Updated the code to trigger a pro state refresh when the `proAccessExpiryTimestampMs` on the config changes (ie. another device made a change to the pro configuration)
• Updated logic to drive mocked pro states via the SessionProManager to make the code a bit cleaner
• Updated the handling of pro proofs to sync both active and expired proofs (instead of just active)
• Fixed a bunch of warnings
2025-11-26 14:38:29 +11:00

28 lines
857 B
Swift

// Copyright © 2025 Rangeproof Pty Ltd. All rights reserved.
//
// stringlint:disable
import Foundation
public extension Network.SessionPro {
enum Endpoint: EndpointType {
case addProPayment
case generateProProof
case getProRevocations
case getProDetails
case setPaymentRefundRequested
public static var name: String { "SessionPro.Endpoint" }
public var path: String {
switch self {
case .addProPayment: return "add_pro_payment"
case .generateProProof: return "generate_pro_proof"
case .getProRevocations: return "get_pro_revocations"
case .getProDetails: return "get_pro_details"
case .setPaymentRefundRequested: return "set_payment_refund_requested"
}
}
}
}