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 +4 -4
- data/lib/whmcsor/client.rb +6 -8
- data/lib/whmcsor/config.rb +0 -2
- data/lib/whmcsor/orders.rb +0 -2
- data/lib/whmcsor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d687e56ec050872464b90c2936ba93316300c18
|
4
|
+
data.tar.gz: c2dae9440535d9205163ab8211a19a9b28262ee1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ca6fa900720fca4e0a2cf4bc91f427e8b51f3ef728e9c9f23113af75191e79d9f9b25afd0dc061942b0d7987b05bf4096c14d442ac492773cbc63376045faa9
|
7
|
+
data.tar.gz: a6cf5b17734615c33864de7fbb2549b6693c6f8ccc9a59da483cbadb8a2d70153d3803dc32d710fb2933287d146833cdbfb3bc9ecee196ac8b213b7e87b6e7b9
|
data/lib/whmcsor/client.rb
CHANGED
@@ -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!(
|
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!(
|
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!(
|
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!(
|
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
|
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
|
data/lib/whmcsor/config.rb
CHANGED
@@ -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
|
data/lib/whmcsor/orders.rb
CHANGED
@@ -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
|
data/lib/whmcsor/version.rb
CHANGED