Supports trial_end param in customer create, subscription create and update
Minor refactor