Skip to content

Commit

Permalink
Fix Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
obahareth committed Oct 16, 2023
1 parent b4052a9 commit 043fdda
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/zatca/signing/csr.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "active_support"

class ZATCA::Signing::CSR
attr_reader :key, :csr_options, :mode

Expand Down
1 change: 1 addition & 0 deletions lib/zatca/signing/ecdsa.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require "active_support"
require "starkbank-ecdsa"

class ZATCA::Signing::ECDSA
Expand Down
2 changes: 2 additions & 0 deletions lib/zatca/ubl/base_component.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "active_support"

class ZATCA::UBL::BaseComponent
extend Dry::Initializer
attr_accessor :elements, :attributes, :name, :value, :index
Expand Down
2 changes: 2 additions & 0 deletions lib/zatca/ubl/builder.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "active_support"

class ZATCA::UBL::Builder
extend Dry::Initializer

Expand Down
2 changes: 2 additions & 0 deletions lib/zatca/ubl/common_aggregate_components/allowance_charge.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "active_support"

class ZATCA::UBL::CommonAggregateComponents::AllowanceCharge < ZATCA::UBL::BaseComponent
attr_accessor :id, :charge_indicator, :allowance_charge_reason, :amount

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "active_support"

class ZATCA::UBL::CommonAggregateComponents::LegalMonetaryTotal < ZATCA::UBL::BaseComponent
attr_reader :line_extension_amount, :tax_exclusive_amount,
:tax_inclusive_amount, :allowance_total_amount, :prepaid_amount,
Expand Down
2 changes: 2 additions & 0 deletions lib/zatca/ubl/common_aggregate_components/party_tax_scheme.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "active_support"

class ZATCA::UBL::CommonAggregateComponents::PartyTaxScheme < ZATCA::UBL::BaseComponent
def initialize(
company_id: nil,
Expand Down
2 changes: 2 additions & 0 deletions lib/zatca/ubl/invoice.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "active_support"

class ZATCA::UBL::Invoice < ZATCA::UBL::BaseComponent
TYPES = {
invoice: "388",
Expand Down

0 comments on commit 043fdda

Please sign in to comment.