Skip to content

Commit

Permalink
Merge pull request #152 from moovfinancial/ledg-2924-include-schedule…
Browse files Browse the repository at this point in the history
…id-occurenceid-and-sweepid-in-transfer-model

Add sweepID, occurrenceID, and scheduleID to transfer model
  • Loading branch information
adamdecaf authored Oct 23, 2024
2 parents 82dda24 + ad2294f commit d112e7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/moov/sweep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,5 @@ func Test_Sweep_ListAndGet(t *testing.T) {
sweepID := sweeps[0].SweepID
sweep, err := mc.GetSweep(ctx, accountID, walletID, sweepID)
require.NoError(t, err)

t.Logf("Got sweep: %+v", sweep)
}
6 changes: 6 additions & 0 deletions pkg/moov/transfer_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ type Transfer struct {
MoovFeeDetails *MoovFeeDetails `json:"moovFeeDetails,omitempty"`
// ID for all transfers associated with a [transfer group](https://docs.moov.io/guides/money-movement/transfer-groups/).
GroupID *string `json:"groupID,omitempty"`
// ID of the associated sweep sweep.
SweepID *string `json:"sweepID,omitempty"`
// ID of the associated schedule.
ScheduleID *string `json:"scheduleID,omitempty"`
// ID of the associated occurrence.
OccurrenceID *string `json:"occurrenceID,omitempty"`
// The total refunded amount for a card transfer, representing one refunded amount, or multiple partial refunded amounts. Contains an integer value and its currency. See the `refunds` array for additional details.
RefundedAmount *Amount `json:"refundedAmount,omitempty"`
// A list of refunds for a card transfer.
Expand Down

0 comments on commit d112e7a

Please sign in to comment.