Skip to content

Instantly share code, notes, and snippets.

@romanlehnert
Last active October 20, 2015 08:47
Show Gist options
  • Save romanlehnert/e9a61f28d6f62c36fa77 to your computer and use it in GitHub Desktop.
Save romanlehnert/e9a61f28d6f62c36fa77 to your computer and use it in GitHub Desktop.
Receive transactions
Bankster::Client.credit_transfer(
bic: "HYVEDEMM417",
iban: "DE83763123456780253100",
name: "Max Mustermann",
purpose: "Miete",
amount: 3700,
currency: "EUR",
eref: "my-end-to-end-id"
)
Bankster::Client.direct_debit(
bic: "HYVEDEMM417",
iban: "DE83763123456780253100",
name: "Max Mustermann",
purpose: "Miete",
amount: 3700,
currency: "EUR",
eref: "my-end-to-end-id",
mref: "my-sepa-mandate-ref"
)
Bankster::Client.transactions(Date.new(2015,9,10), Date.new(2015,10,15))
# =>
[{
type: "credit_transfer"
amount: 3700,
currency: "EUR",
booking_date: Thu, 15 Oct 2015,
valutation_date: Thu, 15 Oct 2015,
name: "Max Mustermann",
iban: "DE83763123456780253100",
bic: "HYVEDEMM417",
purpose: "Miete"
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment