Skip to content

Commit

Permalink
use voucher settlement method
Browse files Browse the repository at this point in the history
  • Loading branch information
mogii committed Dec 13, 2023
1 parent d6ea084 commit 3851a82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@ class Plugin {
holder,
notes,
reference,
settlementMethod,
pickupPoint,
},
typeDefsAndQueries: {
Expand All @@ -363,7 +362,7 @@ class Plugin {
method: rebookingId ? 'patch' : 'post',
url: `${endpoint || this.endpoint}/bookings${rebookingId ? `/${rebookingId}` : ''}`,
data: {
settlementMethod,
settlementMethod: reference ? 'VOUCHER' : 'DEFERRED',
...dataForCreateBooking,
notes,
...(pickupPoint ? { pickupRequested: true, pickupPointId: pickupPoint } : {}),
Expand Down

0 comments on commit 3851a82

Please sign in to comment.