Skip to content

Commit

Permalink
[Transfer] Added README (#38)
Browse files Browse the repository at this point in the history
* [Transfer] Added README

* updated README
  • Loading branch information
gaurav authored Oct 26, 2017
1 parent 886188a commit b67d24f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,50 @@ that both app title and version are strings.
client.plan.all()
```

### Transfers

- Fetch all Transfers

```py
client.transfer.all()
```

- Fetch transfer by payment id

```py
client.transfer.fetch("<PAYMENT_ID>")
```

- Create Transfer from given data

```py
client.transfer.create(data=DATA)
DATA should contain these keys
amount : 100
currency : INR
account : dummy
```

- Edit Transfer from given data

```py
client.transfer.edit(transfer_id=transfer_id, data=DATA)
DATA should contain these keys
on_hold : True/False
```

- Reverse a given Transfer

```py
client.transfer.reverse(transfer_id=transfer_id)
```

- Get all reversals for a given Transfer

```py
client.transfer.reversals(transfer_id=transfer_id)
```

## Bugs? Feature requests? Pull requests?

All of those are welcome. You can [file issues][issues] or [submit pull requests][pulls] in this repository.
Expand Down

0 comments on commit b67d24f

Please sign in to comment.