Ruby Core
Verifiabl::Issuer
Section titled “Verifiabl::Issuer”module
build_barcode_payload
Section titled “build_barcode_payload”method, singleton
def self.build_barcode_payload: (verifiabl_reference: String, encrypted_pii: binary) -> Stringbuild_barcode_png
Section titled “build_barcode_png”method, singleton
def self.build_barcode_png: (verifiabl_reference: String, encrypted_pii: binary, ?width: Integer, ?environment: Symbol | String, ?scan_base_url: String?, ?max_error_correction: Symbol | String, ?error_correction_level: Symbol | String, ?compression_level: Integer) -> Rendering::PngResultbuild_barcode_svg
Section titled “build_barcode_svg”method, singleton
def self.build_barcode_svg: (verifiabl_reference: String, encrypted_pii: binary, ?width: Numeric, ?environment: Symbol | String, ?scan_base_url: String?, ?max_error_correction: Symbol | String, ?error_correction_level: Symbol | String) -> Rendering::SvgResultbuild_scan_url
Section titled “build_scan_url”method, singleton
def self.build_scan_url: (verifiabl_reference: String, encrypted_pii: binary, ?environment: Symbol | String, ?scan_base_url: String?) -> Stringencrypt_pii
Section titled “encrypt_pii”method, singleton
def self.encrypt_pii: (String, binary) -> Crypto::EncryptedPiiformat_australian_pii
Section titled “format_australian_pii”method, singleton
def self.format_australian_pii: (australian_pii_fields) -> Stringformat_new_zealand_pii
Section titled “format_new_zealand_pii”method, singleton
def self.format_new_zealand_pii: (new_zealand_pii_fields) -> Stringformat_pii
Section titled “format_pii”method, singleton
def self.format_pii: (Hash[Symbol | String, String?]) -> Stringgenerate_verifiabl_reference
Section titled “generate_verifiabl_reference”method, singleton
def self.generate_verifiabl_reference: () -> Stringprepare_australian_v2_payslip
Section titled “prepare_australian_v2_payslip”method, singleton
def self.prepare_australian_v2_payslip: (pii: australian_pii_fields, payslip_non_pii: Hash[Symbol | String, untyped], issued_at: String | Time, key: binary, ?verifiabl_reference: String) -> PreparedV2Payslipprepare_new_zealand_v2_payslip
Section titled “prepare_new_zealand_v2_payslip”method, singleton
def self.prepare_new_zealand_v2_payslip: (pii: new_zealand_pii_fields, payslip_non_pii: Hash[Symbol | String, untyped], issued_at: String | Time, key: binary, ?verifiabl_reference: String) -> PreparedV2PayslipAUSTRALIAN_PAYSLIP_V2_SCHEMA
Section titled “AUSTRALIAN_PAYSLIP_V2_SCHEMA”constant
AUSTRALIAN_PAYSLIP_V2_SCHEMA: StringNEW_ZEALAND_PAYSLIP_V2_SCHEMA
Section titled “NEW_ZEALAND_PAYSLIP_V2_SCHEMA”constant
NEW_ZEALAND_PAYSLIP_V2_SCHEMA: StringSUPPORTED_V2_CURRENCIES
Section titled “SUPPORTED_V2_CURRENCIES”constant
SUPPORTED_V2_CURRENCIES: Array[String]VERSION
Section titled “VERSION”constant
VERSION: StringVerifiabl::Issuer::ApiError
Section titled “Verifiabl::Issuer::ApiError”class, inherits from Error
attribute, instance
attr_reader body: Hash[String, untyped]?Returns the value of attribute body.
attribute, instance
attr_reader code: StringReturns the value of attribute code.
request_id
Section titled “request_id”attribute, instance
attr_reader request_id: String?Returns the value of attribute request_id.
status
Section titled “status”attribute, instance
attr_reader status: IntegerReturns the value of attribute status.
Verifiabl::Issuer::AuthError
Section titled “Verifiabl::Issuer::AuthError”class, inherits from Error
status
Section titled “status”attribute, instance
attr_reader status: Integer?Returns the value of attribute status.
Verifiabl::Issuer::Client
Section titled “Verifiabl::Issuer::Client”class
initialize
Section titled “initialize”method, instance
def initialize: (Configuration, ?transport: _Transport?) -> voidThe optional transport is a supported integration seam for test doubles and custom HTTP adapters. Timing and retry dependencies remain internal.
Parameter: Configuration client credentials and request settings
Parameter: #call | nil adapter called with method:, url:,
headers:, body:, and timeout:. It must return an object with
status, headers, and body readers. The adapter owns its own
I/O timeouts and connection cleanup; it is not asynchronously interrupted.
Returns: Client a new instance of Client
register_and_build_barcode
Section titled “register_and_build_barcode”method, instance
def register_and_build_barcode: (encrypted_pii: binary, schema: String, issued_at: String | Time, payslip_non_pii: Hash[Symbol | String, untyped], encryption_metadata: Hash[Symbol | String, binary]) -> Responses::BarcodeRegistrationregister_non_pii
Section titled “register_non_pii”method, instance
def register_non_pii: (?verifiabl_reference: String?, schema: String, issued_at: String | Time, payslip_non_pii: Hash[Symbol | String, untyped], encryption_metadata: Hash[Symbol | String, binary]) -> Responses::RegistrationRegisters non-PII data under a provider-generated reference. When the caller omits one, generate it once before the request loop so every automatic retry uses the same idempotency key. Callers that need to retry from another process or invocation should generate, persist, and pass the reference explicitly.
register_non_pii_batch
Section titled “register_non_pii_batch”method, instance
def register_non_pii_batch: (Array[Hash[Symbol | String, untyped]]) -> Responses::BatchRegistrationVerifiabl::Issuer::Configuration
Section titled “Verifiabl::Issuer::Configuration”class
Immutable settings used to construct one Client. Applications own the resulting client and can place it in their normal dependency container.
client_id
Section titled “client_id”attribute, instance
attr_reader client_id: String?client_secret
Section titled “client_secret”attribute, instance
attr_reader client_secret: String?environment
Section titled “environment”attribute, instance
attr_reader environment: Symbolinitialize
Section titled “initialize”method, instance
def initialize: (?client_id: String?, ?client_secret: String?, ?environment: Symbol | String, ?issuer_base_url: String?, ?token_url: String?, ?timeout: Numeric, ?max_retries: Integer, ?on_request: Proc?, ?on_response: Proc?, ?on_error: Proc?) -> voidRaises: ArgumentError
issuer_base_url
Section titled “issuer_base_url”attribute, instance
attr_reader issuer_base_url: String?max_retries
Section titled “max_retries”attribute, instance
attr_reader max_retries: Integeron_error
Section titled “on_error”attribute, instance
attr_reader on_error: Proc?on_request
Section titled “on_request”attribute, instance
attr_reader on_request: Proc?on_response
Section titled “on_response”attribute, instance
attr_reader on_response: Proc?timeout
Section titled “timeout”attribute, instance
attr_reader timeout: Numerictoken_url
Section titled “token_url”attribute, instance
attr_reader token_url: String?Verifiabl::Issuer::Error
Section titled “Verifiabl::Issuer::Error”class, inherits from StandardError
Verifiabl::Issuer::IvReuseError
Section titled “Verifiabl::Issuer::IvReuseError”class, inherits from ApiError
Verifiabl::Issuer::PreparedV2Payslip
Section titled “Verifiabl::Issuer::PreparedV2Payslip”class
A single encryption and registration pair. Keep the reference and registration together for self-managed retries; the API-managed endpoint allocates its own.
api_managed_registration
Section titled “api_managed_registration”method, instance
def api_managed_registration: () -> Hash[Symbol, untyped]barcode_parts
Section titled “barcode_parts”method, instance
def barcode_parts: (String) -> Hash[Symbol, untyped]registration
Section titled “registration”attribute, instance
attr_reader registration: Hash[Symbol, untyped]A mutable, independent self-managed registration request.
verifiabl_reference
Section titled “verifiabl_reference”attribute, instance
attr_reader verifiabl_reference: StringReturns the value of attribute verifiabl_reference.
Verifiabl::Issuer::TimeoutError
Section titled “Verifiabl::Issuer::TimeoutError”class, inherits from TransportError
timeout
Section titled “timeout”attribute, instance
attr_reader timeout: NumericReturns the value of attribute timeout.
Verifiabl::Issuer::TransportError
Section titled “Verifiabl::Issuer::TransportError”class, inherits from Error