ShipToAddressViewController
open class ShipToAddressViewController : StatefulViewController, UITextFieldDelegate, SelectionButtonDelegate
Undocumented
-
Stack view where all textfields are grouped.
Declaration
Swift
@IBOutlet open weak var textFieldsStackView: UIStackView!
-
Textfield for first name of the member.
Declaration
Swift
@IBOutlet open weak var firstNameTextField: FloatingTextField!
-
Textfield for last name of the member.
Declaration
Swift
@IBOutlet open weak var lastNameTextField: FloatingTextField!
-
Textfield for mailing street of the member.
Declaration
Swift
@IBOutlet open weak var streetAddressTextField: FloatingTextField!
-
Textfield for second maiiling street of the member.
Declaration
Swift
@IBOutlet open weak var streetAddress2TextField: FloatingTextField!
-
Textfield for mailing city of the member.
Declaration
Swift
@IBOutlet open weak var cityTextField: FloatingTextField!
-
Textfield for mailing postal code of the member.
Declaration
Swift
@IBOutlet open weak var postalCodeTextField: FloatingTextField!
-
Textfield for mailing country of the member.
Declaration
Swift
@IBOutlet open weak var countryCodeTextField: FloatingTextField!
-
Textfield for mailing state of the member.
Declaration
Swift
@IBOutlet open weak var stateTextField: FloatingTextField!
-
Textfield for mobile number of the member.
Declaration
Swift
@IBOutlet open weak var mobilePhoneTextField: FloatingTextField!
-
Checkbox which indicates if the user wants to use the address found on his profile.
Declaration
Swift
@IBOutlet open weak var useAddressCheckbox: CheckBox!
-
Checkbox which indicates if the user wants to update his address using the provided details on the text fields.
Declaration
Swift
@IBOutlet open weak var saveAddressChecbox: CheckBox!
-
Button used for redeeming the product.
Declaration
Swift
@IBOutlet open weak var actionButton: UIButton!
-
Loading alert that is displayed when responding on a challenge.
Declaration
Swift
open var loadingAlert: AlertViewController
-
Indicated whether searching is available for country and state picker.
Declaration
Swift
open var isCountryStateSearchEnabled: Bool
-
Check if there are blank in required textfields.
Declaration
Swift
open var hasMissingTextFields: Bool { get }
-
Array of country which holds the data that come from User Defaults.
Declaration
Swift
open var countries: [Country]
-
The selected country of the user.
Declaration
Swift
open var selectedCountry: Country?
-
Parameters for the address of the user.
Declaration
Swift
open var address: [String : Any] { get }
-
Returns a newly initialized ship to address view controller with the specified ship to address controller.
Declaration
Swift
public convenience init(contentController: ShipToAddressController?)
Parameters
contentController
The ship to address controller to use.
Return Value
The initialized ship to address view controller.
-
Declaration
Swift
override open func setup()
-
Setup the title and placeholder of the textfields.
Declaration
Swift
open func setupTextFieldsTitle()
-
Setup textfields text appearances.
Declaration
Swift
open func setupTextFieldsAppearance()
-
Setup the delegates of the text field.
Declaration
Swift
open func setupTextFieldsDelegate()
-
Setup the text of the text fields.
Declaration
Swift
open func setupTextFieldTexts()
-
Setup the checkboxes.
Declaration
Swift
open func setupCheckboxes()
-
Setup the action Button.
Declaration
Swift
open func setupActionButton()
-
Method called when action button is pressed.
Declaration
Swift
open func redeemButtonPressed(_ sender: Any)
-
Sets error message for every required text fields that has blank text.
Declaration
Swift
open func showErrorMessagesForMissingTextFieldsText()
-
Undocumented
Declaration
Swift
open func setupLoadingViewForAward()
-
Undocumented
Declaration
Swift
open func close()
-
Displays error when there is an error on redeeming.
Declaration
Swift
open func onFailure(with error: Error)
-
Displays success message for successful reward redemption.
Declaration
Swift
open func onSuccess(with apiResponse: APIResponse<Reward.ResponseInfo>)
-
Undocumented
Declaration
Swift
open func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool
-
Undocumented
Declaration
Swift
open func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool
-
Undocumented
Declaration
Swift
open func didTap(_ selectionButton: SelectionButton)