Android


4. Member Point

This member point is done by calling Goodie.setMemberPoint() function. This function will retrieve based on the memberId, merchantId. You can see your point balance using this function (You can get points after making certain amount of transaction or from certain events).

Here is example:

Goodie.setMemberPoint(memberId, merchantId)
                    
        .memberPointGoodie(this, new SetMemberPointListener(){


            @Override

            public void onSuccess(MemberPointResponse response){

                if(response.getAbstractResponse().getResponseStatus().equals("INQ000")){

                    //on success

                }

            }



            @Override

            public void onError(Throwable throwable){

                //on error

                }

            });
                        

Where :
Param Type Description
memberId String memberId is identifier that will be used to identity a member
merchantId String merchantId is identifier that will be used to identity a merchant

Response member point :
{
    "tierName": "SILVER",
    "tierImage": "http://dev.goodie.id:80/ViewImage?fileName=ument.png",
    "nextTierName": "GOLD",
    "nextTierImage": "http://dev.goodie.id:80/ViewImage?fileName=ument.png",
    "reqPointNextTier": 96,
    "totalPoints": 105,
    "memberName": "hana susan",
    "memberId": "8A2EC944-3E83-4D9F-9E0C-D47CEBF5C20C",
    "merchantId": "5F773EA1-1E66-4F9E-B9C8-E1FA8156AD20",
    "nearestPointToBeExpire": 105,
    "nearestExpiredDate": "2019-07-07",

    "abstractResponse": {

        "responseStatus": "INQ000",
        "responseMessage": "Inquiry success"

    }

}