gotransverse-tract-api 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d3cb6963fd09d3655c392cbe67cc9b54c0197b7
4
- data.tar.gz: 42f13a6d7226df334ac48394b7a3838594879697
3
+ metadata.gz: 413e0b48592cf10e537d1fcb4c3e35f2d932a847
4
+ data.tar.gz: 0fcfa3c312788659ba3f52ee94c809f77dbd5156
5
5
  SHA512:
6
- metadata.gz: b07cea0953a36b81f8e594b4f7f9f47f39a4f0c40c4bd14520f6243dd41f66b4fef0a3e4274c3b1ec346b1d156b58f47f7f9401a087bd2487e030e03ff8718fa
7
- data.tar.gz: f90517ec956fab233c65043f182e95b0d64d9284d43c5b605b4395e73b536f90cbca0217d35272f6ef809ab2145283b0d8dbac14ceb369f7ea72e7dd2f0a6023
6
+ metadata.gz: 6762d468238ae76f5ea9bb4dbdb9d0ccf5b492be4958317b019ca303e7bcd5c6321dc125fdecf1a14a4bf36802f5dd3b446ec1c0483bce05c5a625aabe06f1b1
7
+ data.tar.gz: 94ab82f87fedee3df0a3d49d88106c501162e9f1a13d2f89ac5696006872e01d7b64e1597d2fb1d33b7823a84d0cc975b129aa98fec05e03d7b3cfabeb3bf672
@@ -4,22 +4,54 @@ module GoTransverseTractApi
4
4
 
5
5
  class GLAccountingEntry
6
6
 
7
- #
8
- # @param {Long} eid
9
- #
10
- def self.find_by_eid eid
11
- GoTransverseTractApi.get_response_for(self, {eid: eid})
12
- end
7
+ class << self
8
+
9
+ #
10
+ # @param {Long} eid
11
+ #
12
+ def find_by_eid eid
13
+ GoTransverseTractApi.get_response_for(self, {eid: eid})
14
+ end
15
+
16
+ #
17
+ # @param {Long} gl_account_eid
18
+ #
19
+ def find_by_gl_account_eid gl_account_eid
20
+ GoTransverseTractApi.get_response_for(self, {gl_account_eid: gl_account_eid})
21
+ end
22
+
23
+ #
24
+ # @param {Long} gl_accounting_transaction_eid
25
+ #
26
+ def find_by_gl_accounting_transaction_eid gl_accounting_transaction_eid
27
+ GoTransverseTractApi.get_response_for(self, {gl_accounting_transaction_eid: gl_accounting_transaction_eid})
28
+ end
29
+
30
+ #
31
+ # @param {Long} gl_transaction_batch_num
32
+ #
33
+ def find_by_gl_transaction_batch_num gl_transaction_batch_num
34
+ GoTransverseTractApi.get_response_for(self, {gl_transaction_batch_num: gl_transaction_batch_num})
35
+ end
36
+
37
+ #
38
+ # @param {Long} gl_aggregate_eid
39
+ #
40
+ def find_by_gl_aggregate_eid gl_aggregate_eid
41
+ GoTransverseTractApi.get_response_for(self, {gl_aggregate_eid: gl_aggregate_eid})
42
+ end
43
+
44
+ #
45
+ # @param {Long} gl_aggregate_batch_num
46
+ #
47
+ def find_by_gl_aggregate_batch_num gl_aggregate_batch_num
48
+ GoTransverseTractApi.get_response_for(self, {gl_aggregate_batch_num: gl_aggregate_batch_num})
49
+ end
13
50
 
14
- #
15
- # @param {Long} gl_account_eid
16
- #
17
- def self.find_by_gl_account_eid gl_account_eid
18
- GoTransverseTractApi.get_response_for(self, {gl_account_eid: gl_account_eid})
19
51
  end
20
52
 
21
53
  end
22
54
 
23
55
  end
24
56
 
