moraki-finance / revolut-connect

Revolut non-official API connector
MIT License
0 stars 3 forks source link

[Business Api] Add Transfer support #29

Open leobz opened 1 month ago

leobz commented 1 month ago

Summary

Add the Transfer resource, to move funds in the same currency between accounts of the same business

Proposed Interface

Revolut::Transfer.create(
  request_id: "129999",
  source_account_id: "b4a3bcd2-c1dd-47cc-ac50-40cdb5856d41",
  target_account_id: "4cfb3825-7448-4825-baf8-7a17137c4633",
  amount: 10,
  currency: "GBP",
   reference: "John's transfer"
)

Tasks

leobz commented 1 month ago

Hi, @mochetts!

Transfer will have the create method. I saw there is a TransferReason resource that only has the list method.

Is it okay to make that Transfer wraps TransferReason.list in a Transfer.list or Transfer.list_reasons method? (Similar to Payment which wraps Transaction)