Commit Graph

21 Commits

Author SHA1 Message Date
Marcello Stanisci
ca718b9f1f
minor fixes 2019-04-10 17:07:14 +02:00
Marcello Stanisci
75ac6b8063
minor fixes 2019-04-10 17:07:13 +02:00
Marcello Stanisci
ed0da1fdb3
/history-range.
Implementing the "lib" and "testing-lib" functions to use it.
2019-04-08 23:56:46 +02:00
Marcello Stanisci
15c1a877c6
/history API semantics extended.
That API has now a new 'ordering' flag that lets the
client choose what ordering the results should have:
ascending or descending.

In particular, this change adapted the fakebank and
tests logic to such introduction.
2018-12-14 19:25:42 +01:00
Marcello Stanisci
60c533562c
Fix compiler warnings.
This reverts changes made in b0d00823eb.  The warnings
are fixed by changing the functions signatures, instead of casting
their pointers.
2018-10-22 16:59:09 +02:00
Marcello Stanisci
b0d00823eb
Fix compiler warnings. 2018-10-22 12:29:34 +02:00
Marcello Stanisci
6f579eb833
From payto:// to base url.
The conversion prepends http// or https://
depending on the port given beside the hostname.
If port is 433, then prepends https://, otherwise
prepends http://.

For now, the conversion was only necessary at
the /history bank lib.
2018-06-12 19:16:43 +02:00
Christian Grothoff
202827ebda
merging Florian's changes with my wire changes 2018-04-15 12:20:00 +02:00
Florian Dold
2e65fa8366
fix comment 2018-04-06 00:36:30 +02:00
Christian Grothoff
cb55c1a3af
Changing configuration structure to enable multiple accounts.
This change enables using multiple wire plugins at the same time.
Also, we now distinguish between the wire plugin (i.e. EBICS or
taler_bank) and the wire method (i.e. SEPA or x-taler-bank) that
the wire plugin is implementing.  The "taler-bank" wire method
was renamed from "test" to "x-taler-bank".

This also changes the format of the /wire response of the exchange,
as we now need to return multiple accounts.  Note that wire fees
are specified per wire method, not per wire account.

taler-exchange-keyup now automatically signs all of the /wire
responses in the location specified by the configuration.

Account identification in wire plugins was changed to use
payto://-URLs instead of method-specific JSON fields.  Signing
and validation of /wire responses was moved from each wire
plugin to a generic validation method in libtalerutil (crypto)
or libtalerjson (for JSON-formatted inputs).
Convenience methods were added to generate JSON for wire accounts
(salting, signing).

Various section and option names were adjusted to streamline the
configuration and make it more consistent overall.  Documentation
was updated as well.
2018-04-02 14:29:44 +02:00
Florian Dold
e318edb5e5
use url instead of uri consistently 2018-01-30 01:38:04 +01:00
Christian Grothoff
0f5ef01dd3
nicer error reporting 2017-12-14 13:36:59 +01:00
Florian Dold
44aaaf9e93
set error code correctly, removes compiler warning 2017-12-08 17:07:20 +01:00
Florian Dold
e75afb3164
use row_id instead of serial_id everywhere 2017-12-08 17:04:11 +01:00
Christian Grothoff
042616899f
largely fix #5077 2017-12-06 19:24:00 +01:00
Christian Grothoff
bdfa18830d
start_row is actually start in the spec, fix naming 2017-05-16 11:05:00 +02:00
Marcello Stanisci
d3fac18562
take the history array from "data" field returned by the bank 2017-05-16 11:04:59 +02:00
Christian Grothoff
18a020dd02
implement fakebank support (incl. tests) for #5005/#4964/4959 2017-05-07 21:11:56 +02:00
Christian Grothoff
69fa9b41d1
start to add /history testing support to tests, fix some minor issues 2017-05-04 23:52:54 +02:00
Christian Grothoff
0e632ffdd2
fix names to match latest specification 2017-05-04 23:30:18 +02:00
Christian Grothoff
f4df63e448
adding support for transaction history to wire plugin API (#4959) 2017-05-04 18:35:53 +02:00