Skip to content

Commit 425686c

Browse files
authored
#19 adds README section for creating Payouts (#23)
1 parent 6dba1c4 commit 425686c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,18 @@ invitation = CirroIO::Client::GigInvitation.new(gig: gig)
5555

5656
invitation.bulk_create_with(filter, auto_accept: true) # by default auto_accept is false
5757
```
58+
59+
#### Creating Payouts for workers
60+
61+
```ruby
62+
app_worker = CirroIO::Client::AppWorker.load(id: 1234)
63+
64+
CirroIO::Client::Payout.create(
65+
app_worker: app_worker,
66+
amount: 100, # € 1.00
67+
title: "Bonus for something",
68+
description: "Description of the bonus.",
69+
cost_center_key: "PROJECT-CODE",
70+
billing_date: DateTime.now
71+
)
72+
```

0 commit comments

Comments
 (0)