whmcsor 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52c90daef743f65b7db99fcf29dda73557970540
4
- data.tar.gz: e9c0a6cf38dd6d1f99cff6c3b4eb3d2068f4643f
3
+ metadata.gz: 8d687e56ec050872464b90c2936ba93316300c18
4
+ data.tar.gz: c2dae9440535d9205163ab8211a19a9b28262ee1
5
5
  SHA512:
6
- metadata.gz: f5dfcb327f57a055e5686680b58a29a4e6adad63019c7b12470b7ed6d15221cc6864aff9401b254a491e0ee894aa12aec45658c6e9f09044bf5577393609616d
7
- data.tar.gz: a67ac5475c4ca7714acbbfa38581f7b2eb99d2a0b8dbe34c308e761dfcf106e8b8c018f9af16a6afa7f73c9c40c431cc869363fc20a53a79758b81753ab8df41
6
+ metadata.gz: 0ca6fa900720fca4e0a2cf4bc91f427e8b51f3ef728e9c9f23113af75191e79d9f9b25afd0dc061942b0d7987b05bf4096c14d442ac492773cbc63376045faa9
7
+ data.tar.gz: a6cf5b17734615c33864de7fbb2549b6693c6f8ccc9a59da483cbadb8a2d70153d3803dc32d710fb2933287d146833cdbfb3bc9ecee196ac8b213b7e87b6e7b9
@@ -1,7 +1,6 @@
1
1
  module Whmcsor
2
2
  # Provides WHMCS client API integration
3
3
  class Client < Base
4
-
5
4
  # Public - Add client
6
5
  #
7
6
  # params - Hash parameters:
@@ -94,7 +93,7 @@ module Whmcsor
94
93
  #
95
94
  # Returns Hash
96
95
  def get_client_details(params = {})
97
- params.merge!( action: 'getclientsdetails')
96
+ params.merge!(action: 'getclientsdetails')
98
97
  send_request(params)
99
98
  end
100
99
 
@@ -111,11 +110,10 @@ module Whmcsor
111
110
  #
112
111
  # Returns Hash
113
112
  def delete_client(params = {})
114
- params.merge!( action: 'deleteclient' )
113
+ params.merge!(action: 'deleteclient')
115
114
  send_request(params)
116
115
  end
117
116
 
118
-
119
117
  # Public - Close a client account, terminates all products and canceles all
120
118
  # invoices.
121
119
  #
@@ -124,7 +122,7 @@ module Whmcsor
124
122
  #
125
123
  # Returns Hash
126
124
  def close_client(params = {})
127
- params.merge!( action: 'closeclient')
125
+ params.merge!(action: 'closeclient')
128
126
  send_request(params)
129
127
  end
130
128
 
@@ -143,7 +141,7 @@ module Whmcsor
143
141
  #
144
142
  # Returns Hash
145
143
  def get_quotes(params = {})
146
- params.merge!( action: 'getquotes' )
144
+ params.merge!(action: 'getquotes')
147
145
  send_request(params)
148
146
  end
149
147
 
@@ -170,9 +168,9 @@ module Whmcsor
170
168
  # productemails - set true to receive product related emails
171
169
  # domainemails - set true to receive domain related emails
172
170
  # invoiceemails - set true to receive billing related emails
173
- # supportemails - set true to receive support ticket related emails
171
+ # supportemails - set true receive support ticket related email
174
172
  # Returns Hash
175
- def add_contact(params = {} )
173
+ def add_contact(params = {})
176
174
  params.merge!(action: 'addcontact')
177
175
  send_requst(params)
178
176
  end
@@ -1,7 +1,6 @@
1
1
  module Whmcsor
2
2
  # Configuration class for Whmcsor
3
3
  class Config
4
-
5
4
  # Public: A Hash that stores configuration info.
6
5
  attr_accessor :config
7
6
 
@@ -98,6 +97,5 @@ module Whmcsor
98
97
  def user_agent(value)
99
98
  @config[:user_agent] = value
100
99
  end
101
-
102
100
  end
103
101
  end
@@ -1,7 +1,6 @@
1
1
  module Whmcsor
2
2
  # WHMCS API Orders class
3
3
  class Orders < Base
4
-
5
4
  # Public - Add new order trough WHMCS API
6
5
  #
7
6
  # params - Hash parameters
@@ -114,6 +113,5 @@ module Whmcsor
114
113
  params.merge!(action: 'deleteorder')
115
114
  send_request(params)
116
115
  end
117
-
118
116
  end
119
117
  end
@@ -1,3 +1,3 @@
1
1
  module Whmcsor
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whmcsor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - v0x.Osho