gotransverse-tract-api 0.1.6 → 0.1.7
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.
- checksums.yaml +4 -4
- data/lib/gotransverse-tract-api/product/billing_account_segment.rb +11 -0
- data/lib/gotransverse-tract-api/product/billing_account_segment_field.rb +50 -0
- data/lib/gotransverse-tract-api/product/discount.rb +50 -0
- data/lib/gotransverse-tract-api/product/discount_category.rb +36 -0
- data/lib/gotransverse-tract-api/product/discount_charge_category.rb +12 -0
- data/lib/gotransverse-tract-api/product/discount_code.rb +81 -0
- data/lib/gotransverse-tract-api/product/discount_identifier.rb +36 -0
- data/lib/gotransverse-tract-api/product/one_time_product_price.rb +21 -0
- data/lib/gotransverse-tract-api/product/product_category.rb +2 -27
- data/lib/gotransverse-tract-api/product/product_price.rb +8 -1
- data/lib/gotransverse-tract-api/product/product_price_range.rb +7 -0
- data/lib/gotransverse-tract-api/product/product_tag.rb +36 -0
- data/lib/gotransverse-tract-api/product/recurring_product_price.rb +64 -0
- data/lib/gotransverse-tract-api/version.rb +1 -1
- metadata +12 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d400cd1ca96b512e3e5b7b0e740980e90bc1714d
|
4
|
+
data.tar.gz: b5745c2429643ee5f91aa86ee487fd9e4779d10c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 708447a1b552d2bea3b0a6ecdf1faca2d27d2ee9b59d00c33fb4fb71503958577f662bf135bc53ed3410c32a93a92929d4a72063cae2ed2f569425f8031468c9
|
7
|
+
data.tar.gz: 7ca613ac03e3142367d6f18da5ee733ff08e065b0ddf572268c8e1a6d32ab068d4173e864755f866310254817fa46b70c879d9551c3e8aa1abf692dca5e426f4
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module GoTransverseTractApi
|
2
|
+
|
3
|
+
module Product
|
4
|
+
|
5
|
+
class BillingAccountSegmentField
|
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} billing_account_segment_eid
|
18
|
+
#
|
19
|
+
def find_by_billing_account_segment_eid billing_account_segment_eid
|
20
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_segment_eid: billing_account_segment_eid})
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
# @param {String} billing_account_segment_name
|
25
|
+
#
|
26
|
+
def find_by_billing_account_segment_name billing_account_segment_name
|
27
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_segment_name: billing_account_segment_name})
|
28
|
+
end
|
29
|
+
|
30
|
+
#
|
31
|
+
# @param {String} type
|
32
|
+
#
|
33
|
+
def find_by_type type
|
34
|
+
GoTransverseTractApi.get_response_for(self, {type: type})
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# @param {Boolean} required
|
39
|
+
#
|
40
|
+
def find_by_required required
|
41
|
+
GoTransverseTractApi.get_response_for(self, {required: required})
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module GoTransverseTractApi
|
2
|
+
|
3
|
+
module Product
|
4
|
+
|
5
|
+
class Discount < DiscountCategory
|
6
|
+
|
7
|
+
class << self
|
8
|
+
|
9
|
+
#
|
10
|
+
# @param {String} type
|
11
|
+
#
|
12
|
+
def find_by_type type
|
13
|
+
GoTransverseTractApi.get_response_for(self, {type: type})
|
14
|
+
end
|
15
|
+
|
16
|
+
#
|
17
|
+
# @param {Long} discount_category_eid
|
18
|
+
#
|
19
|
+
def find_by_discount_category_eid discount_category_eid
|
20
|
+
GoTransverseTractApi.get_response_for(self, {discount_category_eid: discount_category_eid})
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
# @param {Boolean} one_time
|
25
|
+
#
|
26
|
+
def find_by_one_time one_time
|
27
|
+
GoTransverseTractApi.get_response_for(self, {one_time: one_time})
|
28
|
+
end
|
29
|
+
|
30
|
+
#
|
31
|
+
# @param {Boolean} recurring
|
32
|
+
#
|
33
|
+
def find_by_recurring recurring
|
34
|
+
GoTransverseTractApi.get_response_for(self, {recurring: recurring})
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# @param {String} currency_type
|
39
|
+
#
|
40
|
+
def find_by_currency_type currency_type
|
41
|
+
GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module GoTransverseTractApi
|
2
|
+
|
3
|
+
module Product
|
4
|
+
|
5
|
+
class DiscountCategory
|
6
|
+
|
7
|
+
def self.find_all
|
8
|
+
GoTransverseTractApi.get_response_for(self)
|
9
|
+
end
|
10
|
+
|
11
|
+
#
|
12
|
+
# @param {Long} eid
|
13
|
+
#
|
14
|
+
def self.find_by_eid eid
|
15
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
16
|
+
end
|
17
|
+
|
18
|
+
#
|
19
|
+
# @param {String} name
|
20
|
+
#
|
21
|
+
def self.find_by_name name
|
22
|
+
GoTransverseTractApi.get_response_for(self, {name: name})
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# @param {String} status
|
27
|
+
#
|
28
|
+
def find_by_status status
|
29
|
+
GoTransverseTractApi.get_response_for(self, {status: status})
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
module GoTransverseTractApi
|
2
|
+
|
3
|
+
module Product
|
4
|
+
|
5
|
+
class DiscountCode < DiscountCategory
|
6
|
+
|
7
|
+
#
|
8
|
+
# @param {Long} discount_charge_category_eid
|
9
|
+
#
|
10
|
+
def self.find_by_discount_charge_category_eid discount_charge_category_eid
|
11
|
+
GoTransverseTractApi.get_response_for(self, {discount_charge_category_eid: discount_charge_category_eid})
|
12
|
+
end
|
13
|
+
|
14
|
+
#
|
15
|
+
# @param {DateTime} valid_from
|
16
|
+
#
|
17
|
+
def self.find_by_valid_from valid_from
|
18
|
+
GoTransverseTractApi.get_response_for(self, {valid_from: valid_from})
|
19
|
+
end
|
20
|
+
|
21
|
+
#
|
22
|
+
# @param {DateTime} valid_to
|
23
|
+
#
|
24
|
+
def self.find_by_valid_to valid_to
|
25
|
+
GoTransverseTractApi.get_response_for(self, {valid_to: valid_to})
|
26
|
+
end
|
27
|
+
|
28
|
+
#
|
29
|
+
# @param {Long} discount_eid
|
30
|
+
#
|
31
|
+
def self.find_by_discount_eid discount_eid
|
32
|
+
GoTransverseTractApi.get_response_for(self, {discount_eid: discount_eid})
|
33
|
+
end
|
34
|
+
|
35
|
+
#
|
36
|
+
# @param {Long} discount_identifier
|
37
|
+
#
|
38
|
+
def self.find_by_discount_identifier discount_identifier
|
39
|
+
GoTransverseTractApi.get_response_for(self, {discount_identifier: discount_identifier})
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# @param {Long} discount_identifier_eid
|
44
|
+
#
|
45
|
+
def self.find_by_discount_identifier_eid discount_identifier_eid
|
46
|
+
GoTransverseTractApi.get_response_for(self, {discount_identifier_eid: discount_identifier_eid})
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# @param {Long} price_list_eid
|
51
|
+
#
|
52
|
+
def self.find_by_price_list_eid price_list_eid
|
53
|
+
GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid})
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# @param {String} price_list_is_master
|
58
|
+
#
|
59
|
+
def self.find_by_price_list_is_master price_list_is_master
|
60
|
+
GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
|
61
|
+
end
|
62
|
+
|
63
|
+
#
|
64
|
+
# @param {String} currency_type
|
65
|
+
#
|
66
|
+
def self.find_by_currency_type currency_type
|
67
|
+
GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
|
68
|
+
end
|
69
|
+
|
70
|
+
#
|
71
|
+
# @param {Long} product_eid
|
72
|
+
#
|
73
|
+
def self.find_by_product_eid product_eid
|
74
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module GoTransverseTractApi
|
2
|
+
|
3
|
+
module Product
|
4
|
+
|
5
|
+
class DiscountIdentifier
|
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} identifier
|
18
|
+
#
|
19
|
+
def find_by_identifier identifier
|
20
|
+
GoTransverseTractApi.get_response_for(self, {identifier: identifier})
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
# @param {Long} order_item_eid
|
25
|
+
#
|
26
|
+
def find_by_order_item_eid order_item_eid
|
27
|
+
GoTransverseTractApi.get_response_for(self, {order_item_eid: order_item_eid})
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module GoTransverseTractApi
|
2
|
+
|
3
|
+
module Product
|
4
|
+
|
5
|
+
class OneTimeProductPrice < ProductPrice
|
6
|
+
|
7
|
+
class << self
|
8
|
+
|
9
|
+
#
|
10
|
+
# @param {Boolean} charge_during_renewal
|
11
|
+
#
|
12
|
+
def find_by_charge_during_renewal charge_during_renewal
|
13
|
+
GoTransverseTractApi.get_response_for(self, {charge_during_renewal: charge_during_renewal})
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -2,35 +2,10 @@ module GoTransverseTractApi
|
|
2
2
|
|
3
3
|
module Product
|
4
4
|
|
5
|
-
class ProductCategory
|
6
|
-
|
7
|
-
def self.find_all
|
8
|
-
GoTransverseTractApi.get_response_for(self)
|
9
|
-
end
|
10
|
-
|
11
|
-
#
|
12
|
-
# @param {Long} eid
|
13
|
-
#
|
14
|
-
def self.find_by_eid eid
|
15
|
-
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
16
|
-
end
|
17
|
-
|
18
|
-
#
|
19
|
-
# @param {String} name
|
20
|
-
#
|
21
|
-
def self.find_by_name name
|
22
|
-
GoTransverseTractApi.get_response_for(self, {name: name})
|
23
|
-
end
|
24
|
-
|
25
|
-
#
|
26
|
-
# @param {String} status
|
27
|
-
#
|
28
|
-
def self.find_by_status status
|
29
|
-
GoTransverseTractApi.get_response_for(self, {status: status})
|
30
|
-
end
|
5
|
+
class ProductCategory < DiscountCategory
|
31
6
|
|
32
7
|
end
|
33
8
|
|
34
9
|
end
|
35
10
|
|
36
|
-
end
|
11
|
+
end
|
@@ -46,8 +46,15 @@ module GoTransverseTractApi
|
|
46
46
|
GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
|
47
47
|
end
|
48
48
|
|
49
|
+
#
|
50
|
+
# @param {String} currency_type
|
51
|
+
#
|
52
|
+
def self.find_by_currency_type currency_type
|
53
|
+
GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
|
54
|
+
end
|
55
|
+
|
49
56
|
end
|
50
57
|
|
51
58
|
end
|
52
59
|
|
53
|
-
end
|
60
|
+
end
|
@@ -39,6 +39,13 @@ module GoTransverseTractApi
|
|
39
39
|
GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
|
40
40
|
end
|
41
41
|
|
42
|
+
#
|
43
|
+
# @param {String} currency_type
|
44
|
+
#
|
45
|
+
def self.find_by_currency_type currency_type
|
46
|
+
GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
|
47
|
+
end
|
48
|
+
|
42
49
|
end
|
43
50
|
|
44
51
|
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module GoTransverseTractApi
|
2
|
+
|
3
|
+
module Product
|
4
|
+
|
5
|
+
class ProductTag
|
6
|
+
|
7
|
+
def self.find_all
|
8
|
+
GoTransverseTractApi.get_response_for(self)
|
9
|
+
end
|
10
|
+
|
11
|
+
#
|
12
|
+
# @param {Long} eid
|
13
|
+
#
|
14
|
+
def self.find_by_eid eid
|
15
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
16
|
+
end
|
17
|
+
|
18
|
+
#
|
19
|
+
# @param {String} name
|
20
|
+
#
|
21
|
+
def self.find_by_name name
|
22
|
+
GoTransverseTractApi.get_response_for(self, {name: name})
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# @param {Long} product_eid
|
27
|
+
#
|
28
|
+
def self.find_by_product_eid product_eid
|
29
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module GoTransverseTractApi
|
2
|
+
|
3
|
+
module Product
|
4
|
+
|
5
|
+
class RecurringProductPrice < ProductPrice
|
6
|
+
|
7
|
+
class << self
|
8
|
+
|
9
|
+
#
|
10
|
+
# @param {Long} recurrence_period
|
11
|
+
#
|
12
|
+
def find_by_recurrence_period recurrence_period
|
13
|
+
GoTransverseTractApi.get_response_for(self, {recurrence_period: recurrence_period})
|
14
|
+
end
|
15
|
+
|
16
|
+
#
|
17
|
+
# @param {Long} recurrence_amount
|
18
|
+
#
|
19
|
+
def find_by_recurrence_amount recurrence_amount
|
20
|
+
GoTransverseTractApi.get_response_for(self, {recurrence_amount: recurrence_amount})
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
# @param {Boolean} recurring_payment_required
|
25
|
+
#
|
26
|
+
def find_by_recurring_payment_required recurring_payment_required
|
27
|
+
GoTransverseTractApi.get_response_for(self, {recurring_payment_required: recurring_payment_required})
|
28
|
+
end
|
29
|
+
|
30
|
+
#
|
31
|
+
# @param {Boolean} bill_in_advance
|
32
|
+
#
|
33
|
+
def find_by_bill_in_advance bill_in_advance
|
34
|
+
GoTransverseTractApi.get_response_for(self, {bill_in_advance: bill_in_advance})
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# @param {Boolean} prorated_on_cancel
|
39
|
+
#
|
40
|
+
def find_by_prorated_on_cancel prorated_on_cancel
|
41
|
+
GoTransverseTractApi.get_response_for(self, {prorated_on_cancel: prorated_on_cancel})
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# @param {Boolean} prorated_on_order
|
46
|
+
#
|
47
|
+
def find_by_prorated_on_order prorated_on_order
|
48
|
+
GoTransverseTractApi.get_response_for(self, {prorated_on_order: prorated_on_order})
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# @param {Boolean} prorated_on_order_no_charge
|
53
|
+
#
|
54
|
+
def find_by_prorated_on_order_no_charge prorated_on_order_no_charge
|
55
|
+
GoTransverseTractApi.get_response_for(self, {prorated_on_order_no_charge: prorated_on_order_no_charge})
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
|
64
|
+
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.
|
4
|
+
version: 0.1.7
|
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-
|
12
|
+
date: 2015-11-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -125,6 +125,14 @@ files:
|
|
125
125
|
- lib/gotransverse-tract-api/order/renewal_order.rb
|
126
126
|
- lib/gotransverse-tract-api/order/sales_order.rb
|
127
127
|
- lib/gotransverse-tract-api/product/action.rb
|
128
|
+
- lib/gotransverse-tract-api/product/billing_account_segment.rb
|
129
|
+
- lib/gotransverse-tract-api/product/billing_account_segment_field.rb
|
130
|
+
- lib/gotransverse-tract-api/product/discount.rb
|
131
|
+
- lib/gotransverse-tract-api/product/discount_category.rb
|
132
|
+
- lib/gotransverse-tract-api/product/discount_charge_category.rb
|
133
|
+
- lib/gotransverse-tract-api/product/discount_code.rb
|
134
|
+
- lib/gotransverse-tract-api/product/discount_identifier.rb
|
135
|
+
- lib/gotransverse-tract-api/product/one_time_product_price.rb
|
128
136
|
- lib/gotransverse-tract-api/product/operation.rb
|
129
137
|
- lib/gotransverse-tract-api/product/operation_attribute.rb
|
130
138
|
- lib/gotransverse-tract-api/product/price_list.rb
|
@@ -132,6 +140,8 @@ files:
|
|
132
140
|
- lib/gotransverse-tract-api/product/product_category.rb
|
133
141
|
- lib/gotransverse-tract-api/product/product_price.rb
|
134
142
|
- lib/gotransverse-tract-api/product/product_price_range.rb
|
143
|
+
- lib/gotransverse-tract-api/product/product_tag.rb
|
144
|
+
- lib/gotransverse-tract-api/product/recurring_product_price.rb
|
135
145
|
- lib/gotransverse-tract-api/product/usage_rule.rb
|
136
146
|
- lib/gotransverse-tract-api/service/service.rb
|
137
147
|
- lib/gotransverse-tract-api/service/service_device_inventory_item.rb
|