SCPAadeDataBuilder

Objective-C


@interface SCPAadeDataBuilder : SCPBuilder <SCPAadeData *>

Swift

class AadeDataBuilder : SCPBuilder<AadeData>

Builder for SCPAadeData.

  • Initialize a builder for SCPAadeModeStandard mode.

    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

    mark

    The cryptographic signature produced by the e-invoicing provider.

    markData

    The data payload that was signed to produce the mark.

    providerId

    The ID of the AADE-certified e-invoicing provider.

  • Initialize a builder for SCPAadeModeAutonomous mode.

    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

    unboundPosReason

    The reason the POS is operating in autonomous mode.

  • Build the SCPAadeData instance.

    Declaration

    Objective-C

    - (nullable SCPAadeData *)build:(NSError *_Nullable *_Nullable)error;

    Swift

    func build() throws -> AadeData
  • Unavailable

    Use initWithMark:markData:providerId: or initWithUnboundPosReason:.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    Use initWithMark:markData:providerId: or initWithUnboundPosReason:.

    Declaration

    Objective-C

    + (nonnull instancetype)new;