ShipToAddressController

open class ShipToAddressController : ContentController, RewardResponderDelegate

Undocumented

Properties

  • Reward Responder object.

    Declaration

    Swift

    open var responder: RewardResponder?
  • Member who responds to the reward.

    Declaration

    Swift

    open var member: Member? { get set }
  • Parameters to use when responding to the reward

    Declaration

    Swift

    open var parameters: Parameters?
  • Declaration

    Swift

    open var statefulViewController: StatefulViewController?

Initializers

  • Returns a newly initialized ship to address controller with the specified reward and member optionally.

    Declaration

    Swift

    public convenience init(with reward: Reward,
                            for member: Member? = nil,
                            awardId: Int? = nil,
                            parameters: Parameters? = nil)

    Parameters

    reward

    Reward object to associate on the Responder.

    member

    Member that is redeeming the reward. If this is set to nil the controller will fetch data on the server instead.

    awardId

    Award Id of the award that is granted to the user.

    Return Value

    The initialized ship to address controller.

  • Declaration

    Swift

    open func loadContent()
  • Redeems the reward by calling the redeem method of the responder.

    Declaration

    Swift

    open func redeem(address: [String : Any]?)
  • Fetch the member profile on the server.

    Declaration

    Swift

    open func getMemberProfile()
  • Declaration

    Swift

    open func refreshContent()
  • Declaration

    Swift

    open func onFailure(with error: Error)
  • Declaration

    Swift

    open func onSuccess(with apiResponse: APIResponse<Reward.ResponseInfo>)