Skip to content

Ruby Core

module

method, singleton

def self.build_barcode_payload: (verifiabl_reference: String, encrypted_pii: binary) -> String

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::PngResult

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::SvgResult

method, singleton

def self.build_scan_url: (verifiabl_reference: String, encrypted_pii: binary, ?environment: Symbol | String, ?scan_base_url: String?) -> String

method, singleton

def self.encrypt_pii: (String, binary) -> Crypto::EncryptedPii

method, singleton

def self.format_australian_pii: (australian_pii_fields) -> String

method, singleton

def self.format_new_zealand_pii: (new_zealand_pii_fields) -> String

method, singleton

def self.format_pii: (Hash[Symbol | String, String?]) -> String

method, singleton

def self.generate_verifiabl_reference: () -> String

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) -> PreparedV2Payslip

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) -> PreparedV2Payslip

constant

AUSTRALIAN_PAYSLIP_V2_SCHEMA: String

constant

NEW_ZEALAND_PAYSLIP_V2_SCHEMA: String

constant

SUPPORTED_V2_CURRENCIES: Array[String]

constant

VERSION: String

class, inherits from Error

attribute, instance

attr_reader body: Hash[String, untyped]?

Returns the value of attribute body.

attribute, instance

attr_reader code: String

Returns the value of attribute code.

attribute, instance

attr_reader request_id: String?

Returns the value of attribute request_id.

attribute, instance

attr_reader status: Integer

Returns the value of attribute status.

class, inherits from Error

attribute, instance

attr_reader status: Integer?

Returns the value of attribute status.

class

method, instance

def initialize: (Configuration, ?transport: _Transport?) -> void

The 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

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::BarcodeRegistration

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::Registration

Registers 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.

method, instance

def register_non_pii_batch: (Array[Hash[Symbol | String, untyped]]) -> Responses::BatchRegistration

class

Immutable settings used to construct one Client. Applications own the resulting client and can place it in their normal dependency container.

attribute, instance

attr_reader client_id: String?

attribute, instance

attr_reader client_secret: String?

attribute, instance

attr_reader environment: Symbol

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?) -> void

Raises: ArgumentError

attribute, instance

attr_reader issuer_base_url: String?

attribute, instance

attr_reader max_retries: Integer

attribute, instance

attr_reader on_error: Proc?

attribute, instance

attr_reader on_request: Proc?

attribute, instance

attr_reader on_response: Proc?

attribute, instance

attr_reader timeout: Numeric

attribute, instance

attr_reader token_url: String?

class, inherits from StandardError

class, inherits from ApiError

class

A single encryption and registration pair. Keep the reference and registration together for self-managed retries; the API-managed endpoint allocates its own.

method, instance

def api_managed_registration: () -> Hash[Symbol, untyped]

method, instance

def barcode_parts: (String) -> Hash[Symbol, untyped]

attribute, instance

attr_reader registration: Hash[Symbol, untyped]

A mutable, independent self-managed registration request.

attribute, instance

attr_reader verifiabl_reference: String

Returns the value of attribute verifiabl_reference.

class, inherits from TransportError

attribute, instance

attr_reader timeout: Numeric

Returns the value of attribute timeout.

class, inherits from Error