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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/caren-api.gemspec +1 -1
  3. data/lib/caren/billable.rb +30 -26
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.27
1
+ 0.4.28
data/caren-api.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "caren-api"
8
- s.version = "0.4.27"
8
+ s.version = "0.4.28"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andre Foeken"]
@@ -1,32 +1,34 @@
1
1
  class Caren::Billable < Caren::Base
2
2
 
3
3
  def self.keys
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
- :available # Boolean
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: 57
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 27
10
- version: 0.4.27
9
+ - 28
10
+ version: 0.4.28
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Foeken