nimbu-api 0.4.2 → 0.5.0

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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +13 -0
  3. data/README.md +25 -17
  4. data/lib/nimbu-api/client.rb +49 -26
  5. data/lib/nimbu-api/connection.rb +29 -31
  6. data/lib/nimbu-api/endpoint.rb +43 -44
  7. data/lib/nimbu-api/endpoints/activities.rb +3 -4
  8. data/lib/nimbu-api/endpoints/authorizations.rb +16 -23
  9. data/lib/nimbu-api/endpoints/blogs/articles.rb +60 -0
  10. data/lib/nimbu-api/endpoints/blogs.rb +48 -0
  11. data/lib/nimbu-api/endpoints/channels/entries.rb +19 -20
  12. data/lib/nimbu-api/endpoints/channels.rb +11 -13
  13. data/lib/nimbu-api/endpoints/collections.rb +10 -10
  14. data/lib/nimbu-api/endpoints/coupons.rb +10 -10
  15. data/lib/nimbu-api/endpoints/customers.rb +14 -14
  16. data/lib/nimbu-api/endpoints/devices.rb +11 -11
  17. data/lib/nimbu-api/endpoints/functions.rb +3 -4
  18. data/lib/nimbu-api/endpoints/jobs.rb +3 -4
  19. data/lib/nimbu-api/endpoints/login.rb +4 -7
  20. data/lib/nimbu-api/endpoints/menus.rb +48 -0
  21. data/lib/nimbu-api/endpoints/orders.rb +6 -6
  22. data/lib/nimbu-api/endpoints/pages.rb +50 -0
  23. data/lib/nimbu-api/endpoints/products.rb +16 -16
  24. data/lib/nimbu-api/endpoints/redirects.rb +50 -0
  25. data/lib/nimbu-api/endpoints/roles.rb +10 -10
  26. data/lib/nimbu-api/endpoints/simulator.rb +3 -4
  27. data/lib/nimbu-api/endpoints/sites.rb +7 -9
  28. data/lib/nimbu-api/endpoints/themes/assets.rb +9 -10
  29. data/lib/nimbu-api/endpoints/themes/layouts.rb +7 -8
  30. data/lib/nimbu-api/endpoints/themes/snippets.rb +6 -8
  31. data/lib/nimbu-api/endpoints/themes/templates.rb +6 -8
  32. data/lib/nimbu-api/endpoints/themes.rb +14 -16
  33. data/lib/nimbu-api/endpoints/translations.rb +10 -10
  34. data/lib/nimbu-api/endpoints/uploads.rb +50 -0
  35. data/lib/nimbu-api/endpoints/users.rb +21 -0
  36. data/lib/nimbu-api/endpoints/videos.rb +6 -8
  37. data/lib/nimbu-api/endpoints/webhooks.rb +8 -8
  38. data/lib/nimbu-api/file.rb +13 -0
  39. data/lib/nimbu-api/request.rb +1 -1
  40. data/lib/nimbu-api/version.rb +3 -1
  41. data/lib/nimbu-api.rb +46 -37
  42. data/nimbu-api.gemspec +25 -16
  43. metadata +82 -18
