Receipt
public struct Receipt : Codable, Equatable
Struct representing Receipt related values.
-
Value representing the entity id.
Declaration
Swift
public var id: Int
-
Date receipt was created.
Declaration
Swift
public var createdAt: String
-
Date receipt was updated.
Declaration
Swift
public var updatedAt: String
-
Author of receipt.
Declaration
Swift
public var createdBy: String
-
Latest author that updated the receipt.
Declaration
Swift
public var lastUpdatedBy: String
-
URL of the receipt.
Declaration
Swift
public var receiptUrl: String
-
Offical receipt number.
Declaration
Swift
public var orNumber: String
-
Official receipt date.
Declaration
Swift
public var orDate: String
-
Vendor indicated in receipt.
Declaration
Swift
public var vendor: String
-
Status of receipt.
Declaration
Swift
public var status: String
-
Outcome of receipt.
Declaration
Swift
public var outcome: String
-
Amount paid indicated in receipt.
Declaration
Swift
public var amountPaid: String
-
Metric amount of receipt.
Declaration
Swift
public var metricAmount: String
-
Flag to check if activity is submitted.
Declaration
Swift
public var activitySubmitted: Bool
-
Metric name of receipt.
Declaration
Swift
public var metricName: String
-
Medium used to upload the receipt.
Declaration
Swift
public var uploadedVia: String
-
Processing type used by receipt.
Declaration
Swift
public var processingType: String
-
Comment in receipt.
Declaration
Swift
public var comment: String
-
Array of receipt items.
Declaration
Swift
public var receiptItems: [Receipt.Item]
-
init(id:
createdAt: updatedAt: createdBy: lastUpdatedBy: receiptUrl: orNumber: orDate: vendor: status: outcome: amountPaid: metricAmount: activitySubmitted: metricName: uploadedVia: processingType: comment: receiptItems: ) Undocumented
Declaration
Swift
public init(id: Int, createdAt: String, updatedAt: String, createdBy: String, lastUpdatedBy: String, receiptUrl: String, orNumber: String, orDate: String, vendor: String, status: String, outcome: String, amountPaid: String, metricAmount: String, activitySubmitted: Bool, metricName: String, uploadedVia: String, processingType: String, comment: String, receiptItems: [Receipt.Item])
-
Struct representing Receipt Item related values.
See moreDeclaration
Swift
public struct Item : Codable, Equatable
-
Declaration
Swift
public init(from decoder: Decoder) throws