gotransverse-tract-api 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +22 -0
  3. data/.idea/.name +1 -0
  4. data/.idea/.rakeTasks +7 -0
  5. data/.idea/gotransverse_tract_api.iml +19 -0
  6. data/.idea/misc.xml +14 -0
  7. data/.idea/modules.xml +8 -0
  8. data/.idea/vcs.xml +6 -0
  9. data/.idea/workspace.xml +906 -0
  10. data/.ruby-gemset +1 -0
  11. data/.ruby-version +1 -0
  12. data/Gemfile +7 -0
  13. data/LICENSE.txt +22 -0
  14. data/README.md +79 -0
  15. data/Rakefile +2 -0
  16. data/gotransverse-tract-api.gemspec +26 -0
  17. data/lib/gotransverse-tract-api.rb +181 -0
  18. data/lib/gotransverse-tract-api/billing_account/adjustment.rb +11 -0
  19. data/lib/gotransverse-tract-api/billing_account/adjustment_reason.rb +11 -0
  20. data/lib/gotransverse-tract-api/billing_account/billing_account.rb +11 -0
  21. data/lib/gotransverse-tract-api/billing_account/custom_field.rb +11 -0
  22. data/lib/gotransverse-tract-api/billing_account/custom_field_value.rb +11 -0
  23. data/lib/gotransverse-tract-api/billing_account/invoice.rb +11 -0
  24. data/lib/gotransverse-tract-api/billing_account/invoice_item.rb +11 -0
  25. data/lib/gotransverse-tract-api/billing_account/invoice_item_charge.rb +11 -0
  26. data/lib/gotransverse-tract-api/billing_account/payment.rb +11 -0
  27. data/lib/gotransverse-tract-api/billing_account/reason.rb +11 -0
  28. data/lib/gotransverse-tract-api/billing_account/recurring_payment.rb +11 -0
  29. data/lib/gotransverse-tract-api/billing_account/refund.rb +11 -0
  30. data/lib/gotransverse-tract-api/billing_account/scheduled_charge.rb +11 -0
  31. data/lib/gotransverse-tract-api/configuration.rb +39 -0
  32. data/lib/gotransverse-tract-api/general/system_setting.rb +11 -0
  33. data/lib/gotransverse-tract-api/general_ledger/gl_account.rb +11 -0
  34. data/lib/gotransverse-tract-api/general_ledger/gl_account_category.rb +11 -0
  35. data/lib/gotransverse-tract-api/general_ledger/gl_accounting_entry.rb +11 -0
  36. data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb +11 -0
  37. data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_entry.rb +11 -0
  38. data/lib/gotransverse-tract-api/order/agreement.rb +11 -0
  39. data/lib/gotransverse-tract-api/order/bill_cycle.rb +11 -0
  40. data/lib/gotransverse-tract-api/order/billing_account_category.rb +11 -0
  41. data/lib/gotransverse-tract-api/order/order_item.rb +11 -0
  42. data/lib/gotransverse-tract-api/order/order_item_charge.rb +11 -0
  43. data/lib/gotransverse-tract-api/order/organization.rb +11 -0
  44. data/lib/gotransverse-tract-api/order/party_category.rb +11 -0
  45. data/lib/gotransverse-tract-api/order/person.rb +11 -0
  46. data/lib/gotransverse-tract-api/order/product_relation.rb +11 -0
  47. data/lib/gotransverse-tract-api/order/renewal_order.rb +11 -0
  48. data/lib/gotransverse-tract-api/order/sales_order.rb +11 -0
  49. data/lib/gotransverse-tract-api/product/action.rb +11 -0
  50. data/lib/gotransverse-tract-api/product/operation.rb +11 -0
  51. data/lib/gotransverse-tract-api/product/price_list.rb +11 -0
  52. data/lib/gotransverse-tract-api/product/price_range.rb +11 -0
  53. data/lib/gotransverse-tract-api/product/product.rb +11 -0
  54. data/lib/gotransverse-tract-api/product/product_category.rb +11 -0
  55. data/lib/gotransverse-tract-api/product/product_price.rb +11 -0
  56. data/lib/gotransverse-tract-api/product/usage_rule.rb +11 -0
  57. data/lib/gotransverse-tract-api/service/service.rb +11 -0
  58. data/lib/gotransverse-tract-api/service/service_device_inventory_item.rb +11 -0
  59. data/lib/gotransverse-tract-api/service/service_period.rb +11 -0
  60. data/lib/gotransverse-tract-api/service/service_price.rb +11 -0
  61. data/lib/gotransverse-tract-api/service/service_price_range.rb +11 -0
  62. data/lib/gotransverse-tract-api/service/service_resource.rb +11 -0
  63. data/lib/gotransverse-tract-api/service/service_resource_category.rb +11 -0
  64. data/lib/gotransverse-tract-api/usage/order_item_usage_rule.rb +11 -0
  65. data/lib/gotransverse-tract-api/usage/product_usage_rule.rb +11 -0
  66. data/lib/gotransverse-tract-api/usage/rate_table.rb +11 -0
  67. data/lib/gotransverse-tract-api/usage/service_usage_rule.rb +11 -0
  68. data/lib/gotransverse-tract-api/usage/usage_event.rb +11 -0
  69. data/lib/gotransverse-tract-api/usage/usage_lookup_table.rb +11 -0
  70. data/lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb +11 -0
  71. data/lib/gotransverse-tract-api/usage/usage_rule.rb +11 -0
  72. data/lib/gotransverse-tract-api/version.rb +6 -0
  73. metadata +173 -0
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module BillingAccount
4
+
5
+ class Reason
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module BillingAccount
4
+
5
+ class RecurringPayment
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module BillingAccount
4
+
5
+ class Refund
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module BillingAccount
4
+
5
+ class ScheduledCharge
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,39 @@
1
+ class Configuration
2
+
3
+ attr_accessor :user_id
4
+ attr_accessor :password
5
+ attr_accessor :basic_credentials
6
+
7
+ attr_accessor :cache_enabled
8
+ attr_accessor :tract_api_url
9
+
10
+ #
11
+ # initialize
12
+ #
13
+ def initialize
14
+
15
+ @tract_api_url = "https://my.tractbilling.com/t/s/r/#{Version::TARGET_API_VERSION}/"
16
+ set_basic_credentials
17
+
18
+ end
19
+
20
+ private
21
+
22
+ #
23
+ # set_basic_credentials
24
+ #
25
+ def set_basic_credentials
26
+
27
+ # Perform Base-64 encoding of API login information
28
+ user_pass = "#{@user_id.to_s}:#{@password.to_s}"
29
+
30
+ # Sets basic_credentials attr_accessor
31
+ @basic_credentials = Base64.encode64(user_pass)
32
+
33
+ # Erase in-clear credentials
34
+ @user_id = @password = nil
35
+
36
+ end
37
+
38
+ end
39
+
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module General
4
+
5
+ class SystemSetting
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module GeneralLedger
4
+
5
+ class GLAccount
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module GeneralLedger
4
+
5
+ class GLAccountCategory
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module GeneralLedger
4
+
5
+ class GLAccountingEntry
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module GeneralLedger
4
+
5
+ class GLAggregateBatch
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module GeneralLedger
4
+
5
+ class GLAggregateEntry
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class Agreement
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class BillCycle
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class BillingAccountCategory
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class OrderItem
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class OrderItemCharge
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class Organization
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class PartyCategory
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class Person
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class ProductRelation
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class RenewalOrder
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class SalesOrder
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Product
4
+
5
+ class Action
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Product
4
+
5
+ class Operation
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Product
4
+
5
+ class PriceList
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Product
4
+
5
+ class PriceRange
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Product
4
+
5
+ class Product
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Product
4
+
5
+ class ProductCategory
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Product
4
+
5
+ class ProductPrice
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Product
4
+
5
+ class UsageRule
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Service
4
+
5
+ class Service
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,11 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Service
4
+
5
+ class ServiceDeviceInventoryItem
6
+
7
+ end
8
+
9
+ end
10
+
11
+ end