@@ -0,0 +1,60 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ module Nimbu
5
+ module Endpoints
6
+ class Blogs::Articles < Endpoint
7
+ def list(*args, &block)
8
+ arguments(args, required: [:blog_id])
9
+
10
+ response = get_request("/blogs/#{blog_id}/articles", arguments.params)
11
+
12
+ if block_given?
13
+ response.each(&block)
14
+ else
15
+ response
16
+ end
17
+ end
18
+ alias_method :all, :list
19
+
20
+ def first(*args)
21
+ arguments(args, required: [:blog_id])
22
+
23
+ get_request("/blogs/#{blog_id}/articles", arguments.params.merge(limit: 1)).first
24
+ end
25
+
26
+ def count(*args)
27
+ arguments(args, required: [:blog_id])
28
+
29
+ get_request("/blogs/#{blog_id}/articles/count", arguments.params)
30
+ end
31
+
32
+ def get(*args)
33
+ arguments(args, required: [:blog_id, :article_id])
34
+
35
+ get_request("/blogs/#{blog_id}/articles/#{article_id}", arguments.params)
36
+ end
37
+ alias_method :find, :get
38
+
39
+ def create(*args)
40
+ arguments(args, required: [:blog_id])
41
+
42
+ post_request("/blogs/#{blog_id}/articles", arguments.params, with_attachments: true)
43
+ end
44
+
45
+ def update(*args)
46
+ arguments(args, required: [:blog_id, :article_id])
47
+
48
+ patch_request("/blogs/#{blog_id}/articles/#{article_id}", arguments.params, with_attachments: true)
49
+ end
50
+ alias_method :edit, :update
51
+
52
+ def delete(*args)
53
+ arguments(args, required: [:blog_id, :article_id])
54
+
55
+ delete_request("/blogs/#{blog_id}/articles/#{article_id}", arguments.params)
56
+ end
57
+ alias_method :remove, :delete
58
+ end # Blog::Articles
59
+ end # Endpoints
60
+ end # Nimbu
@@ -0,0 +1,48 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ module Nimbu
5
+ module Endpoints
6
+ class Blogs < Endpoint
7
+ def articles(options = {}, &block)
8
+ Nimbu::Builder.new("Blogs::Articles", current_options.merge(options), &block)
9
+ end
10
+
11
+ def list(*args, &block)
12
+ arguments(args)
13
+
14
+ response = get_request("/blogs", arguments.params)
15
+ return response unless block_given?
16
+ response.each(&block)
17
+ end
18
+ alias_method :all, :list
19
+
20
+ def get(*args)
21
+ arguments(args, required: [:blog_id])
22
+
23
+ get_request("/blogs/#{blog_id}", arguments.params)
24
+ end
25
+ alias_method :find, :get
26
+
27
+ def create(*args)
28
+ arguments(args)
29
+
30
+ post_request("/blogs", arguments.params)
31
+ end
32
+
33
+ def update(*args)
34
+ arguments(args, required: [:blog_id])
35
+
36
+ patch_request("/blogs/#{blog_id}", arguments.params)
37
+ end
38
+ alias_method :edit, :update
39
+
40
+ def delete(*args)
41
+ arguments(args, required: [:blog_id])
42
+
43
+ delete_request("/blogs/#{blog_id}", arguments.params)
44
+ end
45
+ alias_method :remove, :delete
46
+ end # Blogs
47
+ end # Endpoints
48
+ end # Nimbu
@@ -1,68 +1,67 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Channels::Entries < Endpoint
6
-
7
- def list(*args)
8
- arguments(args, :required => [:channel_id])
7
+ def list(*args, &block)
8
+ arguments(args, required: [:channel_id])
9
9
 
10
10
  response = get_request("/channels/#{channel_id}/entries", arguments.params)
11
11
 
12
12
  if block_given?
13
- response.each { |el| yield el }
13
+ response.each(&block)
14
14
  else
15
- return response
15
+ response
16
16
  end
17
17
  end
18
- alias :all :list
18
+ alias_method :all, :list
19
19
 
20
20
  def first(*args)
21
- arguments(args, :required => [:channel_id])
21
+ arguments(args, required: [:channel_id])
22
22
 
23
23
  get_request("/channels/#{channel_id}/entries", arguments.params.merge(limit: 1)).first
24
24
  end
25
25
 
26
26
  def list_deleted(*args)
27
- arguments(args, :required => [:channel_id])
27
+ arguments(args, required: [:channel_id])
28
28
 
29
29
  get_request("/channels/#{channel_id}/entries/deleted", arguments.params)
30
30
  end
31
- alias :list_removed :list_deleted
31
+ alias_method :list_removed, :list_deleted
32
32
 
33
33
  def count(*args)
