CodesAPI
public enum CodesAPI
Caseless enumeration with static methods to send Codes Requests
-
Sends a request to submit barcode.
Declaration
Swift
public static func submitBarcode(_ barcode: String, completion: ResponseCompletion<Code> = nil)
Parameters
barcode
Barcode that will be submitted.
completion
The closure to be executed once the request has finished.
-
Sends a request to submit barcode.
Declaration
Swift
public static func submitBarcode(_ barcode: String, codeId: Int, completion: ResponseCompletion<Code> = nil)
Parameters
barcode
Barcode that will be submitted.
codeId
ID of code.
completion
The closure to be executed once the request has finished.
-
Sends a request to submit barcode.
Declaration
Swift
public static func submitBarcode(_ barcode: String, codeName: String, completion: ResponseCompletion<Code> = nil)
Parameters
barcode
Barcode that will be submitted.
name
Name of Code.
completion
The closure to be executed once the request has finished.