Skip to content

Commit

Permalink
general refactor for revrec ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
wsethbrown committed Feb 13, 2024
1 parent d6f3d67 commit f28b5aa
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions lib/recurly/business_entity.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module Recurly
class BusinessEntity < Resource
belongs_to :site
belongs_to :default_revenue_gl_account, class_name: 'GeneralLedgerAccount'
belongs_to :default_liability_gl_account, class_name: 'GeneralLedgerAccount'

has_many :invoices
has_many :accounts
Expand Down
2 changes: 0 additions & 2 deletions lib/recurly/plan.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative './rev_rec'

module Recurly
# Recurly Documentation: https://dev.recurly.com/docs/list-plans
class Plan < Resource
Expand Down
1 change: 1 addition & 0 deletions lib/recurly/resource.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'date'
require 'erb'
require_relative './rev_rec'

module Recurly
# The base class for all Recurly resources (e.g. {Account}, {Subscription},
Expand Down
4 changes: 2 additions & 2 deletions spec/recurly/business_entity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
subscriber_location_countries: ['US', 'AU'],
default_vat_number: '12345',
default_registration_number: '12345',
default_revenue_gl_account: revenue_gla,
default_liability_gl_account: liablity_gla,
default_revenue_gl_account_id: revenue_gla.id,
default_liability_gl_account_id: liablity_gla.id,
created_at: '2023-05-23T19:02:40Z',
updated_at: '2023-06-23T19:02:40Z'
)
Expand Down

0 comments on commit f28b5aa

Please sign in to comment.