@@ -504,27 +504,27 @@ type recentPaymentsResult struct {
504504 Result stellar1.PaymentsPage `json:"res"`
505505}
506506
507- func RecentPayments (ctx context.Context , g * libkb.GlobalContext ,
508- accountID stellar1.AccountID , cursor * stellar1.PageCursor , limit int , skipPending bool ) (stellar1.PaymentsPage , error ) {
507+ func RecentPayments (ctx context.Context , g * libkb.GlobalContext , arg RecentPaymentsArg ) (stellar1.PaymentsPage , error ) {
509508 mctx := libkb .NewMetaContext (ctx , g )
510509 apiArg := libkb.APIArg {
511510 Endpoint : "stellar/recentpayments" ,
512511 SessionType : libkb .APISessionTypeREQUIRED ,
513512 Args : libkb.HTTPArgs {
514- "account_id" : libkb.S {Val : accountID .String ()},
515- "limit" : libkb.I {Val : limit },
516- "skip_pending" : libkb.B {Val : skipPending },
517- "include_multi" : libkb.B {Val : true },
513+ "account_id" : libkb.S {Val : arg .AccountID .String ()},
514+ "limit" : libkb.I {Val : arg .Limit },
515+ "skip_pending" : libkb.B {Val : arg .SkipPending },
516+ "include_multi" : libkb.B {Val : true },
517+ "include_advanced" : libkb.B {Val : arg .IncludeAdvanced },
518518 },
519519 RetryCount : 3 ,
520520 RetryMultiplier : 1.5 ,
521521 InitialTimeout : 10 * time .Second ,
522522 }
523523
524- if cursor != nil {
525- apiArg .Args ["horizon_cursor" ] = libkb.S {Val : cursor .HorizonCursor }
526- apiArg .Args ["direct_cursor" ] = libkb.S {Val : cursor .DirectCursor }
527- apiArg .Args ["relay_cursor" ] = libkb.S {Val : cursor .RelayCursor }
524+ if arg . Cursor != nil {
525+ apiArg .Args ["horizon_cursor" ] = libkb.S {Val : arg . Cursor .HorizonCursor }
526+ apiArg .Args ["direct_cursor" ] = libkb.S {Val : arg . Cursor .DirectCursor }
527+ apiArg .Args ["relay_cursor" ] = libkb.S {Val : arg . Cursor .RelayCursor }
528528 }
529529
530530 var apiRes recentPaymentsResult
0 commit comments