25
- end
57
+ end
@@ -0,0 +1,64 @@
1
+ module GoTransverseTractApi
2
+
3
+ module GeneralLedger
4
+
5
+ class GLAccountingTransaction
6
+
7
+ class << self
8
+
9
+ #
10
+ # @param {Long} eid
11
+ #
12
+ def self.find_by_eid eid
13
+ GoTransverseTractApi.get_response_for(self, {eid: eid})
14
+ end
15
+
16
+ #
17
+ # @param {Long} gl_transaction_batch_eid
18
+ #
19
+ def self.find_by_gl_transaction_batch_eid gl_transaction_batch_eid
20
+ GoTransverseTractApi.get_response_for(self, {gl_transaction_batch_eid: gl_transaction_batch_eid})
21
+ end
22
+
23
+ #
24
+ # @param {Long} batch_num
25
+ #
26
+ def self.find_by_batch_num batch_num
27
+ GoTransverseTractApi.get_response_for(self, {batch_num: batch_num})
28
+ end
29
+
30
+ #
31
+ # @param {Date} batch_posted_on
32
+ #
33
+ def self.find_by_batch_posted_on batch_posted_on
34
+ GoTransverseTractApi.get_response_for(self, {batch_posted_on: batch_posted_on})
35
+ end
36
+
37
+ #
38
+ # @param {Date} occurred_on
39
+ #
40
+ def self.find_by_occurred_on occurred_on
41
+ GoTransverseTractApi.get_response_for(self, {occurred_on: occurred_on})
42
+ end
43
+
44
+ #
45
+ # @param {String} currency_type
46
+ #
47
+ def self.find_by_currency_type currency_type
48
+ GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
49
+ end
50
+
51
+ #
52
+ # @param {String} original_currency_type
53
+ #
54
+ def self.find_by_original_currency_type original_currency_type
55
+ GoTransverseTractApi.get_response_for(self, {original_currency_type: original_currency_type})
56
+ end
57
+
58
+ end
59
+
60
+ end
61
+
62
+ end
63
+
64
+ end
@@ -0,0 +1,64 @@
1
+ module GoTransverseTractApi
2
+
3
+ module GeneralLedger
4
+
5
+ class GLAdjustmentAccountingTransaction
6
+
7
+ class << self
8
+
9
+ #
10
+ # @param {Long} eid
11
+ #
12
+ def find_by_eid eid
13
+ GoTransverseTractApi.get_response_for(self, {eid: eid})
14
+ end
15
+
16
+ #
17
+ # @param {Long} batch_num
18
+ #
19
+ def find_by_batch_num batch_num
20
+ GoTransverseTractApi.get_response_for(self, {batch_num: batch_num})
21
+ end
22
+
23
+ #
24
+ # @param {Long} gl_transaction_batch_eid
25
+ #
26
+ def find_by_gl_transaction_batch_eid gl_transaction_batch_eid
27
+ GoTransverseTractApi.get_response_for(self, {gl_transaction_batch_eid: gl_transaction_batch_eid})
28
+ end
29
+
30
+ #
31
+ # @param {String} currency_type
32
+ #
33
+ def find_by_currency_type currency_type
34
+ GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
35
+ end
36
+
37
+ #
38
+ # @param {String} original_currency_type
39
+ #
40
+ def find_by_original_currency_type original_currency_type
41
+ GoTransverseTractApi.get_response_for(self, {original_currency_type: original_currency_type})
42
+ end
43
+
44
+ #
45
+ # @param {DateTime} occurred_on
46
+ #
47
+ def find_by_occurred_on occurred_on
48
+ GoTransverseTractApi.get_response_for(self, {occurred_on: occurred_on})
49
+ end
50
+
51
+ #
52
+ # @param {DateTime} batch_posted_on
53
+ #
54
+ def find_by_batch_posted_on batch_posted_on
55
+ GoTransverseTractApi.get_response_for(self, {batch_posted_on: batch_posted_on})
56
+ end
57
+
58
+ end
59
+
60
+ end
61
+
62
+ end
63
+
64
+ end
@@ -4,36 +4,62 @@ module GoTransverseTractApi
4
4
 
5
5
  class GLAggregateBatch
6
6
 
7
- #
8
- # @param {Long} eid
9
- #
10
- def self.find_by_eid eid
11
- GoTransverseTractApi.get_response_for(self, {eid: eid})
12
- end
7
+ class << self
13
8
 
