Skip to content

Plan

Get plans

       WouaMatrimonySDK.plan().getPlans()) 
sdk.plan().getPlans { (result : PlanRecord?, error : WouaSDKException?) in
        if let result = result{
            print(result)
        }
        else if let error = error{
            print(error.code)
            print(error.message)
        }
    }

Request to upgrade plan

       WouaMatrimonySDK.plan().requestToUpgradePlan(38,PlanState.UPGRADE.value))
sdk.plan().upgradePlan(planId: 1, planState: "plan state", callback:{ (result:Result?, error:WouaSDKException?) in
        if let result = result{
            print(result)
        }
        else if let error = error{
            print(error.code)
            print(error.message)
        }
    })