package com.revlo.requests;

import lombok.Builder;
import lombok.Data;

import java.util.Map;
import java.util.HashMap;

@Builder @Data
public class GetRedemptionsRequest implements Request {
    private Integer page;
    private Boolean completed;
    private Boolean refunded;

    public Map<String,String> params() {
        Map<String,String> hash = new HashMap<>();
        if (getPage() != null) {
            hash.put("page", getPage().toString());
        }
        if (getCompleted() != null) {
            hash.put("completed", getCompleted().toString());
        }
        if (getRefunded() != null) {
            hash.put("refunded", getRefunded().toString());
        }
        return hash;
    }

    @Override
    public String payload() {
        return "";
    }
}

@@ -272,16 +272,46 @@
 efunded;
+%0A    private Integer rewardId;
 %0A%0A    pu
@@ -700,32 +700,140 @@
 g());%0A        %7D%0A
+        if (getRewardId() != null) %7B%0A            hash.put(%22reward_id%22, getRewardId().toString());%0A        %7D%0A
         return h

Add reward_id optional param