14
- #
15
- # @param {String} status
16
- #
17
- def self.find_by_status status
18
- GoTransverseTractApi.get_response_for(self, {status: status})
19
- end
9
+ #
10
+ # @param {Long} eid
11
+ #
12
+ def find_by_eid eid
13
+ GoTransverseTractApi.get_response_for(self, {eid: eid})
14
+ end
20
15
 
21
- #
22
- # @param {Boolean} exported
23
- #
24
- def self.find_by_exported exported
25
- GoTransverseTractApi.get_response_for(self, {exported: exported})
26
- end
16
+ #
17
+ # @param {Long} batch_num
18
+ #
19
+ def find_by_batch_num batch_num
20
+ GoTransverseTractApi.get_response_for(self, {batch_num: batch_num})
21
+ end
22
+
23
+ #
24
+ # @param {String} status
25
+ #
26
+ def find_by_status status
27
+ GoTransverseTractApi.get_response_for(self, {status: status})
28
+ end
29
+
30
+ #
31
+ # @param {Boolean} exported
32
+ #
33
+ def find_by_exported exported
34
+ GoTransverseTractApi.get_response_for(self, {exported: exported})
35
+ end
36
+
37
+ #
38
+ # @param {DateTime} posted_on
39
+ #
40
+ def find_by_posted_on posted_on
41
+ GoTransverseTractApi.get_response_for(self, {posted_on: posted_on})
42
+ end
43
+
44
+ #
45
+ # @param {DateTime} batch_posted_on
46
+ #
47
+ def find_by_batch_posted_on batch_posted_on
48
+ GoTransverseTractApi.get_response_for(self, {batch_posted_on: batch_posted_on})
49
+ end
50
+
51
+ #
52
+ # @param {Long} eid
53
+ # @param {Nokogiri::XML::Document} gl_aggregate_batch
54
+ #
55
+ def update eid, gl_aggregate_batch
56
+ GoTransverseTractApi.put_request_for(self, {eid: eid}, gl_aggregate_batch.to_s)
57
+ end
27
58
 
28
- #
29
- # @param {DateTime} posted_on
30
- #
31
- def self.find_by_posted_on posted_on
32
- GoTransverseTractApi.get_response_for(self, {posted_on: posted_on})
33
59
  end
34
60
 
35
61
  end
36
62
 
37
63
  end
38
64
 
39
- end
65
+ end
@@ -32,8 +32,15 @@ module GoTransverseTractApi
32
32
  GoTransverseTractApi.get_response_for(self, {posted_on: posted_on})
33
33
  end
34
34
 
35
+ #
36
+ # @param {Long} batch_num
37
+ #
38
+ def self.find_by_batch_num batch_num
39
+ GoTransverseTractApi.get_response_for(self, {batch_num: batch_num})
40
+ end
41
+
35
42
  end
36
43
 
37
44
  end
38
45
 
