gonebusy-ruby-client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +2 -1
- data/lib/gonebusy/controllers/bookings_controller.rb +77 -74
- data/lib/gonebusy/controllers/categories_controller.rb +29 -29
- data/lib/gonebusy/controllers/pricing_models_controller.rb +47 -47
- data/lib/gonebusy/controllers/resources_controller.rb +77 -77
- data/lib/gonebusy/controllers/schedules_controller.rb +92 -92
- data/lib/gonebusy/controllers/services_controller.rb +86 -86
- data/lib/gonebusy/controllers/users_controller.rb +56 -56
- data/lib/gonebusy/models/cancel_booking_by_id_response.rb +10 -12
- data/lib/gonebusy/models/create_booking_body.rb +78 -80
- data/lib/gonebusy/models/create_booking_response.rb +10 -12
- data/lib/gonebusy/models/create_category_body.rb +34 -36
- data/lib/gonebusy/models/create_category_response.rb +10 -12
- data/lib/gonebusy/models/create_pricing_model_body.rb +35 -37
- data/lib/gonebusy/models/create_pricing_model_response.rb +10 -12
- data/lib/gonebusy/models/create_resource_body.rb +39 -41
- data/lib/gonebusy/models/create_resource_response.rb +10 -12
- data/lib/gonebusy/models/create_schedule_body.rb +92 -94
- data/lib/gonebusy/models/create_schedule_response.rb +10 -12
- data/lib/gonebusy/models/create_schedule_time_window_body.rb +64 -66
- data/lib/gonebusy/models/create_schedule_time_window_response.rb +10 -12
- data/lib/gonebusy/models/create_service_body.rb +57 -59
- data/lib/gonebusy/models/create_service_response.rb +10 -12
- data/lib/gonebusy/models/create_user_body.rb +40 -42
- data/lib/gonebusy/models/create_user_response.rb +10 -12
- data/lib/gonebusy/models/delete_resource_by_id_response.rb +10 -12
- data/lib/gonebusy/models/delete_schedule_by_id_response.rb +10 -12
- data/lib/gonebusy/models/delete_schedule_time_window_by_id_response.rb +10 -12
- data/lib/gonebusy/models/delete_service_by_id_response.rb +10 -12
- data/lib/gonebusy/models/entities_address_entity.rb +69 -71
- data/lib/gonebusy/models/entities_availability_response.rb +21 -23
- data/lib/gonebusy/models/entities_booking_response.rb +32 -34
- data/lib/gonebusy/models/entities_category_response.rb +52 -54
- data/lib/gonebusy/models/entities_pricing_model_response.rb +44 -46
- data/lib/gonebusy/models/entities_resource_availabilities.rb +24 -26
- data/lib/gonebusy/models/entities_resource_response.rb +60 -62
- data/lib/gonebusy/models/entities_schedule_response.rb +26 -28
- data/lib/gonebusy/models/entities_search_response.rb +29 -31
- data/lib/gonebusy/models/entities_service_response.rb +82 -84
- data/lib/gonebusy/models/entities_slots.rb +13 -15
- data/lib/gonebusy/models/entities_thing_type_response.rb +13 -15
- data/lib/gonebusy/models/entities_time_window_response.rb +81 -83
- data/lib/gonebusy/models/entities_user_response.rb +95 -97
- data/lib/gonebusy/models/get_booking_by_id_response.rb +10 -12
- data/lib/gonebusy/models/get_bookings_response.rb +14 -16
- data/lib/gonebusy/models/get_categories_response.rb +14 -16
- data/lib/gonebusy/models/get_category_by_id_response.rb +10 -12
- data/lib/gonebusy/models/get_pricing_model_by_id_response.rb +10 -12
- data/lib/gonebusy/models/get_pricing_models_response.rb +14 -16
- data/lib/gonebusy/models/get_resource_by_id_response.rb +10 -12
- data/lib/gonebusy/models/get_resource_things_response.rb +14 -16
- data/lib/gonebusy/models/get_resources_response.rb +14 -16
- data/lib/gonebusy/models/get_schedule_by_id_response.rb +10 -12
- data/lib/gonebusy/models/get_schedules_response.rb +14 -16
- data/lib/gonebusy/models/get_service_available_slots_by_id_response.rb +10 -12
- data/lib/gonebusy/models/get_service_by_id_response.rb +10 -12
- data/lib/gonebusy/models/get_services_response.rb +14 -16
- data/lib/gonebusy/models/get_user_by_id_response.rb +10 -12
- data/lib/gonebusy/models/get_users_response.rb +14 -16
- data/lib/gonebusy/models/search_query_response.rb +10 -12
- data/lib/gonebusy/models/update_booking_by_id_body.rb +58 -60
- data/lib/gonebusy/models/update_booking_by_id_response.rb +10 -12
- data/lib/gonebusy/models/update_pricing_model_by_id_body.rb +28 -30
- data/lib/gonebusy/models/update_pricing_model_by_id_response.rb +10 -12
- data/lib/gonebusy/models/update_resource_by_id_body.rb +33 -35
- data/lib/gonebusy/models/update_resource_by_id_response.rb +10 -12
- data/lib/gonebusy/models/update_schedule_time_window_by_id_body.rb +71 -73
- data/lib/gonebusy/models/update_schedule_time_window_by_id_response.rb +10 -12
- data/lib/gonebusy/models/update_service_by_id_body.rb +43 -45
- data/lib/gonebusy/models/update_service_by_id_response.rb +10 -12
- data/lib/gonebusy/models/update_user_by_id_body.rb +41 -43
- data/lib/gonebusy/models/update_user_by_id_response.rb +10 -12
- data/lib/gonebusy.rb +67 -67
- metadata +2 -3
- data/lib/gonebusy/exceptions/entities_error_exception.rb +0 -27
@@ -8,11 +8,11 @@ module Gonebusy
|
|
8
8
|
|
9
9
|
# A mapping from model property names to API property names
|
10
10
|
def self.names
|
11
|
-
if @
|
12
|
-
@
|
13
|
-
@
|
11
|
+
if @_hash.nil?
|
12
|
+
@_hash = {}
|
13
|
+
@_hash["schedule"] = "schedule"
|
14
14
|
end
|
15
|
-
@
|
15
|
+
@_hash
|
16
16
|
end
|
17
17
|
|
18
18
|
def initialize(schedule = nil)
|
@@ -21,15 +21,13 @@ module Gonebusy
|
|
21
21
|
|
22
22
|
# Creates an instance of the object from a hash
|
23
23
|
def self.from_hash(hash)
|
24
|
-
|
25
|
-
nil
|
26
|
-
else
|
27
|
-
# Extract variables from the hash
|
28
|
-
schedule = EntitiesScheduleResponse.from_hash(hash['schedule']) if hash['schedule']
|
24
|
+
return nil unless hash
|
29
25
|
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
# Extract variables from the hash
|
27
|
+
schedule = EntitiesScheduleResponse.from_hash(hash['schedule']) if hash['schedule']
|
28
|
+
|
29
|
+
# Create object from extracted values
|
30
|
+
UpdateScheduleTimeWindowByIdResponse.new(schedule)
|
33
31
|
end
|
34
32
|
end
|
35
33
|
end
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
module Gonebusy
|
4
4
|
class UpdateServiceByIdBody < BaseModel
|
5
|
-
#
|
5
|
+
# Service Name
|
6
6
|
# @return [String]
|
7
|
-
attr_accessor :
|
7
|
+
attr_accessor :name
|
8
8
|
|
9
9
|
# Service Description
|
10
10
|
# @return [String]
|
@@ -18,9 +18,9 @@ module Gonebusy
|
|
18
18
|
# @return [Integer]
|
19
19
|
attr_accessor :max_duration
|
20
20
|
|
21
|
-
# Service
|
21
|
+
# Optional abbreviated Service name
|
22
22
|
# @return [String]
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :short_name
|
24
24
|
|
25
25
|
# Optional Price Model Id
|
26
26
|
# @return [Integer]
|
@@ -30,69 +30,67 @@ module Gonebusy
|
|
30
30
|
# @return [String]
|
31
31
|
attr_accessor :resources
|
32
32
|
|
33
|
-
# Optional
|
33
|
+
# Optional List of comma-separated Category IDs to associate with Service
|
34
34
|
# @return [String]
|
35
|
-
attr_accessor :
|
35
|
+
attr_accessor :categories
|
36
36
|
|
37
37
|
# A mapping from model property names to API property names
|
38
38
|
def self.names
|
39
|
-
if @
|
40
|
-
@
|
41
|
-
@
|
42
|
-
@
|
43
|
-
@
|
44
|
-
@
|
45
|
-
@
|
46
|
-
@
|
47
|
-
@
|
48
|
-
@
|
39
|
+
if @_hash.nil?
|
40
|
+
@_hash = {}
|
41
|
+
@_hash["name"] = "name"
|
42
|
+
@_hash["description"] = "description"
|
43
|
+
@_hash["duration"] = "duration"
|
44
|
+
@_hash["max_duration"] = "max_duration"
|
45
|
+
@_hash["short_name"] = "short_name"
|
46
|
+
@_hash["price_model_id"] = "price_model_id"
|
47
|
+
@_hash["resources"] = "resources"
|
48
|
+
@_hash["categories"] = "categories"
|
49
49
|
end
|
50
|
-
@
|
50
|
+
@_hash
|
51
51
|
end
|
52
52
|
|
53
|
-
def initialize(
|
53
|
+
def initialize(name = nil,
|
54
54
|
description = nil,
|
55
55
|
duration = nil,
|
56
56
|
max_duration = nil,
|
57
|
-
|
57
|
+
short_name = nil,
|
58
58
|
price_model_id = nil,
|
59
59
|
resources = nil,
|
60
|
-
|
61
|
-
@
|
60
|
+
categories = nil)
|
61
|
+
@name = name
|
62
62
|
@description = description
|
63
63
|
@duration = duration
|
64
64
|
@max_duration = max_duration
|
65
|
-
@
|
65
|
+
@short_name = short_name
|
66
66
|
@price_model_id = price_model_id
|
67
67
|
@resources = resources
|
68
|
-
@
|
68
|
+
@categories = categories
|
69
69
|
end
|
70
70
|
|
71
71
|
# Creates an instance of the object from a hash
|
72
72
|
def self.from_hash(hash)
|
73
|
-
|
74
|
-
nil
|
75
|
-
else
|
76
|
-
# Extract variables from the hash
|
77
|
-
categories = hash['categories']
|
78
|
-
description = hash['description']
|
79
|
-
duration = hash['duration']
|
80
|
-
max_duration = hash['max_duration']
|
81
|
-
name = hash['name']
|
82
|
-
price_model_id = hash['price_model_id']
|
83
|
-
resources = hash['resources']
|
84
|
-
short_name = hash['short_name']
|
73
|
+
return nil unless hash
|
85
74
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
75
|
+
# Extract variables from the hash
|
76
|
+
name = hash['name']
|
77
|
+
description = hash['description']
|
78
|
+
duration = hash['duration']
|
79
|
+
max_duration = hash['max_duration']
|
80
|
+
short_name = hash['short_name']
|
81
|
+
price_model_id = hash['price_model_id']
|
82
|
+
resources = hash['resources']
|
83
|
+
categories = hash['categories']
|
84
|
+
|
85
|
+
# Create object from extracted values
|
86
|
+
UpdateServiceByIdBody.new(name,
|
87
|
+
description,
|
88
|
+
duration,
|
89
|
+
max_duration,
|
90
|
+
short_name,
|
91
|
+
price_model_id,
|
92
|
+
resources,
|
93
|
+
categories)
|
96
94
|
end
|
97
95
|
end
|
98
96
|
end
|
@@ -8,11 +8,11 @@ module Gonebusy
|
|
8
8
|
|
9
9
|
# A mapping from model property names to API property names
|
10
10
|
def self.names
|
11
|
-
if @
|
12
|
-
@
|
13
|
-
@
|
11
|
+
if @_hash.nil?
|
12
|
+
@_hash = {}
|
13
|
+
@_hash["service"] = "service"
|
14
14
|
end
|
15
|
-
@
|
15
|
+
@_hash
|
16
16
|
end
|
17
17
|
|
18
18
|
def initialize(service = nil)
|
@@ -21,15 +21,13 @@ module Gonebusy
|
|
21
21
|
|
22
22
|
# Creates an instance of the object from a hash
|
23
23
|
def self.from_hash(hash)
|
24
|
-
|
25
|
-
nil
|
26
|
-
else
|
27
|
-
# Extract variables from the hash
|
28
|
-
service = EntitiesServiceResponse.from_hash(hash['service']) if hash['service']
|
24
|
+
return nil unless hash
|
29
25
|
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
# Extract variables from the hash
|
27
|
+
service = EntitiesServiceResponse.from_hash(hash['service']) if hash['service']
|
28
|
+
|
29
|
+
# Create object from extracted values
|
30
|
+
UpdateServiceByIdResponse.new(service)
|
33
31
|
end
|
34
32
|
end
|
35
33
|
end
|
@@ -2,18 +2,10 @@
|
|
2
2
|
|
3
3
|
module Gonebusy
|
4
4
|
class UpdateUserByIdBody < BaseModel
|
5
|
-
# Optional name for your Business/Organization
|
6
|
-
# @return [String]
|
7
|
-
attr_accessor :business_name
|
8
|
-
|
9
5
|
# User's email address
|
10
6
|
# @return [String]
|
11
7
|
attr_accessor :email
|
12
8
|
|
13
|
-
# Optional website URL
|
14
|
-
# @return [String]
|
15
|
-
attr_accessor :external_url
|
16
|
-
|
17
9
|
# Optional first name
|
18
10
|
# @return [String]
|
19
11
|
attr_accessor :first_name
|
@@ -22,6 +14,14 @@ module Gonebusy
|
|
22
14
|
# @return [String]
|
23
15
|
attr_accessor :last_name
|
24
16
|
|
17
|
+
# Optional name for your Business/Organization
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :business_name
|
20
|
+
|
21
|
+
# Optional website URL
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :external_url
|
24
|
+
|
25
25
|
# Optional vanity url - ex: www.gonebusy.com/[permalink] - must be unique
|
26
26
|
# @return [String]
|
27
27
|
attr_accessor :permalink
|
@@ -32,58 +32,56 @@ module Gonebusy
|
|
32
32
|
|
33
33
|
# A mapping from model property names to API property names
|
34
34
|
def self.names
|
35
|
-
if @
|
36
|
-
@
|
37
|
-
@
|
38
|
-
@
|
39
|
-
@
|
40
|
-
@
|
41
|
-
@
|
42
|
-
@
|
43
|
-
@
|
35
|
+
if @_hash.nil?
|
36
|
+
@_hash = {}
|
37
|
+
@_hash["email"] = "email"
|
38
|
+
@_hash["first_name"] = "first_name"
|
39
|
+
@_hash["last_name"] = "last_name"
|
40
|
+
@_hash["business_name"] = "business_name"
|
41
|
+
@_hash["external_url"] = "external_url"
|
42
|
+
@_hash["permalink"] = "permalink"
|
43
|
+
@_hash["timezone"] = "timezone"
|
44
44
|
end
|
45
|
-
@
|
45
|
+
@_hash
|
46
46
|
end
|
47
47
|
|
48
|
-
def initialize(
|
49
|
-
email = nil,
|
50
|
-
external_url = nil,
|
48
|
+
def initialize(email = nil,
|
51
49
|
first_name = nil,
|
52
50
|
last_name = nil,
|
51
|
+
business_name = nil,
|
52
|
+
external_url = nil,
|
53
53
|
permalink = nil,
|
54
54
|
timezone = nil)
|
55
|
-
@business_name = business_name
|
56
55
|
@email = email
|
57
|
-
@external_url = external_url
|
58
56
|
@first_name = first_name
|
59
57
|
@last_name = last_name
|
58
|
+
@business_name = business_name
|
59
|
+
@external_url = external_url
|
60
60
|
@permalink = permalink
|
61
61
|
@timezone = timezone
|
62
62
|
end
|
63
63
|
|
64
64
|
# Creates an instance of the object from a hash
|
65
65
|
def self.from_hash(hash)
|
66
|
-
|
67
|
-
nil
|
68
|
-
else
|
69
|
-
# Extract variables from the hash
|
70
|
-
business_name = hash['business_name']
|
71
|
-
email = hash['email']
|
72
|
-
external_url = hash['external_url']
|
73
|
-
first_name = hash['first_name']
|
74
|
-
last_name = hash['last_name']
|
75
|
-
permalink = hash['permalink']
|
76
|
-
timezone = hash['timezone']
|
66
|
+
return nil unless hash
|
77
67
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
68
|
+
# Extract variables from the hash
|
69
|
+
email = hash['email']
|
70
|
+
first_name = hash['first_name']
|
71
|
+
last_name = hash['last_name']
|
72
|
+
business_name = hash['business_name']
|
73
|
+
external_url = hash['external_url']
|
74
|
+
permalink = hash['permalink']
|
75
|
+
timezone = hash['timezone']
|
76
|
+
|
77
|
+
# Create object from extracted values
|
78
|
+
UpdateUserByIdBody.new(email,
|
79
|
+
first_name,
|
80
|
+
last_name,
|
81
|
+
business_name,
|
82
|
+
external_url,
|
83
|
+
permalink,
|
84
|
+
timezone)
|
87
85
|
end
|
88
86
|
end
|
89
87
|
end
|
@@ -8,11 +8,11 @@ module Gonebusy
|
|
8
8
|
|
9
9
|
# A mapping from model property names to API property names
|
10
10
|
def self.names
|
11
|
-
if @
|
12
|
-
@
|
13
|
-
@
|
11
|
+
if @_hash.nil?
|
12
|
+
@_hash = {}
|
13
|
+
@_hash["user"] = "user"
|
14
14
|
end
|
15
|
-
@
|
15
|
+
@_hash
|
16
16
|
end
|
17
17
|
|
18
18
|
def initialize(user = nil)
|
@@ -21,15 +21,13 @@ module Gonebusy
|
|
21
21
|
|
22
22
|
# Creates an instance of the object from a hash
|
23
23
|
def self.from_hash(hash)
|
24
|
-
|
25
|
-
nil
|
26
|
-
else
|
27
|
-
# Extract variables from the hash
|
28
|
-
user = EntitiesUserResponse.from_hash(hash['user']) if hash['user']
|
24
|
+
return nil unless hash
|
29
25
|
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
# Extract variables from the hash
|
27
|
+
user = EntitiesUserResponse.from_hash(hash['user']) if hash['user']
|
28
|
+
|
29
|
+
# Create object from extracted values
|
30
|
+
UpdateUserByIdResponse.new(user)
|
33
31
|
end
|
34
32
|
end
|
35
33
|
end
|
data/lib/gonebusy.rb
CHANGED
@@ -20,74 +20,74 @@ require_relative 'gonebusy/http/auth/custom_auth.rb'
|
|
20
20
|
|
21
21
|
# Models
|
22
22
|
require_relative 'gonebusy/models/base_model.rb'
|
23
|
-
require_relative 'gonebusy/models/
|
24
|
-
require_relative 'gonebusy/models/
|
25
|
-
require_relative 'gonebusy/models/
|
26
|
-
require_relative 'gonebusy/models/
|
27
|
-
require_relative 'gonebusy/models/
|
28
|
-
require_relative 'gonebusy/models/
|
29
|
-
require_relative 'gonebusy/models/
|
30
|
-
require_relative 'gonebusy/models/
|
31
|
-
require_relative 'gonebusy/models/
|
23
|
+
require_relative 'gonebusy/models/update_user_by_id_body.rb'
|
24
|
+
require_relative 'gonebusy/models/update_user_by_id_response.rb'
|
25
|
+
require_relative 'gonebusy/models/create_user_body.rb'
|
26
|
+
require_relative 'gonebusy/models/update_resource_by_id_body.rb'
|
27
|
+
require_relative 'gonebusy/models/create_resource_body.rb'
|
28
|
+
require_relative 'gonebusy/models/update_pricing_model_by_id_body.rb'
|
29
|
+
require_relative 'gonebusy/models/create_pricing_model_body.rb'
|
30
|
+
require_relative 'gonebusy/models/create_category_body.rb'
|
31
|
+
require_relative 'gonebusy/models/get_user_by_id_response.rb'
|
32
|
+
require_relative 'gonebusy/models/create_user_response.rb'
|
33
|
+
require_relative 'gonebusy/models/create_schedule_time_window_body.rb'
|
34
|
+
require_relative 'gonebusy/models/update_booking_by_id_body.rb'
|
32
35
|
require_relative 'gonebusy/models/entities_schedule_response.rb'
|
33
|
-
require_relative 'gonebusy/models/entities_search_response.rb'
|
34
|
-
require_relative 'gonebusy/models/entities_user_response.rb'
|
35
|
-
require_relative 'gonebusy/models/entities_service_response.rb'
|
36
|
-
require_relative 'gonebusy/models/entities_thing_type_response.rb'
|
37
|
-
require_relative 'gonebusy/models/get_bookings_response.rb'
|
38
36
|
require_relative 'gonebusy/models/create_booking_body.rb'
|
39
|
-
require_relative 'gonebusy/models/
|
40
|
-
require_relative 'gonebusy/models/
|
41
|
-
require_relative 'gonebusy/models/
|
42
|
-
require_relative 'gonebusy/models/
|
43
|
-
require_relative 'gonebusy/models/
|
44
|
-
require_relative 'gonebusy/models/
|
45
|
-
require_relative 'gonebusy/models/
|
46
|
-
require_relative 'gonebusy/models/
|
47
|
-
require_relative 'gonebusy/models/
|
48
|
-
require_relative 'gonebusy/models/
|
49
|
-
require_relative 'gonebusy/models/
|
50
|
-
require_relative 'gonebusy/models/
|
51
|
-
require_relative 'gonebusy/models/
|
52
|
-
require_relative 'gonebusy/models/
|
53
|
-
require_relative 'gonebusy/models/
|
54
|
-
require_relative 'gonebusy/models/get_resources_response.rb'
|
55
|
-
require_relative 'gonebusy/models/create_resource_body.rb'
|
56
|
-
require_relative 'gonebusy/models/create_resource_response.rb'
|
57
|
-
require_relative 'gonebusy/models/get_resource_things_response.rb'
|
58
|
-
require_relative 'gonebusy/models/get_resource_by_id_response.rb'
|
59
|
-
require_relative 'gonebusy/models/update_resource_by_id_body.rb'
|
60
|
-
require_relative 'gonebusy/models/update_resource_by_id_response.rb'
|
61
|
-
require_relative 'gonebusy/models/delete_resource_by_id_response.rb'
|
37
|
+
require_relative 'gonebusy/models/entities_pricing_model_response.rb'
|
38
|
+
require_relative 'gonebusy/models/get_users_response.rb'
|
39
|
+
require_relative 'gonebusy/models/delete_service_by_id_response.rb'
|
40
|
+
require_relative 'gonebusy/models/update_service_by_id_response.rb'
|
41
|
+
require_relative 'gonebusy/models/get_service_by_id_response.rb'
|
42
|
+
require_relative 'gonebusy/models/get_service_available_slots_by_id_response.rb'
|
43
|
+
require_relative 'gonebusy/models/create_service_response.rb'
|
44
|
+
require_relative 'gonebusy/models/get_services_response.rb'
|
45
|
+
require_relative 'gonebusy/models/search_query_response.rb'
|
46
|
+
require_relative 'gonebusy/models/delete_schedule_time_window_by_id_response.rb'
|
47
|
+
require_relative 'gonebusy/models/update_schedule_time_window_by_id_response.rb'
|
48
|
+
require_relative 'gonebusy/models/create_schedule_time_window_response.rb'
|
49
|
+
require_relative 'gonebusy/models/delete_schedule_by_id_response.rb'
|
50
|
+
require_relative 'gonebusy/models/get_schedule_by_id_response.rb'
|
51
|
+
require_relative 'gonebusy/models/create_schedule_response.rb'
|
62
52
|
require_relative 'gonebusy/models/get_schedules_response.rb'
|
53
|
+
require_relative 'gonebusy/models/delete_resource_by_id_response.rb'
|
54
|
+
require_relative 'gonebusy/models/update_resource_by_id_response.rb'
|
55
|
+
require_relative 'gonebusy/models/get_resource_by_id_response.rb'
|
56
|
+
require_relative 'gonebusy/models/get_resource_things_response.rb'
|
57
|
+
require_relative 'gonebusy/models/create_resource_response.rb'
|
58
|
+
require_relative 'gonebusy/models/get_resources_response.rb'
|
59
|
+
require_relative 'gonebusy/models/update_pricing_model_by_id_response.rb'
|
60
|
+
require_relative 'gonebusy/models/get_pricing_model_by_id_response.rb'
|
61
|
+
require_relative 'gonebusy/models/create_pricing_model_response.rb'
|
62
|
+
require_relative 'gonebusy/models/entities_category_response.rb'
|
63
|
+
require_relative 'gonebusy/models/entities_booking_response.rb'
|
64
|
+
require_relative 'gonebusy/models/get_pricing_models_response.rb'
|
65
|
+
require_relative 'gonebusy/models/get_category_by_id_response.rb'
|
66
|
+
require_relative 'gonebusy/models/create_category_response.rb'
|
67
|
+
require_relative 'gonebusy/models/get_categories_response.rb'
|
68
|
+
require_relative 'gonebusy/models/cancel_booking_by_id_response.rb'
|
69
|
+
require_relative 'gonebusy/models/update_booking_by_id_response.rb'
|
70
|
+
require_relative 'gonebusy/models/entities_service_response.rb'
|
71
|
+
require_relative 'gonebusy/models/entities_user_response.rb'
|
72
|
+
require_relative 'gonebusy/models/get_booking_by_id_response.rb'
|
73
|
+
require_relative 'gonebusy/models/create_booking_response.rb'
|
74
|
+
require_relative 'gonebusy/models/entities_resource_response.rb'
|
75
|
+
require_relative 'gonebusy/models/entities_time_window_response.rb'
|
76
|
+
require_relative 'gonebusy/models/get_bookings_response.rb'
|
77
|
+
require_relative 'gonebusy/models/entities_thing_type_response.rb'
|
78
|
+
require_relative 'gonebusy/models/entities_search_response.rb'
|
79
|
+
require_relative 'gonebusy/models/entities_slots.rb'
|
80
|
+
require_relative 'gonebusy/models/entities_resource_availabilities.rb'
|
81
|
+
require_relative 'gonebusy/models/entities_availability_response.rb'
|
63
82
|
require_relative 'gonebusy/models/create_schedule_body.rb'
|
64
|
-
require_relative 'gonebusy/models/
|
65
|
-
require_relative 'gonebusy/models/get_schedule_by_id_response.rb'
|
66
|
-
require_relative 'gonebusy/models/delete_schedule_by_id_response.rb'
|
67
|
-
require_relative 'gonebusy/models/create_schedule_time_window_body.rb'
|
68
|
-
require_relative 'gonebusy/models/create_schedule_time_window_response.rb'
|
69
|
-
require_relative 'gonebusy/models/update_schedule_time_window_by_id_body.rb'
|
70
|
-
require_relative 'gonebusy/models/update_schedule_time_window_by_id_response.rb'
|
71
|
-
require_relative 'gonebusy/models/delete_schedule_time_window_by_id_response.rb'
|
72
|
-
require_relative 'gonebusy/models/search_query_response.rb'
|
73
|
-
require_relative 'gonebusy/models/get_services_response.rb'
|
74
|
-
require_relative 'gonebusy/models/create_service_body.rb'
|
75
|
-
require_relative 'gonebusy/models/create_service_response.rb'
|
76
|
-
require_relative 'gonebusy/models/get_service_available_slots_by_id_response.rb'
|
77
|
-
require_relative 'gonebusy/models/get_service_by_id_response.rb'
|
83
|
+
require_relative 'gonebusy/models/entities_address_entity.rb'
|
78
84
|
require_relative 'gonebusy/models/update_service_by_id_body.rb'
|
79
|
-
require_relative 'gonebusy/models/
|
80
|
-
require_relative 'gonebusy/models/
|
81
|
-
require_relative 'gonebusy/models/
|
82
|
-
require_relative 'gonebusy/models/
|
83
|
-
require_relative 'gonebusy/models/create_user_response.rb'
|
84
|
-
require_relative 'gonebusy/models/get_user_by_id_response.rb'
|
85
|
-
require_relative 'gonebusy/models/update_user_by_id_body.rb'
|
86
|
-
require_relative 'gonebusy/models/update_user_by_id_response.rb'
|
85
|
+
require_relative 'gonebusy/models/create_service_body.rb'
|
86
|
+
require_relative 'gonebusy/models/update_schedule_time_window_by_id_body.rb'
|
87
|
+
require_relative 'gonebusy/models/date_recurs_by_enum.rb'
|
88
|
+
require_relative 'gonebusy/models/occurrence_enum.rb'
|
87
89
|
require_relative 'gonebusy/models/recurs_by_enum.rb'
|
88
90
|
require_relative 'gonebusy/models/frequency_enum.rb'
|
89
|
-
require_relative 'gonebusy/models/occurrence_enum.rb'
|
90
|
-
require_relative 'gonebusy/models/date_recurs_by_enum.rb'
|
91
91
|
require_relative 'gonebusy/models/gender_enum.rb'
|
92
92
|
|
93
93
|
# Exceptions
|
@@ -98,11 +98,11 @@ require_relative 'gonebusy/configuration.rb'
|
|
98
98
|
|
99
99
|
# Controllers
|
100
100
|
require_relative 'gonebusy/controllers/base_controller.rb'
|
101
|
-
require_relative 'gonebusy/controllers/bookings_controller.rb'
|
102
|
-
require_relative 'gonebusy/controllers/categories_controller.rb'
|
103
|
-
require_relative 'gonebusy/controllers/pricing_models_controller.rb'
|
104
|
-
require_relative 'gonebusy/controllers/resources_controller.rb'
|
105
101
|
require_relative 'gonebusy/controllers/schedules_controller.rb'
|
106
|
-
require_relative 'gonebusy/controllers/search_controller.rb'
|
107
|
-
require_relative 'gonebusy/controllers/services_controller.rb'
|
108
102
|
require_relative 'gonebusy/controllers/users_controller.rb'
|
103
|
+
require_relative 'gonebusy/controllers/services_controller.rb'
|
104
|
+
require_relative 'gonebusy/controllers/resources_controller.rb'
|
105
|
+
require_relative 'gonebusy/controllers/search_controller.rb'
|
106
|
+
require_relative 'gonebusy/controllers/pricing_models_controller.rb'
|
107
|
+
require_relative 'gonebusy/controllers/categories_controller.rb'
|
108
|
+
require_relative 'gonebusy/controllers/bookings_controller.rb'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gonebusy-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Agranov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logging
|
@@ -114,7 +114,6 @@ files:
|
|
114
114
|
- lib/gonebusy/controllers/users_controller.rb
|
115
115
|
- lib/gonebusy/exceptions/api_exception.rb
|
116
116
|
- lib/gonebusy/exceptions/entities_error_error_exception.rb
|
117
|
-
- lib/gonebusy/exceptions/entities_error_exception.rb
|
118
117
|
- lib/gonebusy/gonebusy_client.rb
|
119
118
|
- lib/gonebusy/http/auth/custom_auth.rb
|
120
119
|
- lib/gonebusy/http/faraday_client.rb
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# This file was automatically generated for GoneBusy Inc. by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
-
|
3
|
-
module Gonebusy
|
4
|
-
class EntitiesErrorException < APIException
|
5
|
-
# description of error
|
6
|
-
# @return [String]
|
7
|
-
attr_accessor :message
|
8
|
-
|
9
|
-
# The constructor.
|
10
|
-
# @param [String] The reason for raising an exception
|
11
|
-
# @param [HttpContext] The HttpContext of the API call.
|
12
|
-
def initialize(reason, context)
|
13
|
-
super(reason, context)
|
14
|
-
begin
|
15
|
-
hash = APIHelper.json_deserialize(@context.response.raw_body)
|
16
|
-
unbox(hash)
|
17
|
-
rescue TypeError
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
# Populates this object by extracting properties from a hash.
|
22
|
-
# @param [Hash] The deserialized response sent by the server in the response body.
|
23
|
-
def unbox(hash)
|
24
|
-
@message = hash["message"]
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|