Module: FactPulse::Helpers

Defined in:
lib/factpulse/helpers/client.rb,
lib/factpulse/helpers/helpers.rb,
lib/factpulse/helpers/exceptions.rb

Defined Under Namespace

Modules: AmountHelpers Classes: AFNORCredentials, ChorusProCredentials, FactPulseAuthError, FactPulseClient, FactPulseError, FactPulsePollingTimeout, FactPulseValidationError, ValidationErrorDetail

Class Method Summary collapse

Class Method Details

.amount(m) ⇒ Object



8
# File 'lib/factpulse/helpers/helpers.rb', line 8

def self.amount(m); AmountHelpers.amount(m); end

.create_client(**opts) ⇒ Object



6
# File 'lib/factpulse/helpers/helpers.rb', line 6

def self.create_client(**opts); FactPulseClient.new(**opts); end

.format_amount(m) ⇒ Object



7
# File 'lib/factpulse/helpers/helpers.rb', line 7

def self.format_amount(m); AmountHelpers.amount(m); end

.invoice_line(*args, **kwargs) ⇒ Object



10
# File 'lib/factpulse/helpers/helpers.rb', line 10

def self.invoice_line(*args, **kwargs); AmountHelpers.invoice_line(*args, **kwargs); end

.invoice_totals(*args, **kwargs) ⇒ Object



9
# File 'lib/factpulse/helpers/helpers.rb', line 9

def self.invoice_totals(*args, **kwargs); AmountHelpers.invoice_totals(*args, **kwargs); end

.vat_line(*args, **kwargs) ⇒ Object



11
# File 'lib/factpulse/helpers/helpers.rb', line 11

def self.vat_line(*args, **kwargs); AmountHelpers.vat_line(*args, **kwargs); end