caren-api 0.4.27 → 0.4.28
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/caren-api.gemspec +1 -1
- data/lib/caren/billable.rb +30 -26
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.28
|
data/caren-api.gemspec
CHANGED
data/lib/caren/billable.rb
CHANGED
@@ -1,32 +1,34 @@
|
|
1
1
|
class Caren::Billable < Caren::Base
|
2
2
|
|
3
3
|
def self.keys
|
4
|
-
[ :id,
|
5
|
-
:external_id,
|
6
|
-
:name,
|
7
|
-
:description,
|
8
|
-
:care_provider_id,
|
9
|
-
:billable_category_id,
|
10
|
-
:photo,
|
11
|
-
:in_store,
|
12
|
-
:unit,
|
13
|
-
:price_with_vat_in_cents,
|
14
|
-
:currency,
|
15
|
-
:rounding,
|
16
|
-
:min_amount,
|
17
|
-
:default_amount,
|
18
|
-
:piece_duration,
|
19
|
-
:vat_promillage,
|
20
|
-
:type,
|
21
|
-
:status,
|
22
|
-
:send_reminder_subject,
|
23
|
-
:send_reminder_person,
|
24
|
-
:send_reminder_in_advance
|
25
|
-
:plannable_by_subject,
|
26
|
-
:plannable_margin_before,
|
27
|
-
:plannable_margin_after,
|
28
|
-
:plannable_max_duration,
|
29
|
-
:
|
4
|
+
[ :id, # Integer (Id of this product in Caren)
|
5
|
+
:external_id, # Integer (Your id)
|
6
|
+
:name, # String
|
7
|
+
:description, # Text
|
8
|
+
:care_provider_id, # Integer (Care provider id)
|
9
|
+
:billable_category_id, # Integer (Reference to product category; Caren id)
|
10
|
+
:photo, # String
|
11
|
+
:in_store, # Boolean (Use in store)
|
12
|
+
:unit, # String (piece, minute, hour)
|
13
|
+
:price_with_vat_in_cents, # Integer
|
14
|
+
:currency, # String (EUR,USD)
|
15
|
+
:rounding, # Integer (in seconds)
|
16
|
+
:min_amount, # Integer (in seconds)
|
17
|
+
:default_amount, # Integer (in seconds)
|
18
|
+
:piece_duration, # Integer (in seconds)
|
19
|
+
:vat_promillage, # Integer
|
20
|
+
:type, # String (Store::Product,Store::Service,Store::ChatSession)
|
21
|
+
:status, # String (pending, active)
|
22
|
+
:send_reminder_subject, # Boolean
|
23
|
+
:send_reminder_person, # Boolean
|
24
|
+
:send_reminder_in_advance, # Integer (in seconds)
|
25
|
+
:plannable_by_subject, # Boolean
|
26
|
+
:plannable_margin_before, # Integer (in seconds)
|
27
|
+
:plannable_margin_after, # Integer (in seconds)
|
28
|
+
:plannable_max_duration, # Integer (in seconds)
|
29
|
+
:plannable_comment_above, # Text
|
30
|
+
:plannable_description_required, # Boolean
|
31
|
+
:available # Boolean
|
30
32
|
] + super
|
31
33
|
end
|
32
34
|
|
@@ -77,6 +79,8 @@ class Caren::Billable < Caren::Base
|
|
77
79
|
:plannable_margin_before => self.plannable_margin_before,
|
78
80
|
:plannable_margin_after => self.plannable_margin_after,
|
79
81
|
:plannable_max_duration => self.plannable_max_duration,
|
82
|
+
:plannable_comment_above => self.plannable_comment_above,
|
83
|
+
:plannable_description_required => self.plannable_description_required,
|
80
84
|
:available => self.available
|
81
85
|
}
|
82
86
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caren-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 28
|
10
|
+
version: 0.4.28
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andre Foeken
|