Skip to content
This repository was archived by the owner on Jul 8, 2019. It is now read-only.

Commit 5b749bf

Browse files
author
Dominic Miglar
committed
corrected syntax
1 parent bb82f17 commit 5b749bf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/bitcodin.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ def getJobStatistics(from, to)
192192

193193
def updateInvoiceInfos(infos)
194194
url = @apiURL.concat('payment/invoiceinfo')
195+
puts infos.values
195196
return @httpClient.sendRequest('post', url, infos.values)
196197
end
197198

lib/bitcodin/payment/invoice_infos.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ def initialize(companyName, firstName, lastName, address, addressLineOptional, p
1010
"lastName": "' + lastName + '",
1111
"address": "' + address + '",
1212
"addressLineOptional": "' + addressLineOptional + '",
13-
"postalCode": ' + postalCode.to_s + ',
13+
"postalCode": "' + postalCode.to_s + '",
1414
"city": "' + city + '",
1515
"country": "' + country + '",
1616
"vatNumber": "' + vatNumber + '"
1717
}'
1818
end
19-
19+
2020
end
2121
end

0 commit comments

Comments
 (0)