39
- end
46
+ end
@@ -0,0 +1,10 @@
1
+ module GoTransverseTractApi
2
+
3
+ module GeneralLedger
4
+
5
+ class GLInvoiceAccountingTransaction < GLAdjustmentAccountingTransaction
6
+ # same methods of parent class
7
+
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ module GoTransverseTractApi
2
+
3
+ module GeneralLedger
4
+
5
+ class GLPaymentAccountingTransaction < GLAdjustmentAccountingTransaction
6
+ # same methods of parent class
7
+
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,58 @@
1
+ module GoTransverseTractApi
2
+
3
+ module GeneralLedger
4
+
5
+ class GLTransactionBatch
6
+
7
+ class << self
8
+
9
+ #
10
+ # @param {Long} eid
11
+ #
12
+ def find_by_eid eid
13
+ GoTransverseTractApi.get_response_for(self, {eid: eid})
14
+ end
15
+
16
+ #
17
+ # @param {Long} batch_num
18
+ #
19
+ def find_by_batch_num batch_num
20
+ GoTransverseTractApi.get_response_for(self, {batch_num: batch_num})
21
+ end
22
+
23
+ #
24
+ # @param {DateTime} posted_on
25
+ #
26
+ def find_by_posted_on posted_on
27
+ GoTransverseTractApi.get_response_for(self, {posted_on: posted_on})
28
+ end
29
+
30
+ #
31
+ # @param {Boolean} exported
32
+ #
33
+ def find_by_exported exported
34
+ GoTransverseTractApi.get_response_for(self, {exported: exported})
35
+ end
36
+
37
+ #
38
+ # @param {String} status
39
+ #
40
+ def find_by_status status
41
+ GoTransverseTractApi.get_response_for(self, {status: status})
42
+ end
43
+
44
+ #
45
+ # @param {Long} eid
46
+ # @param {Nokogiri::XML::Document} gl_transaction_batch
47
+ #
48
+ def update eid, gl_transaction_batch
49
+ GoTransverseTractApi.put_request_for(self, {eid: eid}, gl_transaction_batch.to_s)
50
+ end
51
+
52
+ end
53
+
54
+ end
55
+
56
+ end
57
+
58
+ end
@@ -0,0 +1,40 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class AdjustmentCategory
6
+
7
+ class << self
8
+
9
+ def find_all
10
+ GoTransverseTractApi.get_response_for(self)
11
+ end
12
+
13
+ #
14
+ # @param {Long} eid
15
+ #
16
+ def find_by_eid eid
17
+ GoTransverseTractApi.get_response_for(self, {eid: eid})
18
+ end
19
+
20
+ #
21
+ # @param {String} name
22
+ #
23
+ def find_by_name name
24
+ GoTransverseTractApi.get_response_for(self, {name: name})
25
+ end
26
+
27
+ #
28
+ # @param {String} status
29
+ #
30
+ def find_by_status status
31
+ GoTransverseTractApi.get_response_for(self, {status: status})
32
+ end
33
+
34
+ end
35
+
36
+ end
37
+
38
+ end
39
+
40
+ end
@@ -5,6 +5,7 @@ module GoTransverseTractApi
5
5
  class BillCycle
6
6
 
7
7
  class << self
8
+
8
9
  def find_all
9
10
  GoTransverseTractApi.get_response_for(self)
10
11
  end
@@ -36,6 +37,14 @@ module GoTransverseTractApi
36
37
  def find_by_status status
37
38
  GoTransverseTractApi.get_response_for(self, {status: status})
38
39
  end
40
+
41
+ #
42
+ # @param {String} currency_type
43
+ #
44
+ def find_by_currency_type currency_type
45
+ GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
46
+ end
47
+
39
48
  end
40
49
 
41
50
  end
@@ -46,6 +46,36 @@ module GoTransverseTractApi
46
46
  GoTransverseTractApi.get_response_for(self, {service_identifier: service_identifier})
47
47
  end
48
48
 
49
+ #
50
+ # @param {Long} service_eid
51
+ #
52
+ def self.find_by_service_eid service_eid
53
+ GoTransverseTractApi.get_response_for(self, {service_eid: service_eid})
54
+ end
55
+
56
+ #
57
+ # @param {String} discount_identifier
58
+ #
59
+ def self.find_by_discount_identifier discount_identifier
60
+ GoTransverseTractApi.get_response_for(self, {discount_identifier: discount_identifier})
61
+ end
62
+
63
+ #
64
+ # @param {Long} eid
65
+ # @param {Nokogiri::XML::Document} approve
66
+ #
67
+ def self.approve eid, approve
68
+ GoTransverseTractApi.post_request_for(self, {eid: eid}, approve.to_s, "approve")
69
+ end
70
+
71
+ #
72
+ # @param {Long} eid
73
+ # @param {Nokogiri::XML::Document} deny
74
+ #
75
+ def self.deny eid, deny
76
+ GoTransverseTractApi.post_request_for(self, {eid: eid}, deny.to_s, "deny")
77
+ end
78
+
49
79
  end
50
80
 
51
81
  end