34
- arguments(args, :required => [:channel_id])
34
+ arguments(args, required: [:channel_id])
35
35
 
36
36
  get_request("/channels/#{channel_id}/entries/count", arguments.params)
37
37
  end
38
38
 
39
39
  def get(*args)
40
- arguments(args, :required => [:channel_id, :entry_id])
40
+ arguments(args, required: [:channel_id, :entry_id])
41
41
 
42
42
  get_request("/channels/#{channel_id}/entries/#{entry_id}", arguments.params)
43
43
  end
44
- alias :find :get
44
+ alias_method :find, :get
45
45
 
46
46
  def create(*args)
47
- arguments(args, :required => [:channel_id])
47
+ arguments(args, required: [:channel_id])
48
48
 
49
- post_request("/channels/#{channel_id}/entries", arguments.params, :with_attachments => true)
49
+ post_request("/channels/#{channel_id}/entries", arguments.params, with_attachments: true)
50
50
  end
51
51
 
52
52
  def update(*args)
53
- arguments(args, :required => [:channel_id, :entry_id])
53
+ arguments(args, required: [:channel_id, :entry_id])
54
54
 
55
- patch_request("/channels/#{channel_id}/entries/#{entry_id}", arguments.params, :with_attachments => true)
55
+ patch_request("/channels/#{channel_id}/entries/#{entry_id}", arguments.params, with_attachments: true)
56
56
  end
57
- alias :edit :update
57
+ alias_method :edit, :update
58
58
 
59
59
  def delete(*args)
60
- arguments(args, :required => [:channel_id, :entry_id])
60
+ arguments(args, required: [:channel_id, :entry_id])
61
61
 
62
62
  delete_request("/channels/#{channel_id}/entries/#{entry_id}", arguments.params)
63
63
  end
64
- alias :remove :delete
65
-
64
+ alias_method :remove, :delete
66
65
  end # Channel::Entries
67
66
  end # Endpoints
68
67
  end # Nimbu
@@ -1,22 +1,21 @@
1
1
  # encoding: utf-8
2
-
2
+ # frozen_string_literal: true
3
3
 
4
4
  module Nimbu
5
5
  module Endpoints
6
6
  class Channels < Endpoint
7
-
8
- def entries(options={}, &block)
9
- Nimbu::Builder.new('Channels::Entries', current_options.merge(options), &block)
7
+ def entries(options = {}, &block)
8
+ Nimbu::Builder.new("Channels::Entries", current_options.merge(options), &block)
10
9
  end
11
10
 
12
- def list(*args)
11
+ def list(*args, &block)
13
12
  arguments(args)
14
13
 
15
14
  response = get_request("/channels", arguments.params)
16
15
  return response unless block_given?
17
- response.each { |el| yield el }
16
+ response.each(&block)
18
17
  end
19
- alias :all :list
18
+ alias_method :all, :list
20
19
 
21
20
  def first(*args)
22
21
  arguments(args)
@@ -25,30 +24,29 @@ module Nimbu
25
24
  end
26
25
 
27
26
  def get(*args)
28
- arguments(args, :required => [:channel_id])
27
+ arguments(args, required: [:channel_id])
29
28
 
30
29
  get_request("/channels/#{channel_id}", arguments.params)
31
30
  end
32
- alias :find :get
31
+ alias_method :find, :get
33
32
 
34
33
  def webhooks(*args)
35
- arguments(args, :required => [:channel_id])
34
+ arguments(args, required: [:channel_id])
36
35
 
37
36
  get_request("/channels/#{channel_id}/webhooks", arguments.params)
38
37
  end
39
38
 
40
39
  def add_webhook(*args)
41
- arguments(args, :required => [:channel_id])
40
+ arguments(args, required: [:channel_id])
42
41
 
43
42
  post_request("/channels/#{channel_id}/webhooks", arguments.params)
44
43
  end
45
44
 
46
45
  def poll_webhook(*args)
47
- arguments(args, :required => [:channel_id])
46
+ arguments(args, required: [:channel_id])
48
47
 
