SCPAadeDataBuilder
Objective-C
@interface SCPAadeDataBuilder : SCPBuilder <SCPAadeData *>
Swift
class AadeDataBuilder : SCPBuilder<AadeData>
Builder for SCPAadeData.
-
Initialize a builder for
SCPAadeModeStandardmode.Declaration
Objective-C
- (nonnull instancetype)initWithMark:(nonnull NSString *)mark markData:(nonnull NSString *)markData providerId:(NSInteger)providerId;Swift
init(mark: String, markData: String, providerId: Int)Parameters
markThe cryptographic signature produced by the e-invoicing provider.
markDataThe data payload that was signed to produce the mark.
providerIdThe ID of the AADE-certified e-invoicing provider.
-
Initialize a builder for
SCPAadeModeAutonomousmode.Use this initializer when the POS cannot reach the e-invoicing provider and must generate a local mark for later reconciliation with AADE.
Declaration
Objective-C
- (nonnull instancetype)initWithUnboundPosReason: (SCPAadeUnboundPosReason)unboundPosReason;Swift
init(unboundPosReason: AadeUnboundPosReason)Parameters
unboundPosReasonThe reason the POS is operating in autonomous mode.
-
Build the
SCPAadeDatainstance.Declaration
Objective-C
- (nullable SCPAadeData *)build:(NSError *_Nullable *_Nullable)error;Swift
func build() throws -> AadeData -
Unavailable
Use
initWithMark:markData:providerId:orinitWithUnboundPosReason:.Declaration
Objective-C
- (nonnull instancetype)init; -
Unavailable
Use
initWithMark:markData:providerId:orinitWithUnboundPosReason:.Declaration
Objective-C
+ (nonnull instancetype)new;