def cancel_reason=(cancel_reason)

      if !cancel_reason.nil? && cancel_reason.to_s.length > 100
        fail ArgumentError, "invalid value for 'cancel_reason', the character length must be smaller than or equal to 100."
      end

      @cancel_reason = cancel_reason
    end
def cancel_reason=(cancel_reason)

      if !cancel_reason.nil? && cancel_reason.to_s.length > 100
        fail ArgumentError, "invalid value for 'cancel_reason', the character length must be smaller than or equal to 100."
      end

      @cancel_reason = cancel_reason
    end
Custom attribute writer method with validation
 @param [Object] cancel_reason Value to be assigned