49
48
  post_request("/channels/#{channel_id}/webhooks/poll", arguments.params)
50
49
  end
51
-
52
50
  end # Authorizations
53
51
  end # Endpoints
54
52
  end # Nimbu
@@ -1,23 +1,24 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Collections < Endpoint
6
- def list(*args)
7
+ def list(*args, &block)
7
8
  arguments(args)
8
9
 
9
10
  response = get_request("/collections", arguments.params)
10
11
  return response unless block_given?
11
- response.each { |el| yield el }
12
+ response.each(&block)
12
13
  end
13
- alias :all :list
14
+ alias_method :all, :list
14
15
 
15
16
  def get(*args)
16
- arguments(args, :required => [:collection_id])
17
+ arguments(args, required: [:collection_id])
17
18
 
18
19
  get_request("/collections/#{collection_id}", arguments.params)
19
20
  end
20
- alias :find :get
21
+ alias_method :find, :get
21
22
 
22
23
  def create(*args)
23
24
  arguments(args)
@@ -26,19 +27,18 @@ module Nimbu
26
27
  end
27
28
 
28
29
  def update(*args)
29
- arguments(args, :required => [:collection_id])
30
+ arguments(args, required: [:collection_id])
30
31
 
31
32
  patch_request("/collections/#{collection_id}", arguments.params)
32
33
  end
33
- alias :edit :update
34
+ alias_method :edit, :update
34
35
 
35
36
  def delete(*args)
36
- arguments(args, :required => [:collection_id])
37
+ arguments(args, required: [:collection_id])
37
38
 
38
39
  delete_request("/collections/#{collection_id}", arguments.params)
39
40
  end
40
- alias :remove :delete
41
-
41
+ alias_method :remove, :delete
42
42
  end # Products
43
43
  end # Endpoints
44
44
  end # Nimbu
@@ -1,16 +1,17 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Coupons < Endpoint
6
- def list(*args)
7
+ def list(*args, &block)
7
8
  arguments(args)
8
9
 
9
10
  response = get_request("/coupons", arguments.params)
10
11
  return response unless block_given?
11
- response.each { |el| yield el }
12
+ response.each(&block)
12
13
  end
13
- alias :all :list
14
+ alias_method :all, :list
14
15
 
15
16
  def count(*args)
16
17
  arguments(args)
@@ -19,11 +20,11 @@ module Nimbu
19
20
  end
20
21
 
21
22
  def get(*args)
22
- arguments(args, :required => [:coupon_id])
23
+ arguments(args, required: [:coupon_id])
23
24
 
24
25
  get_request("/coupons/#{coupon_id}", arguments.params)
25
26
  end
26
- alias :find :get
27
+ alias_method :find, :get
27
28
 
28
29
  def create(*args)
29
30
  arguments(args)
@@ -32,19 +33,18 @@ module Nimbu
32
33
  end
33
34
 
34
35
  def update(*args)
35
- arguments(args, :required => [:coupon_id])
36
+ arguments(args, required: [:coupon_id])
36
37
 
37
38
  patch_request("/coupons/#{coupon_id}", arguments.params)
38
39
  end
39
- alias :edit :update
40
+ alias_method :edit, :update
40
41
 
41
42
  def delete(*args)
42
- arguments(args, :required => [:coupon_id])
43
+ arguments(args, required: [:coupon_id])
43
44
 
44
45
  delete_request("/coupons/#{coupon_id}", arguments.params)
45
46
  end
46
- alias :remove :delete
47
-
47
+ alias_method :remove, :delete
48
48
  end # Products
49
49
  end # Endpoints
50
50
  end # Nimbu
@@ -1,26 +1,27 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Customers < Endpoint
6
- def list(*args)
7
+ def list(*args, &block)
7
8
  arguments(args)
8
9
 
9
10
  response = get_request("/customers", arguments.params)
10
11
  return response unless block_given?
11
- response.each { |el| yield el }
12
+ response.each(&block)
12
13
  end
