Skip to content
This repository was archived by the owner on Aug 23, 2021. It is now read-only.

Adds endpoint api/client/payments #65

Merged
merged 3 commits into from
Aug 9, 2019

Conversation

hazmatzo
Copy link
Contributor

@hazmatzo hazmatzo commented Aug 6, 2019

Adds the endpoint to get payments for a given deal.

Solves issue here: #14

Endpoint

api/client/payments

Description
List payments for a given deal

Arguments

  • arg [string]: Channel id from which to list vouchers Required: yes.

Response
On success, the call to this endpoint will return with 200 and the following body:

    [
      {
        "channel":0,
        "payer":"t1bcvxo4ztdkukjmrsjvc5d4w24cl55vvbrssspyy",
        "target":"t1uo4nzu44apoclkbjbbvc4f3irbptg3ctjq44wiq",
        "amount":"25000",
        "valid_at":8,
        "condition":null,
        "signature":"1My76149fPIulbdO/DKlkUBMMSLwGYSw2XmVKXq3HrxMG5kkmBgsaPZ/DzdxiOWX5kdnXJ++AFQqsmWHd5dtOwE="
      }
    ]

resolves #14

    * api/client/payments

    List payments for a given deal

    Arguments
    * arg [string]: Channel id from which to list vouchers Required: yes.

    Response
    On success, the call to this endpoint will return with 200 and the following body:

    [
      {
        "channel":0,
        "payer":"t1bcvxo4ztdkukjmrsjvc5d4w24cl55vvbrssspyy",
        "target":"t1uo4nzu44apoclkbjbbvc4f3irbptg3ctjq44wiq",
        "amount":"25000",
        "valid_at":8,
        "condition":null,
        "signature":"1My76149fPIulbdO/DKlkUBMMSLwGYSw2XmVKXq3HrxMG5kkmBgsaPZ/DzdxiOWX5kdnXJ++AFQqsmWHd5dtOwE="
      }
    ]
@hazmatzo hazmatzo changed the title Adds endpoint api/client/payments WIP -- Adds endpoint api/client/payments Aug 6, 2019
@hazmatzo hazmatzo changed the title WIP -- Adds endpoint api/client/payments Adds endpoint api/client/payments Aug 6, 2019
@hazmatzo
Copy link
Contributor Author

hazmatzo commented Aug 6, 2019

@alanshaw Hey! I added the endpoint for client/payments. Please let me know what you think and if there's any additional complexity I need to be aware of. Thanks!

@hazmatzo hazmatzo force-pushed the api/client/payments branch 2 times, most recently from 11087c0 to c85f15b Compare August 6, 2019 22:47
@hazmatzo hazmatzo force-pushed the api/client/payments branch from c85f15b to de40402 Compare August 7, 2019 21:13
@mishmosh mishmosh requested a review from alanshaw August 7, 2019 21:27
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
@alanshaw alanshaw merged commit 74af5b2 into filecoin-shipyard:master Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add command client.payments
2 participants