package com.africastalking.payments.recipient;

import java.util.HashMap;

public class Consumer {

    public enum Reason {
        SALARY("SalaryPayment"),
        SALARY_WITH_CHARGE("SalaryPaymentWithWithdrawalChargePaid"),
        BUSINESS("BusinessPayment"),
        BUSINESS_WITH_CHARGE("BusinessPaymentWithWithdrawalChargePaid"),
        PROMOTION("PromotionPayment");

        private final String text;

        private Reason(final String text) {
            this.text = text;
        }

        @Override
        public String toString() {
            return this.text;
        }
    }

    public String name;
    public String phoneNumber;
    public String currencyCode;
    public float amount;
    public String providerChannel;

    public Reason reason = null;
    public HashMap<String, String> metadata = new HashMap<>();

    public Consumer(String name, String phoneNumber, String amount) {
        this.name = name;
        this.phoneNumber = phoneNumber;
        String[] amountParts = amount.trim().split(" ");
        this.currencyCode = amountParts[0];
        this.amount = Float.parseFloat(amountParts[1]);
    }

}

@@ -127,21 +127,28 @@
        S
-ALARY
+alaryPayment
 (%22Salary
@@ -171,25 +171,44 @@
    S
-ALARY_WITH_CHARGE
+alaryPaymentWithWithdrawalChargePaid
 (%22Sa
@@ -255,23 +255,30 @@
        B
-USINESS
+usinessPayment
 (%22Busine
@@ -303,27 +303,46 @@
    B
-USINESS_WITH_CHARGE
+usinessPaymentWithWithdrawalChargePaid
 (%22Bu
@@ -395,16 +395,23 @@
    P
-ROMOTION
+romotionPayment
 (%22Pr

Rename b2c reasons