13
- alias :all :list
14
+ alias_method :all, :list
14
15
 
15
- def customizations(*args)
16
+ def customizations(*args, &block)
16
17
  arguments(args)
17
18
 
18
19
  response = get_request("/products/customizations", arguments.params)
19
20
  return response unless block_given?
20
- response.each { |el| yield el }
21
+ response.each(&block)
21
22
  end
22
- alias :fields :customizations
23
- alias :custom_fields :customizations
23
+ alias_method :fields, :customizations
24
+ alias_method :custom_fields, :customizations
24
25
 
25
26
  def count(*args)
26
27
  arguments(args)
@@ -29,11 +30,11 @@ module Nimbu
29
30
  end
30
31
 
31
32
  def get(*args)
32
- arguments(args, :required => [:customer_id])
33
+ arguments(args, required: [:customer_id])
33
34
 
34
35
  get_request("/customers/#{customer_id}", arguments.params)
35
36
  end
36
- alias :find :get
37
+ alias_method :find, :get
37
38
 
38
39
  def create(*args)
39
40
  arguments(args)
@@ -42,19 +43,18 @@ module Nimbu
42
43
  end
43
44
 
44
45
  def update(*args)
45
- arguments(args, :required => [:customer_id])
46
+ arguments(args, required: [:customer_id])
46
47
 
47
48
  patch_request("/customers/#{customer_id}", arguments.params)
48
49
  end
49
- alias :edit :update
50
+ alias_method :edit, :update
50
51
 
51
52
  def delete(*args)
52
- arguments(args, :required => [:customer_id])
53
+ arguments(args, required: [:customer_id])
53
54
 
54
55
  delete_request("/customers/#{customer_id}", arguments.params)
55
56
  end
56
- alias :remove :delete
57
-
57
+ alias_method :remove, :delete
58
58
  end # Customers
59
59
  end # Endpoints
60
60
  end # Nimbu
@@ -1,16 +1,17 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Devices < Endpoint
6
- def list(*args)
7
+ def list(*args, &block)
7
8
  arguments(args)
8
9
 
9
10
  response = get_request("/devices", arguments.params)
10
11
  return response unless block_given?
11
- response.each { |el| yield el }
12
+ response.each(&block)
12
13
  end
13
- alias :all :list
14
+ alias_method :all, :list
14
15
 
15
16
  def count(*args)
16
17
  arguments(args)
@@ -19,11 +20,11 @@ module Nimbu
19
20
  end
20
21
 
21
22
  def get(*args)
22
- arguments(args, :required => [:device_id])
23
+ arguments(args, required: [:device_id])
23
24
 
24
25
  get_request("/devices/#{device_id}", arguments.params)
25
26
  end
26
- alias :find :get
27
+ alias_method :find, :get
27
28
 
28
29
  def create(*args)
29
30
  arguments(args)
@@ -32,18 +33,18 @@ module Nimbu
32
33
  end
33
34
 
34
35
  def update(*args)
35
- arguments(args, :required => [:device_id])
36
+ arguments(args, required: [:device_id])
36
37
 
37
38
  patch_request("/devices/#{device_id}", arguments.params)
38
39
  end
39
- alias :edit :update
40
+ alias_method :edit, :update
40
41
 
41
42
  def delete(*args)
42
- arguments(args, :required => [:device_id])
43
+ arguments(args, required: [:device_id])
43
44
 
44
45
  delete_request("/devices/#{device_id}", arguments.params)
45
46
  end
46
- alias :remove :delete
47
+ alias_method :remove, :delete
47
48
 
48
49
  def push(*args)
49
50
  arguments(args)
@@ -53,8 +54,7 @@ module Nimbu
53
54
 
54
55
  post_request("/devices/push", data, params: query_params)
55
56
  end
56
- alias :message :push
57
-
57
+ alias_method :message, :push
58
58
  end # Devices
59
59
  end # Endpoints
60
60
  end # Nimbu