@@ -0,0 +1,47 @@
1
+ module GoTransverseTractApi
2
+
3
+ module Order
4
+
5
+ class PaymentTerm
6
+
7
+ class << self
8
+
9
+ def find_all
10
+ GoTransverseTractApi.get_response_for(self)
11
+ end
12
+
13
+ #
14
+ # @param {Long} eid
15
+ #
16
+ def find_by_eid eid
17
+ GoTransverseTractApi.get_response_for(self, {eid: eid})
18
+ end
19
+
20
+ #
21
+ # @param {Long} billing_account_category_eid
22
+ #
23
+ def find_by_billing_account_category_eid billing_account_category_eid
24
+ GoTransverseTractApi.get_response_for(self, {billing_account_category_eid: billing_account_category_eid})
25
+ end
26
+
27
+ #
28
+ # @param {Long} billing_account_eid
29
+ #
30
+ def find_by_billing_account_eid billing_account_eid
31
+ GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
32
+ end
33
+
34
+ #
35
+ # @param {String} name
36
+ #
37
+ def find_by_name name
38
+ GoTransverseTractApi.get_response_for(self, {name: name})
39
+ end
40
+
41
+ end
42
+
43
+ end
44
+
45
+ end
46
+
47
+ end
@@ -6,6 +6,10 @@ module GoTransverseTractApi
6
6
 
7
7
  class << self
8
8
 
9
+ def find_all
10
+ GoTransverseTractApi.get_response_for(self)
11
+ end
12
+
9
13
  #
10
14
  # @param {Long} eid
11
15
  #
@@ -94,6 +98,14 @@ module GoTransverseTractApi
94
98
  GoTransverseTractApi.post_request_for(self, {eid: eid}, sales_order.to_s, "item/#{sequence}/deny")
95
99
  end
96
100
 
101
+ #
102
+ # @param {Long} eid
103
+ # @param {Nokogiri::XML::Document} sales_order
104
+ #
105
+ def confirm eid, sales_order
106
+ GoTransverseTractApi.post_request_for(self, {eid: eid}, sales_order.to_s)
107
+ end
108
+
97
109
  #
98
110
  # @param {Long} eid
99
111
  # @param {Nokogiri::XML::Document} sales_order
@@ -1,6 +1,6 @@
1
1
  module GoTransverseTractApi
2
2
 
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  TARGET_API_VERSION = "1.28"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotransverse-tract-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien DeFrance
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-11-20 00:00:00.000000000 Z
12
+ date: 2015-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -104,8 +104,14 @@ files:
104
104
  - lib/gotransverse-tract-api/general_ledger/gl_account.rb
105
105
  - lib/gotransverse-tract-api/general_ledger/gl_account_category.rb
106
106
  - lib/gotransverse-tract-api/general_ledger/gl_accounting_entry.rb
107
+ - lib/gotransverse-tract-api/general_ledger/gl_accounting_transaction.rb
108
+ - lib/gotransverse-tract-api/general_ledger/gl_adjustment_accounting_transaction.rb
107
109
  - lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb
108
110
  - lib/gotransverse-tract-api/general_ledger/gl_aggregate_entry.rb
111
+ - lib/gotransverse-tract-api/general_ledger/gl_invoice_accounting_transaction.rb
112
+ - lib/gotransverse-tract-api/general_ledger/gl_payment_accounting_transaction.rb
113
+ - lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb
114
+ - lib/gotransverse-tract-api/order/adjustment_category.rb
109
115
  - lib/gotransverse-tract-api/order/agreement.rb
110
116
  - lib/gotransverse-tract-api/order/bill_cycle.rb
111
117
  - lib/gotransverse-tract-api/order/billing_account_category.rb
@@ -113,6 +119,7 @@ files:
113
119
  - lib/gotransverse-tract-api/order/order_item_charge.rb
114
120
  - lib/gotransverse-tract-api/order/organization.rb
115
121
  - lib/gotransverse-tract-api/order/party_category.rb
122
+ - lib/gotransverse-tract-api/order/payment_term.rb
116
123
  - lib/gotransverse-tract-api/order/people.rb
117
124
  - lib/gotransverse-tract-api/order/product_relation.rb
118
125
  - lib/gotransverse-tract-api/order/renewal_order.rb