diff options
Diffstat (limited to 'doc/sphinx/reducer.rst')
-rw-r--r-- | doc/sphinx/reducer.rst | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/doc/sphinx/reducer.rst b/doc/sphinx/reducer.rst index 320db48..defd088 100644 --- a/doc/sphinx/reducer.rst +++ b/doc/sphinx/reducer.rst | |||
@@ -358,7 +358,7 @@ providers that accept payments in the selected currency: | |||
358 | }, | 358 | }, |
359 | { | 359 | { |
360 | "type": "string", | 360 | "type": "string", |
361 | "name": "tax_number", | 361 | "name": "tax_number", |
362 | "label": "Taxpayer identification number", | 362 | "label": "Taxpayer identification number", |
363 | "label_i18n":{ | 363 | "label_i18n":{ |
364 | "de_DE": "Steuerliche Identifikationsnummer", | 364 | "de_DE": "Steuerliche Identifikationsnummer", |
@@ -366,7 +366,7 @@ providers that accept payments in the selected currency: | |||
366 | "en": "German taxpayer identification number" | 366 | "en": "German taxpayer identification number" |
367 | }, | 367 | }, |
368 | "widget": "anastasis_gtk_ia_tax_de", | 368 | "widget": "anastasis_gtk_ia_tax_de", |
369 | "uuid": "dae48f85-e3ff-47a4-a4a3-ed981ed8c3c6", | 369 | "uuid": "dae48f85-e3ff-47a4-a4a3-ed981ed8c3c6", |
370 | "validation-regex": "^[0-9]{11}$", | 370 | "validation-regex": "^[0-9]{11}$", |
371 | "validation-logic": "DE_TIN_check" | 371 | "validation-logic": "DE_TIN_check" |
372 | }, | 372 | }, |
@@ -381,8 +381,8 @@ providers that accept payments in the selected currency: | |||
381 | "en": "Social security number" | 381 | "en": "Social security number" |
382 | }, | 382 | }, |
383 | "widget": "anastasis_gtk_ia_ssn", | 383 | "widget": "anastasis_gtk_ia_ssn", |
384 | "validation-regex": "^[0-9]{8}[[:upper:]][0-9]{3}$", | 384 | "validation-regex": "^[0-9]{8}[[:upper:]][0-9]{3}$", |
385 | "validation-logic": "DE_SVN_check" | 385 | "validation-logic": "DE_SVN_check" |
386 | "optional" : true | 386 | "optional" : true |
387 | } | 387 | } |
388 | ], | 388 | ], |
@@ -494,22 +494,23 @@ adds one or more Anastasis providers to the list of providers the reducer | |||
494 | should henceforth consider. Note that removing providers is not possible at | 494 | should henceforth consider. Note that removing providers is not possible at |
495 | this time. | 495 | this time. |
496 | 496 | ||
497 | Here, the client must provide an array with the base URLs of the | 497 | Here, the client must provide an object with the base URLs of the |
498 | providers to add, for example: | 498 | providers to add or disable. The object maps the |
499 | URLs to status information about the provider to | ||
500 | use. For example: | ||
499 | 501 | ||
500 | .. code-block:: json | 502 | .. code-block:: json |
501 | 503 | ||
502 | { | 504 | { |
503 | "urls": [ | 505 | "http://localhost:8088/" : { "disabled" : false }, |
504 | "http://localhost:8888/", | 506 | "http://localhost:8089/" : { "disabled" : false } |
505 | "http://localhost:8089/" | 507 | "http://localhost:8090/" : { "disabled" : true }, |
506 | ] | ||
507 | } | 508 | } |
508 | 509 | ||
509 | Note that existing providers will remain in the state. The following is an | 510 | Note that existing providers will remain in the state they were in. The following is an |
510 | example for an expected new state where the service on port 8089 is | 511 | example for an expected new state where the service on port 8089 is |
511 | unreachable, the service on port 8088 was previously known, and service on | 512 | unreachable, the services on port 8088 and 8888 were previously known, and service on |
512 | port 8888 was now added: | 513 | port 8088 was now added, and on 8090 is disabled: |
513 | 514 | ||
514 | .. code-block:: json | 515 | .. code-block:: json |
515 | 516 | ||
@@ -517,10 +518,15 @@ port 8888 was now added: | |||
517 | "backup_state": "USER_ATTRIBUTES_COLLECTING", | 518 | "backup_state": "USER_ATTRIBUTES_COLLECTING", |
518 | "authentication_providers": { | 519 | "authentication_providers": { |
519 | "http://localhost:8089/": { | 520 | "http://localhost:8089/": { |
521 | "disabled": false, | ||
520 | "error_code": 11, | 522 | "error_code": 11, |
521 | "http_status": 0 | 523 | "http_status": 0 |
522 | }, | 524 | }, |
525 | "http://localhost:8090/": { | ||
526 | "disabled": true | ||
527 | }, | ||
523 | "http://localhost:8088/": { | 528 | "http://localhost:8088/": { |
529 | "disabled": false, | ||
524 | "http_status": 200, | 530 | "http_status": 200, |
525 | "methods": [ | 531 | "methods": [ |
526 | { "type" : "question", | 532 | { "type" : "question", |