ShippingChangeState
@objc(PPCShippingChangeState)
enum ShippingChangeState
extension ShippingChangeState : Decodable, Encodable, Equatable, Hashable, RawRepresentable
This class is responsible for letting our SDK know about the state of shipping changes.
-
The shipping change was approved.
Declaration
Swift
case approved -
The shipping change had an error.
Declaration
Swift
case error -
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw value, this initializer returns
nil. For example:enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional("PaperSize.Legal")" print(PaperSize(rawValue: "Tabloid")) // Prints "nil"Declaration
Swift
init?(rawValue: Int) -
The shipping callback is currently processing the change.
Declaration
Swift
case processing -
Undocumented
Declaration
Swift
var stringValue: String { get } -
The shipping callback has not been called
Note
This is the default case before the state is set in the callback.Declaration
Swift
case undetermined
View on GitHub
Install in Dash
ShippingChangeState Enumeration Reference