jaxrs: initial Swagger integration

More documentation (annotations) is required.

You can access the documentation at:

  http://localhost:8080/api-docs

To use the UI, clone the swagger-ui repo at:

  git@github.com:wordnik/swagger-ui.git

Open dist/index.html in a browser and put

  http://localhost:8080/api-docs

in the url bar, then click 'explore'.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
profiling: fix warning on startup

Ignore synthetic methods for ProfilingMethodInterceptor.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
jaxrs: more Swagger documentation

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
jaxrs: add example of Swagger-annotated model

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
profiles: Swagger integration

Fixes to support the "Try it out!" feature.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
profiles: embed Swagger into Kill Bill and Kill Pay

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
jaxrs: more Swagger documentation

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
jaxrs: more Swagger documentation

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
 Introduce multiple PaymentControlPlugin for payment attempts

 The code will go through the various plugins in the specified order (similar to servlet filters approach).
* If one of them abort the payment calls, the others are not tried and payment is aborted.
* If values are overriden (payment amount, currency, paymentMethodId), the next plugin gets the updated values, and may still decide to also override them
* When payment fails, the nextRetry date is calculated as the min between all the dates returned by the plugins
Merge branch 'master' of github.com:killbill/killbill
util: disable TestDateInvestigation tests

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Merge branch 'master' of github.com:killbill/killbill
jaxrs: more Swagger documentation

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
jaxrs: suppress stacktrace in response by default

The client often cannot do much about it. Override this behavior
by setting withStackTrace=true as query parameter.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
jaxrs: be more lenient when parsing the account currency

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
jaxrs: be more lenient when parsing the account timezone

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
jaxrs: add JsonMappingExceptionMapper

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
profiles: tweak Swagger CSS

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
profiles: add new asset for Swagger

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
profiles: tweak Swagger CSS

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>