@@ -1,16 +1,15 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Functions < Endpoint
6
-
7
7
  def run(*args)
8
- arguments(args, :required => [:function_id])
8
+ arguments(args, required: [:function_id])
9
9
 
10
10
  post_request("/functions/#{function_id}", arguments.params)
11
- return response
11
+ response
12
12
  end
13
-
14
13
  end # Simulator
15
14
  end # Endpoints
16
15
  end # Nimbu
@@ -1,16 +1,15 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Jobs < Endpoint
6
-
7
7
  def schedule(*args)
8
- arguments(args, :required => [:job_id])
8
+ arguments(args, required: [:job_id])
9
9
 
10
10
  post_request("/jobs/#{job_id}", arguments.params)
11
- return response
11
+ response
12
12
  end
13
-
14
13
  end # Simulator
15
14
  end # Endpoints
16
15
  end # Nimbu
@@ -1,10 +1,10 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Login < Endpoint
6
-
7
- def initialize(options={}, &block)
7
+ def initialize(options = {}, &block)
8
8
  super
9
9
 
10
10
  require_authentication
@@ -13,14 +13,11 @@ module Nimbu
13
13
  @response = post_request("/auth/login")
14
14
  end
15
15
 
16
- def response
17
- @response
18
- end
16
+ attr_reader :response
19
17
 
20
18
  def require_authentication
21
- raise ArgumentError, 'A username and password is required in order to login' unless authenticated?
19
+ raise ArgumentError, "A username and password is required in order to login" unless authenticated?
22
20
  end
23
-
24
21
  end # Authorizations
25
22
  end # Endpoints
26
23
  end # Nimbu
@@ -0,0 +1,48 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ module Nimbu
5
+ module Endpoints
6
+ class Menus < Endpoint
7
+ def list(*args, &block)
8
+ arguments(args)
9
+
10
+ response = get_request("/menus", arguments.params)
11
+ return response unless block_given?
12
+ response.each(&block)
13
+ end
14
+ alias_method :all, :list
15
+
16
+ def count(*args)
17
+ get_request("/menus/count", arguments.params)
18
+ end
19
+
20
+ def get(*args)
21
+ arguments(args, required: [:menu_id])
22
+
23
+ get_request("/menus/#{menu_id}", arguments.params)
24
+ end
25
+ alias_method :find, :get
26
+
27
+ def create(*args)
28
+ arguments(args)
29
+
30
+ post_request("/menus", arguments.params)
31
+ end
32
+
33
+ def update(*args)
34
+ arguments(args, required: [:menu_id])
35
+
36
+ patch_request("/menus/#{menu_id}", arguments.params)
37
+ end
38
+ alias_method :edit, :update
39
+
40
+ def delete(*args)
41
+ arguments(args, required: [:menu_id])
42
+
43
+ delete_request("/menus/#{menu_id}", arguments.params)
44
+ end
45
+ alias_method :remove, :delete
46
+ end # Menus
47
+ end # Endpoints
48
+ end # Nimbu
@@ -1,30 +1,30 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Orders < Endpoint
6
- def list(*args)
7
+ def list(*args, &block)
7
8
  arguments(args)
8
9
 
9
10
  response = get_request("/orders", arguments.params)
10
11
  return response unless block_given?
11
- response.each { |el| yield el }
12
+ response.each(&block)
12
13
  end
13
- alias :all :list
14
+ alias_method :all, :list
14
15
 
15
16
  def get(*args)
16
- arguments(args, :required => [:order_id])
17
+ arguments(args, required: [:order_id])
17
18
 
18
19
  get_request("/orders/#{order_id}", arguments.params)
19
20
  end
20
- alias :find :get
21
+ alias_method :find, :get
21
22
 
22
23
  def count(*args)
23
24
  arguments(args)
24
25
 
25
26
  get_request("/orders/count", arguments.params)
26
27
  end
27
-
28
28
  end # Orders
29
29
  end # Endpoints
30
30
  end # Nimbu