From 11ec7c20c9af6b9cf993d35ade1ce4d37090da66 Mon Sep 17 00:00:00 2001 From: Pete Woods Date: Mon, 3 Oct 2016 16:54:58 +0100 Subject: docs: remove references to removed buying features (#2057) --- docs/rest.md | 74 ------------------------------------------------------------ 1 file changed, 74 deletions(-) (limited to 'docs') diff --git a/docs/rest.md b/docs/rest.md index 1cfd2b38fa..a4251d544f 100644 --- a/docs/rest.md +++ b/docs/rest.md @@ -586,19 +586,6 @@ Generally the UUID of a background operation you are interested in. } ``` -#### Sample input specifying specific credit card: - -```javascript -{ - "snap-id": "2kkitQurgOkL3foImG4wDwn9CIANuHlt", - "snap-name": "moon-buggy", - "price": 2.99, - "currency": "USD", - "backend-id": "credit_card", - "method-id": 1 -} -``` - #### Sample result: ```javascript @@ -616,67 +603,6 @@ Generally the UUID of a background operation you are interested in. * Operation: sync * Return: true, or error. -## /v2/buy/methods - -### GET - -* Description: Get a list of the available payment methods -* Access: authenticated -* Operation: sync -* Return: Dict with payment methods. - -#### Sample result with one method that allows automatic payment: - -```javascript -{ - "allows-automatic-payment": true, - "methods": [ - { - "backend-id": "credit_card", - "currencies": ["USD", "GBP"], - "description": "**** **** **** 1111 (exp 23/2020)", - "id": 123, - "preferred": true, - "requires-interaction": false - } - ] - } -``` - -#### Sample with 3 methods and no automatic payments: - -```javascript -{ - "allows-automatic-payment": false, - "methods": [ - { - "backend-id": "credit_card", - "currencies": ["USD", "GBP"], - "description": "**** **** **** 1111 (exp 23/2020)", - "id": 123, - "preferred": false, - "requires-interaction": false - }, - { - "backend-id": "credit_card", - "currencies": ["USD", "GBP"], - "description": "**** **** **** 2222 (exp 23/2025)", - "id": 234, - "preferred": false, - "requires-interaction": false - }, - { - "backend-id": "rest_paypal", - "currencies": ["USD", "GBP", "EUR"], - "description": "PayPal", - "id": 345, - "preferred": false, - "requires-interaction": true - } - ] - } -``` - ## /v2/create-user ### POST -- cgit v1.2.3