invoicexpress 0.1.2 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +23 -1
- data/README.md +2 -266
- data/lib/faraday/response/parse_xml.rb +1 -1
- data/lib/invoicexpress/client/cash_invoices.rb +0 -13
- data/lib/invoicexpress/client/invoices.rb +8 -2
- data/lib/invoicexpress/configuration.rb +2 -2
- data/lib/invoicexpress/models/client.rb +2 -0
- data/lib/invoicexpress/models/invoice.rb +4 -0
- data/lib/invoicexpress/version.rb +1 -1
- data/spec/fixtures/clients.create.xml +1 -0
- data/spec/fixtures/clients.list.xml +1 -0
- data/spec/helper.rb +1 -1
- data/spec/invoicexpress/client/clients_spec.rb +4 -1
- data/spec/invoicexpress/client/invoices_spec.rb +3 -3
- data/spec/invoicexpress/client_spec.rb +5 -5
- metadata +45 -9
- checksums.yaml +0 -7
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,30 @@
|
|
1
|
+
#Version 0.1.8
|
2
|
+
Added city field to client.
|
3
|
+
|
4
|
+
# Version 0.1.7
|
5
|
+
Fix issue #7 - Wrong return type of Modes::Item#tax
|
6
|
+
Added Travis
|
7
|
+
|
8
|
+
# Version 0.1.6.1
|
9
|
+
Renamed the invoice_email method to email_invoice for sending email. Extracted examples to own file.
|
10
|
+
|
11
|
+
# Version 0.1.6
|
12
|
+
Fixed url for send email. New url: http://invoicexpress.com/api/invoices/email-invoice
|
13
|
+
|
14
|
+
# Version 0.1.5
|
15
|
+
Added rate to invoice. Experimental.
|
16
|
+
|
17
|
+
# Version 0.1.4.1
|
18
|
+
Added language field to client. API endpoint now defaults to https://%s.app.invoicexpress.com/
|
19
|
+
|
20
|
+
# Version 0.1.3
|
21
|
+
Removed "rquire 'pry'". Fixed it for production.
|
22
|
+
|
1
23
|
# Version 0.1.2
|
2
24
|
Corrected information in gem.
|
3
25
|
|
4
26
|
# Version 0.1.1
|
5
|
-
Fixed bug with latest version of Faraday (
|
27
|
+
Fixed bug with latest version of Faraday (>0.9.0) which prevented creating a new client.
|
6
28
|
|
7
29
|
# Version 0.1.0
|
8
30
|
Release!
|
data/README.md
CHANGED
@@ -49,6 +49,7 @@ We've included docs for all methods. Refer to the doc folder and client section.
|
|
49
49
|
## Examples
|
50
50
|
|
51
51
|
If using from inside a rails project use:
|
52
|
+
|
52
53
|
require 'invoicexpress'
|
53
54
|
|
54
55
|
client = Invoicexpress::Client.new(
|
@@ -56,270 +57,5 @@ If using from inside a rails project use:
|
|
56
57
|
:api_key => "yourapikey"
|
57
58
|
)
|
58
59
|
|
59
|
-
|
60
|
-
|
61
|
-
### Simplified Invoices
|
62
|
-
|
63
|
-
simple_invoices = @client.simplified_invoices
|
64
|
-
puts simple_invoices
|
65
|
-
|
66
|
-
invoice = Invoicexpress::Models::SimplifiedInvoice.new(
|
67
|
-
:date => Date.new(2013, 6, 16),
|
68
|
-
:due_date => Date.new(2013, 6, 16),
|
69
|
-
:tax_exemption => "M01",
|
70
|
-
:observations=> 'new',
|
71
|
-
:client => Invoicexpress::Models::Client.new(
|
72
|
-
:name => "Pedro Sousa",
|
73
|
-
:email=> 'psousa@thinkorange.pt'
|
74
|
-
),
|
75
|
-
:items => [
|
76
|
-
Invoicexpress::Models::Item.new(
|
77
|
-
:name => "Item 6",
|
78
|
-
:unit_price => 120,
|
79
|
-
:quantity => 2,
|
80
|
-
:unit => "unit",
|
81
|
-
),
|
82
|
-
Invoicexpress::Models::Item.new(
|
83
|
-
:name => "Item AM",
|
84
|
-
:unit_price => 50,
|
85
|
-
:quantity => 1,
|
86
|
-
:unit => "unit",
|
87
|
-
)
|
88
|
-
]
|
89
|
-
)
|
90
|
-
simple_invoice = @client.create_simplified_invoice(invoice)
|
91
|
-
simple_invoice = @client.simplified_invoice(1425061)
|
92
|
-
simple_invoice.tax_exemption="M02"
|
93
|
-
@client.update_simplified_invoice(simple_invoice)
|
94
|
-
state = Invoicexpress::Models::InvoiceState.new(
|
95
|
-
:state => "finalized"
|
96
|
-
)
|
97
|
-
@client.update_simplified_invoice_state(simple_invoice.id, state)
|
98
|
-
|
99
|
-
### Credit Notes
|
100
|
-
|
101
|
-
credit_notes = @client.credit_notes
|
102
|
-
puts credit_notes
|
103
|
-
|
104
|
-
cnote = Invoicexpress::Models::CreditNote.new(
|
105
|
-
:date => Date.new(2013, 6, 11),
|
106
|
-
:due_date => Date.new(2013, 6, 11),
|
107
|
-
:tax_exemption => "M01",
|
108
|
-
:client => Invoicexpress::Models::Client.new(
|
109
|
-
:name => "Pedro Sousa",
|
110
|
-
:email=> 'psousa@thinkorange.pt'
|
111
|
-
),
|
112
|
-
:items => [
|
113
|
-
Invoicexpress::Models::Item.new(
|
114
|
-
:name => "Item 1",
|
115
|
-
:unit_price => 60,
|
116
|
-
:quantity => 2,
|
117
|
-
:unit => "unit",
|
118
|
-
),
|
119
|
-
Invoicexpress::Models::Item.new(
|
120
|
-
:name => "Item 2",
|
121
|
-
:unit_price => 50,
|
122
|
-
:quantity => 1,
|
123
|
-
:unit => "unit",
|
124
|
-
)
|
125
|
-
]
|
126
|
-
)
|
127
|
-
cnote = @client.create_credit_note(cnote)
|
128
|
-
cnote_load = @client.credit_note(cnote.id)
|
129
|
-
cnote_load.tax_exemption="M02"
|
130
|
-
@client.update_credit_note(cnote_load)
|
131
|
-
state = Invoicexpress::Models::InvoiceState.new(
|
132
|
-
:state => "finalized"
|
133
|
-
)
|
134
|
-
@client.update_credit_note_state(cnote_load.id, state)
|
135
|
-
|
136
|
-
### Debit Notes
|
137
|
-
|
138
|
-
|
139
|
-
debit_notes = @client.debit_notes
|
140
|
-
puts debit_notes
|
141
|
-
|
142
|
-
dnote = Invoicexpress::Models::DebitNote.new(
|
143
|
-
:date => Date.new(2013, 5, 1),
|
144
|
-
:due_date => Date.new(2013, 6, 1),
|
145
|
-
:tax_exemption => "M01",
|
146
|
-
:client => Invoicexpress::Models::Client.new(
|
147
|
-
:name => "Pedro Sousa",
|
148
|
-
:email=> 'psousa@thinkorange.pt'
|
149
|
-
),
|
150
|
-
:items => [
|
151
|
-
Invoicexpress::Models::Item.new(
|
152
|
-
:name => "Item 1",
|
153
|
-
:unit_price => 60,
|
154
|
-
:quantity => 2,
|
155
|
-
:unit => "unit",
|
156
|
-
)
|
157
|
-
]
|
158
|
-
)
|
159
|
-
dnote = @client.create_debit_note(dnote)
|
160
|
-
dnote_loaded = @client.debit_note(1503654)
|
161
|
-
dnote.tax_exemption="M02"
|
162
|
-
@client.update_debit_note(dnote)
|
163
|
-
state = Invoicexpress::Models::InvoiceState.new(
|
164
|
-
:state => "finalized"
|
165
|
-
)
|
166
|
-
dnote = @client.update_credit_note_state(dnote.id, state)
|
167
|
-
|
168
|
-
### Invoices
|
169
|
-
|
170
|
-
invoices = @client.invoices
|
171
|
-
invoices.invoices.count
|
172
|
-
invoices.current_page
|
173
|
-
puts invoices
|
174
|
-
|
175
|
-
invoice = @client.invoice(1042320)
|
176
|
-
|
177
|
-
invoice = Invoicexpress::Models::Invoice.new(
|
178
|
-
:date => Date.new(2013, 6, 18),
|
179
|
-
:due_date => Date.new(2013, 6, 18),
|
180
|
-
:tax_exemption => "M01",
|
181
|
-
:client => Invoicexpress::Models::Client.new(
|
182
|
-
:name => "Ruben Fonseca"
|
183
|
-
),
|
184
|
-
:items => [
|
185
|
-
Invoicexpress::Models::Item.new(
|
186
|
-
:name => "Item 1",
|
187
|
-
:unit_price => 30,
|
188
|
-
:quantity => 1,
|
189
|
-
:unit => "unit",
|
190
|
-
)
|
191
|
-
]
|
192
|
-
)
|
193
|
-
invoice = @client.create_invoice(invoice)
|
194
|
-
|
195
|
-
invoice.observations="updated from api"
|
196
|
-
@client.update_invoice(invoice)
|
197
|
-
|
198
|
-
invoice_state = Invoicexpress::Models::InvoiceState.new(
|
199
|
-
:state => "finalized"
|
200
|
-
)
|
201
|
-
@client.update_invoice_state(invoice.id, invoice_state)
|
202
|
-
|
203
|
-
message = Invoicexpress::Models::Message.new(
|
204
|
-
:client => Invoicexpress::Models::Client.new(
|
205
|
-
:email => "info@thinkorange.pt",
|
206
|
-
:name=>"Chuck Norris"
|
207
|
-
),
|
208
|
-
:subject => "Your invoice",
|
209
|
-
:body => "Attached to this email"
|
210
|
-
)
|
211
|
-
@client.invoice_email(invoice.id, message)
|
212
|
-
|
213
|
-
### Charts
|
214
|
-
|
215
|
-
chart_i = @client.invoicing_chart
|
216
|
-
chart_t = @client.treasury_chart
|
217
|
-
top_c = @client.top_clients
|
218
|
-
top_d = @client.top_debtors
|
219
|
-
quarter = @client.quarterly_results(2011)
|
220
|
-
|
221
|
-
### Schedules
|
222
|
-
|
223
|
-
|
224
|
-
new_schedule = Invoicexpress::Models::Schedule.new(
|
225
|
-
:start_date => Date.new(2013, 6, 16),
|
226
|
-
:end_date => Date.new(2013, 8, 18),
|
227
|
-
:create_back => "Yes",
|
228
|
-
:schedule_type => "Monthly",
|
229
|
-
:interval => 2,
|
230
|
-
:send_to_client => "No",
|
231
|
-
:description=> "created from API.",
|
232
|
-
:invoice_template=> Invoicexpress::Models::InvoiceTemplate.new(
|
233
|
-
:due_days=>1,
|
234
|
-
:client => Invoicexpress::Models::Client.new(
|
235
|
-
:name => "Rui Leitão",
|
236
|
-
:email=>'rmleitao@thinkorange.pt'
|
237
|
-
),
|
238
|
-
:items => [
|
239
|
-
Invoicexpress::Models::Item.new(
|
240
|
-
:name => "Item 1",
|
241
|
-
:unit_price => 30,
|
242
|
-
:quantity => 2,
|
243
|
-
:unit => "unit",
|
244
|
-
:tax=>Invoicexpress::Models::Tax.new(
|
245
|
-
:name => "IVA23",
|
246
|
-
)
|
247
|
-
),
|
248
|
-
Invoicexpress::Models::Item.new(
|
249
|
-
:name => "Item 2",
|
250
|
-
:unit_price => 60,
|
251
|
-
:quantity => 5,
|
252
|
-
:unit => "unit",
|
253
|
-
:tax=>Invoicexpress::Models::Tax.new(
|
254
|
-
:name => "IVA23",
|
255
|
-
)
|
256
|
-
)
|
257
|
-
]
|
258
|
-
)
|
259
|
-
)
|
260
|
-
schedule = @client.create_schedule(new_schedule)
|
261
|
-
|
262
|
-
To update a schedule we need to pass these fields.
|
263
|
-
|
264
|
-
schedule.invoice_template=Invoicexpress::Models::InvoiceTemplate.new(
|
265
|
-
:due_days=>1,
|
266
|
-
:client => Invoicexpress::Models::Client.new(
|
267
|
-
:name => "Rui Leitão",
|
268
|
-
:email=>'rmleitao@thinkorange.pt'
|
269
|
-
),
|
270
|
-
:items => [
|
271
|
-
Invoicexpress::Models::Item.new(
|
272
|
-
:name => "Item 1",
|
273
|
-
:unit_price => 30,
|
274
|
-
:quantity => 2,
|
275
|
-
:unit => "unit",
|
276
|
-
:tax=>Invoicexpress::Models::Tax.new(
|
277
|
-
:name => "IVA23",
|
278
|
-
)
|
279
|
-
),
|
280
|
-
Invoicexpress::Models::Item.new(
|
281
|
-
:name => "Item 2",
|
282
|
-
:unit_price => 60,
|
283
|
-
:quantity => 5,
|
284
|
-
:unit => "unit",
|
285
|
-
:tax=>Invoicexpress::Models::Tax.new(
|
286
|
-
:name => "IVA23",
|
287
|
-
)
|
288
|
-
)
|
289
|
-
]
|
290
|
-
)
|
291
|
-
schedule.interval=2
|
292
|
-
schedule.schedule_type="Monthly"
|
293
|
-
schedule.send_to_client="No"
|
294
|
-
schedule.description="Maybe"
|
295
|
-
schedule.create_back="No"
|
296
|
-
@client.update_schedule(schedule)
|
297
|
-
|
298
|
-
@client.activate schedule
|
299
|
-
@client.deactivate_schedule schedule
|
300
|
-
|
301
|
-
### Purchase Orders
|
302
|
-
|
60
|
+
Examples for API are located in the EXAMPLES.md file.
|
303
61
|
|
304
|
-
orders=@client.purchase_orders
|
305
|
-
purchase_order = Invoicexpress::Models::PurchaseOrder.new(
|
306
|
-
:date => Date.new(2013, 5, 30),
|
307
|
-
:due_date => Date.new(2013, 8, 8),
|
308
|
-
:loaded_at => Date.new(2013, 5, 30),
|
309
|
-
:delivery_site=>'LX',
|
310
|
-
:supplier => Invoicexpress::Models::Supplier.new(
|
311
|
-
:name => "Pedro Sousa",
|
312
|
-
),
|
313
|
-
:items => [
|
314
|
-
Invoicexpress::Models::Item.new(
|
315
|
-
:name => "Item 1",
|
316
|
-
:unit_price => 60,
|
317
|
-
:quantity => 2,
|
318
|
-
:unit => "unit",
|
319
|
-
:tax=> Invoicexpress::Models::Tax.new(
|
320
|
-
:name=>'IVA23'
|
321
|
-
)
|
322
|
-
)
|
323
|
-
]
|
324
|
-
)
|
325
|
-
purchase_order = @client.create_purchase_order(purchase_order)
|
@@ -91,19 +91,6 @@ module Invoicexpress
|
|
91
91
|
put("cash_invoices/#{invoice_id}/change-state.xml", params.merge(options))
|
92
92
|
end
|
93
93
|
|
94
|
-
# Sends the invoice by email
|
95
|
-
#
|
96
|
-
# @param invoice_id [String] The cash invoice id to change
|
97
|
-
# @param message [Invoicexpress::Models::Message] The message to send
|
98
|
-
# @raise Invoicexpress::Unauthorized When the client is unauthorized
|
99
|
-
# @raise Invoicexpress::UnprocessableEntity When there are errors on the submission
|
100
|
-
# @raise Invoicexpress::NotFound When the invoice doesn't exist
|
101
|
-
def invoice_email(invoice_id, message, options={})
|
102
|
-
raise(ArgumentError, "message has the wrong type") unless message.is_a?(Invoicexpress::Models::Message)
|
103
|
-
|
104
|
-
params = { :body => message, :klass => Invoicexpress::Models::CashInvoice }
|
105
|
-
put("cash_invoices/#{invoice_id}/email-document.xml", params.merge(options))
|
106
|
-
end
|
107
94
|
|
108
95
|
end
|
109
96
|
end
|
@@ -95,13 +95,19 @@ module Invoicexpress
|
|
95
95
|
# @raise Invoicexpress::Unauthorized When the client is unauthorized
|
96
96
|
# @raise Invoicexpress::UnprocessableEntity When there are errors on the submission
|
97
97
|
# @raise Invoicexpress::NotFound When the invoice doesn't exist
|
98
|
-
def
|
98
|
+
def email_invoice(invoice_id, message, options={})
|
99
99
|
raise(ArgumentError, "message has the wrong type") unless message.is_a?(Invoicexpress::Models::Message)
|
100
100
|
|
101
101
|
params = { :body => message, :klass => Invoicexpress::Models::Invoice }
|
102
|
-
put("
|
102
|
+
put("invoice/#{invoice_id}/email-invoice.xml", params.merge(options))
|
103
103
|
end
|
104
104
|
|
105
|
+
#deprecated
|
106
|
+
def invoice_email(invoice_id, message, options={})
|
107
|
+
email_invoice(invoice_id, message, options)
|
108
|
+
end
|
109
|
+
|
110
|
+
|
105
111
|
end
|
106
112
|
end
|
107
113
|
end
|
@@ -14,7 +14,7 @@ module Invoicexpress
|
|
14
14
|
].freeze
|
15
15
|
|
16
16
|
DEFAULT_ADAPTER = Faraday.default_adapter
|
17
|
-
DEFAULT_API_ENDPOINT = ENV['INVOICEXPRESS_API_ENDPOINT'] || 'https://%s.invoicexpress.
|
17
|
+
DEFAULT_API_ENDPOINT = ENV['INVOICEXPRESS_API_ENDPOINT'] || 'https://%s.app.invoicexpress.com/'
|
18
18
|
DEFAULT_USER_AGENT = "Invoicexpress Ruby Gem #{Invoicexpress::VERSION}".freeze
|
19
19
|
|
20
20
|
attr_accessor(*VALID_OPTIONS_KEYS)
|
@@ -22,7 +22,7 @@ module Invoicexpress
|
|
22
22
|
def self.extended(base)
|
23
23
|
base.reset
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
26
|
def configure
|
27
27
|
yield self
|
28
28
|
end
|
@@ -52,6 +52,10 @@ module Invoicexpress
|
|
52
52
|
element :tax_exemption, String
|
53
53
|
element :sequence_id, Integer
|
54
54
|
element :mb_reference, String
|
55
|
+
|
56
|
+
element :rate, String
|
57
|
+
element :currency_code, String
|
58
|
+
|
55
59
|
has_one :client, Client
|
56
60
|
has_many :items, Item, :on_save => Proc.new { |value|
|
57
61
|
Items.new(:items => value)
|
data/spec/helper.rb
CHANGED
@@ -15,6 +15,7 @@ describe Invoicexpress::Client::Clients do
|
|
15
15
|
list.count.should == 1
|
16
16
|
list.first.name.should == "Ruben Fonseca"
|
17
17
|
list.first.email.should == "fonseka@gmail.com"
|
18
|
+
list.first.city.should == "Lisboa"
|
18
19
|
end
|
19
20
|
end
|
20
21
|
|
@@ -25,12 +26,14 @@ describe Invoicexpress::Client::Clients do
|
|
25
26
|
|
26
27
|
model_client = Invoicexpress::Models::Client.new({
|
27
28
|
:name => "Ruben Fonseca",
|
28
|
-
:email => "fonseka@gmail.com"
|
29
|
+
:email => "fonseka@gmail.com",
|
30
|
+
:city => "Lisboa"
|
29
31
|
})
|
30
32
|
|
31
33
|
new_client = @client.create_client(model_client)
|
32
34
|
new_client.name.should == "Ruben Fonseca"
|
33
35
|
new_client.email.should == "fonseka@gmail.com"
|
36
|
+
new_client.city.should == "Lisboa"
|
34
37
|
end
|
35
38
|
|
36
39
|
it "raises if no client is passed" do
|
@@ -92,9 +92,9 @@ describe Invoicexpress::Client::Invoices do
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
describe ".
|
95
|
+
describe ".email_invoice" do
|
96
96
|
it "sends the invoice through email" do
|
97
|
-
stub_put("/
|
97
|
+
stub_put("/invoice/1503698/email-invoice.xml").
|
98
98
|
to_return(xml_response("ok.xml"))
|
99
99
|
message = Invoicexpress::Models::Message.new(
|
100
100
|
:subject => "Hello world",
|
@@ -104,7 +104,7 @@ describe Invoicexpress::Client::Invoices do
|
|
104
104
|
:email=> 'info@thinkorange.pt'
|
105
105
|
)
|
106
106
|
)
|
107
|
-
expect { @client.
|
107
|
+
expect { @client.email_invoice(1503698, message) }.to_not raise_error
|
108
108
|
end
|
109
109
|
end
|
110
110
|
end
|
@@ -6,19 +6,19 @@ describe Invoicexpress::Client do
|
|
6
6
|
end
|
7
7
|
|
8
8
|
describe "api_endpoint" do
|
9
|
-
after(:each) do
|
9
|
+
after(:each) do
|
10
10
|
Invoicexpress.reset
|
11
11
|
end
|
12
12
|
|
13
|
-
it "
|
13
|
+
it "defaults to https://%s.app.invoicexpress.com/" do
|
14
14
|
client = Invoicexpress::Client.new
|
15
|
-
client.api_endpoint.should == "https://%s.invoicexpress.
|
15
|
+
client.api_endpoint.should == "https://%s.app.invoicexpress.com/"
|
16
16
|
end
|
17
17
|
|
18
18
|
it "is set" do
|
19
|
-
Invoicexpress.api_endpoint = "https://thinkorangeteste.invoicexpress.
|
19
|
+
Invoicexpress.api_endpoint = "https://thinkorangeteste.app.invoicexpress.com/"
|
20
20
|
client = Invoicexpress::Client.new
|
21
|
-
client.api_endpoint.should == "https://thinkorangeteste.invoicexpress.
|
21
|
+
client.api_endpoint.should == "https://thinkorangeteste.app.invoicexpress.com/"
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invoicexpress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 11
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Think Orange
|
@@ -9,15 +15,21 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date: 2015-
|
18
|
+
date: 2015-08-10 00:00:00 +01:00
|
19
|
+
default_executable:
|
13
20
|
dependencies:
|
14
21
|
- !ruby/object:Gem::Dependency
|
15
22
|
name: bundler
|
16
23
|
prerelease: false
|
17
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
18
26
|
requirements:
|
19
27
|
- - ~>
|
20
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 15
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 0
|
21
33
|
version: "1.0"
|
22
34
|
type: :development
|
23
35
|
version_requirements: *id001
|
@@ -25,9 +37,14 @@ dependencies:
|
|
25
37
|
name: faraday
|
26
38
|
prerelease: false
|
27
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
28
41
|
requirements:
|
29
42
|
- - ~>
|
30
43
|
- !ruby/object:Gem::Version
|
44
|
+
hash: 27
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 8
|
31
48
|
version: "0.8"
|
32
49
|
type: :runtime
|
33
50
|
version_requirements: *id002
|
@@ -35,9 +52,14 @@ dependencies:
|
|
35
52
|
name: faraday_middleware
|
36
53
|
prerelease: false
|
37
54
|
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
38
56
|
requirements:
|
39
57
|
- - ~>
|
40
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 25
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
- 9
|
41
63
|
version: "0.9"
|
42
64
|
type: :runtime
|
43
65
|
version_requirements: *id003
|
@@ -45,9 +67,14 @@ dependencies:
|
|
45
67
|
name: happymapper
|
46
68
|
prerelease: false
|
47
69
|
requirement: &id004 !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
48
71
|
requirements:
|
49
72
|
- - ~>
|
50
73
|
- !ruby/object:Gem::Version
|
74
|
+
hash: 3
|
75
|
+
segments:
|
76
|
+
- 0
|
77
|
+
- 4
|
51
78
|
version: "0.4"
|
52
79
|
type: :runtime
|
53
80
|
version_requirements: *id004
|
@@ -67,9 +94,7 @@ files:
|
|
67
94
|
- invoicexpress.gemspec
|
68
95
|
- lib/faraday/response/parse_xml.rb
|
69
96
|
- lib/faraday/response/raise_invoicexpress_errors.rb
|
70
|
-
- lib/invoicexpress.rb
|
71
97
|
- lib/invoicexpress/authentication.rb
|
72
|
-
- lib/invoicexpress/client.rb
|
73
98
|
- lib/invoicexpress/client/cash_invoices.rb
|
74
99
|
- lib/invoicexpress/client/charts.rb
|
75
100
|
- lib/invoicexpress/client/clients.rb
|
@@ -83,10 +108,10 @@ files:
|
|
83
108
|
- lib/invoicexpress/client/simplified_invoices.rb
|
84
109
|
- lib/invoicexpress/client/taxes.rb
|
85
110
|
- lib/invoicexpress/client/users.rb
|
111
|
+
- lib/invoicexpress/client.rb
|
86
112
|
- lib/invoicexpress/configuration.rb
|
87
113
|
- lib/invoicexpress/connection.rb
|
88
114
|
- lib/invoicexpress/error.rb
|
89
|
-
- lib/invoicexpress/models.rb
|
90
115
|
- lib/invoicexpress/models/chart.rb
|
91
116
|
- lib/invoicexpress/models/client.rb
|
92
117
|
- lib/invoicexpress/models/filter.rb
|
@@ -99,8 +124,10 @@ files:
|
|
99
124
|
- lib/invoicexpress/models/top_client.rb
|
100
125
|
- lib/invoicexpress/models/top_debtor.rb
|
101
126
|
- lib/invoicexpress/models/user.rb
|
127
|
+
- lib/invoicexpress/models.rb
|
102
128
|
- lib/invoicexpress/request.rb
|
103
129
|
- lib/invoicexpress/version.rb
|
130
|
+
- lib/invoicexpress.rb
|
104
131
|
- spec/fixtures/charts.invoicing.xml
|
105
132
|
- spec/fixtures/charts.quarterly-results.xml
|
106
133
|
- spec/fixtures/charts.top-clients.xml
|
@@ -159,32 +186,41 @@ files:
|
|
159
186
|
- spec/invoicexpress/client_spec.rb
|
160
187
|
- spec/invoicexpress/models/item_spec.rb
|
161
188
|
- spec/invoicexpress_spec.rb
|
189
|
+
has_rdoc: true
|
162
190
|
homepage: http://invoicexpress.com
|
163
191
|
licenses:
|
164
192
|
- MIT
|
165
|
-
metadata: {}
|
166
|
-
|
167
193
|
post_install_message:
|
168
194
|
rdoc_options: []
|
169
195
|
|
170
196
|
require_paths:
|
171
197
|
- lib
|
172
198
|
required_ruby_version: !ruby/object:Gem::Requirement
|
199
|
+
none: false
|
173
200
|
requirements:
|
174
201
|
- - ">="
|
175
202
|
- !ruby/object:Gem::Version
|
203
|
+
hash: 3
|
204
|
+
segments:
|
205
|
+
- 0
|
176
206
|
version: "0"
|
177
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
|
+
none: false
|
178
209
|
requirements:
|
179
210
|
- - ">="
|
180
211
|
- !ruby/object:Gem::Version
|
212
|
+
hash: 23
|
213
|
+
segments:
|
214
|
+
- 1
|
215
|
+
- 3
|
216
|
+
- 6
|
181
217
|
version: 1.3.6
|
182
218
|
requirements: []
|
183
219
|
|
184
220
|
rubyforge_project:
|
185
|
-
rubygems_version:
|
221
|
+
rubygems_version: 1.6.2
|
186
222
|
signing_key:
|
187
|
-
specification_version:
|
223
|
+
specification_version: 3
|
188
224
|
summary: Simple wrapper for invoicexpress.com API
|
189
225
|
test_files:
|
190
226
|
- spec/fixtures/charts.invoicing.xml
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA512:
|
3
|
-
metadata.gz: 923e045ee7caffb6f89b8d22c0e46b0b31787f6ffef0d55e07b7564044a685453544471b6209be5e8980ff0e641296403cca396fca6598af43dc0df0e1d438d2
|
4
|
-
data.tar.gz: b69aed1e5ea804a0392cf7f982b5f07cef15c355e257f7e628ba41d584b00354543f9dd9993042722d3d7dbe2093b8698baf5583ad2feb43ab249943ef5bdd02
|
5
|
-
SHA1:
|
6
|
-
metadata.gz: 69ecdffcd7f1b586de19dd3f49606c98e6fff2bc
|
7
|
-
data.tar.gz: 544dc6509fb55a744e339875dd124e3fc321719c
|